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
916d996e
Commit
916d996e
authored
Feb 23, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restructure ui not parent to bottom
- Added new Advanced visualization
parent
28625888
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
196 additions
and
159 deletions
+196
-159
ParameterEditorDialog.qml
src/QmlControls/ParameterEditorDialog.qml
+126
-95
FirmwareUpgrade.qml
src/VehicleSetup/FirmwareUpgrade.qml
+70
-64
No files found.
src/QmlControls/ParameterEditorDialog.qml
View file @
916d996e
...
...
@@ -44,6 +44,8 @@ QGCViewDialog {
ParameterEditorController
{
id
:
controller
;
factPanel
:
parent
}
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
true
}
function
accept
()
{
if
(
factCombo
.
visible
)
{
fact
.
enumIndex
=
factCombo
.
currentIndex
...
...
@@ -69,7 +71,13 @@ QGCViewDialog {
//valueField.forceActiveFocus()
}
QGCFlickable
{
anchors.fill
:
parent
contentHeight
:
_column
.
y
+
_column
.
height
flickableDirection
:
Flickable
.
VerticalFlick
Column
{
id
:
_column
spacing
:
defaultTextHeight
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
...
...
@@ -87,6 +95,9 @@ QGCViewDialog {
text
:
fact
.
longDescription
}
Row
{
spacing
:
defaultTextWidth
QGCTextField
{
id
:
valueField
text
:
validate
?
validateValue
:
fact
.
valueString
...
...
@@ -97,6 +108,19 @@ QGCViewDialog {
inputMethodHints
:
Qt
.
ImhFormattedNumbersOnly
}
QGCButton
{
anchors.baseline
:
valueField
.
baseline
visible
:
fact
.
defaultValueAvailable
text
:
"
Reset to default
"
onClicked
:
{
fact
.
value
=
fact
.
defaultValue
fact
.
valueChanged
(
fact
.
value
)
hideDialog
()
}
}
}
QGCComboBox
{
id
:
factCombo
width
:
valueField
.
width
...
...
@@ -165,30 +189,37 @@ QGCViewDialog {
visible
:
false
text
:
"
Force save (dangerous!)
"
}
}
// Column - Fact information
Row
{
width
:
parent
.
width
spacing
:
ScreenTools
.
defaultFontPixelWidth
/
2
visible
:
showRCToParam
QGCButton
{
id
:
bottomButton
anchors.rightMargin
:
defaultTextWidth
anchors.right
:
rcButton
.
left
anchors.bottom
:
parent
.
bottom
visible
:
fact
.
defaultValueAvailable
text
:
"
Reset to default
"
Rectangle
{
height
:
1
width
:
ScreenTools
.
defaultFontPixelWidth
*
5
color
:
qgcPal
.
text
anchors.verticalCenter
:
_advanced
.
verticalCenter
}
onClicked
:
{
fact
.
value
=
fact
.
defaultValue
fact
.
valueChanged
(
fact
.
value
)
hideDialog
()
QGCCheckBox
{
id
:
_advanced
text
:
"
Advanced settings
"
}
Rectangle
{
height
:
1
width
:
ScreenTools
.
defaultFontPixelWidth
*
5
color
:
qgcPal
.
text
anchors.verticalCenter
:
_advanced
.
verticalCenter
}
}
QGCButton
{
id
:
rcButton
anchors.right
:
parent
.
right
anchors.bottom
:
parent
.
bottom
text
:
"
Set RC to Param...
"
visible
:
!
validate
&&
showRCToParam
visible
:
_advanced
.
checked
&&
!
validate
&&
showRCToParam
onClicked
:
controller
.
setRCToParam
(
fact
.
name
)
}
}
// Column
}
}
// QGCViewDialog
src/VehicleSetup/FirmwareUpgrade.qml
View file @
916d996e
...
...
@@ -131,7 +131,7 @@ QGCView {
QGCViewDialog
{
anchors.fill
:
parent
property
bool
showFirmwareTypeSelection
:
advancedMode
.
checked
property
bool
showFirmwareTypeSelection
:
_advanced
.
checked
property
bool
px4Flow
:
controller
.
boardType
==
"
PX4 Flow
"
function
accept
()
{
...
...
@@ -232,6 +232,44 @@ QGCView {
onClicked
:
parent
.
firmwareVersionChanged
(
firmwareTypeList
)
}
QGCComboBox
{
id
:
vehicleTypeSelectionCombo
width
:
200
visible
:
apmFlightStack
.
checked
model
:
controller
.
apmAvailableVersions
}
Row
{
width
:
parent
.
width
spacing
:
ScreenTools
.
defaultFontPixelWidth
/
2
visible
:
!
px4Flow
Rectangle
{
height
:
1
width
:
ScreenTools
.
defaultFontPixelWidth
*
5
color
:
qgcPal
.
text
anchors.verticalCenter
:
_advanced
.
verticalCenter
}
QGCCheckBox
{
id
:
_advanced
text
:
"
Advanced settings
"
checked
:
px4Flow
?
true
:
false
onClicked
:
{
firmwareVersionCombo
.
currentIndex
=
0
firmwareVersionWarningLabel
.
visible
=
false
}
}
Rectangle
{
height
:
1
width
:
ScreenTools
.
defaultFontPixelWidth
*
5
color
:
qgcPal
.
text
anchors.verticalCenter
:
_advanced
.
verticalCenter
}
}
QGCLabel
{
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
...
...
@@ -239,8 +277,6 @@ QGCView {
text
:
px4Flow
?
"
Select which version of the firmware you would like to install:
"
:
"
Select which version of the above flight stack you would like to install:
"
}
Row
{
spacing
:
10
QGCComboBox
{
id
:
firmwareVersionCombo
width
:
200
...
...
@@ -270,43 +306,13 @@ QGCView {
}
}
QGCComboBox
{
id
:
vehicleTypeSelectionCombo
width
:
200
visible
:
apmFlightStack
.
checked
model
:
controller
.
apmAvailableVersions
}
}
QGCLabel
{
id
:
firmwareVersionWarningLabel
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
visible
:
false
}
}
QGCCheckBox
{
id
:
advancedMode
anchors.bottom
:
parent
.
bottom
text
:
"
Advanced mode
"
checked
:
px4Flow
?
true
:
false
visible
:
!
px4Flow
onClicked
:
{
firmwareVersionCombo
.
currentIndex
=
0
firmwareVersionWarningLabel
.
visible
=
false
}
}
QGCButton
{
anchors.leftMargin
:
ScreenTools
.
defaultFontPixelWidth
*
2
anchors.left
:
advancedMode
.
right
anchors.bottom
:
parent
.
bottom
text
:
"
Help me pick a flight stack
"
onClicked
:
Qt
.
openUrlExternally
(
"
http://pixhawk.org/choice
"
)
visible
:
!
px4Flow
}
}
// Column
}
// QGCViewDialog
}
// Component - pixhawkFirmwareSelectDialog
...
...
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