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
31d4efc3
Commit
31d4efc3
authored
Dec 15, 2020
by
Valentin Platzgummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alt stuff added to MeasurementComplexItem
parent
96ac6aeb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
21 deletions
+35
-21
AreaDataEditor.qml
src/MeasurementComplexItem/qml/AreaDataEditor.qml
+3
-1
ParameterEditor.qml
src/MeasurementComplexItem/qml/ParameterEditor.qml
+32
-20
No files found.
src/MeasurementComplexItem/qml/AreaDataEditor.qml
View file @
31d4efc3
...
...
@@ -16,7 +16,6 @@ GridLayout {
property
var
_areaData
:
missionItem
.
areaData
property
real
_margin
:
ScreenTools
.
defaultFontPixelWidth
/
2
width
:
availableWidth
columnSpacing
:
_margin
rowSpacing
:
_margin
columns
:
2
...
...
@@ -58,12 +57,15 @@ GridLayout {
ColumnLayout
{
id
:
editorParent
Layout.fillWidth
:
true
Layout.maximumWidth
:
parent
.
width
Layout.columnSpan
:
2
}
Repeater
{
id
:
areaEditorRepeater
Layout.maximumWidth
:
parent
.
width
model
:
_missionItem
.
areaData
.
areaList
delegate
:
Item
{
id
:
editor
...
...
src/MeasurementComplexItem/qml/ParameterEditor.qml
View file @
31d4efc3
...
...
@@ -14,18 +14,21 @@ import QGroundControl.FactControls 1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
FlightMap
1.0
Column
Layout
{
id
:
root
Grid
Layout
{
id
:
_
root
property
int
availableWidth
:
300
property
var
missionItem
:
undefined
///< Mission Item for editor
property
bool
checked
:
true
property
var
missionItem
:
undefined
property
int
availableWidth
:
300
property
real
_margin
:
ScreenTools
.
defaultFontPixelWidth
/
2
property
var
_generator
:
missionItem
.
generator
property
var
_generatorEditor
:
undefined
width
:
availableWidth
columnSpacing
:
_margin
rowSpacing
:
_margin
columns
:
2
Component.onCompleted
:
{
console
.
assert
(
missionItem
!==
undefined
,
"
please set the missionItem property
"
)
...
...
@@ -46,6 +49,8 @@ ColumnLayout {
SectionHeader
{
id
:
generalHeader
Layout.fillWidth
:
true
Layout.columnSpan
:
parent
.
columns
Layout.maximumWidth
:
parent
.
width
text
:
qsTr
(
"
General
"
)
}
...
...
@@ -53,6 +58,8 @@ ColumnLayout {
GridLayout
{
id
:
generalGrid
Layout.fillWidth
:
true
Layout.columnSpan
:
parent
.
columns
Layout.maximumWidth
:
parent
.
width
columnSpacing
:
_margin
rowSpacing
:
_margin
columns
:
2
...
...
@@ -67,22 +74,21 @@ ColumnLayout {
Layout.fillWidth
:
true
}
QGCLabel
{
text
:
qsTr
(
"
Relative Altitude!!!
"
)
}
QGCLabel
{
text
:
qsTr
(
"
Variant
"
)
Layout.columnSpan
:
2
Layout.columnSpan
:
parent
.
columns
visible
:
variantRepeater
.
len
>
0
}
ExclusiveGroup
{
id
:
variantGroup
}
GridLayout
{
Layout.columnSpan
:
2
Layout.fillWidth
:
true
Layout.columnSpan
:
parent
.
columns
Layout.maximumWidth
:
parent
.
width
columnSpacing
:
_margin
rowSpacing
:
_margin
ExclusiveGroup
{
id
:
variantGroup
}
Repeater
{
id
:
variantRepeater
...
...
@@ -91,20 +97,20 @@ ColumnLayout {
model
:
len
delegate
:
QGCRadioButton
{
checked
:
index
===
variant
checked
:
index
===
variant
Index
text
:
variantRepeater
.
names
[
index
]
?
variantRepeater
.
names
[
index
]:
""
property
int
variant
:
missionItem
.
variant
.
value
property
int
variant
Index
:
missionItem
.
variantIndex
.
value
onVariantChanged
:
{
if
(
variant
===
index
){
onVariant
Index
Changed
:
{
if
(
variant
Index
===
index
){
checked
=
true
}
}
onCheckedChanged
:
{
if
(
checked
&&
variant
!==
index
){
missionItem
.
variant
.
value
=
index
if
(
checked
&&
variant
Index
!==
index
){
missionItem
.
variant
Index
.
value
=
index
}
}
}
...
...
@@ -116,12 +122,15 @@ ColumnLayout {
SectionHeader
{
id
:
generatorHeader
Layout.fillWidth
:
true
Layout.columnSpan
:
parent
.
columns
text
:
qsTr
(
"
Generator
"
)
}
GridLayout
{
Layout.fillWidth
:
true
columnSpacing
:
_margin
Layout.maximumWidth
:
parent
.
width
Layout.columnSpan
:
parent
.
columns
rowSpacing
:
_margin
columns
:
2
visible
:
generatorHeader
.
checked
...
...
@@ -130,7 +139,7 @@ ColumnLayout {
property
var
names
:
missionItem
.
generatorNameList
property
int
length
:
names
.
length
enabled
:
root
.
checked
enabled
:
_
root
.
checked
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
currentIndex
:
missionItem
.
generatorIndex
Layout.columnSpan
:
2
...
...
@@ -147,6 +156,8 @@ ColumnLayout {
ColumnLayout
{
id
:
generatorEditorParent
Layout.fillWidth
:
true
Layout.columnSpan
:
parent
.
columns
Layout.maximumWidth
:
parent
.
width
visible
:
generatorHeader
.
checked
}
...
...
@@ -161,6 +172,7 @@ ColumnLayout {
ColumnLayout
{
Layout.fillWidth
:
true
spacing
:
_margin
Layout.maximumWidth
:
parent
.
width
BusyIndicator
{
id
:
indicator
...
...
@@ -196,7 +208,7 @@ ColumnLayout {
_generatorEditor
=
component
.
createObject
(
generatorEditorParent
,
{
"
generator
"
:
root
.
_generator
,
"
generator
"
:
_
root
.
_generator
,
"
availableWidth
"
:
generatorEditorParent
.
width
,
})
}
...
...
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