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
9f4d98a5
Commit
9f4d98a5
authored
Aug 24, 2017
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make custom dialog into a function
Internet available now has a signal
parent
f8bb0a63
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
15 deletions
+33
-15
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+1
-1
QGCMapEngine.cpp
src/QtLocationPlugin/QGCMapEngine.cpp
+4
-1
QGCMapEngine.h
src/QtLocationPlugin/QGCMapEngine.h
+1
-0
OfflineMap.qml
src/QtLocationPlugin/QMLControl/OfflineMap.qml
+6
-6
MainWindowInner.qml
src/ui/MainWindowInner.qml
+21
-7
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
9f4d98a5
...
...
@@ -573,7 +573,7 @@ QGCView {
/// Close all dialogs
function
closeAll
()
{
rootLoader
.
sourceComponent
=
null
mainWindow
.
resetCustomDialog
()
guidedActionConfirm
.
visible
=
false
guidedActionList
.
visible
=
false
altitudeSlider
.
visible
=
false
...
...
src/QtLocationPlugin/QGCMapEngine.cpp
View file @
9f4d98a5
...
...
@@ -500,7 +500,10 @@ QGCMapEngine::testInternet()
void
QGCMapEngine
::
_internetStatus
(
bool
active
)
{
_isInternetActive
=
active
;
if
(
_isInternetActive
!=
active
)
{
_isInternetActive
=
active
;
emit
internetUpdated
();
}
}
// Resolution math: https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Resolution_and_Scale
...
...
src/QtLocationPlugin/QGCMapEngine.h
View file @
9f4d98a5
...
...
@@ -107,6 +107,7 @@ private slots:
signals:
void
updateTotals
(
quint32
totaltiles
,
quint64
totalsize
,
quint32
defaulttiles
,
quint64
defaultsize
);
void
internetUpdated
();
private:
void
_wipeOldCaches
();
...
...
src/QtLocationPlugin/QMLControl/OfflineMap.qml
View file @
9f4d98a5
...
...
@@ -958,7 +958,7 @@ QGCView {
visible
:
!
ScreenTools
.
isMobile
onClicked
:
{
QGroundControl
.
mapEngineManager
.
importAction
=
QGCMapEngineManager
.
ActionNone
rootLoader
.
sourceComponent
=
importDialog
mainWindow
.
showCustomDialog
(
importDialog
)
}
}
QGCButton
{
...
...
@@ -1032,7 +1032,7 @@ QGCView {
onClicked
:
{
showList
();
if
(
QGroundControl
.
mapEngineManager
.
exportSets
())
{
rootLoader
.
sourceComponent
=
exportToDiskProgress
mainWindow
.
showCustomDialog
(
exportToDiskProgress
)
}
}
}
...
...
@@ -1090,7 +1090,7 @@ QGCView {
visible
:
!
QGroundControl
.
mapEngineManager
.
exporting
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
rootLoader
.
sourceComponent
=
null
mainWindow
.
closeCustomDialog
()
}
}
}
...
...
@@ -1173,7 +1173,7 @@ QGCView {
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
showList
();
rootLoader
.
sourceComponent
=
null
mainWindow
.
closeCustomDialog
()
}
}
Row
{
...
...
@@ -1186,7 +1186,7 @@ QGCView {
onClicked
:
{
if
(
!
QGroundControl
.
mapEngineManager
.
importSets
())
{
showList
();
rootLoader
.
sourceComponent
=
null
mainWindow
.
closeCustomDialog
()
}
}
}
...
...
@@ -1195,7 +1195,7 @@ QGCView {
width
:
_bigButtonSize
*
1.25
onClicked
:
{
showList
();
rootLoader
.
sourceComponent
=
null
mainWindow
.
closeCustomDialog
()
}
}
}
...
...
src/ui/MainWindowInner.qml
View file @
9f4d98a5
...
...
@@ -63,7 +63,7 @@ Item {
}
function
showSettingsView
()
{
r
ootLoader
.
sourceComponent
=
null
r
esetCustomDialog
()
if
(
currentPopUp
)
{
currentPopUp
.
close
()
}
...
...
@@ -78,7 +78,7 @@ Item {
}
function
showSetupView
()
{
r
ootLoader
.
sourceComponent
=
null
r
esetCustomDialog
()
if
(
currentPopUp
)
{
currentPopUp
.
close
()
}
...
...
@@ -93,7 +93,7 @@ Item {
}
function
showPlanView
()
{
r
ootLoader
.
sourceComponent
=
null
r
esetCustomDialog
()
if
(
currentPopUp
)
{
currentPopUp
.
close
()
}
...
...
@@ -107,7 +107,7 @@ Item {
}
function
showFlyView
()
{
r
ootLoader
.
sourceComponent
=
null
r
esetCustomDialog
()
if
(
currentPopUp
)
{
currentPopUp
.
close
()
}
...
...
@@ -118,7 +118,7 @@ Item {
}
function
showAnalyzeView
()
{
r
ootLoader
.
sourceComponent
=
null
r
esetCustomDialog
()
if
(
currentPopUp
)
{
currentPopUp
.
close
()
}
...
...
@@ -148,6 +148,20 @@ Item {
}
}
function
showCustomDialog
(
dlg
)
{
rootLoader
.
sourceComponent
=
dlg
}
function
closeCustomDialog
()
{
mainWindow
.
enableToolbar
()
rootLoader
.
sourceComponent
=
null
}
function
resetCustomDialog
()
{
rootLoader
.
sourceComponent
=
null
mainWindow
.
enableToolbar
()
}
MessageDialog
{
id
:
unsavedMissionCloseDialog
title
:
qsTr
(
"
%1 close
"
).
arg
(
QGroundControl
.
appName
)
...
...
@@ -223,7 +237,7 @@ Item {
}
function
showMessageArea
()
{
rootLoader
.
sourceComponent
=
null
mainWindow
.
resetCustomDialog
()
var
currentlyVisible
=
messageArea
.
visible
if
(
currentPopUp
)
{
currentPopUp
.
close
()
...
...
@@ -244,7 +258,7 @@ Item {
}
function
showPopUp
(
dropItem
,
centerX
)
{
rootLoader
.
sourceComponent
=
null
mainWindow
.
resetCustomDialog
()
var
oldIndicator
=
indicatorDropdown
.
sourceComponent
if
(
currentPopUp
)
{
currentPopUp
.
close
()
...
...
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