Browse Source

fix structure scan editor display

QGC4.4
Holden 3 years ago committed by Ramon Roche
parent
commit
94bd479f92
  1. 71
      src/PlanView/StructureScanEditor.qml

71
src/PlanView/StructureScanEditor.qml

@ -49,51 +49,30 @@ Rectangle {
QGCPalette { id: qgcPal; colorGroupEnabled: true } QGCPalette { id: qgcPal; colorGroupEnabled: true }
Column { ColumnLayout {
id: editorColumn id: editorColumn
anchors.margins: _margin anchors.margins: _margin
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
ColumnLayout { QGCLabel {
id: wizardColumn id: wizardLabel
anchors.left: parent.left
anchors.right: parent.right
spacing: _margin
visible: !missionItem.structurePolygon.isValid || missionItem.wizardMode
QGCLabel {
Layout.fillWidth: true Layout.fillWidth: true
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
text: qsTr("Use the Polygon Tools to create the polygon which outlines the structure.") text: qsTr("Use the Polygon Tools to create the polygon which outlines the structure.")
visible: !missionItem.structurePolygon.isValid || missionItem.wizardMode
} }
/* ColumnLayout {
Trial of new "done" model so leaving for now in case it comes back Layout.fillWidth: true
QGCButton {
text: qsTr("Done With Polygon")
Layout.fillWidth: true
enabled: missionItem.structurePolygon.isValid && !missionItem.structurePolygon.traceMode
onClicked: {
missionItem.wizardMode = false
// Trial of no auto select next item
//editorRoot.selectNextNotReadyItem()
}
}
*/
}
Column {
anchors.left: parent.left
anchors.right: parent.right
spacing: _margin spacing: _margin
visible: !wizardColumn.visible visible: !wizardLabel.visible
QGCTabBar { QGCTabBar {
id: tabBar id: tabBar
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
Component.onCompleted: currentIndex = 0 Component.onCompleted: currentIndex = 0
@ -101,23 +80,20 @@ Rectangle {
QGCTabButton { text: qsTr("Camera") } QGCTabButton { text: qsTr("Camera") }
} }
Column { ColumnLayout {
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
spacing: _margin spacing: _margin
visible: tabBar.currentIndex == 0 visible: tabBar.currentIndex == 0
QGCLabel { QGCLabel {
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
text: qsTr("Note: Polygon respresents structure surface not vehicle flight path.") text: qsTr("Note: Polygon respresents structure surface not vehicle flight path.")
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
font.pointSize: ScreenTools.smallFontPointSize font.pointSize: ScreenTools.smallFontPointSize
} }
QGCLabel { QGCLabel {
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
text: qsTr("WARNING: Photo interval is below minimum interval (%1 secs) supported by camera.").arg(_cameraMinTriggerInterval.toFixed(1)) text: qsTr("WARNING: Photo interval is below minimum interval (%1 secs) supported by camera.").arg(_cameraMinTriggerInterval.toFixed(1))
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
color: qgcPal.warningText color: qgcPal.warningText
@ -125,6 +101,7 @@ Rectangle {
} }
CameraCalcGrid { CameraCalcGrid {
Layout.fillWidth: true
cameraCalc: missionItem.cameraCalc cameraCalc: missionItem.cameraCalc
vehicleFlightIsFrontal: false vehicleFlightIsFrontal: false
distanceToSurfaceLabel: qsTr("Scan Distance") distanceToSurfaceLabel: qsTr("Scan Distance")
@ -134,20 +111,17 @@ Rectangle {
SectionHeader { SectionHeader {
id: scanHeader id: scanHeader
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
text: qsTr("Scan") text: qsTr("Scan")
} }
Column { ColumnLayout {
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
spacing: _margin spacing: _margin
visible: scanHeader.checked visible: scanHeader.checked
GridLayout { GridLayout {
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
columnSpacing: _margin columnSpacing: _margin
rowSpacing: _margin rowSpacing: _margin
columns: 2 columns: 2
@ -206,8 +180,7 @@ Rectangle {
SectionHeader { SectionHeader {
id: statsHeader id: statsHeader
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
text: qsTr("Statistics") text: qsTr("Statistics")
} }
@ -239,13 +212,13 @@ Rectangle {
} }
} // Grid Column } // Grid Column
Column { ColumnLayout {
anchors.left: parent.left Layout.fillWidth: true
anchors.right: parent.right
spacing: _margin spacing: _margin
visible: tabBar.currentIndex == 1 visible: tabBar.currentIndex == 1
CameraCalcCamera { CameraCalcCamera {
Layout.fillWidth: true
cameraCalc: missionItem.cameraCalc cameraCalc: missionItem.cameraCalc
} }
} }

Loading…
Cancel
Save