Skip to content
Permalink
Browse files
Added gps tracker widget. This work was sponsored by http://gonavigo.ca/
. We thank them for their support

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12692 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 7, 2010
1 parent 6cc58fb commit 0c9c991edd220bbf9d317fd4028498ca65b9765a
Showing with 10,825 additions and 11 deletions.
  1. +1 −0 CMakeLists.txt
  2. +93 −0 cmake/FindQWT.cmake
  3. +4 −1 images/images.qrc
  4. +142 −0 images/north_arrows/gpsarrow.svg
  5. +426 −0 images/north_arrows/gpsarrow.svg~
  6. +215 −0 images/north_arrows/gpsarrow2.svg
  7. +693 −0 images/north_arrows/gpsarrow2.svg~
  8. +134 −0 images/themes/default/gpsicons/barchart.svg
  9. +127 −0 images/themes/default/gpsicons/polarchart.svg
  10. +42 −3 src/app/CMakeLists.txt
  11. +990 −0 src/app/gps/qgsgpsinformationwidget.cpp
  12. +84 −0 src/app/gps/qgsgpsinformationwidget.h
  13. +77 −0 src/app/gps/qgsgpsmarker.cpp
  14. +57 −0 src/app/gps/qgsgpsmarker.h
  15. +70 −0 src/app/gps/qwtpolar/qwt_polar.h
  16. +263 −0 src/app/gps/qwtpolar/qwt_polar_canvas.cpp
  17. +74 −0 src/app/gps/qwtpolar/qwt_polar_canvas.h
  18. +511 −0 src/app/gps/qwtpolar/qwt_polar_curve.cpp
  19. +159 −0 src/app/gps/qwtpolar/qwt_polar_curve.h
  20. +111 −0 src/app/gps/qwtpolar/qwt_polar_fitter.cpp
  21. +45 −0 src/app/gps/qwtpolar/qwt_polar_fitter.h
  22. +46 −0 src/app/gps/qwtpolar/qwt_polar_global.h
  23. +1,156 −0 src/app/gps/qwtpolar/qwt_polar_grid.cpp
  24. +168 −0 src/app/gps/qwtpolar/qwt_polar_grid.h
  25. +429 −0 src/app/gps/qwtpolar/qwt_polar_item.cpp
  26. +157 −0 src/app/gps/qwtpolar/qwt_polar_item.h
  27. +188 −0 src/app/gps/qwtpolar/qwt_polar_itemdict.cpp
  28. +63 −0 src/app/gps/qwtpolar/qwt_polar_itemdict.h
  29. +475 −0 src/app/gps/qwtpolar/qwt_polar_layout.cpp
  30. +81 −0 src/app/gps/qwtpolar/qwt_polar_layout.h
  31. +175 −0 src/app/gps/qwtpolar/qwt_polar_magnifier.cpp
  32. +58 −0 src/app/gps/qwtpolar/qwt_polar_magnifier.h
  33. +244 −0 src/app/gps/qwtpolar/qwt_polar_marker.cpp
  34. +75 −0 src/app/gps/qwtpolar/qwt_polar_marker.h
  35. +117 −0 src/app/gps/qwtpolar/qwt_polar_panner.cpp
  36. +52 −0 src/app/gps/qwtpolar/qwt_polar_panner.h
  37. +1,493 −0 src/app/gps/qwtpolar/qwt_polar_plot.cpp
  38. +233 −0 src/app/gps/qwtpolar/qwt_polar_plot.h
  39. +99 −0 src/app/gps/qwtpolar/qwt_polar_point.cpp
  40. +135 −0 src/app/gps/qwtpolar/qwt_polar_point.h
  41. +344 −0 src/app/gps/qwtpolar/qwt_polar_spectrogram.cpp
  42. +59 −0 src/app/gps/qwtpolar/qwt_polar_spectrogram.h
  43. +56 −1 src/app/qgisapp.cpp
  44. +11 −6 src/app/qgisapp.h
  45. +593 −0 src/ui/qgsgpsinformationwidgetbase.ui
@@ -132,6 +132,7 @@ FIND_PACKAGE(Expat) # GPS importer plugin
FIND_PACKAGE(GSL) # Georeferencer
FIND_PACKAGE(GEOS)
FIND_PACKAGE(GDAL)
FIND_PACKAGE(QWT)

IF (NOT WITH_INTERNAL_SPATIALITE)
FIND_PACKAGE(Sqlite3)
@@ -0,0 +1,93 @@
## Once run this will define:
##
## QWT_FOUND = system has QWT lib
##
## QWT_LIBRARY = full path to the QWT library
##
## QWT_INCLUDE_DIR = where to find headers
##
## Tim Sutton


#MESSAGE("Searching for QWT")
FIND_PATH(QWT_INCLUDE_DIR qwt.h
/usr/include
/usr/include/qwt-qt4
/usr/local/include
"$ENV{LIB_DIR}/include"
"$ENV{LIB_DIR}/include/qwt"
)
FIND_LIBRARY(QWT_LIBRARY qwt PATHS
/usr/lib
/usr/local/lib
"$ENV{LIB_DIR}/lib"
)
IF (NOT QWT_LIBRARY)
# try using ubuntu lib naming
FIND_LIBRARY(QWT_LIBRARY qwt-qt4 PATHS
/usr/lib
/usr/local/lib
"$ENV{LIB_DIR}/lib"
)
ENDIF (NOT QWT_LIBRARY)

IF (QWT_INCLUDE_DIR AND QWT_LIBRARY)
SET(QWT_FOUND TRUE)
ENDIF (QWT_INCLUDE_DIR AND QWT_LIBRARY)

IF (QWT_FOUND)
IF (NOT QWT_FIND_QUIETLY)
MESSAGE(STATUS "Found QWT : ${QWT_LIBRARY}")
ENDIF (NOT QWT_FIND_QUIETLY)
ELSE (QWT_FOUND)
IF (QWT_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find QWT")
ENDIF (QWT_FIND_REQUIRED)
ENDIF (QWT_FOUND)
## Once run this will define:
##
## QWT_FOUND = system has QWT lib
##
## QWT_LIBRARY = full path to the QWT library
##
## QWT_INCLUDE_DIR = where to find headers
##
## Tim Sutton


#MESSAGE("Searching for QWT")
FIND_PATH(QWT_INCLUDE_DIR qwt.h
/usr/include
/usr/include/qwt-qt4
/usr/local/include
"$ENV{LIB_DIR}/include"
"$ENV{LIB_DIR}/include/qwt"
)
FIND_LIBRARY(QWT_LIBRARY qwt PATHS
/usr/lib
/usr/local/lib
"$ENV{LIB_DIR}/lib"
)
IF (NOT QWT_LIBRARY)
# try using ubuntu lib naming
FIND_LIBRARY(QWT_LIBRARY qwt-qt4 PATHS
/usr/lib
/usr/local/lib
"$ENV{LIB_DIR}/lib"
)
ENDIF (NOT QWT_LIBRARY)

IF (QWT_INCLUDE_DIR AND QWT_LIBRARY)
SET(QWT_FOUND TRUE)
ENDIF (QWT_INCLUDE_DIR AND QWT_LIBRARY)

IF (QWT_FOUND)
IF (NOT QWT_FIND_QUIETLY)
MESSAGE(STATUS "Found QWT : ${QWT_LIBRARY}")
ENDIF (NOT QWT_FIND_QUIETLY)
ELSE (QWT_FOUND)
IF (QWT_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find QWT")
ENDIF (QWT_FIND_REQUIRED)
ENDIF (QWT_FOUND)

@@ -1,5 +1,7 @@
<RCC>
<qresource prefix="/images" >
<file>north_arrows/gpsarrow.svg</file>
<file>north_arrows/gpsarrow2.svg</file>
<file>themes/default/mActionAddArrow.png</file>
<file>themes/newgis/mActionAddGPSLayer.png</file>
<file>themes/newgis/mActionAddImage.png</file>
@@ -156,7 +158,6 @@
<file>themes/default/mActionLowerItems.png</file>
<file>themes/default/mActionMapTips.png</file>
<file>themes/default/mActionMeasure.png</file>
<file>themes/default/mActionMeasureAngle.png</file>
<file>themes/default/mActionMeasureArea.png</file>
<file>themes/default/mActionMergeFeatures.png</file>
<file>themes/default/mActionMoveFeature.png</file>
@@ -241,6 +242,8 @@
<file>themes/default/symbologyUp.png</file>
<file>themes/default/tracking.png</file>
<file>themes/default/qgis.xpm</file>
<file>themes/default/gpsicons/barchart.svg</file>
<file>themes/default/gpsicons/polarchart.svg</file>
<file>themes/default/propertyicons/action.png</file>
<file>themes/default/propertyicons/attributes.png</file>
<file>themes/default/propertyicons/colormap.png</file>
@@ -0,0 +1,142 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64px"
height="64px"
id="svg2816"
version="1.1"
inkscape:version="0.47pre4 r22446"
sodipodi:docname="New document 2">
<defs
id="defs2818">
<linearGradient
id="linearGradient2830">
<stop
style="stop-color:#0078ff;stop-opacity:1;"
offset="0"
id="stop2832" />
<stop
id="stop3622"
offset="0.5"
style="stop-color:#0078ff;stop-opacity:0.49803922;" />
<stop
style="stop-color:#0078ff;stop-opacity:1;"
offset="1"
id="stop2834" />
</linearGradient>
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 32 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="64 : 32 : 1"
inkscape:persp3d-origin="32 : 21.333333 : 1"
id="perspective2824" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient2830"
id="linearGradient2836"
x1="41.021702"
y1="29.754156"
x2="48.086071"
y2="71.858025"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.87256797,-0.4965131,0.48748535,0.88872707,-18.438278,19.203304)" />
<inkscape:perspective
id="perspective3632"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient2830-8"
id="linearGradient2836-4"
x1="41.021702"
y1="29.754156"
x2="48.086071"
y2="71.858025"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.87256797,-0.4965131,0.48748535,0.88872707,-18.25646,19.385122)" />
<linearGradient
id="linearGradient2830-8">
<stop
style="stop-color:#0078ff;stop-opacity:1;"
offset="0"
id="stop2832-7" />
<stop
id="stop3622-3"
offset="0.5"
style="stop-color:#0078ff;stop-opacity:0.49803922;" />
<stop
style="stop-color:#0078ff;stop-opacity:1;"
offset="1"
id="stop2834-3" />
</linearGradient>
<linearGradient
y2="71.858025"
x2="48.086071"
y1="29.754156"
x1="41.021702"
gradientTransform="matrix(0.87256797,-0.4965131,0.48748535,0.88872707,-18.46692,19.117684)"
gradientUnits="userSpaceOnUse"
id="linearGradient3642"
xlink:href="#linearGradient2830-8"
inkscape:collect="always" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.5"
inkscape:cx="-0.63636364"
inkscape:cy="32"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:document-units="px"
inkscape:grid-bbox="true"
inkscape:window-width="1680"
inkscape:window-height="976"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="1" />
<metadata
id="metadata2821">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer">
<path
style="opacity:0.63114756;fill:url(#linearGradient3642);fill-opacity:1;stroke:#b6b6b6;stroke-width:1.60000002;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="M 32.620505,47.51011 C 29.333417,45.924879 13.880986,63.98066 2.0419629,61.633695 -0.11223409,48.256623 27.23677,8.9536282 33.05656,2.0131492 38.078896,8.7098952 65.187759,47.03309 61.342958,61.605402 44.439079,64.866023 36.268978,46.111427 32.620505,47.51011 z"
id="path2828-5"
sodipodi:nodetypes="ccccc" />
<path
style="opacity:0.63114756;fill:url(#linearGradient2836);fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="M 32.649147,47.59573 C 29.362059,46.010499 13.909628,64.06628 2.0706049,61.719315 -0.08359248,48.342243 27.265412,9.0392481 33.085202,2.0987694 38.107538,8.7955159 65.216401,47.11871 61.3716,61.691022 44.467721,64.951643 36.29762,46.197047 32.649147,47.59573 z"
id="path2828"
sodipodi:nodetypes="ccccc" />
</g>
</svg>

0 comments on commit 0c9c991

Please sign in to comment.