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
35a89d52
Commit
35a89d52
authored
Feb 07, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP on Firmware Upgrade conversion to Qml
parent
50cef503
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletion
+47
-1
FirmwareUpgrade.qml
src/VehicleSetup/FirmwareUpgrade.qml
+37
-0
SetupView.cc
src/VehicleSetup/SetupView.cc
+10
-1
No files found.
src/VehicleSetup/FirmwareUpgrade.qml
0 → 100644
View file @
35a89d52
import
QtQuick
2.2
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
.
Styles
1.2
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
FactControls
1.0
import
QGroundControl
.
Palette
1.0
Rectangle
{
width
:
600
height
:
400
property
var
qgcPal
:
QGCPalette
{
colorGroup
:
QGCPalette
.
Active
}
color
:
qgcPal
.
window
Text
{
text
:
"
FIRMWARE UPDATE
"
color
:
qgcPal
.
windowText
font.pointSize
:
20
}
Column
{
QGCRadioButton
{
text
:
qsTr
(
"
Standard Version (stable)
"
)
}
QGCRadioButton
{
text
:
qsTr
(
"
Beta Testing (beta)
"
)
}
QGCRadioButton
{
text
:
qsTr
(
"
Developer Build (master)
"
)
}
QGCRadioButton
{
text
:
qsTr
(
"
Custom firmware file...
"
)
}
}
}
src/VehicleSetup/SetupView.cc
View file @
35a89d52
...
...
@@ -132,8 +132,17 @@ void SetupView::_firmwareButtonClicked(void)
QGCMessageBox
::
warning
(
"Setup"
,
"Firmware Update cannot be performed while vehicle is armed."
);
return
;
}
#if 1
PX4FirmwareUpgrade
*
setup
=
new
PX4FirmwareUpgrade
(
this
);
#else
// NYI
QGCQmlWidgetHolder
*
setup
=
new
QGCQmlWidgetHolder
;
Q_CHECK_PTR
(
setup
);
//setup->setAutoPilot(_autoPilotPlugin);
setup
->
setSource
(
QUrl
::
fromUserInput
(
"qrc:/qml/FirmwareUpgrade.qml"
));
#endif
_changeSetupWidget
(
setup
);
}
...
...
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