12 changed files with 224 additions and 283 deletions
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 460 B |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 8.5 KiB |
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
import QtQuick 2.3 |
||||
|
||||
import QGroundControl 1.0 |
||||
import QGroundControl.ScreenTools 1.0 |
||||
import QGroundControl.Controls 1.0 |
||||
|
||||
QGCTabBar { |
||||
id: tabBar |
||||
anchors.left: parent.left |
||||
anchors.right: parent.right |
||||
|
||||
Component.onCompleted: currentIndex = QGroundControl.settingsManager.planViewSettings.displayPresetsTabFirst.rawValue ? 2 : 0 |
||||
|
||||
QGCTabButton { icon.source: "/qmlimages/PatternGrid.png"; icon.height: ScreenTools.defaultFontPixelHeight } |
||||
QGCTabButton { icon.source: "/qmlimages/PatternCamera.png"; icon.height: ScreenTools.defaultFontPixelHeight } |
||||
QGCTabButton { icon.source: "/qmlimages/PatternTerrain.png"; icon.height: ScreenTools.defaultFontPixelHeight } |
||||
QGCTabButton { icon.source: "/qmlimages/PatternPresets.png"; icon.height: ScreenTools.defaultFontPixelHeight } |
||||
} |
@ -0,0 +1,51 @@
@@ -0,0 +1,51 @@
|
||||
import QtQuick 2.3 |
||||
import QtQuick.Controls 1.2 |
||||
import QtQuick.Layouts 1.2 |
||||
|
||||
import QGroundControl 1.0 |
||||
import QGroundControl.ScreenTools 1.0 |
||||
import QGroundControl.Controls 1.0 |
||||
import QGroundControl.FactSystem 1.0 |
||||
import QGroundControl.FactControls 1.0 |
||||
|
||||
ColumnLayout { |
||||
anchors.left: parent.left |
||||
anchors.right: parent.right |
||||
spacing: _margin |
||||
visible: tabBar.currentIndex === 2 |
||||
|
||||
property var missionItem |
||||
|
||||
QGCCheckBox { |
||||
id: followsTerrainCheckBox |
||||
text: qsTr("Vehicle follows terrain") |
||||
checked: missionItem.followTerrain |
||||
onClicked: missionItem.followTerrain = checked |
||||
} |
||||
|
||||
GridLayout { |
||||
Layout.fillWidth: true |
||||
columnSpacing: _margin |
||||
rowSpacing: _margin |
||||
columns: 2 |
||||
enabled: followsTerrainCheckBox.checked |
||||
|
||||
QGCLabel { text: qsTr("Tolerance") } |
||||
FactTextField { |
||||
fact: missionItem.terrainAdjustTolerance |
||||
Layout.fillWidth: true |
||||
} |
||||
|
||||
QGCLabel { text: qsTr("Max Climb Rate") } |
||||
FactTextField { |
||||
fact: missionItem.terrainAdjustMaxClimbRate |
||||
Layout.fillWidth: true |
||||
} |
||||
|
||||
QGCLabel { text: qsTr("Max Descent Rate") } |
||||
FactTextField { |
||||
fact: missionItem.terrainAdjustMaxDescentRate |
||||
Layout.fillWidth: true |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue