6import QGroundControl.Controls
11 property real _toolButtonHeight: ScreenTools.defaultFontPixelHeight * 3
13 contentComponent: Component {
16 columnSpacing: ScreenTools.defaultFontPixelWidth
17 rowSpacing: columnSpacing
20 implicitHeight: root._toolButtonHeight
21 Layout.fillWidth: true
23 imageResource: "/res/FlyingPaperPlane.svg"
25 if (mainWindow.allowViewSwitch()) {
26 mainWindow.closeIndicatorDrawer()
27 mainWindow.showFlyView()
33 implicitHeight: root._toolButtonHeight
34 Layout.fillWidth: true
36 imageResource: "/qmlimages/Plan.svg"
38 if (mainWindow.allowViewSwitch()) {
39 mainWindow.closeIndicatorDrawer()
40 mainWindow.showPlanView()
46 implicitHeight: root._toolButtonHeight
47 Layout.fillWidth: true
49 imageResource: "/qmlimages/Analyze.svg"
50 visible: QGroundControl.corePlugin.showAdvancedUI
52 if (mainWindow.allowViewSwitch()) {
53 mainWindow.closeIndicatorDrawer()
54 mainWindow.showAnalyzeTool()
61 implicitHeight: root._toolButtonHeight
62 Layout.fillWidth: true
63 text: qsTr("Configure")
64 imageResource: "/res/GearWithPaperPlane.svg"
66 if (mainWindow.allowViewSwitch()) {
67 mainWindow.closeIndicatorDrawer()
68 mainWindow.showVehicleConfig()
75 implicitHeight: root._toolButtonHeight
76 Layout.fillWidth: true
77 text: qsTr("Settings")
78 imageResource: "/res/QGCLogoWhite.svg"
79 visible: !QGroundControl.corePlugin.options.combineSettingsAndSetup
81 if (mainWindow.allowViewSwitch()) {
82 mainWindow.closeIndicatorDrawer()
83 mainWindow.showSettingsTool()
90 implicitHeight: root._toolButtonHeight
91 Layout.fillWidth: true
93 imageResource: "/res/OpenDoor.svg"
95 if (mainWindow.allowViewSwitch()) {
96 mainWindow.finishCloseProcess()
102 id: versionColumnLayout
103 Layout.fillWidth: true
109 Layout.fillWidth: true
110 horizontalAlignment: Text.AlignHCenter
111 text: qsTr("%1 Version").arg(QGroundControl.appName)
112 font.pointSize: ScreenTools.smallFontPointSize
113 wrapMode: QGCLabel.WordWrap
117 Layout.fillWidth: true
118 horizontalAlignment: Text.AlignHCenter
119 text: QGroundControl.qgcVersion
120 font.pointSize: ScreenTools.smallFontPointSize
121 wrapMode: QGCLabel.WrapAnywhere
125 Layout.fillWidth: true
126 horizontalAlignment: Text.AlignHCenter
127 text: QGroundControl.qgcAppDate
128 font.pointSize: ScreenTools.smallFontPointSize
129 wrapMode: QGCLabel.WrapAnywhere
130 visible: QGroundControl.qgcDailyBuild
133 anchors.topMargin: -(parent.y - versionLabel.y)
136 onClicked: (mouse) => {
137 if (mouse.modifiers & Qt.ControlModifier) {
138 QGroundControl.corePlugin.showTouchAreas = !QGroundControl.corePlugin.showTouchAreas
139 showTouchAreasNotification.open()
140 } else if (ScreenTools.isMobile || mouse.modifiers & Qt.ShiftModifier) {
141 mainWindow.closeIndicatorDrawer()
142 if (!QGroundControl.corePlugin.showAdvancedUI) {
143 advancedModeOnConfirmation.open()
145 advancedModeOffConfirmation.open()
150 // This allows you to change this on mobile
152 QGroundControl.corePlugin.showTouchAreas = !QGroundControl.corePlugin.showTouchAreas
153 showTouchAreasNotification.open()