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
ac99b3fe
Commit
ac99b3fe
authored
Aug 29, 2017
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable/Disable Offline maps import/export.
parent
d5440994
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
OfflineMap.qml
src/QtLocationPlugin/QMLControl/OfflineMap.qml
+2
-2
QGCOptions.h
src/api/QGCOptions.h
+12
-0
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+2
-1
No files found.
src/QtLocationPlugin/QMLControl/OfflineMap.qml
View file @
ac99b3fe
...
...
@@ -955,7 +955,7 @@ QGCView {
QGCButton
{
text
:
qsTr
(
"
Import
"
)
width
:
_buttonSize
visible
:
!
ScreenTools
.
isMobile
visible
:
QGroundControl
.
corePlugin
.
options
.
showOfflineMapImport
onClicked
:
{
QGroundControl
.
mapEngineManager
.
importAction
=
QGCMapEngineManager
.
ActionNone
rootLoader
.
sourceComponent
=
importDialog
...
...
@@ -964,7 +964,7 @@ QGCView {
QGCButton
{
text
:
qsTr
(
"
Export
"
)
width
:
_buttonSize
visible
:
!
ScreenTools
.
isMobile
visible
:
QGroundControl
.
corePlugin
.
options
.
showOfflineMapExport
enabled
:
QGroundControl
.
mapEngineManager
.
tileSets
.
count
>
1
onClicked
:
showExport
()
}
...
...
src/api/QGCOptions.h
View file @
ac99b3fe
...
...
@@ -42,6 +42,8 @@ public:
Q_PROPERTY
(
bool
guidedBarShowOrbit
READ
guidedBarShowOrbit
NOTIFY
guidedBarShowOrbitChanged
)
Q_PROPERTY
(
bool
missionWaypointsOnly
READ
missionWaypointsOnly
NOTIFY
missionWaypointsOnlyChanged
)
Q_PROPERTY
(
bool
multiVehicleEnabled
READ
multiVehicleEnabled
NOTIFY
multiVehicleEnabledChanged
)
Q_PROPERTY
(
bool
showOfflineMapExport
READ
showOfflineMapExport
NOTIFY
showOfflineMapExportChanged
)
Q_PROPERTY
(
bool
showOfflineMapImport
READ
showOfflineMapImport
NOTIFY
showOfflineMapImportChanged
)
/// Should QGC hide its settings menu and colapse it into one single menu (Settings and Vehicle Setup)?
/// @return true if QGC should consolidate both menus into one.
...
...
@@ -75,6 +77,14 @@ public:
virtual
bool
missionWaypointsOnly
()
const
{
return
false
;
}
///< true: Only allow waypoints and complex items in Plan
virtual
bool
multiVehicleEnabled
()
const
{
return
true
;
}
///< false: multi vehicle support is disabled
#if defined(__mobile__)
virtual
bool
showOfflineMapExport
()
const
{
return
false
;
}
virtual
bool
showOfflineMapImport
()
const
{
return
false
;
}
#else
virtual
bool
showOfflineMapExport
()
const
{
return
true
;
}
virtual
bool
showOfflineMapImport
()
const
{
return
true
;
}
#endif
/// If returned QString in non-empty it means that firmware upgrade will run in a mode which only
/// supports downloading a single firmware file from the URL. It also supports custom install through
/// the Advanced options.
...
...
@@ -91,6 +101,8 @@ signals:
void
guidedBarShowOrbitChanged
(
bool
show
);
void
missionWaypointsOnlyChanged
(
bool
missionWaypointsOnly
);
void
multiVehicleEnabledChanged
(
bool
multiVehicleEnabled
);
void
showOfflineMapExportChanged
();
void
showOfflineMapImportChanged
();
private:
CustomInstrumentWidget
*
_defaultInstrumentWidget
;
...
...
src/ui/preferences/GeneralSettings.qml
View file @
ac99b3fe
...
...
@@ -294,7 +294,8 @@ QGCView {
//-----------------------------------------------------------------
//-- Battery talker
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
settingsManager
.
appSettings
.
batteryPercentRemainingAnnounce
.
visible
QGCCheckBox
{
id
:
announcePercentCheckbox
text
:
qsTr
(
"
Announce battery lower than:
"
)
...
...
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