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
44e40518
Commit
44e40518
authored
Oct 22, 2015
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preliminary work on the Flight View
parent
d2c0ef2c
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
261 additions
and
238 deletions
+261
-238
QGCApplication.pro
QGCApplication.pro
+3
-1
qgcresources.qrc
qgcresources.qrc
+219
-0
qgroundcontrol.qrc
qgroundcontrol.qrc
+0
-211
MainWindow.qml
src/ui/MainWindow.qml
+39
-26
No files found.
QGCApplication.pro
View file @
44e40518
...
...
@@ -127,7 +127,9 @@ include(QGCExternalLibs.pri)
#
Main
QGroundControl
portion
of
project
file
#
RESOURCES
+=
qgroundcontrol
.
qrc
RESOURCES
+=
\
qgroundcontrol
.
qrc
\
qgcresources
.
qrc
DEPENDPATH
+=
\
.
\
...
...
qgcresources.qrc
0 → 100644
View file @
44e40518
This diff is collapsed.
Click to expand it.
qgroundcontrol.qrc
View file @
44e40518
This diff is collapsed.
Click to expand it.
src/ui/MainWindow.qml
View file @
44e40518
...
...
@@ -30,41 +30,43 @@ import QGroundControl.FlightDisplay 1.0
import
QGroundControl
.
ScreenTools
1.0
/// Qml for MainWindow
FlightDisplayView
{
Item
{
id
:
_root
topMargin
:
toolbarLoader
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
/
2
)
property
var
_toolbar
:
toolbarLoader
.
item
readonly
property
string
_planViewSource
:
"
MissionEditor.qml
"
readonly
property
string
_setupViewSource
:
"
SetupView.qml
"
Connections
{
target
:
controller
onShowFlyView
:
{
setupViewLoader
.
visible
=
false
planViewLoader
.
visible
=
false
_root
.
hideWidgets
=
false
flightView
.
visible
=
true
setupViewLoader
.
visible
=
false
planViewLoader
.
visible
=
false
_root
.
hideWidgets
=
false
}
onShowPlanView
:
{
if
(
planViewLoader
.
source
!=
_planViewSource
)
{
planViewLoader
.
source
=
_planViewSource
if
(
planViewLoader
.
source
!=
_planViewSource
)
{
planViewLoader
.
source
=
_planViewSource
}
setupViewLoader
.
visible
=
false
planViewLoader
.
visible
=
true
_root
.
hideWidgets
=
true
flightView
.
visible
=
false
setupViewLoader
.
visible
=
false
planViewLoader
.
visible
=
true
_root
.
hideWidgets
=
true
}
onShowSetupView
:
{
if
(
setupViewLoader
.
source
!=
_setupViewSource
)
{
setupViewLoader
.
source
=
_setupViewSource
if
(
setupViewLoader
.
source
!=
_setupViewSource
)
{
setupViewLoader
.
source
=
_setupViewSource
}
setupViewLoader
.
visible
=
true
planViewLoader
.
visible
=
false
_root
.
hideWidgets
=
true
flightView
.
visible
=
false
setupViewLoader
.
visible
=
true
planViewLoader
.
visible
=
false
_root
.
hideWidgets
=
true
}
onShowToolbarMessage
:
_toolbar
.
showToolbarMessage
(
message
)
...
...
@@ -83,19 +85,30 @@ FlightDisplayView {
}
Loader
{
id
:
toolbarLoader
width
:
parent
.
width
height
:
item
?
item
.
height
:
0
z
:
_root
.
zOrderTopMost
id
:
toolbarLoader
width
:
parent
.
width
height
:
item
?
item
.
height
:
0
z
:
_root
.
zOrderTopMost
}
FlightDisplayView
{
id
:
flightView
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
toolbarLoader
.
bottom
anchors.bottom
:
parent
.
bottom
visible
:
true
property
real
zOrder
:
_root
.
zOrderTopMost
}
Loader
{
id
:
planViewLoader
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
toolbarLoader
.
bottom
anchors.bottom
:
parent
.
bottom
visible
:
false
id
:
planViewLoader
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
toolbarLoader
.
bottom
anchors.bottom
:
parent
.
bottom
visible
:
false
property
real
zOrder
:
_root
.
zOrderTopMost
}
...
...
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