6import QGroundControl.Controls
7import QGroundControl.FactControls
11 height: _currentItem ? valuesRect.y + valuesRect.height + (_margin * 2) : titleBar.y - titleBar.height + _margin
12 color: _currentItem ? qgcPal.buttonHighlight : qgcPal.windowShade
17 property var rallyPoint ///< RallyPoint object associated with editor
18 property var controller ///< RallyPointController
20 property bool _currentItem: rallyPoint ? rallyPoint === controller.currentRallyPoint : false
21 property color _outerTextColor: qgcPal.text // _currentItem ? "black" : qgcPal.text
23 readonly property real _margin: ScreenTools.defaultFontPixelWidth / 2
24 readonly property real _radius: ScreenTools.defaultFontPixelWidth / 2
25 readonly property real _titleHeight: ScreenTools.defaultFontPixelHeight * 2
27 QGCPalette { id: qgcPal; colorGroupEnabled: true }
31 anchors.margins: _margin
32 anchors.top: parent.top
33 anchors.left: parent.left
34 anchors.right: parent.right
37 MissionItemIndexLabel {
39 anchors.verticalCenter: parent.verticalCenter
40 anchors.left: parent.left
46 anchors.leftMargin: _margin
47 anchors.left: indicator.right
48 anchors.verticalCenter: parent.verticalCenter
49 text: qsTr("Rally Point")
50 color: _outerTextColor
55 anchors.rightMargin: _margin
56 anchors.right: parent.right
57 anchors.verticalCenter: parent.verticalCenter
58 width: ScreenTools.defaultFontPixelWidth * 2
60 sourceSize.height: height
61 source: "qrc:/qmlimages/Hamburger.svg"
66 onClicked: hamburgerMenu.popup()
73 onTriggered: controller.removePoint(rallyPoint)
82 anchors.margins: _margin
83 anchors.left: parent.left
84 anchors.right: parent.right
85 anchors.top: titleBar.bottom
86 height: valuesGrid.height + (_margin * 2)
87 color: qgcPal.windowShadeDark
93 anchors.margins: _margin
94 anchors.left: parent.left
95 anchors.right: parent.right
96 anchors.top: parent.top
98 columnSpacing: _margin
99 rows: rallyPoint ? rallyPoint.textFieldFacts.length : 0
100 flow: GridLayout.TopToBottom
103 model: rallyPoint ? rallyPoint.textFieldFacts : 0
105 text: modelData.name + ":"
110 model: rallyPoint ? rallyPoint.textFieldFacts : 0
112 Layout.fillWidth: true