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
b8b13783
Unverified
Commit
b8b13783
authored
May 23, 2018
by
Don Gagne
Committed by
GitHub
May 23, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6495 from DonLakeFlyer/MissionSyncProgress
Plan: Large progress bar in Outdoor theme
parents
36186141
c2b56a51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
12 deletions
+68
-12
PlanToolBar.qml
src/PlanView/PlanToolBar.qml
+68
-11
MainToolBar.qml
src/ui/toolbar/MainToolBar.qml
+0
-1
No files found.
src/PlanView/PlanToolBar.qml
View file @
b8b13783
...
...
@@ -116,6 +116,7 @@ Rectangle {
if
(
_controllerProgressPct
===
1
)
{
missionStats
.
visible
=
false
uploadCompleteText
.
visible
=
true
progressBar
.
visible
=
false
resetProgressTimer
.
start
()
}
else
if
(
_controllerProgressPct
>
0
)
{
progressBar
.
visible
=
true
...
...
@@ -128,20 +129,9 @@ Rectangle {
onTriggered
:
{
missionStats
.
visible
=
true
uploadCompleteText
.
visible
=
false
progressBar
.
visible
=
false
}
}
Rectangle
{
id
:
progressBar
anchors.left
:
parent
.
left
anchors.bottom
:
parent
.
bottom
height
:
4
width
:
_controllerProgressPct
*
parent
.
width
color
:
qgcPal
.
colorGreen
visible
:
false
}
QGCLabel
{
id
:
uploadCompleteText
anchors.top
:
parent
.
top
...
...
@@ -313,5 +303,72 @@ Rectangle {
duration
:
2000
}
}
// Small mission download progress bar
Rectangle
{
id
:
progressBar
anchors.left
:
parent
.
left
anchors.bottom
:
parent
.
bottom
height
:
4
width
:
_controllerProgressPct
*
parent
.
width
color
:
qgcPal
.
colorGreen
visible
:
false
}
/*
Rectangle {
anchors.bottom: parent.bottom
height: toolBar.height * 0.05
width: _activeVehicle ? _activeVehicle.parameterManager.loadProgress * parent.width : 0
color: qgcPal.colorGreen
visible: !largeProgressBar.visible
}
*/
// Large mission download progress bar
Rectangle
{
id
:
largeProgressBar
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
height
:
parent
.
height
color
:
qgcPal
.
window
visible
:
_showLargeProgress
property
bool
_userHide
:
false
property
bool
_showLargeProgress
:
progressBar
.
visible
&&
!
_userHide
&&
qgcPal
.
globalTheme
===
QGCPalette
.
Light
Connections
{
target
:
QGroundControl
.
multiVehicleManager
onActiveVehicleChanged
:
largeProgressBar
.
_userHide
=
false
}
Rectangle
{
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
width
:
_controllerProgressPct
*
parent
.
width
color
:
qgcPal
.
colorGreen
}
QGCLabel
{
anchors.centerIn
:
parent
text
:
qsTr
(
"
Syncing Mission
"
)
font.pointSize
:
ScreenTools
.
largeFontPointSize
}
QGCLabel
{
anchors.margins
:
_margin
anchors.right
:
parent
.
right
anchors.bottom
:
parent
.
bottom
text
:
qsTr
(
"
Click anywhere to hide
"
)
property
real
_margin
:
ScreenTools
.
defaultFontPixelWidth
/
2
}
MouseArea
{
anchors.fill
:
parent
onClicked
:
largeProgressBar
.
_userHide
=
true
}
}
}
src/ui/toolbar/MainToolBar.qml
View file @
b8b13783
...
...
@@ -225,7 +225,6 @@ Rectangle {
color
:
qgcPal
.
window
visible
:
_showLargeProgress
property
bool
_showFullHeight
:
false
property
bool
_initialDownloadComplete
:
_activeVehicle
?
_activeVehicle
.
parameterManager
.
parametersReady
:
true
property
bool
_userHide
:
false
property
bool
_showLargeProgress
:
!
_initialDownloadComplete
&&
!
_userHide
&&
qgcPal
.
globalTheme
===
QGCPalette
.
Light
...
...
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