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
e87f6deb
Commit
e87f6deb
authored
Feb 13, 2020
by
DoinLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
5e7d91c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
9 deletions
+102
-9
SurveyItemEditor.qml
src/PlanView/SurveyItemEditor.qml
+102
-9
No files found.
src/PlanView/SurveyItemEditor.qml
View file @
e87f6deb
...
...
@@ -28,6 +28,9 @@ Rectangle {
property
real
_fieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
10.5
property
var
_vehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
?
QGroundControl
.
multiVehicleManager
.
activeVehicle
:
QGroundControl
.
multiVehicleManager
.
offlineEditingVehicle
property
real
_cameraMinTriggerInterval
:
missionItem
.
cameraCalc
.
minTriggerInterval
.
rawValue
property
bool
_polygonDone
:
false
property
string
_doneAdjusting
:
qsTr
(
"
Done Adjusting
"
)
property
bool
_presetsAvailable
:
missionItem
.
presetNames
.
length
!==
0
function
polygonCaptureStarted
()
{
missionItem
.
clearPolygon
()
...
...
@@ -62,19 +65,109 @@ Rectangle {
spacing
:
_margin
visible
:
!
missionItem
.
surveyAreaPolygon
.
isValid
||
missionItem
.
wizardMode
QGCLabel
{
ColumnLayout
{
Layout.fillWidth
:
true
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
Use the Polygon Tools to create the polygon which outlines your survey area.
"
)
spacing
:
_margin
visible
:
!
_polygonDone
QGCLabel
{
Layout.fillWidth
:
true
wrapMode
:
Text
.
WordWrap
horizontalAlignment
:
Text
.
AlignHCenter
text
:
qsTr
(
"
Use the Polygon Tools to create the polygon which outlines your survey area.
"
)
}
QGCButton
{
text
:
qsTr
(
"
Done With Polygon
"
)
Layout.fillWidth
:
true
enabled
:
missionItem
.
surveyAreaPolygon
.
isValid
onClicked
:
{
if
(
!
_presetsAvailable
)
{
missionItem
.
wizardMode
=
false
editorRoot
.
selectNextNotReadyItem
()
}
_polygonDone
=
true
}
}
}
QGCButton
{
text
:
qsTr
(
"
Done With Polygon
"
)
ColumnLayout
{
Layout.fillWidth
:
true
enabled
:
missionItem
.
surveyAreaPolygon
.
isValid
onClicked
:
{
missionItem
.
wizardMode
=
false
editorRoot
.
selectNextNotReadyItem
()
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
editorRoot
.
selectNextNotReadyItem
()
}
}
}
}
...
...
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