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 property real _margin: ScreenTools.defaultFontPixelWidth / 2
19 property var _missionItem: missionItem
20
21 Component {
22 id: _transectValuesComponent
23
24 GridLayout {
25 columnSpacing: _margin
26 rowSpacing: _margin
27 columns: 2
28
29 QGCLabel { text: qsTr("Width") }
30 FactTextField {
31 fact: _missionItem.corridorWidth
32 Layout.fillWidth: true
33 }
34
35 QGCLabel {
36 text: qsTr("Turnaround dist")
37 visible: !forPresets
38 }
39 FactTextField {
40 fact: _missionItem.turnAroundDistance
41 Layout.fillWidth: true
42 visible: !forPresets
43 }
44
45 FactCheckBox {
46 Layout.columnSpan: 2
47 text: qsTr("Images in turnarounds")
48 fact: _missionItem.cameraTriggerInTurnAround
49 enabled: _missionItem.hoverAndCaptureAllowed ? !_missionItem.hoverAndCapture.rawValue : true
50 visible: !forPresets
51 }
52 }
53 }
54}