7import QGroundControl.Controls
8import QGroundControl.FactControls
9import QGroundControl.FlightMap
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
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
22 property real _margin: ScreenTools.defaultFontPixelWidth / 2
23 property var _missionItem: missionItem
26 id: _transectValuesComponent
29 columnSpacing: _margin
33 QGCLabel { text: qsTr("Width") }
35 fact: _missionItem.corridorWidth
36 Layout.fillWidth: true
40 text: qsTr("Turnaround dist")
44 fact: _missionItem.turnAroundDistance
45 Layout.fillWidth: true
51 text: qsTr("Images in turnarounds")
52 fact: _missionItem.cameraTriggerInTurnAround
53 enabled: _missionItem.hoverAndCaptureAllowed ? !_missionItem.hoverAndCapture.rawValue : true