QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
CorridorScanEditor.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Dialogs
4import QtQuick.Layouts
5
6import QGroundControl
7import QGroundControl.Controls
8import QGroundControl.FactControls
9import QGroundControl.FlightMap
10
11TransectStyleComplexItemEditor {
12 transectAreaDefinitionComplete: _missionItem.corridorPolyline.isValid
13 transectAreaDefinitionHelp: qsTr("Use the Polyline Tools to create the polyline which defines the corridor.")
14 transectValuesHeaderName: qsTr("Corridor")
15 transectValuesComponent: _transectValuesComponent
16 presetsTransectValuesComponent: _transectValuesComponent
17
18 // The following properties must be available up the hierarchy chain
19 // property real availableWidth ///< Width for control
20 // property var missionItem ///< Mission Item for editor
21
22 property real _margin: ScreenTools.defaultFontPixelWidth / 2
23 property var _missionItem: missionItem
24
25 Component {
26 id: _transectValuesComponent
27
28 GridLayout {
29 columnSpacing: _margin
30 rowSpacing: _margin
31 columns: 2
32
33 QGCLabel { text: qsTr("Width") }
34 FactTextField {
35 fact: _missionItem.corridorWidth
36 Layout.fillWidth: true
37 }
38
39 QGCLabel {
40 text: qsTr("Turnaround dist")
41 visible: !forPresets
42 }
43 FactTextField {
44 fact: _missionItem.turnAroundDistance
45 Layout.fillWidth: true
46 visible: !forPresets
47 }
48
49 FactCheckBox {
50 Layout.columnSpan: 2
51 text: qsTr("Images in turnarounds")
52 fact: _missionItem.cameraTriggerInTurnAround
53 enabled: _missionItem.hoverAndCaptureAllowed ? !_missionItem.hoverAndCapture.rawValue : true
54 visible: !forPresets
55 }
56 }
57 }
58}