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
0da55f23
Commit
0da55f23
authored
Dec 21, 2010
by
pixhawk
Browse files
Windows Google Earth support works! Also cleaned up some unwanted project files.
parent
e4089c22
Changes
6
Hide whitespace changes
Inline
Side-by-side
.cproject
deleted
100644 → 0
View file @
e4089c22
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?>
<cproject
storage_type_id=
"org.eclipse.cdt.core.XmlProjectDescriptionStorage"
>
<storageModule
moduleId=
"org.eclipse.cdt.core.settings"
>
<cconfiguration
id=
"org.eclipse.cdt.core.default.config.989472769"
>
<storageModule
buildSystemId=
"org.eclipse.cdt.core.defaultConfigDataProvider"
id=
"org.eclipse.cdt.core.default.config.989472769"
moduleId=
"org.eclipse.cdt.core.settings"
name=
"Configuration"
>
<externalSettings/>
<extensions>
<extension
id=
"org.eclipse.cdt.core.ELF"
point=
"org.eclipse.cdt.core.BinaryParser"
/>
<extension
id=
"org.eclipse.cdt.core.PE"
point=
"org.eclipse.cdt.core.BinaryParser"
/>
</extensions>
</storageModule>
<storageModule
moduleId=
"org.eclipse.cdt.core.externalSettings"
/>
<storageModule
moduleId=
"scannerConfiguration"
>
<autodiscovery
enabled=
"true"
problemReportingEnabled=
"true"
selectedProfileId=
"org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"
/>
<profile
id=
"org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"
>
<buildOutputProvider>
<openAction
enabled=
"true"
filePath=
""
/>
<parser
enabled=
"true"
/>
</buildOutputProvider>
<scannerInfoProvider
id=
"specsFile"
>
<runAction
arguments=
"-E -P -v -dD ${plugin_state_location}/${specs_file}"
command=
"gcc"
useDefault=
"true"
/>
<parser
enabled=
"true"
/>
</scannerInfoProvider>
</profile>
<profile
id=
"org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"
>
<buildOutputProvider>
<openAction
enabled=
"true"
filePath=
""
/>
<parser
enabled=
"true"
/>
</buildOutputProvider>
<scannerInfoProvider
id=
"makefileGenerator"
>
<runAction
arguments=
"-E -P -v -dD"
command=
""
useDefault=
"true"
/>
<parser
enabled=
"true"
/>
</scannerInfoProvider>
</profile>
<profile
id=
"org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"
>
<buildOutputProvider>
<openAction
enabled=
"true"
filePath=
""
/>
<parser
enabled=
"true"
/>
</buildOutputProvider>
<scannerInfoProvider
id=
"specsFile"
>
<runAction
arguments=
"-E -P -v -dD ${plugin_state_location}/${specs_file}"
command=
"gcc"
useDefault=
"true"
/>
<parser
enabled=
"true"
/>
</scannerInfoProvider>
</profile>
<profile
id=
"org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"
>
<buildOutputProvider>
<openAction
enabled=
"true"
filePath=
""
/>
<parser
enabled=
"true"
/>
</buildOutputProvider>
<scannerInfoProvider
id=
"specsFile"
>
<runAction
arguments=
"-E -P -v -dD ${plugin_state_location}/specs.cpp"
command=
"g++"
useDefault=
"true"
/>
<parser
enabled=
"true"
/>
</scannerInfoProvider>
</profile>
<profile
id=
"org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"
>
<buildOutputProvider>
<openAction
enabled=
"true"
filePath=
""
/>
<parser
enabled=
"true"
/>
</buildOutputProvider>
<scannerInfoProvider
id=
"specsFile"
>
<runAction
arguments=
"-E -P -v -dD ${plugin_state_location}/specs.c"
command=
"gcc"
useDefault=
"true"
/>
<parser
enabled=
"true"
/>
</scannerInfoProvider>
</profile>
<profile
id=
"org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"
>
<buildOutputProvider>
<openAction
enabled=
"true"
filePath=
""
/>
<parser
enabled=
"true"
/>
</buildOutputProvider>
<scannerInfoProvider
id=
"specsFile"
>
<runAction
arguments=
"-c 'gcc -E -P -v -dD "${plugin_state_location}/${specs_file}"'"
command=
"sh"
useDefault=
"true"
/>
<parser
enabled=
"true"
/>
</scannerInfoProvider>
</profile>
<profile
id=
"org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"
>
<buildOutputProvider>
<openAction
enabled=
"true"
filePath=
""
/>
<parser
enabled=
"true"
/>
</buildOutputProvider>
<scannerInfoProvider
id=
"specsFile"
>
<runAction
arguments=
"-c 'g++ -E -P -v -dD "${plugin_state_location}/specs.cpp"'"
command=
"sh"
useDefault=
"true"
/>
<parser
enabled=
"true"
/>
</scannerInfoProvider>
</profile>
<profile
id=
"org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"
>
<buildOutputProvider>
<openAction
enabled=
"true"
filePath=
""
/>
<parser
enabled=
"true"
/>
</buildOutputProvider>
<scannerInfoProvider
id=
"specsFile"
>
<runAction
arguments=
"-c 'gcc -E -P -v -dD "${plugin_state_location}/specs.c"'"
command=
"sh"
useDefault=
"true"
/>
<parser
enabled=
"true"
/>
</scannerInfoProvider>
</profile>
</storageModule>
<storageModule
moduleId=
"org.eclipse.cdt.make.core.buildtargets"
>
<buildTargets>
<target
name=
"Qt Release Build"
path=
""
targetID=
"org.eclipse.cdt.make.MakeTargetBuilder"
>
<buildCommand>
mingw32-make
</buildCommand>
<buildArguments/>
<buildTarget>
release
</buildTarget>
<stopOnError>
false
</stopOnError>
<useDefaultCommand>
false
</useDefaultCommand>
<runAllBuilders>
true
</runAllBuilders>
</target>
<target
name=
"Qt Debug Build"
path=
""
targetID=
"org.eclipse.cdt.make.MakeTargetBuilder"
>
<buildCommand>
mingw32-make
</buildCommand>
<buildArguments/>
<buildTarget>
debug
</buildTarget>
<stopOnError>
false
</stopOnError>
<useDefaultCommand>
false
</useDefaultCommand>
<runAllBuilders>
true
</runAllBuilders>
</target>
</buildTargets>
</storageModule>
<storageModule
moduleId=
"org.eclipse.cdt.core.pathentry"
>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
""
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"ActiveQt"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"phonon"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"phonon_compat"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"Qt"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"Qt3Support"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtAssistant"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtCore"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtDBus"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtDeclarative"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtDesigner"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtGui"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtHelp"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtMultimedia"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtNetwork"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtOpenGL"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtOpenVG"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtScript"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtScriptTools"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtSql"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtSvg"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtTest"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtUiTools"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtWebKit"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtXml"
kind=
"inc"
path=
""
system=
"true"
/>
<pathentry
base-path=
"C:/Qt/2010.04/qt/include"
include=
"QtXmlPatterns"
kind=
"inc"
path=
""
system=
"true"
/>
</storageModule>
</cconfiguration>
</storageModule>
</cproject>
.gitignore
View file @
0da55f23
...
...
@@ -30,4 +30,13 @@ user_config.pri
*.ncb
*.vcproj
*.sln
\ No newline at end of file
*.sln
*.sln
*.vcproj
*.user
*.ncb
*.idb
*.project
*.cproject
*.sln
*.suo
\ No newline at end of file
.project
deleted
100644 → 0
View file @
e4089c22
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
qgroundcontrol
</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>
com.trolltech.qtcppproject.QtMakefileGenerator
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.cdt.make.core.makeBuilder
</name>
<triggers>
clean,full,incremental,
</triggers>
<arguments>
<dictionary>
<key>
org.eclipse.cdt.core.errorOutputParser
</key>
<value>
org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GmakeErrorParser;org.eclipse.cdt.core.VCErrorParser;org.eclipse.cdt.core.CWDLocator;org.eclipse.cdt.core.MakeErrorParser;
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.append_environment
</key>
<value>
true
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.build.arguments
</key>
<value></value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.build.command
</key>
<value>
mingw32-make
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.build.target.auto
</key>
<value>
debug
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.build.target.clean
</key>
<value>
clean
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.build.target.inc
</key>
<value>
debug
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.enableAutoBuild
</key>
<value>
false
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.enableCleanBuild
</key>
<value>
true
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.enableFullBuild
</key>
<value>
true
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.enabledIncrementalBuild
</key>
<value>
true
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.environment
</key>
<value>
QMAKESPEC=win32-g++|PATH=C:\\Qt\\2010.04\\qt\\bin;${env_var:PATH}|
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.stopOnError
</key>
<value>
false
</value>
</dictionary>
<dictionary>
<key>
org.eclipse.cdt.make.core.useDefaultBuildCmd
</key>
<value>
false
</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.cdt.make.core.ScannerConfigBuilder
</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>
org.eclipse.cdt.core.cnature
</nature>
<nature>
org.eclipse.cdt.core.ccnature
</nature>
<nature>
org.eclipse.cdt.make.core.makeNature
</nature>
<nature>
org.eclipse.cdt.make.core.ScannerConfigNature
</nature>
<nature>
com.trolltech.qtcppproject.QtNature
</nature>
</natures>
</projectDescription>
qgroundcontrol.pri
View file @
0da55f23
...
...
@@ -333,10 +333,10 @@ exists($$BASEDIR/lib/osgEarth123) {
TARGETDIR_WIN = $$replace(TARGETDIR,"/","\\")
debug {
QMAKE_POST_LINK +=
&&
copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\debug\\SDL.dll\"
QMAKE_POST_LINK +=
&&
xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\debug\\audio\" /S /E /Y
QMAKE_POST_LINK +=
&&
xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\debug\\models\" /S /E /Y
QMAKE_POST_LINK +=
&&
copy /Y \"$$BASEDIR\\images\\earth.html $$TARGETDIR_WIN\\debug\"
QMAKE_POST_LINK +=
;
copy /Y \"$$BASEDIR_WIN\\lib\\sdl\\win32\\SDL.dll\" \"$$TARGETDIR_WIN\\debug\\SDL.dll\"
QMAKE_POST_LINK +=
;
xcopy \"$$BASEDIR_WIN\\audio\" \"$$TARGETDIR_WIN\\debug\\audio\" /S /E /Y
QMAKE_POST_LINK +=
;
xcopy \"$$BASEDIR_WIN\\models\" \"$$TARGETDIR_WIN\\debug\\models\" /S /E /Y
QMAKE_POST_LINK +=
;
copy /Y \"$$BASEDIR\\images\\earth.html $$TARGETDIR_WIN\\debug\"
}
release {
...
...
src/ui/map3D/QGCGoogleEarthView.cc
View file @
0da55f23
#include
<QWebFrame>
#include
<QWebPage>
#include
<QApplication>
#include
<QDir>
#include
<QDebug>
...
...
@@ -42,6 +44,10 @@ QGCGoogleEarthView::QGCGoogleEarthView(QWidget *parent) :
ui
->
webViewLayout
->
addWidget
(
webViewMac
);
#endif
#ifdef _MSC_VER
ui
->
webViewLayout
->
addWidget
(
webViewWin
);
#endif
#if ((defined Q_OS_MAC) | (defined _MSC_VER))
connect
(
UASManager
::
instance
(),
SIGNAL
(
activeUASSet
(
UASInterface
*
)),
this
,
SLOT
(
setActiveUAS
(
UASInterface
*
)));
connect
(
updateTimer
,
SIGNAL
(
timeout
()),
this
,
SLOT
(
updateState
()));
...
...
@@ -59,6 +65,11 @@ QGCGoogleEarthView::QGCGoogleEarthView(QWidget *parent) :
// Get list of available 3D models
// Load HTML file
#ifdef _MSC_VER
webViewWin
->
dynamicCall
(
"GoHome()"
);
webViewWin
->
dynamicCall
(
"Navigate(const QString&)"
,
QApplication
::
applicationDirPath
()
+
"/earth.html"
);
qDebug
()
<<
QDir
::
cleanPath
(
QApplication
::
applicationDirPath
()
+
"/earth.html"
).
replace
(
'/'
,
"
\\
"
);
#endif
// Parse for model links
...
...
@@ -107,7 +118,8 @@ void QGCGoogleEarthView::show()
#endif
#ifdef _MSC_VER
//webViewWin->load(QUrl("earth.html"));
webViewWin
->
dynamicCall
(
"GoHome()"
);
webViewWin
->
dynamicCall
(
"Navigate(const QString&)"
,
"http://pixhawk.ethz.ch"
);
#endif
webViewInitialized
=
true
;
}
...
...
src/ui/map3D/QGCGoogleEarthView.h
View file @
0da55f23
...
...
@@ -20,6 +20,8 @@ public:
QGCWebAxWidget
(
QWidget
*
parent
=
0
,
Qt
::
WindowFlags
f
=
0
)
:
QAxWidget
(
parent
,
f
)
{
// Set web browser control
setControl
(
"{8856F961-340A-11D0-A96B-00C04FD705A2}"
);
}
protected:
virtual
bool
translateKeyEvent
(
int
message
,
int
keycode
)
const
...
...
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