|
|
@ -15,7 +15,7 @@ import QGroundControl.Controllers 1.0 |
|
|
|
Rectangle { |
|
|
|
Rectangle { |
|
|
|
id: valuesRect |
|
|
|
id: valuesRect |
|
|
|
width: availableWidth |
|
|
|
width: availableWidth |
|
|
|
height: deferedload.status == Loader.Ready ? (visible ? deferedload.item.height : 0) : 0 |
|
|
|
height: valuesColumn.height + (_margin * 2) |
|
|
|
color: qgcPal.windowShadeDark |
|
|
|
color: qgcPal.windowShadeDark |
|
|
|
visible: missionItem.isCurrentItem |
|
|
|
visible: missionItem.isCurrentItem |
|
|
|
radius: _radius |
|
|
|
radius: _radius |
|
|
@ -39,51 +39,19 @@ Rectangle { |
|
|
|
|
|
|
|
|
|
|
|
readonly property string _firmwareLabel: qsTr("Firmware") |
|
|
|
readonly property string _firmwareLabel: qsTr("Firmware") |
|
|
|
readonly property string _vehicleLabel: qsTr("Vehicle") |
|
|
|
readonly property string _vehicleLabel: qsTr("Vehicle") |
|
|
|
|
|
|
|
readonly property real _margin: ScreenTools.defaultFontPixelWidth / 2 |
|
|
|
|
|
|
|
|
|
|
|
QGCPalette { id: qgcPal } |
|
|
|
QGCPalette { id: qgcPal } |
|
|
|
QGCFileDialogController { id: fileController } |
|
|
|
QGCFileDialogController { id: fileController } |
|
|
|
|
|
|
|
|
|
|
|
Loader { |
|
|
|
|
|
|
|
id: deferedload |
|
|
|
|
|
|
|
active: valuesRect.visible |
|
|
|
|
|
|
|
asynchronous: true |
|
|
|
|
|
|
|
anchors.margins: _margin |
|
|
|
|
|
|
|
anchors.left: valuesRect.left |
|
|
|
|
|
|
|
anchors.right: valuesRect.right |
|
|
|
|
|
|
|
anchors.top: valuesRect.top |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sourceComponent: Component { |
|
|
|
|
|
|
|
Item { |
|
|
|
|
|
|
|
id: valuesItem |
|
|
|
|
|
|
|
height: valuesColumn.height + (_margin * 2) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Column { |
|
|
|
Column { |
|
|
|
id: valuesColumn |
|
|
|
id: valuesColumn |
|
|
|
|
|
|
|
anchors.margins: _margin |
|
|
|
anchors.left: parent.left |
|
|
|
anchors.left: parent.left |
|
|
|
anchors.right: parent.right |
|
|
|
anchors.right: parent.right |
|
|
|
anchors.top: parent.top |
|
|
|
anchors.top: parent.top |
|
|
|
spacing: _margin |
|
|
|
spacing: _margin |
|
|
|
|
|
|
|
|
|
|
|
Loader { |
|
|
|
|
|
|
|
anchors.left: parent.left |
|
|
|
|
|
|
|
anchors.right: parent.right |
|
|
|
|
|
|
|
sourceComponent: missionSettings |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} // Column |
|
|
|
|
|
|
|
} // Item |
|
|
|
|
|
|
|
} // Component |
|
|
|
|
|
|
|
} // Loader |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Component { |
|
|
|
|
|
|
|
id: missionSettings |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Column { |
|
|
|
|
|
|
|
id: valuesColumn |
|
|
|
|
|
|
|
anchors.left: parent ? parent.left : undefined |
|
|
|
|
|
|
|
anchors.right: parent ? parent.right : undefined |
|
|
|
|
|
|
|
anchors.top: parent ? parent.top : undefined |
|
|
|
|
|
|
|
spacing: _margin |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Column { |
|
|
|
Column { |
|
|
|
anchors.left: parent.left |
|
|
|
anchors.left: parent.left |
|
|
|
anchors.right: parent.right |
|
|
|
anchors.right: parent.right |
|
|
@ -263,5 +231,4 @@ Rectangle { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} // Column |
|
|
|
} // Column |
|
|
|
} // Deferred loader |
|
|
|
|
|
|
|
} // Rectangle |
|
|
|
} // Rectangle |
|
|
|