Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
c2b56a51
Commit
c2b56a51
authored
May 23, 2018
by
DonLakeFlyer
Browse files
Large progress bar in Outdoor theme
parent
117e3dde
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/PlanView/PlanToolBar.qml
View file @
c2b56a51
...
@@ -116,6 +116,7 @@ Rectangle {
...
@@ -116,6 +116,7 @@ Rectangle {
if
(
_controllerProgressPct
===
1
)
{
if
(
_controllerProgressPct
===
1
)
{
missionStats
.
visible
=
false
missionStats
.
visible
=
false
uploadCompleteText
.
visible
=
true
uploadCompleteText
.
visible
=
true
progressBar
.
visible
=
false
resetProgressTimer
.
start
()
resetProgressTimer
.
start
()
}
else
if
(
_controllerProgressPct
>
0
)
{
}
else
if
(
_controllerProgressPct
>
0
)
{
progressBar
.
visible
=
true
progressBar
.
visible
=
true
...
@@ -128,20 +129,9 @@ Rectangle {
...
@@ -128,20 +129,9 @@ Rectangle {
onTriggered
:
{
onTriggered
:
{
missionStats
.
visible
=
true
missionStats
.
visible
=
true
uploadCompleteText
.
visible
=
false
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
{
QGCLabel
{
id
:
uploadCompleteText
id
:
uploadCompleteText
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
...
@@ -313,5 +303,72 @@ Rectangle {
...
@@ -313,5 +303,72 @@ Rectangle {
duration
:
2000
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 @
c2b56a51
...
@@ -225,7 +225,6 @@ Rectangle {
...
@@ -225,7 +225,6 @@ Rectangle {
color
:
qgcPal
.
window
color
:
qgcPal
.
window
visible
:
_showLargeProgress
visible
:
_showLargeProgress
property
bool
_showFullHeight
:
false
property
bool
_initialDownloadComplete
:
_activeVehicle
?
_activeVehicle
.
parameterManager
.
parametersReady
:
true
property
bool
_initialDownloadComplete
:
_activeVehicle
?
_activeVehicle
.
parameterManager
.
parametersReady
:
true
property
bool
_userHide
:
false
property
bool
_userHide
:
false
property
bool
_showLargeProgress
:
!
_initialDownloadComplete
&&
!
_userHide
&&
qgcPal
.
globalTheme
===
QGCPalette
.
Light
property
bool
_showLargeProgress
:
!
_initialDownloadComplete
&&
!
_userHide
&&
qgcPal
.
globalTheme
===
QGCPalette
.
Light
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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