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
42386f6f
Commit
42386f6f
authored
Aug 23, 2010
by
Mariano Lizarraga
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git@pixhawk.ethz.ch:qgroundcontrol
parents
e1270632
0f22afcf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
14 deletions
+17
-14
google.png
images/mapproviders/google.png
+0
-0
openstreetmap.png
images/mapproviders/openstreetmap.png
+0
-0
yahoo.png
images/mapproviders/yahoo.png
+0
-0
mavground.qrc
mavground.qrc
+3
-0
MapWidget.cc
src/ui/MapWidget.cc
+14
-14
No files found.
images/mapproviders/google.png
0 → 100644
View file @
42386f6f
2.09 KB
images/mapproviders/openstreetmap.png
0 → 100644
View file @
42386f6f
10.1 KB
images/mapproviders/yahoo.png
0 → 100644
View file @
42386f6f
2.26 KB
mavground.qrc
View file @
42386f6f
...
...
@@ -79,6 +79,9 @@
<file>images/splash.png</file>
<file>audio/alert.wav</file>
<file>demo-log.txt</file>
<file>images/mapproviders/openstreetmap.png</file>
<file>images/mapproviders/google.png</file>
<file>images/mapproviders/yahoo.png</file>
</qresource>
<qresource prefix="/general">
<file alias="vera.ttf">images/Vera.ttf</file>
...
...
src/ui/MapWidget.cc
View file @
42386f6f
...
...
@@ -92,11 +92,11 @@ MapWidget::MapWidget(QWidget *parent) :
// Add controls to select map provider
/////////////////////////////////////////////////
QActionGroup
*
mapproviderGroup
=
new
QActionGroup
(
this
);
osmAction
=
new
QAction
(
tr
(
"OpenStreetMap"
),
mapproviderGroup
);
yahooActionMap
=
new
QAction
(
tr
(
"Yahoo: Map"
),
mapproviderGroup
);
yahooActionSatellite
=
new
QAction
(
tr
(
"Yahoo: Satellite"
),
mapproviderGroup
);
googleActionMap
=
new
QAction
(
tr
(
"Google: Map"
),
mapproviderGroup
);
googleSatAction
=
new
QAction
(
tr
(
"Google: Sat"
),
mapproviderGroup
);
osmAction
=
new
QAction
(
QIcon
(
":/images/mapproviders/openstreetmap.png"
),
tr
(
"OpenStreetMap"
),
mapproviderGroup
);
yahooActionMap
=
new
QAction
(
QIcon
(
":/images/mapproviders/yahoo.png"
),
tr
(
"Yahoo: Map"
),
mapproviderGroup
);
yahooActionSatellite
=
new
QAction
(
QIcon
(
":/images/mapproviders/yahoo.png"
),
tr
(
"Yahoo: Satellite"
),
mapproviderGroup
);
googleActionMap
=
new
QAction
(
QIcon
(
":/images/mapproviders/google.png"
),
tr
(
"Google: Map"
),
mapproviderGroup
);
googleSatAction
=
new
QAction
(
QIcon
(
":/images/mapproviders/google.png"
),
tr
(
"Google: Sat"
),
mapproviderGroup
);
osmAction
->
setCheckable
(
true
);
yahooActionMap
->
setCheckable
(
true
);
yahooActionSatellite
->
setCheckable
(
true
);
...
...
@@ -222,9 +222,9 @@ void MapWidget::mapproviderSelected(QAction* action)
mc
->
updateRequestNew
();
mc
->
setZoom
(
zoom
);
yahooActionOverlay
->
setEnabled
(
false
);
//
yahooActionOverlay->setEnabled(false);
overlay
->
setVisible
(
false
);
yahooActionOverlay
->
setChecked
(
false
);
//
yahooActionOverlay->setChecked(false);
}
else
if
(
action
==
yahooActionMap
)
...
...
@@ -238,9 +238,9 @@ void MapWidget::mapproviderSelected(QAction* action)
mc
->
updateRequestNew
();
mc
->
setZoom
(
zoom
);
yahooActionOverlay
->
setEnabled
(
false
);
//
yahooActionOverlay->setEnabled(false);
overlay
->
setVisible
(
false
);
yahooActionOverlay
->
setChecked
(
false
);
//
yahooActionOverlay->setChecked(false);
}
else
if
(
action
==
yahooActionSatellite
)
{
...
...
@@ -253,7 +253,7 @@ void MapWidget::mapproviderSelected(QAction* action)
mc
->
updateRequestNew
();
mc
->
setZoom
(
zoom
);
yahooActionOverlay
->
setEnabled
(
true
);
//
yahooActionOverlay->setEnabled(true);
}
else
if
(
action
==
googleActionMap
)
{
...
...
@@ -265,9 +265,9 @@ void MapWidget::mapproviderSelected(QAction* action)
mc
->
updateRequestNew
();
mc
->
setZoom
(
zoom
);
yahooActionOverlay
->
setEnabled
(
false
);
//
yahooActionOverlay->setEnabled(false);
overlay
->
setVisible
(
false
);
yahooActionOverlay
->
setChecked
(
false
);
//
yahooActionOverlay->setChecked(false);
}
else
if
(
action
==
googleSatAction
)
{
...
...
@@ -279,9 +279,9 @@ void MapWidget::mapproviderSelected(QAction* action)
mc
->
updateRequestNew
();
mc
->
setZoom
(
zoom
);
yahooActionOverlay
->
setEnabled
(
false
);
//
yahooActionOverlay->setEnabled(false);
overlay
->
setVisible
(
false
);
yahooActionOverlay
->
setChecked
(
false
);
//
yahooActionOverlay->setChecked(false);
}
else
{
...
...
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