6import QGroundControl.Controls
11 property real _toolButtonHeight: ScreenTools.defaultFontPixelHeight * 3
13 contentComponent: Component {
16 columnSpacing: ScreenTools.defaultFontPixelWidth
17 rowSpacing: columnSpacing
20 objectName: "toolbar_viewFly"
21 implicitHeight: root._toolButtonHeight
22 Layout.fillWidth: true
24 imageResource: "/res/FlyingPaperPlane.svg"
26 if (mainWindow.allowViewSwitch()) {
27 mainWindow.closeIndicatorDrawer()
28 mainWindow.showFlyView()
34 objectName: "toolbar_viewPlan"
35 implicitHeight: root._toolButtonHeight
36 Layout.fillWidth: true
38 imageResource: "/qmlimages/Plan.svg"
40 if (mainWindow.allowViewSwitch()) {
41 mainWindow.closeIndicatorDrawer()
42 mainWindow.showPlanView()
48 objectName: "toolbar_viewGeo"
49 implicitHeight: root._toolButtonHeight
50 Layout.fillWidth: true
52 imageResource: "/InstrumentValueIcons/globe.svg"
53 visible: QGroundControl.settingsManager.geoViewSettings.enabled.rawValue
55 if (mainWindow.allowViewSwitch()) {
56 mainWindow.closeIndicatorDrawer()
57 mainWindow.showGeoView()
63 objectName: "toolbar_viewAnalyze"
64 implicitHeight: root._toolButtonHeight
65 Layout.fillWidth: true
67 imageResource: "/qmlimages/Analyze.svg"
68 visible: QGroundControl.corePlugin.showAdvancedUI
70 if (mainWindow.allowViewSwitch()) {
71 mainWindow.closeIndicatorDrawer()
72 mainWindow.showAnalyzeTool()
79 objectName: "toolbar_viewConfigure"
80 implicitHeight: root._toolButtonHeight
81 Layout.fillWidth: true
82 text: qsTr("Configure")
83 imageResource: "/res/GearWithPaperPlane.svg"
85 if (mainWindow.allowViewSwitch()) {
86 mainWindow.closeIndicatorDrawer()
87 mainWindow.showVehicleConfig()
94 objectName: "toolbar_viewSettings"
95 implicitHeight: root._toolButtonHeight
96 Layout.fillWidth: true
97 text: qsTr("Settings")
98 imageResource: "/res/QGCLogoWhite.svg"
99 visible: !QGroundControl.corePlugin.options.combineSettingsAndSetup
101 if (mainWindow.allowViewSwitch()) {
102 mainWindow.closeIndicatorDrawer()
103 mainWindow.showSettingsTool()
110 objectName: "toolbar_viewClose"
111 implicitHeight: root._toolButtonHeight
112 Layout.fillWidth: true
114 imageResource: "/res/OpenDoor.svg"
116 if (mainWindow.allowViewSwitch()) {
117 mainWindow.closeIndicatorDrawer()
118 // Route through the window close handler so the unsaved
119 // mission / pending parameter / active connection checks
120 // run, matching the desktop window-close behavior.
127 id: versionColumnLayout
128 Layout.fillWidth: true
134 Layout.fillWidth: true
135 horizontalAlignment: Text.AlignHCenter
136 text: qsTr("%1 Version").arg(QGroundControl.appName)
137 font.pointSize: ScreenTools.smallFontPointSize
138 wrapMode: QGCLabel.WordWrap
142 Layout.fillWidth: true
143 horizontalAlignment: Text.AlignHCenter
144 text: QGroundControl.qgcVersion
145 font.pointSize: ScreenTools.smallFontPointSize
146 wrapMode: QGCLabel.WrapAnywhere
150 Layout.fillWidth: true
151 horizontalAlignment: Text.AlignHCenter
152 text: QGroundControl.qgcAppDate
153 font.pointSize: ScreenTools.smallFontPointSize
154 wrapMode: QGCLabel.WrapAnywhere
155 visible: QGroundControl.qgcDailyBuild
158 anchors.topMargin: -(parent.y - versionLabel.y)
161 onClicked: (mouse) => {
162 if (mouse.modifiers & Qt.ControlModifier) {
163 QGroundControl.corePlugin.showTouchAreas = !QGroundControl.corePlugin.showTouchAreas
164 showTouchAreasNotification.open()
165 } else if (ScreenTools.isMobile || mouse.modifiers & Qt.ShiftModifier) {
166 mainWindow.closeIndicatorDrawer()
167 if (!QGroundControl.corePlugin.showAdvancedUI) {
168 advancedModeOnConfirmation.open()
170 advancedModeOffConfirmation.open()
175 // This allows you to change this on mobile
177 QGroundControl.corePlugin.showTouchAreas = !QGroundControl.corePlugin.showTouchAreas
178 showTouchAreasNotification.open()