Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
f30a8f28
Commit
f30a8f28
authored
Jun 15, 2020
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
c28437e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
161 deletions
+15
-161
SurveyItemEditor.qml
src/PlanView/SurveyItemEditor.qml
+15
-161
No files found.
src/PlanView/SurveyItemEditor.qml
View file @
f30a8f28
...
@@ -76,108 +76,7 @@ Rectangle {
...
@@ -76,108 +76,7 @@ Rectangle {
horizontalAlignment
:
Text
.
AlignHCenter
horizontalAlignment
:
Text
.
AlignHCenter
text
:
qsTr
(
"
Use the Polygon Tools to create the polygon which outlines your survey area.
"
)
text
:
qsTr
(
"
Use the Polygon Tools to create the polygon which outlines your survey area.
"
)
}
}
/*
Trial of new "done" model so leaving for now in case it comes back
QGCButton {
text: qsTr("Done With Polygon")
Layout.fillWidth: true
enabled: missionItem.surveyAreaPolygon.isValid && !missionItem.surveyAreaPolygon.traceMode
onClicked: {
if (!_presetsAvailable) {
missionItem.wizardMode = false
// Trial of no auto select next item
//editorRoot.selectNextNotReadyItem()
}
_polygonDone = true
}
}
*/
}
/*
Trial of new "done" model so leaving for now in case it comes back
ColumnLayout {
Layout.fillWidth: true
spacing: _margin
visible: _polygonDone
QGCLabel {
Layout.fillWidth: true
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
text: qsTr("Apply a Preset or click %1 for manual setup.").arg(_doneAdjusting)
}
QGCComboBox {
id: wizardPresetCombo
Layout.fillWidth: true
model: missionItem.presetNames
}
QGCButton {
Layout.fillWidth: true
text: qsTr("Apply Preset")
enabled: missionItem.presetNames.length != 0
onClicked: missionItem.loadPreset(wizardPresetCombo.textAt(wizardPresetCombo.currentIndex))
}
SectionHeader {
id: wizardPresectsTransectsHeader
Layout.fillWidth: true
text: qsTr("Transects")
}
GridLayout {
Layout.fillWidth: true
columnSpacing: _margin
rowSpacing: _margin
columns: 2
visible: wizardPresectsTransectsHeader.checked
QGCLabel { text: qsTr("Angle") }
FactTextField {
fact: missionItem.gridAngle
Layout.fillWidth: true
onUpdated: wizardPresetsAngleSlider.value = missionItem.gridAngle.value
}
QGCSlider {
id: wizardPresetsAngleSlider
minimumValue: 0
maximumValue: 359
stepSize: 1
tickmarksEnabled: false
Layout.fillWidth: true
Layout.columnSpan: 2
Layout.preferredHeight: ScreenTools.defaultFontPixelHeight * 1.5
onValueChanged: missionItem.gridAngle.value = value
Component.onCompleted: value = missionItem.gridAngle.value
updateValueWhileDragging: true
}
QGCButton {
Layout.columnSpan: 2
Layout.fillWidth: true
text: qsTr("Rotate Entry Point")
onClicked: missionItem.rotateEntryPoint();
}
}
Item { height: ScreenTools.defaultFontPixelHeight; width: 1 }
QGCButton {
text: _doneAdjusting
Layout.fillWidth: true
enabled: missionItem.surveyAreaPolygon.isValid
onClicked: {
missionItem.wizardMode = false
// Trial of no auto select next item
//editorRoot.selectNextNotReadyItem()
}
}
}
}
*/
}
}
Column
{
Column
{
...
@@ -186,23 +85,18 @@ Rectangle {
...
@@ -186,23 +85,18 @@ Rectangle {
spacing
:
_margin
spacing
:
_margin
visible
:
!
wizardColumn
.
visible
visible
:
!
wizardColumn
.
visible
QGC
TabBar
{
TransectStyleComplexItem
TabBar
{
id
:
tabBar
id
:
tabBar
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
Component.onCompleted
:
currentIndex
=
QGroundControl
.
settingsManager
.
planViewSettings
.
displayPresetsTabFirst
.
rawValue
?
2
:
0
QGCTabButton
{
text
:
qsTr
(
"
Grid
"
)
}
QGCTabButton
{
text
:
qsTr
(
"
Camera
"
)
}
QGCTabButton
{
text
:
qsTr
(
"
Presets
"
)
}
}
}
// Grid tab
Column
{
Column
{
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
spacing
:
_margin
spacing
:
_margin
visible
:
tabBar
.
currentIndex
==
0
visible
:
tabBar
.
currentIndex
==
=
0
QGCLabel
{
QGCLabel
{
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
...
@@ -325,55 +219,6 @@ Rectangle {
...
@@ -325,55 +219,6 @@ Rectangle {
}
}
}
}
SectionHeader
{
id
:
terrainHeader
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
text
:
qsTr
(
"
Terrain
"
)
checked
:
missionItem
.
followTerrain
}
ColumnLayout
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
_margin
visible
:
terrainHeader
.
checked
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
visible
:
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
}
}
}
SectionHeader
{
SectionHeader
{
id
:
statsHeader
id
:
statsHeader
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
...
@@ -388,22 +233,32 @@ Rectangle {
...
@@ -388,22 +233,32 @@ Rectangle {
}
}
}
// Grid Column
}
// Grid Column
// Camera Tab
Column
{
Column
{
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
spacing
:
_margin
spacing
:
_margin
visible
:
tabBar
.
currentIndex
==
1
visible
:
tabBar
.
currentIndex
==
=
1
CameraCalcCamera
{
CameraCalcCamera
{
cameraCalc
:
missionItem
.
cameraCalc
cameraCalc
:
missionItem
.
cameraCalc
}
}
}
// Camera Column
}
// Camera Column
// Terrain Tab
TransectStyleComplexItemTerrainFollow
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
_margin
visible
:
tabBar
.
currentIndex
===
2
}
// Presets Tab
ColumnLayout
{
ColumnLayout
{
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
spacing
:
_margin
spacing
:
_margin
visible
:
tabBar
.
currentIndex
==
2
visible
:
tabBar
.
currentIndex
==
=
3
QGCLabel
{
QGCLabel
{
Layout.fillWidth
:
true
Layout.fillWidth
:
true
...
@@ -445,7 +300,6 @@ Rectangle {
...
@@ -445,7 +300,6 @@ Rectangle {
}
}
}
}
}
}
}
}
Item
{
height
:
ScreenTools
.
defaultFontPixelHeight
;
width
:
1
}
Item
{
height
:
ScreenTools
.
defaultFontPixelHeight
;
width
:
1
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment