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
e1bc02f6
Commit
e1bc02f6
authored
Feb 05, 2014
by
Bryant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the QGC_GOOGLE_EARTH_ENABLED macro when that support exists.
parent
ade7e59f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
22 deletions
+24
-22
QGCExternalLibs.pri
QGCExternalLibs.pri
+4
-2
MainWindow.cc
src/ui/MainWindow.cc
+7
-7
MainWindow.h
src/ui/MainWindow.h
+13
-13
No files found.
QGCExternalLibs.pri
View file @
e1bc02f6
...
...
@@ -267,14 +267,16 @@ OSGDependency {
# Only supported on Mac and Windows where Google Earth can be installed.
#
contains(DEFINES, DISABLE_GOOGLE_EARTH) {
message("Skipping support for Google Earth view (manual override)")
message("Skipping support for Google Earth view (manual override)")
DEFINES -= DISABLE_GOOGLE_EARTH
} else:MacBuild {
message("Including support for Google Earth view")
DEFINES += QGC_GOOGLE_EARTH_ENABLED
HEADERS += src/ui/map3D/QGCGoogleEarthView.h
SOURCES += src/ui/map3D/QGCGoogleEarthView.cc
} else:WindowsBuild {
message("Including support for Google Earth view")
DEFINES += QGC_GOOGLE_EARTH_ENABLED
HEADERS += src/ui/map3D/QGCGoogleEarthView.h
SOURCES += src/ui/map3D/QGCGoogleEarthView.cc
CONFIG += qaxcontainer
...
...
src/ui/MainWindow.cc
View file @
e1bc02f6
...
...
@@ -676,13 +676,13 @@ void MainWindow::buildCommonWidgets()
q3DWidget
->
setObjectName
(
"VIEW_3DWIDGET"
);
addToCentralStackedWidget
(
q3DWidget
,
VIEW_3DWIDGET
,
tr
(
"Local 3D"
));
}
#endif
#if
ndef DISABLE_GOOGLE_EARTH
if
(
!
earthWidget
)
{
earthWidget
=
new
QGCGoogleEarthView
(
this
);
}
#endif
#if
def QGC_GOOGLE_EARTH_ENABLED
if
(
!
earthWidget
)
{
earthWidget
=
new
QGCGoogleEarthView
(
this
);
addToCentralStackedWidget
(
earthWidget
,
VIEW_GOOGLEEARTH
,
tr
(
"Google Earth"
));
}
#endif
...
...
src/ui/MainWindow.h
View file @
e1bc02f6
...
...
@@ -58,13 +58,13 @@ This file is part of the QGROUNDCONTROL project
#include "ParameterInterface.h"
#include "HDDisplay.h"
#include "WatchdogControl.h"
#include "HSIDisplay.h"
#include "QGCRemoteControlView.h"
#include "opmapcontrol.h"
#if
ndef DISABLE_GOOGLE_EARTH
#include "QGCGoogleEarthView.h"
#endif
#include "QGCToolBar.h"
#include "HSIDisplay.h"
#include "QGCRemoteControlView.h"
#include "opmapcontrol.h"
#if
def QGC_GOOGLE_EARTH_ENABLED
#include "QGCGoogleEarthView.h"
#endif
#include "QGCToolBar.h"
#include "SlugsDataSensorView.h"
#include "LogCompressor.h"
...
...
@@ -413,13 +413,13 @@ protected:
//QPointer<QGCMapTool> mapWidget;
//QPointer<XMLCommProtocolWidget> protocolWidget;
//QPointer<QGCDataPlot2D> dataplotWidget;
#ifdef QGC_OSG_ENABLED
QPointer
<
QWidget
>
q3DWidget
;
#endif
#if
ndef DISABLE_GOOGLE_EARTH
#ifdef QGC_OSG_ENABLED
QPointer
<
QWidget
>
q3DWidget
;
#endif
#if
def QGC_GOOGLE_EARTH_ENABLED
QPointer
<
QGCGoogleEarthView
>
earthWidget
;
#endif
QPointer
<
QGCFirmwareUpdate
>
firmwareUpdateWidget
;
#endif
QPointer
<
QGCFirmwareUpdate
>
firmwareUpdateWidget
;
// Dock widgets
QPointer
<
QDockWidget
>
controlDockWidget
;
...
...
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