5import QGroundControl.Controls
6import QGroundControl.FactControls
8/// Inspector of the current rally point
12 required property var page
13 property bool drillIn: false
19 anchors.margins: ScreenTools.defaultFontPixelWidth / 2
20 spacing: ScreenTools.defaultFontPixelHeight * 0.5
23 Layout.fillWidth: true
24 namePrefix: "planPanel_rallyInspector"
25 title: qsTr("Rally Point %1").arg(root.page.currentIndex + 1)
27 canStepPrevious: root.page.currentIndex > 0
28 canStepNext: root.page.currentIndex >= 0 && root.page.currentIndex < root.page.points.count - 1
30 onBackRequested: root.backRequested()
31 onPreviousRequested: root.page.step(-1)
32 onNextRequested: root.page.step(1)
34 if (mainWindow.allowViewSwitch()) {
35 root.page.deleteCurrent()
43 Layout.fillWidth: true
44 Layout.fillHeight: true
45 contentHeight: fieldsColumn.height
51 width: flickable.width
52 spacing: ScreenTools.defaultFontPixelHeight * 0.5
54 LabelledFactTextField {
55 objectName: "planPanel_rallyField_0"
56 Layout.fillWidth: true
57 visible: root.page.current !== null
58 fact: root.page.current ? root.page.current.latitude : null
61 LabelledFactTextField {
62 objectName: "planPanel_rallyField_1"
63 Layout.fillWidth: true
64 visible: root.page.current !== null
65 fact: root.page.current ? root.page.current.longitude : null
69 Layout.fillWidth: true
70 active: root.page.current !== null
72 sourceComponent: RallyPointAltitudeEditor {
73 rallyPoint: root.page.current
74 vehicle: root.page.planMasterController.controllerVehicle