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
0b0fbe87
Commit
0b0fbe87
authored
Jul 03, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added opmapcontrol library in local configuration
parent
39d9a923
Changes
212
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
212 changed files
with
26689 additions
and
7 deletions
+26689
-7
qgroundcontrol.pro
qgroundcontrol.pro
+31
-7
opmapcontrol.h
src/libs/opmapcontrol/opmapcontrol.h
+1
-0
opmapcontrol.pri
src/libs/opmapcontrol/opmapcontrol.pri
+1
-0
opmapcontrol.pro
src/libs/opmapcontrol/opmapcontrol.pro
+4
-0
opmapcontrol_external.pri
src/libs/opmapcontrol/opmapcontrol_external.pri
+108
-0
common.pri
src/libs/opmapcontrol/src/common.pri
+10
-0
accessmode.h
src/libs/opmapcontrol/src/core/accessmode.h
+86
-0
alllayersoftype.cpp
src/libs/opmapcontrol/src/core/alllayersoftype.cpp
+87
-0
alllayersoftype.h
src/libs/opmapcontrol/src/core/alllayersoftype.h
+43
-0
cache.cpp
src/libs/opmapcontrol/src/core/cache.cpp
+197
-0
cache.h
src/libs/opmapcontrol/src/core/cache.h
+62
-0
cacheitemqueue.cpp
src/libs/opmapcontrol/src/core/cacheitemqueue.cpp
+79
-0
cacheitemqueue.h
src/libs/opmapcontrol/src/core/cacheitemqueue.h
+69
-0
core.pro
src/libs/opmapcontrol/src/core/core.pro
+40
-0
debugheader.h
src/libs/opmapcontrol/src/core/debugheader.h
+13
-0
diagnostics.cpp
src/libs/opmapcontrol/src/core/diagnostics.cpp
+31
-0
diagnostics.h
src/libs/opmapcontrol/src/core/diagnostics.h
+47
-0
geodecoderstatus.h
src/libs/opmapcontrol/src/core/geodecoderstatus.h
+131
-0
kibertilecache.cpp
src/libs/opmapcontrol/src/core/kibertilecache.cpp
+69
-0
kibertilecache.h
src/libs/opmapcontrol/src/core/kibertilecache.h
+58
-0
languagetype.cpp
src/libs/opmapcontrol/src/core/languagetype.cpp
+100
-0
languagetype.h
src/libs/opmapcontrol/src/core/languagetype.h
+133
-0
maptype.h
src/libs/opmapcontrol/src/core/maptype.h
+129
-0
memorycache.cpp
src/libs/opmapcontrol/src/core/memorycache.cpp
+60
-0
memorycache.h
src/libs/opmapcontrol/src/core/memorycache.h
+51
-0
opmaps.cpp
src/libs/opmapcontrol/src/core/opmaps.cpp
+286
-0
opmaps.h
src/libs/opmapcontrol/src/core/opmaps.h
+94
-0
placemark.cpp
src/libs/opmapcontrol/src/core/placemark.cpp
+28
-0
placemark.h
src/libs/opmapcontrol/src/core/placemark.h
+54
-0
point.cpp
src/libs/opmapcontrol/src/core/point.cpp
+74
-0
point.h
src/libs/opmapcontrol/src/core/point.h
+72
-0
providerstrings.cpp
src/libs/opmapcontrol/src/core/providerstrings.cpp
+88
-0
providerstrings.h
src/libs/opmapcontrol/src/core/providerstrings.h
+85
-0
pureimage.cpp
src/libs/opmapcontrol/src/core/pureimage.cpp
+46
-0
pureimage.h
src/libs/opmapcontrol/src/core/pureimage.h
+44
-0
pureimagecache.cpp
src/libs/opmapcontrol/src/core/pureimagecache.cpp
+354
-0
pureimagecache.h
src/libs/opmapcontrol/src/core/pureimagecache.h
+67
-0
rawtile.cpp
src/libs/opmapcontrol/src/core/rawtile.cpp
+76
-0
rawtile.h
src/libs/opmapcontrol/src/core/rawtile.h
+56
-0
size.cpp
src/libs/opmapcontrol/src/core/size.cpp
+33
-0
size.h
src/libs/opmapcontrol/src/core/size.h
+58
-0
tilecachequeue.cpp
src/libs/opmapcontrol/src/core/tilecachequeue.cpp
+128
-0
tilecachequeue.h
src/libs/opmapcontrol/src/core/tilecachequeue.h
+59
-0
urlfactory.cpp
src/libs/opmapcontrol/src/core/urlfactory.cpp
+694
-0
urlfactory.h
src/libs/opmapcontrol/src/core/urlfactory.h
+88
-0
MouseWheelZoomType.cpp
src/libs/opmapcontrol/src/internals/MouseWheelZoomType.cpp
+32
-0
copyrightstrings.h
src/libs/opmapcontrol/src/internals/copyrightstrings.h
+41
-0
core.cpp
src/libs/opmapcontrol/src/internals/core.cpp
+695
-0
core.h
src/libs/opmapcontrol/src/internals/core.h
+283
-0
debugheader.h
src/libs/opmapcontrol/src/internals/debugheader.h
+8
-0
internals.pro
src/libs/opmapcontrol/src/internals/internals.pro
+35
-0
loadtask.cpp
src/libs/opmapcontrol/src/internals/loadtask.cpp
+35
-0
loadtask.h
src/libs/opmapcontrol/src/internals/loadtask.h
+65
-0
mousewheelzoomtype.h
src/libs/opmapcontrol/src/internals/mousewheelzoomtype.h
+89
-0
pointlatlng.cpp
src/libs/opmapcontrol/src/internals/pointlatlng.cpp
+55
-0
pointlatlng.h
src/libs/opmapcontrol/src/internals/pointlatlng.h
+130
-0
lks94projection.cpp
...pmapcontrol/src/internals/projections/lks94projection.cpp
+788
-0
lks94projection.h
.../opmapcontrol/src/internals/projections/lks94projection.h
+72
-0
mercatorprojection.cpp
...pcontrol/src/internals/projections/mercatorprojection.cpp
+98
-0
mercatorprojection.h
...mapcontrol/src/internals/projections/mercatorprojection.h
+55
-0
mercatorprojectionyandex.cpp
...ol/src/internals/projections/mercatorprojectionyandex.cpp
+112
-0
mercatorprojectionyandex.h
...trol/src/internals/projections/mercatorprojectionyandex.h
+59
-0
platecarreeprojection.cpp
...ntrol/src/internals/projections/platecarreeprojection.cpp
+96
-0
platecarreeprojection.h
...control/src/internals/projections/platecarreeprojection.h
+56
-0
platecarreeprojectionpergo.cpp
.../src/internals/projections/platecarreeprojectionpergo.cpp
+95
-0
platecarreeprojectionpergo.h
...ol/src/internals/projections/platecarreeprojectionpergo.h
+56
-0
pureprojection.cpp
src/libs/opmapcontrol/src/internals/pureprojection.cpp
+232
-0
pureprojection.h
src/libs/opmapcontrol/src/internals/pureprojection.h
+111
-0
rectangle.cpp
src/libs/opmapcontrol/src/internals/rectangle.cpp
+79
-0
rectangle.h
src/libs/opmapcontrol/src/internals/rectangle.h
+158
-0
rectlatlng.cpp
src/libs/opmapcontrol/src/internals/rectlatlng.cpp
+48
-0
rectlatlng.h
src/libs/opmapcontrol/src/internals/rectlatlng.h
+264
-0
sizelatlng.cpp
src/libs/opmapcontrol/src/internals/sizelatlng.cpp
+60
-0
sizelatlng.h
src/libs/opmapcontrol/src/internals/sizelatlng.h
+136
-0
tile.cpp
src/libs/opmapcontrol/src/internals/tile.cpp
+60
-0
tile.h
src/libs/opmapcontrol/src/internals/tile.h
+67
-0
tilematrix.cpp
src/libs/opmapcontrol/src/internals/tilematrix.cpp
+148
-0
tilematrix.h
src/libs/opmapcontrol/src/internals/tilematrix.h
+54
-0
configuration.cpp
src/libs/opmapcontrol/src/mapwidget/configuration.cpp
+60
-0
configuration.h
src/libs/opmapcontrol/src/mapwidget/configuration.h
+186
-0
gpsitem.cpp
src/libs/opmapcontrol/src/mapwidget/gpsitem.cpp
+220
-0
gpsitem.h
src/libs/opmapcontrol/src/mapwidget/gpsitem.h
+227
-0
homeitem.cpp
src/libs/opmapcontrol/src/mapwidget/homeitem.cpp
+80
-0
homeitem.h
src/libs/opmapcontrol/src/mapwidget/homeitem.h
+77
-0
EasystarBlue.png
src/libs/opmapcontrol/src/mapwidget/images/EasystarBlue.png
+0
-0
airplane.png
src/libs/opmapcontrol/src/mapwidget/images/airplane.png
+0
-0
airplane.svg
src/libs/opmapcontrol/src/mapwidget/images/airplane.svg
+113
-0
airplanepip.png
src/libs/opmapcontrol/src/mapwidget/images/airplanepip.png
+0
-0
bigMarkerGreen.png
...libs/opmapcontrol/src/mapwidget/images/bigMarkerGreen.png
+0
-0
compas.svg
src/libs/opmapcontrol/src/mapwidget/images/compas.svg
+248
-0
dragons1.jpg
src/libs/opmapcontrol/src/mapwidget/images/dragons1.jpg
+0
-0
dragons2.jpeg
src/libs/opmapcontrol/src/mapwidget/images/dragons2.jpeg
+0
-0
home.png
src/libs/opmapcontrol/src/mapwidget/images/home.png
+0
-0
home.svg
src/libs/opmapcontrol/src/mapwidget/images/home.svg
+126
-0
home2.svg
src/libs/opmapcontrol/src/mapwidget/images/home2.svg
+80
-0
mapquad.png
src/libs/opmapcontrol/src/mapwidget/images/mapquad.png
+0
-0
marker.png
src/libs/opmapcontrol/src/mapwidget/images/marker.png
+0
-0
mapgraphicitem.cpp
src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.cpp
+591
-0
mapgraphicitem.h
src/libs/opmapcontrol/src/mapwidget/mapgraphicitem.h
+225
-0
mapresources.qrc
src/libs/opmapcontrol/src/mapwidget/mapresources.qrc
+21
-0
mapripform.cpp
src/libs/opmapcontrol/src/mapwidget/mapripform.cpp
+53
-0
mapripform.h
src/libs/opmapcontrol/src/mapwidget/mapripform.h
+51
-0
mapripform.ui
src/libs/opmapcontrol/src/mapwidget/mapripform.ui
+71
-0
mapripper.cpp
src/libs/opmapcontrol/src/mapwidget/mapripper.cpp
+122
-0
mapripper.h
src/libs/opmapcontrol/src/mapwidget/mapripper.h
+64
-0
mapwidget.pro
src/libs/opmapcontrol/src/mapwidget/mapwidget.pro
+50
-0
opmapwidget.cpp
src/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp
+493
-0
opmapwidget.h
src/libs/opmapcontrol/src/mapwidget/opmapwidget.h
+508
-0
trailitem.cpp
src/libs/opmapcontrol/src/mapwidget/trailitem.cpp
+57
-0
trailitem.h
src/libs/opmapcontrol/src/mapwidget/trailitem.h
+63
-0
traillineitem.cpp
src/libs/opmapcontrol/src/mapwidget/traillineitem.cpp
+56
-0
traillineitem.h
src/libs/opmapcontrol/src/mapwidget/traillineitem.h
+62
-0
uavitem.cpp
src/libs/opmapcontrol/src/mapwidget/uavitem.cpp
+220
-0
uavitem.h
src/libs/opmapcontrol/src/mapwidget/uavitem.h
+230
-0
uavmapfollowtype.h
src/libs/opmapcontrol/src/mapwidget/uavmapfollowtype.h
+86
-0
uavtrailtype.h
src/libs/opmapcontrol/src/mapwidget/uavtrailtype.h
+90
-0
waypointitem.cpp
src/libs/opmapcontrol/src/mapwidget/waypointitem.cpp
+268
-0
waypointitem.h
src/libs/opmapcontrol/src/mapwidget/waypointitem.h
+223
-0
src.pro
src/libs/opmapcontrol/src/src.pro
+6
-0
abstractprocess.h
src/libs/utils/abstractprocess.h
+78
-0
abstractprocess_win.cpp
src/libs/utils/abstractprocess_win.cpp
+114
-0
basevalidatinglineedit.cpp
src/libs/utils/basevalidatinglineedit.cpp
+158
-0
basevalidatinglineedit.h
src/libs/utils/basevalidatinglineedit.h
+101
-0
checkablemessagebox.cpp
src/libs/utils/checkablemessagebox.cpp
+176
-0
checkablemessagebox.h
src/libs/utils/checkablemessagebox.h
+103
-0
checkablemessagebox.ui
src/libs/utils/checkablemessagebox.ui
+154
-0
classnamevalidatinglineedit.cpp
src/libs/utils/classnamevalidatinglineedit.cpp
+148
-0
classnamevalidatinglineedit.h
src/libs/utils/classnamevalidatinglineedit.h
+78
-0
codegeneration.cpp
src/libs/utils/codegeneration.cpp
+101
-0
codegeneration.h
src/libs/utils/codegeneration.h
+68
-0
consoleprocess.cpp
src/libs/utils/consoleprocess.cpp
+83
-0
consoleprocess.h
src/libs/utils/consoleprocess.h
+140
-0
consoleprocess_unix.cpp
src/libs/utils/consoleprocess_unix.cpp
+258
-0
consoleprocess_win.cpp
src/libs/utils/consoleprocess_win.cpp
+260
-0
coordinateconversions.cpp
src/libs/utils/coordinateconversions.cpp
+239
-0
coordinateconversions.h
src/libs/utils/coordinateconversions.h
+58
-0
detailsbutton.cpp
src/libs/utils/detailsbutton.cpp
+60
-0
detailsbutton.h
src/libs/utils/detailsbutton.h
+56
-0
detailswidget.cpp
src/libs/utils/detailswidget.cpp
+199
-0
detailswidget.h
src/libs/utils/detailswidget.h
+83
-0
fancylineedit.cpp
src/libs/utils/fancylineedit.cpp
+311
-0
fancylineedit.h
src/libs/utils/fancylineedit.h
+109
-0
fancymainwindow.cpp
src/libs/utils/fancymainwindow.cpp
+186
-0
fancymainwindow.h
src/libs/utils/fancymainwindow.h
+87
-0
filenamevalidatinglineedit.cpp
src/libs/utils/filenamevalidatinglineedit.cpp
+133
-0
filenamevalidatinglineedit.h
src/libs/utils/filenamevalidatinglineedit.h
+69
-0
filesearch.cpp
src/libs/utils/filesearch.cpp
+260
-0
filesearch.h
src/libs/utils/filesearch.h
+64
-0
filewizarddialog.cpp
src/libs/utils/filewizarddialog.cpp
+69
-0
filewizarddialog.h
src/libs/utils/filewizarddialog.h
+64
-0
filewizardpage.cpp
src/libs/utils/filewizardpage.cpp
+130
-0
filewizardpage.h
src/libs/utils/filewizardpage.h
+89
-0
filewizardpage.ui
src/libs/utils/filewizardpage.ui
+54
-0
homelocationutil.cpp
src/libs/utils/homelocationutil.cpp
+77
-0
homelocationutil.h
src/libs/utils/homelocationutil.h
+53
-0
removesubmitfield.png
src/libs/utils/images/removesubmitfield.png
+0
-0
iwelcomepage.cpp
src/libs/utils/iwelcomepage.cpp
+41
-0
iwelcomepage.h
src/libs/utils/iwelcomepage.h
+60
-0
linecolumnlabel.cpp
src/libs/utils/linecolumnlabel.cpp
+62
-0
linecolumnlabel.h
src/libs/utils/linecolumnlabel.h
+63
-0
listutils.h
src/libs/utils/listutils.h
+48
-0
newclasswidget.cpp
src/libs/utils/newclasswidget.cpp
+510
-0
newclasswidget.h
src/libs/utils/newclasswidget.h
+167
-0
newclasswidget.ui
src/libs/utils/newclasswidget.ui
+181
-0
parameteraction.cpp
src/libs/utils/parameteraction.cpp
+86
-0
parameteraction.h
src/libs/utils/parameteraction.h
+82
-0
pathchooser.cpp
src/libs/utils/pathchooser.cpp
+328
-0
pathchooser.h
src/libs/utils/pathchooser.h
+121
-0
pathlisteditor.cpp
src/libs/utils/pathlisteditor.cpp
+310
-0
pathlisteditor.h
src/libs/utils/pathlisteditor.h
+107
-0
pathutils.cpp
src/libs/utils/pathutils.cpp
+148
-0
pathutils.h
src/libs/utils/pathutils.h
+58
-0
projectintropage.cpp
src/libs/utils/projectintropage.cpp
+210
-0
projectintropage.h
src/libs/utils/projectintropage.h
+103
-0
projectintropage.ui
src/libs/utils/projectintropage.ui
+116
-0
projectnamevalidatinglineedit.cpp
src/libs/utils/projectnamevalidatinglineedit.cpp
+60
-0
projectnamevalidatinglineedit.h
src/libs/utils/projectnamevalidatinglineedit.h
+52
-0
qwineventnotifier_p.h
src/libs/utils/qwineventnotifier_p.h
+94
-0
reloadpromptutils.cpp
src/libs/utils/reloadpromptutils.cpp
+69
-0
reloadpromptutils.h
src/libs/utils/reloadpromptutils.h
+48
-0
savedaction.cpp
src/libs/utils/savedaction.cpp
+437
-0
savedaction.h
src/libs/utils/savedaction.h
+123
-0
settingsutils.cpp
src/libs/utils/settingsutils.cpp
+48
-0
settingsutils.h
src/libs/utils/settingsutils.h
+42
-0
styledbar.cpp
src/libs/utils/styledbar.cpp
+83
-0
styledbar.h
src/libs/utils/styledbar.h
+58
-0
stylehelper.cpp
src/libs/utils/stylehelper.cpp
+253
-0
stylehelper.h
src/libs/utils/stylehelper.h
+78
-0
submiteditorwidget.cpp
src/libs/utils/submiteditorwidget.cpp
+507
-0
submiteditorwidget.h
src/libs/utils/submiteditorwidget.h
+146
-0
submiteditorwidget.ui
src/libs/utils/submiteditorwidget.ui
+72
-0
submitfieldwidget.cpp
src/libs/utils/submitfieldwidget.cpp
+370
-0
submitfieldwidget.h
src/libs/utils/submitfieldwidget.h
+97
-0
synchronousprocess.cpp
src/libs/utils/synchronousprocess.cpp
+493
-0
synchronousprocess.h
src/libs/utils/synchronousprocess.h
+148
-0
treewidgetcolumnstretcher.cpp
src/libs/utils/treewidgetcolumnstretcher.cpp
+64
-0
treewidgetcolumnstretcher.h
src/libs/utils/treewidgetcolumnstretcher.h
+60
-0
uncommentselection.cpp
src/libs/utils/uncommentselection.cpp
+159
-0
uncommentselection.h
src/libs/utils/uncommentselection.h
+44
-0
utils.pri
src/libs/utils/utils.pri
+9
-0
utils.pro
src/libs/utils/utils.pro
+108
-0
utils.qrc
src/libs/utils/utils.qrc
+5
-0
utils_external.pri
src/libs/utils/utils_external.pri
+113
-0
utils_global.h
src/libs/utils/utils_global.h
+42
-0
welcomemodetreewidget.cpp
src/libs/utils/welcomemodetreewidget.cpp
+119
-0
welcomemodetreewidget.h
src/libs/utils/welcomemodetreewidget.h
+79
-0
winutils.cpp
src/libs/utils/winutils.cpp
+113
-0
winutils.h
src/libs/utils/winutils.h
+50
-0
worldmagmodel.cpp
src/libs/utils/worldmagmodel.cpp
+1076
-0
worldmagmodel.h
src/libs/utils/worldmagmodel.h
+180
-0
xmlconfig.cpp
src/libs/utils/xmlconfig.cpp
+333
-0
xmlconfig.h
src/libs/utils/xmlconfig.h
+63
-0
No files found.
qgroundcontrol.pro
View file @
0b0fbe87
...
...
@@ -31,8 +31,39 @@ include(lib/nmea/nmea.pri)
#
provided
by
the
OpenPilot
team
-
thanks
,
great
piece
#
of
open
-
source
software
!
#
(
We
're not reusing any part of the OP GCS, just the map library)
# Try to get it from OP mainline, if this fails fall back to internal copies
exists(../openpilot/ground/openpilotgcs/src/libs) {
include(../openpilot/ground/openpilotgcs/src/libs/utils/utils_external.pri)
include(../openpilot/ground/openpilotgcs/src/libs/opmapcontrol/opmapcontrol_external.pri)
DEPENDPATH += \
../openpilot/ground/openpilotgcs/src/libs/utils \
../openpilot/ground/openpilotgcs/src/libs/utils/src \
../openpilot/ground/openpilotgcs/src/libs/opmapcontrol \
../openpilot/ground/openpilotgcs/src/libs/opmapcontrol/src
INCLUDEPATH += \
../openpilot/ground/openpilotgcs/src/libs/utils \
../openpilot/ground/openpilotgcs/src/libs \
../openpilot/ground/openpilotgcs/src/libs/opmapcontrol
message("----- USING MAINLINE OPENPILOT FROM ../openpilot -----")
message("Using OpenPilot's
mapcontrol
library
from
external
folder
")
message("
------------------------------------------------------------------------
")
} else {
include(src/libs/utils/utils_external.pri)
include(src/libs/opmapcontrol/opmapcontrol_external.pri)
DEPENDPATH += \
src/libs/utils \
src/libs/utils/src \
src/libs/opmapcontrol \
src/libs/opmapcontrol/src
INCLUDEPATH += \
src/libs/utils \
src/libs \
src/libs/opmapcontrol
}
# include(lib/opmapcontrol/opmapcontrol.pri)
# message("
Including
bundled
QMapControl
version
as
FALLBACK
.
This
is
fine
on
Linux
and
MacOS
,
but
not
the
best
choice
in
Windows
")
...
...
@@ -118,19 +149,12 @@ include(qgroundcontrol.pri)
# Include QWT plotting library
include(src/lib/qwt/qwt.pri)
DEPENDPATH += . \
..
/
openpilot
/
ground
/
openpilotgcs
/
src
/
libs
/
utils
\
..
/
openpilot
/
ground
/
openpilotgcs
/
src
/
libs
/
utils
/
src
\
..
/
openpilot
/
ground
/
openpilotgcs
/
src
/
libs
/
opmapcontrol
\
..
/
openpilot
/
ground
/
openpilotgcs
/
src
/
libs
/
opmapcontrol
/
src
\
plugins \
thirdParty/qserialport/include \
thirdParty/qserialport/include/QtSerialPort \
thirdParty/qserialport
INCLUDEPATH += . \
..
/
openpilot
/
ground
/
openpilotgcs
/
src
/
libs
/
utils
\
..
/
openpilot
/
ground
/
openpilotgcs
/
src
/
libs
\
..
/
openpilot
/
ground
/
openpilotgcs
/
src
/
libs
/
opmapcontrol
\
thirdParty/qserialport/include \
thirdParty/qserialport/include/QtSerialPort \
thirdParty/qserialport/src
...
...
src/libs/opmapcontrol/opmapcontrol.h
0 → 100644
View file @
0b0fbe87
#include "src/mapwidget/opmapwidget.h"
src/libs/opmapcontrol/opmapcontrol.pri
0 → 100644
View file @
0b0fbe87
LIBS *= -l$$qtLibraryTarget(opmapwidget)
src/libs/opmapcontrol/opmapcontrol.pro
0 → 100644
View file @
0b0fbe87
TEMPLATE
=
subdirs
SUBDIRS
=
src
\
src/libs/opmapcontrol/opmapcontrol_external.pri
0 → 100644
View file @
0b0fbe87
######################################################################
# Automatically generated by qmake (2.01a) Sa. Mrz 19 17:12:54 2011
######################################################################
# HACK! BIG TIME!
DEFINES += EXTERNAL_USE
DEPENDPATH += src/core src/internals src/mapwidget src/internals/projections
INCLUDEPATH += src/core src/internals src/internals/projections src/mapwidget
# Input
HEADERS += opmapcontrol.h \
src/core/accessmode.h \
src/core/alllayersoftype.h \
src/core/cache.h \
src/core/cacheitemqueue.h \
src/core/debugheader.h \
src/core/diagnostics.h \
src/core/geodecoderstatus.h \
src/core/kibertilecache.h \
src/core/languagetype.h \
src/core/maptype.h \
src/core/memorycache.h \
src/core/opmaps.h \
src/core/placemark.h \
src/core/point.h \
src/core/providerstrings.h \
src/core/pureimage.h \
src/core/pureimagecache.h \
src/core/rawtile.h \
src/core/size.h \
src/core/tilecachequeue.h \
src/core/urlfactory.h \
src/internals/copyrightstrings.h \
src/internals/core.h \
src/internals/debugheader.h \
src/internals/loadtask.h \
src/internals/mousewheelzoomtype.h \
src/internals/pointlatlng.h \
src/internals/pureprojection.h \
src/internals/rectangle.h \
src/internals/rectlatlng.h \
src/internals/sizelatlng.h \
src/internals/tile.h \
src/internals/tilematrix.h \
src/mapwidget/configuration.h \
src/mapwidget/gpsitem.h \
src/mapwidget/homeitem.h \
src/mapwidget/mapgraphicitem.h \
src/mapwidget/mapripform.h \
src/mapwidget/mapripper.h \
src/mapwidget/opmapwidget.h \
src/mapwidget/trailitem.h \
src/mapwidget/traillineitem.h \
src/mapwidget/uavitem.h \
src/mapwidget/uavmapfollowtype.h \
src/mapwidget/uavtrailtype.h \
src/mapwidget/waypointitem.h \
src/internals/projections/lks94projection.h \
src/internals/projections/mercatorprojection.h \
src/internals/projections/mercatorprojectionyandex.h \
src/internals/projections/platecarreeprojection.h \
src/internals/projections/platecarreeprojectionpergo.h
FORMS += src/mapwidget/mapripform.ui
SOURCES += src/core/alllayersoftype.cpp \
src/core/cache.cpp \
src/core/cacheitemqueue.cpp \
src/core/diagnostics.cpp \
src/core/kibertilecache.cpp \
src/core/languagetype.cpp \
src/core/memorycache.cpp \
src/core/opmaps.cpp \
src/core/placemark.cpp \
src/core/point.cpp \
src/core/providerstrings.cpp \
src/core/pureimage.cpp \
src/core/pureimagecache.cpp \
src/core/rawtile.cpp \
src/core/size.cpp \
src/core/tilecachequeue.cpp \
src/core/urlfactory.cpp \
src/internals/core.cpp \
src/internals/loadtask.cpp \
src/internals/MouseWheelZoomType.cpp \
src/internals/pointlatlng.cpp \
src/internals/pureprojection.cpp \
src/internals/rectangle.cpp \
src/internals/rectlatlng.cpp \
src/internals/sizelatlng.cpp \
src/internals/tile.cpp \
src/internals/tilematrix.cpp \
src/mapwidget/configuration.cpp \
src/mapwidget/gpsitem.cpp \
src/mapwidget/homeitem.cpp \
src/mapwidget/mapgraphicitem.cpp \
src/mapwidget/mapripform.cpp \
src/mapwidget/mapripper.cpp \
src/mapwidget/opmapwidget.cpp \
src/mapwidget/trailitem.cpp \
src/mapwidget/traillineitem.cpp \
src/mapwidget/uavitem.cpp \
src/mapwidget/waypointitem.cpp \
src/internals/projections/lks94projection.cpp \
src/internals/projections/mercatorprojection.cpp \
src/internals/projections/mercatorprojectionyandex.cpp \
src/internals/projections/platecarreeprojection.cpp \
src/internals/projections/platecarreeprojectionpergo.cpp
RESOURCES += src/mapwidget/mapresources.qrc
src/libs/opmapcontrol/src/common.pri
0 → 100644
View file @
0b0fbe87
DESTDIR = ../build
QT += network
QT += sql
CONFIG += staticlib
TEMPLATE = lib
UI_DIR = uics
MOC_DIR = mocs
OBJECTS_DIR = objs
INCLUDEPATH +=../../../../libs/
src/libs/opmapcontrol/src/core/accessmode.h
0 → 100644
View file @
0b0fbe87
/**
******************************************************************************
*
* @file accessmode.h
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup OPMapWidget
* @{
*
*****************************************************************************/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef ACCESSMODE_H
#define ACCESSMODE_H
#include "debugheader.h"
#include <QObject>
#include <QMetaObject>
#include <QMetaEnum>
#include <QStringList>
namespace
core
{
class
AccessMode
:
public
QObject
{
Q_OBJECT
Q_ENUMS
(
Types
)
public:
enum
Types
{
/// <summary>
/// access only server
/// </summary>
ServerOnly
,
/// <summary>
/// access first server and caches localy
/// </summary>
ServerAndCache
,
/// <summary>
/// access only cache
/// </summary>
CacheOnly
};
static
QString
StrByType
(
Types
const
&
value
)
{
QMetaObject
metaObject
=
AccessMode
().
staticMetaObject
;
QMetaEnum
metaEnum
=
metaObject
.
enumerator
(
metaObject
.
indexOfEnumerator
(
"Types"
));
QString
s
=
metaEnum
.
valueToKey
(
value
);
return
s
;
}
static
Types
TypeByStr
(
QString
const
&
value
)
{
QMetaObject
metaObject
=
AccessMode
().
staticMetaObject
;
QMetaEnum
metaEnum
=
metaObject
.
enumerator
(
metaObject
.
indexOfEnumerator
(
"Types"
));
Types
s
=
(
Types
)
metaEnum
.
keyToValue
(
value
.
toLatin1
());
return
s
;
}
static
QStringList
TypesList
()
{
QStringList
ret
;
QMetaObject
metaObject
=
AccessMode
().
staticMetaObject
;
QMetaEnum
metaEnum
=
metaObject
.
enumerator
(
metaObject
.
indexOfEnumerator
(
"Types"
));
for
(
int
x
=
0
;
x
<
metaEnum
.
keyCount
();
++
x
)
{
ret
.
append
(
metaEnum
.
key
(
x
));
}
return
ret
;
}
};
}
#endif // ACCESSMODE_H
src/libs/opmapcontrol/src/core/alllayersoftype.cpp
0 → 100644
View file @
0b0fbe87
/**
******************************************************************************
*
* @file alllayersoftype.cpp
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup OPMapWidget
* @{
*
*****************************************************************************/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "alllayersoftype.h"
namespace
core
{
AllLayersOfType
::
AllLayersOfType
()
{
}
QVector
<
MapType
::
Types
>
AllLayersOfType
::
GetAllLayersOfType
(
const
MapType
::
Types
&
type
)
{
QVector
<
MapType
::
Types
>
types
;
{
switch
(
type
)
{
case
MapType
:
:
GoogleHybrid
:
{
types
.
append
(
MapType
::
GoogleSatellite
);
types
.
append
(
MapType
::
GoogleLabels
);
}
break
;
case
MapType
:
:
GoogleHybridChina
:
{
types
.
append
(
MapType
::
GoogleSatelliteChina
);
types
.
append
(
MapType
::
GoogleLabelsChina
);
}
break
;
case
MapType
:
:
GoogleHybridKorea
:
{
types
.
append
(
MapType
::
GoogleSatelliteKorea
);
types
.
append
(
MapType
::
GoogleLabelsKorea
);
}
break
;
case
MapType
:
:
YahooHybrid
:
{
types
.
append
(
MapType
::
YahooSatellite
);
types
.
append
(
MapType
::
YahooLabels
);
}
break
;
case
MapType
:
:
ArcGIS_MapsLT_Map_Hybrid
:
{
types
.
append
(
MapType
::
ArcGIS_MapsLT_OrtoFoto
);
types
.
append
(
MapType
::
ArcGIS_MapsLT_Map_Labels
);
}
break
;
default:
{
types
.
append
(
type
);
}
break
;
}
}
return
types
;
}
}
src/libs/opmapcontrol/src/core/alllayersoftype.h
0 → 100644
View file @
0b0fbe87
/**
******************************************************************************
*
* @file alllayersoftype.h
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup OPMapWidget
* @{
*
*****************************************************************************/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef ALLLAYERSOFTYPE_H
#define ALLLAYERSOFTYPE_H
#include "maptype.h"
#include <QList>
#include <QVector>
namespace
core
{
class
AllLayersOfType
{
public:
AllLayersOfType
();
QVector
<
MapType
::
Types
>
GetAllLayersOfType
(
const
MapType
::
Types
&
type
);
};
}
#endif // ALLLAYERSOFTYPE_H
src/libs/opmapcontrol/src/core/cache.cpp
0 → 100644
View file @
0b0fbe87
/**
******************************************************************************
*
* @file cache.cpp
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup OPMapWidget
* @{
*
*****************************************************************************/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "cache.h"
#include "utils/pathutils.h"
#include <QSettings>
namespace
core
{
Cache
*
Cache
::
m_pInstance
=
0
;
Cache
*
Cache
::
Instance
()
{
if
(
!
m_pInstance
)
m_pInstance
=
new
Cache
;
return
m_pInstance
;
}
void
Cache
::
setCacheLocation
(
const
QString
&
value
)
{
cache
=
value
;
routeCache
=
cache
+
"RouteCache"
+
QDir
::
separator
();
geoCache
=
cache
+
"GeocoderCache"
+
QDir
::
separator
();
placemarkCache
=
cache
+
"PlacemarkCache"
+
QDir
::
separator
();
ImageCache
.
setGtileCache
(
value
);
}
QString
Cache
::
CacheLocation
()
{
return
cache
;
}
Cache
::
Cache
()
{
if
(
cache
.
isNull
()
|
cache
.
isEmpty
())
{
cache
=
Utils
::
PathUtils
().
GetStoragePath
()
+
"mapscache"
+
QDir
::
separator
();
setCacheLocation
(
cache
);
}
}
QString
Cache
::
GetGeocoderFromCache
(
const
QString
&
urlEnd
)
{
#ifdef DEBUG_GetGeocoderFromCache
qDebug
()
<<
"Entered GetGeocoderFromCache"
;
#endif
QString
ret
=
QString
::
null
;
QString
filename
=
geoCache
+
QString
(
urlEnd
)
+
".geo"
;
#ifdef DEBUG_GetGeocoderFromCache
qDebug
()
<<
"GetGeocoderFromCache: Does file exist?:"
<<
filename
;
#endif
QFileInfo
File
(
filename
);
if
(
File
.
exists
())
{
#ifdef DEBUG_GetGeocoderFromCache
qDebug
()
<<
"GetGeocoderFromCache:File exists!!"
;
#endif
QFile
file
(
filename
);
if
(
file
.
open
(
QIODevice
::
ReadOnly
))
{
QTextStream
stream
(
&
file
);
stream
.
setCodec
(
"UTF-8"
);
stream
>>
ret
;
}
}
#ifdef DEBUG_GetGeocoderFromCache
qDebug
()
<<
"GetGeocoderFromCache:Returning:"
<<
ret
;
#endif
return
ret
;
}
void
Cache
::
CacheGeocoder
(
const
QString
&
urlEnd
,
const
QString
&
content
)
{
QString
ret
=
QString
::
null
;
QString
filename
=
geoCache
+
QString
(
urlEnd
)
+
".geo"
;
#ifdef DEBUG_CACHE
qDebug
()
<<
"CacheGeocoder: Filename:"
<<
filename
;
#endif //DEBUG_CACHE
QFileInfo
File
(
filename
);;
QDir
dir
=
File
.
absoluteDir
();
QString
path
=
dir
.
absolutePath
();
#ifdef DEBUG_CACHE
qDebug
()
<<
"CacheGeocoder: Path:"
<<
path
;
#endif //DEBUG_CACHE
if
(
!
dir
.
exists
())
{
#ifdef DEBUG_CACHE
qDebug
()
<<
"CacheGeocoder: Cache path doesn't exist, try to create"
;
#endif //DEBUG_CACHE
if
(
!
dir
.
mkpath
(
path
))
{
#ifdef DEBUG_CACHE
qDebug
()
<<
"GetGeocoderFromCache: Could not create path"
;
#endif //DEBUG_CACHE
}
}
#ifdef DEBUG_CACHE
qDebug
()
<<
"CacheGeocoder: OpenFile:"
<<
filename
;
#endif //DEBUG_CACHE
QFile
file
(
filename
);
if
(
file
.
open
(
QIODevice
::
WriteOnly
))
{
#ifdef DEBUG_CACHE
qDebug
()
<<
"CacheGeocoder: File Opened!!!:"
<<
filename
;
#endif //DEBUG_CACHE
QTextStream
stream
(
&
file
);
stream
.
setCodec
(
"UTF-8"
);
stream
<<
content
;
}
}
QString
Cache
::
GetPlacemarkFromCache
(
const
QString
&
urlEnd
)
{
#ifdef DEBUG_CACHE
qDebug
()
<<
"Entered GetPlacemarkFromCache"
;
#endif //DEBUG_CACHE
QString
ret
=
QString
::
null
;
QString
filename
=
placemarkCache
+
QString
(
urlEnd
)
+
".plc"
;
#ifdef DEBUG_CACHE
qDebug
()
<<
"GetPlacemarkFromCache: Does file exist?:"
<<
filename
;
#endif //DEBUG_CACHE
QFileInfo
File
(
filename
);
if
(
File
.
exists
())
{
#ifdef DEBUG_CACHE
qDebug
()
<<
"GetPlacemarkFromCache:File exists!!"
;
#endif //DEBUG_CACHE
QFile
file
(
filename
);
if
(
file
.
open
(
QIODevice
::
ReadOnly
))
{
QTextStream
stream
(
&
file
);
stream
.
setCodec
(
"UTF-8"
);
stream
>>
ret
;
}
}
#ifdef DEBUG_CACHE
qDebug
()
<<
"GetPlacemarkFromCache:Returning:"
<<
ret
;
#endif //DEBUG_CACHE
return
ret
;
}
void
Cache
::
CachePlacemark
(
const
QString
&
urlEnd
,
const
QString
&
content
)
{
QString
ret
=
QString
::
null
;
QString
filename
=
placemarkCache
+
QString
(
urlEnd
)
+
".plc"
;
#ifdef DEBUG_CACHE
qDebug
()
<<
"CachePlacemark: Filename:"
<<
filename
;
#endif //DEBUG_CACHE
QFileInfo
File
(
filename
);;
QDir
dir
=
File
.
absoluteDir
();
QString
path
=
dir
.
absolutePath
();
#ifdef DEBUG_CACHE
qDebug
()
<<
"CachePlacemark: Path:"
<<
path
;
#endif //DEBUG_CACHE
if
(
!
dir
.
exists
())
{
#ifdef DEBUG_CACHE
qDebug
()
<<
"CachePlacemark: Cache path doesn't exist, try to create"
;
#endif //DEBUG_CACHE
if
(
!
dir
.
mkpath
(
path
))
{
#ifdef DEBUG_CACHE
qDebug
()
<<
"CachePlacemark: Could not create path"
;
#endif //DEBUG_CACHE
}
}
#ifdef DEBUG_CACHE
qDebug
()
<<
"CachePlacemark: OpenFile:"
<<
filename
;
#endif //DEBUG_CACHE
QFile
file
(
filename
);
if
(
file
.
open
(
QIODevice
::
WriteOnly
))
{
#ifdef DEBUG_CACHE
qDebug
()
<<
"CachePlacemark: File Opened!!!:"
<<
filename
;
#endif //DEBUG_CACHE
QTextStream
stream
(
&
file
);
stream
.
setCodec
(
"UTF-8"
);
stream
<<
content
;
}
}
}
src/libs/opmapcontrol/src/core/cache.h
0 → 100644
View file @
0b0fbe87
/**
******************************************************************************
*
* @file cache.h
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup OPMapWidget
* @{
*
*****************************************************************************/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA