|
|
|
@ -74,53 +74,47 @@ Rectangle {
@@ -74,53 +74,47 @@ Rectangle {
|
|
|
|
|
QGCLabel { text: _azimuthText } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCFlickable { |
|
|
|
|
ListView { |
|
|
|
|
id: statusListView |
|
|
|
|
model: missionItems |
|
|
|
|
highlightMoveDuration: 250 |
|
|
|
|
anchors.leftMargin: _margins |
|
|
|
|
anchors.rightMargin: _margins |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
width: parent.width - valueGrid.width - (_margins * 2) |
|
|
|
|
contentWidth: graphRow.width |
|
|
|
|
orientation: ListView.Horizontal |
|
|
|
|
spacing: 0 |
|
|
|
|
visible: _expanded |
|
|
|
|
width: parent.width - valueGrid.width - (_margins * 2) |
|
|
|
|
clip: true |
|
|
|
|
|
|
|
|
|
Row { |
|
|
|
|
id: graphRow |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
//anchors.margins: ScreenTools.defaultFontPixelWidth * ScreenTools.smallFontPointRatio |
|
|
|
|
spacing: ScreenTools.defaultFontPixelWidth * ScreenTools.smallFontPointRatio |
|
|
|
|
|
|
|
|
|
Repeater { |
|
|
|
|
model: missionItems |
|
|
|
|
|
|
|
|
|
Item { |
|
|
|
|
height: graphRow.height |
|
|
|
|
width: indicator.width |
|
|
|
|
visible: object.specifiesCoordinate && !object.isStandaloneCoordinate |
|
|
|
|
|
|
|
|
|
property real availableHeight: height - indicator.height |
|
|
|
|
property bool graphAbsolute: true |
|
|
|
|
|
|
|
|
|
MissionItemIndexLabel { |
|
|
|
|
id: indicator |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
y: availableHeight - (availableHeight * object.altPercent) |
|
|
|
|
small: true |
|
|
|
|
isCurrentItem: object.isCurrentItem |
|
|
|
|
label: object.abbreviation |
|
|
|
|
visible: object.relativeAltitude ? true : (object.homePosition || graphAbsolute) |
|
|
|
|
} |
|
|
|
|
delegate: Item { |
|
|
|
|
height: statusListView.height |
|
|
|
|
width: display ? (indicator.width + spacing) : 0 |
|
|
|
|
visible: display |
|
|
|
|
|
|
|
|
|
property real availableHeight: height - indicator.height |
|
|
|
|
property bool graphAbsolute: true |
|
|
|
|
readonly property bool display: object.specifiesCoordinate && !object.isStandaloneCoordinate |
|
|
|
|
readonly property real spacing: ScreenTools.defaultFontPixelWidth * ScreenTools.smallFontPointRatio |
|
|
|
|
|
|
|
|
|
MissionItemIndexLabel { |
|
|
|
|
id: indicator |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
y: availableHeight - (availableHeight * object.altPercent) |
|
|
|
|
small: true |
|
|
|
|
isCurrentItem: object.isCurrentItem |
|
|
|
|
label: object.abbreviation |
|
|
|
|
visible: object.relativeAltitude ? true : (object.homePosition || graphAbsolute) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Connections { |
|
|
|
|
target: object |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
Taking these off for now since there really isn't room for the numbers |
|
|
|
|
QGCLabel { |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
font.pointSize: ScreenTools.smallFontPointSize |
|
|
|
|
text: (object.relativeAltitude ? "" : "=") + object.coordinate.altitude.toFixed(0) |
|
|
|
|
onIsCurrentItemChanged: { |
|
|
|
|
if (object.isCurrentItem) { |
|
|
|
|
statusListView.currentIndex = index |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|