6import QGroundControl.Controls
7import QGroundControl.FactControls
12 property var missionItem
15 Layout.preferredWidth: childrenRect.width
16 Layout.preferredHeight: childrenRect.height
20 var updateFunction = function(altFrame){ missionItem.cameraCalc.distanceMode = altFrame }
21 removeModes.push(QGroundControl.AltitudeFrameMixed)
22 if (!missionItem.masterController.controllerVehicle.supports.terrainFrame) {
23 removeModes.push(QGroundControl.AltitudeFrameTerrain)
25 if (!QGroundControl.corePlugin.options.showMissionAbsoluteAltitude || !missionItem.cameraCalc.isManualCamera) {
26 removeModes.push(QGroundControl.AltitudeFrameAbsolute)
28 altFrameDialogFactory.open({ currentAltFrame: missionItem.cameraCalc.distanceMode, rgRemoveModes: removeModes, updateAltFrameFn: updateFunction })
31 QGCPopupDialogFactory {
32 id: altFrameDialogFactory
34 dialogComponent: altFrameDialogComponent
37 Component { id: altFrameDialogComponent; AltFrameDialog { } }
40 spacing: ScreenTools.defaultFontPixelWidth / 2
42 QGCLabel { text: QGroundControl.altitudeFrameShortDescription(missionItem.cameraCalc.distanceMode) }
44 height: ScreenTools.defaultFontPixelHeight / 2
46 source: "/res/DropArrow.svg"
47 color: qgcPal.textPrimary
53 Layout.fillWidth: true
54 columnSpacing: _margin
57 enabled: missionItem.cameraCalc.distanceMode === QGroundControl.AltitudeFrameCalcAboveTerrain
59 QGCLabel { text: qsTr("Tolerance") }
61 fact: missionItem.terrainAdjustTolerance
62 Layout.fillWidth: true
65 QGCLabel { text: qsTr("Max Climb Rate") }
67 fact: missionItem.terrainAdjustMaxClimbRate
68 Layout.fillWidth: true
71 QGCLabel { text: qsTr("Max Descent Rate") }
73 fact: missionItem.terrainAdjustMaxDescentRate
74 Layout.fillWidth: true