QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
MissionSettingsEditor.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.Controls
7import QGroundControl.FactControls
8
9// Editor for Initial Camera Settings (mission item 0)
10Rectangle {
11 id: root
12 width: availableWidth
13 height: valuesColumn.height + (_margin * 2)
14 color: qgcPal.windowShadeDark
15 radius: ScreenTools.defaultBorderRadius
16
17 property var _masterController: masterController
18 property var _controllerVehicle: _masterController.controllerVehicle
19 property bool _waypointsOnlyMode: QGroundControl.corePlugin.options.missionWaypointsOnly
20 property bool _showCameraSection: _waypointsOnlyMode || QGroundControl.corePlugin.showAdvancedUI
21 property bool _simpleMissionStart: QGroundControl.corePlugin.options.showSimpleMissionStart
22
23 readonly property real _margin: ScreenTools.defaultFontPixelWidth / 2
24
25 QGCPalette { id: qgcPal }
26
27 ColumnLayout {
28 id: valuesColumn
29 anchors.margins: _margin
30 anchors.left: parent.left
31 anchors.right: parent.right
32 anchors.top: parent.top
33 spacing: ScreenTools.defaultFontPixelHeight / 2
34
35 Column {
36 Layout.fillWidth: true
37 spacing: _margin
38 visible: !_simpleMissionStart
39
40 CameraSection {
41 id: cameraSection
42 anchors.left: parent.left
43 anchors.right: parent.right
44 visible: _showCameraSection
45 showSectionHeader: false
46
47 Component.onCompleted: checked = !_waypointsOnlyMode && missionItem.cameraSection.settingsSpecified
48 }
49
50 QGCLabel {
51 anchors.left: parent.left
52 anchors.right: parent.right
53 text: qsTr("Above camera commands will take affect immediately upon mission start.")
54 wrapMode: Text.WordWrap
55 horizontalAlignment: Text.AlignHCenter
56 font.pointSize: ScreenTools.smallFontPointSize
57 visible: _showCameraSection && cameraSection.checked
58 }
59 }
60 }
61}