6import QGroundControl.Controls
7import QGroundControl.FactControls
9// Editor for Initial Camera Settings (mission item 0)
13 height: valuesColumn.height + (_margin * 2)
14 color: qgcPal.windowShadeDark
15 radius: ScreenTools.defaultBorderRadius
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
23 readonly property real _margin: ScreenTools.defaultFontPixelWidth / 2
25 QGCPalette { id: qgcPal }
29 anchors.margins: _margin
30 anchors.left: parent.left
31 anchors.right: parent.right
32 anchors.top: parent.top
33 spacing: ScreenTools.defaultFontPixelHeight / 2
36 Layout.fillWidth: true
38 visible: !_simpleMissionStart
42 anchors.left: parent.left
43 anchors.right: parent.right
44 visible: _showCameraSection
45 showSectionHeader: false
47 Component.onCompleted: checked = !_waypointsOnlyMode && missionItem.cameraSection.settingsSpecified
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