Compare commits
208 Commits
Author | SHA1 | Date | |
---|---|---|---|
3ce3de119b | |||
872ecdfa58 | |||
121a262ea1 | |||
06c9fbd849 | |||
aa928d96e0 | |||
004e9bfef3 | |||
34de55cf0c | |||
c0e458a437 | |||
33739acafe | |||
fe4eed8aa2 | |||
f5ca757348 | |||
476f26752f | |||
588859ca3a | |||
cc8d237786 | |||
5dde297210 | |||
d1469290cf | |||
51d4284ebe | |||
531eb256f1 | |||
79388aa753 | |||
2980299a2a | |||
796e61ada4 | |||
90473300e0 | |||
5706cdcfa1 | |||
d794ee4b22 | |||
262ee5bb5f | |||
5547cf668e | |||
dd9e42ad27 | |||
e192116191 | |||
67c8602efd | |||
a324698a67 | |||
23bf3397b8 | |||
db2d0b63e8 | |||
e7cfeb0d1a | |||
366e84c9fc | |||
3424b3e265 | |||
cb80389d74 | |||
40276e8b95 | |||
106904a763 | |||
e21d89e998 | |||
a432ff3461 | |||
201256d882 | |||
b2a34bd10f | |||
63cf4c039a | |||
ca97ca392e | |||
ec5ad67a3e | |||
569ded1e25 | |||
8e713a1f06 | |||
f07173ab22 | |||
cf6d27b1f5 | |||
fc18283172 | |||
1cd726691e | |||
24835db090 | |||
2352827d9b | |||
c5a060ed6b | |||
026cc68bf2 | |||
ec247d5d1d | |||
815cb6cb91 | |||
ca7016176f | |||
2c816a509b | |||
58e752a022 | |||
7d412a274d | |||
6bee2a46f1 | |||
eeab6a399e | |||
9e04bf0fa7 | |||
2842c6c125 | |||
bafd0b6af2 | |||
eb89ef2f2b | |||
f9822b7c78 | |||
e4feeae064 | |||
31ff81576c | |||
0d879e61a9 | |||
ba7074f902 | |||
f371500570 | |||
7324535bfc | |||
59c95e53c4 | |||
a66ca7b3a8 | |||
273a918ed9 | |||
7198d610c5 | |||
a6389f0174 | |||
d9c922aa47 | |||
0156d2fbc0 | |||
650eb1c302 | |||
33919c501c | |||
be9da5aabe | |||
f341219613 | |||
a486f9e78d | |||
b3940283a8 | |||
74aebce357 | |||
0cd6a82a0f | |||
81a5c712c6 | |||
025a403c73 | |||
a762445bce | |||
e1a87c84f3 | |||
5f47383648 | |||
7a702be012 | |||
abfb0c637a | |||
c9cedebeb0 | |||
be1c7fa4c2 | |||
2b421f3b63 | |||
80f13d7057 | |||
ab05014896 | |||
c8433f7b55 | |||
bb52003743 | |||
22ea1b0bca | |||
adb407dcf5 | |||
3b0a4a30bb | |||
792ec17a20 | |||
bd6c6ef344 | |||
dfb48d17bf | |||
362d065020 | |||
b0f4f2294a | |||
4463241e50 | |||
abc987cb0c | |||
81f0c40bec | |||
cf81e42f52 | |||
1aedc1de93 | |||
beb966c58f | |||
9eb2e38499 | |||
247eef5261 | |||
9c125a0583 | |||
bcff05c37c | |||
266a1d037e | |||
2b0989438a | |||
f8c92cf036 | |||
2fb9a59bf0 | |||
566f3185f9 | |||
62962b5de2 | |||
cb09ea0681 | |||
e5d566807a | |||
0ce2cfd13c | |||
e1532b978f | |||
bb10f7c0e1 | |||
8ff21b5b37 | |||
32f41e5287 | |||
c50e41dea1 | |||
e34800b8d1 | |||
6642a2f810 | |||
55458b04a6 | |||
9e36451001 | |||
b26a10a5b3 | |||
4530ec1354 | |||
f2b72ec1b5 | |||
4b776c8cc1 | |||
d31bf80885 | |||
f77497c93e | |||
c6ddee8682 | |||
0d6bc05818 | |||
fdecbc6cee | |||
cad17fb5d3 | |||
ced1244cbd | |||
3dd22eb2ba | |||
b12e83043d | |||
6416c81232 | |||
e5db00a4f4 | |||
6266d71463 | |||
daf0cf6f9d | |||
d6b810b6ef | |||
8f20080a36 | |||
e112363424 | |||
a277d0ad4f | |||
d4cd542a20 | |||
5eaf0455aa | |||
3f71775101 | |||
f8009b0151 | |||
f64e88290d | |||
b4cf614f77 | |||
ca710b6a22 | |||
c894e75c17 | |||
259a15332e | |||
c4915891e7 | |||
c5256b25e9 | |||
81b3a517f8 | |||
3aa1ab4b4c | |||
d4fb8ed9c9 | |||
fb16c3f2db | |||
4096d87a6a | |||
68eac5b8cc | |||
88d6904ded | |||
021558b114 | |||
b8815ca9f5 | |||
e845e216bd | |||
60cc869ade | |||
e3e8fdbacf | |||
16f2d7ad34 | |||
aecda0e517 | |||
bf3589812a | |||
8821536419 | |||
bda24d9091 | |||
820e614921 | |||
35703e3363 | |||
a54821863f | |||
5bc3b2ad05 | |||
992fd2c5cd | |||
4b4a1902ef | |||
7d3bc2112a | |||
4ea2f0752a | |||
0bb3b3812c | |||
b23639bef2 | |||
2d8bf2dbb9 | |||
29efa84075 | |||
3d06fe8831 | |||
fe1f6c80b4 | |||
35d1e69d7f | |||
3043128565 | |||
e56a9e33f3 | |||
07aca435d8 | |||
4e4a3d042a | |||
bf5ae22f0d |
@ -1,14 +1,14 @@
|
|||||||
version: 5.4.{build}
|
version: 5.16.{build}
|
||||||
configuration: Release
|
configuration: Release
|
||||||
platform: Any CPU
|
platform: Any CPU
|
||||||
environment:
|
environment:
|
||||||
NSISDIR: C:\Program Files (x86)\NSIS
|
NSISDIR: C:\Program Files (x86)\NSIS
|
||||||
matrix:
|
matrix:
|
||||||
- QTDIR: C:\Qt\5.9\msvc2015
|
- QTDIR: C:\Qt\5.11\msvc2015
|
||||||
PLATFORM: x86
|
PLATFORM: x86
|
||||||
NSI: gpxsee.nsi
|
NSI: gpxsee.nsi
|
||||||
OPENSSLDIR: C:\OpenSSL-Win32\bin
|
OPENSSLDIR: C:\OpenSSL-Win32\bin
|
||||||
- QTDIR: C:\Qt\5.9\msvc2015_64
|
- QTDIR: C:\Qt\5.11\msvc2015_64
|
||||||
PLATFORM: x86_amd64
|
PLATFORM: x86_amd64
|
||||||
NSI: gpxsee64.nsi
|
NSI: gpxsee64.nsi
|
||||||
OPENSSLDIR: C:\OpenSSL-Win64\bin
|
OPENSSLDIR: C:\OpenSSL-Win64\bin
|
||||||
|
10
README.md
@ -1,17 +1,17 @@
|
|||||||
# GPXSee
|
# GPXSee
|
||||||
GPXSee is a Qt-based GPS log file viewer and analyzer that supports GPX, TCX,
|
GPXSee is a Qt-based GPS log file viewer and analyzer that supports GPX, TCX,
|
||||||
KML, FIT, IGC and NMEA files.
|
KML, FIT, IGC, NMEA and OziExplorer files.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
* User-definable online maps (OSM/Google tiles, WMTS).
|
* User-definable online maps (OSM/Google tiles, WMTS, WMS).
|
||||||
* Offline maps (OziExplorer maps, TrekBuddy maps/atlases, GeoTIFF images).
|
* Offline maps (OziExplorer maps, TrekBuddy maps/atlases, Garmin JNX maps, GeoTIFF images).
|
||||||
* Elevation, speed, heart rate, cadence, power and temperature graphs.
|
* Elevation, speed, heart rate, cadence, power, temperature and gear ratio/shifts graphs.
|
||||||
* Support for multiple tracks in one view.
|
* Support for multiple tracks in one view.
|
||||||
* Support for POI files.
|
* Support for POI files.
|
||||||
* Print/export to PDF.
|
* Print/export to PDF.
|
||||||
* Full-screen mode.
|
* Full-screen mode.
|
||||||
* Native GUI for Windows, Mac OS X and Linux.
|
* Native GUI for Windows, Mac OS X and Linux.
|
||||||
* Opens GPX, TCX, FIT, KML, IGC, NMEA and Garmin CSV files.
|
* Opens GPX, TCX, FIT, KML, IGC, NMEA, OziExplorer (PLT, RTE, WPT) and Garmin CSV files.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
105
gpxsee.pro
@ -1,12 +1,16 @@
|
|||||||
TARGET = GPXSee
|
TARGET = GPXSee
|
||||||
VERSION = 5.4
|
VERSION = 5.16
|
||||||
|
|
||||||
QT += core \
|
QT += core \
|
||||||
gui \
|
gui \
|
||||||
network
|
network
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += printsupport
|
QT += widgets
|
||||||
lessThan(QT_VERSION, 5.4): QT += opengl
|
QT += printsupport
|
||||||
macx: QT += opengl
|
}
|
||||||
|
lessThan(QT_MAJOR_VERSION, 5) {QT += opengl}
|
||||||
|
equals(QT_MAJOR_VERSION, 5) : lessThan(QT_MINOR_VERSION, 4) {QT += opengl}
|
||||||
|
|
||||||
INCLUDEPATH += ./src
|
INCLUDEPATH += ./src
|
||||||
HEADERS += src/config.h \
|
HEADERS += src/config.h \
|
||||||
src/common/staticassert.h \
|
src/common/staticassert.h \
|
||||||
@ -15,6 +19,7 @@ HEADERS += src/config.h \
|
|||||||
src/common/rectc.h \
|
src/common/rectc.h \
|
||||||
src/common/wgs84.h \
|
src/common/wgs84.h \
|
||||||
src/common/str2int.h \
|
src/common/str2int.h \
|
||||||
|
src/common/rtree.h \
|
||||||
src/GUI/app.h \
|
src/GUI/app.h \
|
||||||
src/GUI/icons.h \
|
src/GUI/icons.h \
|
||||||
src/GUI/gui.h \
|
src/GUI/gui.h \
|
||||||
@ -48,6 +53,7 @@ HEADERS += src/config.h \
|
|||||||
src/GUI/format.h \
|
src/GUI/format.h \
|
||||||
src/GUI/cadencegraph.h \
|
src/GUI/cadencegraph.h \
|
||||||
src/GUI/powergraph.h \
|
src/GUI/powergraph.h \
|
||||||
|
src/GUI/gearratiograph.h \
|
||||||
src/GUI/optionsdialog.h \
|
src/GUI/optionsdialog.h \
|
||||||
src/GUI/colorbox.h \
|
src/GUI/colorbox.h \
|
||||||
src/GUI/stylecombobox.h \
|
src/GUI/stylecombobox.h \
|
||||||
@ -60,6 +66,7 @@ HEADERS += src/config.h \
|
|||||||
src/GUI/temperaturegraphitem.h \
|
src/GUI/temperaturegraphitem.h \
|
||||||
src/GUI/cadencegraphitem.h \
|
src/GUI/cadencegraphitem.h \
|
||||||
src/GUI/powergraphitem.h \
|
src/GUI/powergraphitem.h \
|
||||||
|
src/GUI/gearratiographitem.h \
|
||||||
src/GUI/oddspinbox.h \
|
src/GUI/oddspinbox.h \
|
||||||
src/GUI/settings.h \
|
src/GUI/settings.h \
|
||||||
src/GUI/nicenum.h \
|
src/GUI/nicenum.h \
|
||||||
@ -69,7 +76,7 @@ HEADERS += src/config.h \
|
|||||||
src/map/projection.h \
|
src/map/projection.h \
|
||||||
src/map/ellipsoid.h \
|
src/map/ellipsoid.h \
|
||||||
src/map/datum.h \
|
src/map/datum.h \
|
||||||
src/map/mercator.h \
|
src/map/webmercator.h \
|
||||||
src/map/transversemercator.h \
|
src/map/transversemercator.h \
|
||||||
src/map/latlon.h \
|
src/map/latlon.h \
|
||||||
src/map/utm.h \
|
src/map/utm.h \
|
||||||
@ -92,6 +99,20 @@ HEADERS += src/config.h \
|
|||||||
src/map/transform.h \
|
src/map/transform.h \
|
||||||
src/map/mapfile.h \
|
src/map/mapfile.h \
|
||||||
src/map/tifffile.h \
|
src/map/tifffile.h \
|
||||||
|
src/map/gcs.h \
|
||||||
|
src/map/angularunits.h \
|
||||||
|
src/map/primemeridian.h \
|
||||||
|
src/map/linearunits.h \
|
||||||
|
src/map/ct.h \
|
||||||
|
src/map/mapsource.h \
|
||||||
|
src/map/tileloader.h \
|
||||||
|
src/map/wmtsmap.h \
|
||||||
|
src/map/wmts.h \
|
||||||
|
src/map/wmsmap.h \
|
||||||
|
src/map/wms.h \
|
||||||
|
src/map/crs.h \
|
||||||
|
src/map/coordinatesystem.h \
|
||||||
|
src/map/pointd.h \
|
||||||
src/data/graph.h \
|
src/data/graph.h \
|
||||||
src/data/poi.h \
|
src/data/poi.h \
|
||||||
src/data/waypoint.h \
|
src/data/waypoint.h \
|
||||||
@ -103,7 +124,6 @@ HEADERS += src/config.h \
|
|||||||
src/data/trackdata.h \
|
src/data/trackdata.h \
|
||||||
src/data/routedata.h \
|
src/data/routedata.h \
|
||||||
src/data/path.h \
|
src/data/path.h \
|
||||||
src/data/rtree.h \
|
|
||||||
src/data/gpxparser.h \
|
src/data/gpxparser.h \
|
||||||
src/data/tcxparser.h \
|
src/data/tcxparser.h \
|
||||||
src/data/csvparser.h \
|
src/data/csvparser.h \
|
||||||
@ -111,15 +131,13 @@ HEADERS += src/config.h \
|
|||||||
src/data/fitparser.h \
|
src/data/fitparser.h \
|
||||||
src/data/igcparser.h \
|
src/data/igcparser.h \
|
||||||
src/data/nmeaparser.h \
|
src/data/nmeaparser.h \
|
||||||
src/map/gcs.h \
|
src/data/oziparsers.h \
|
||||||
src/map/angularunits.h \
|
src/map/rectd.h \
|
||||||
src/map/primemeridian.h \
|
src/map/geocentric.h \
|
||||||
src/map/linearunits.h \
|
src/map/mercator.h \
|
||||||
src/map/ct.h \
|
src/map/jnxmap.h \
|
||||||
src/map/mapsource.h \
|
src/map/krovak.h \
|
||||||
src/map/tileloader.h \
|
src/GUI/kv.h
|
||||||
src/map/wmtsmap.h \
|
|
||||||
src/map/wmts.h
|
|
||||||
SOURCES += src/main.cpp \
|
SOURCES += src/main.cpp \
|
||||||
src/common/coordinates.cpp \
|
src/common/coordinates.cpp \
|
||||||
src/common/rectc.cpp \
|
src/common/rectc.cpp \
|
||||||
@ -153,6 +171,7 @@ SOURCES += src/main.cpp \
|
|||||||
src/GUI/format.cpp \
|
src/GUI/format.cpp \
|
||||||
src/GUI/cadencegraph.cpp \
|
src/GUI/cadencegraph.cpp \
|
||||||
src/GUI/powergraph.cpp \
|
src/GUI/powergraph.cpp \
|
||||||
|
src/GUI/gearratiograph.cpp \
|
||||||
src/GUI/optionsdialog.cpp \
|
src/GUI/optionsdialog.cpp \
|
||||||
src/GUI/colorbox.cpp \
|
src/GUI/colorbox.cpp \
|
||||||
src/GUI/stylecombobox.cpp \
|
src/GUI/stylecombobox.cpp \
|
||||||
@ -164,6 +183,7 @@ SOURCES += src/main.cpp \
|
|||||||
src/GUI/temperaturegraphitem.cpp \
|
src/GUI/temperaturegraphitem.cpp \
|
||||||
src/GUI/cadencegraphitem.cpp \
|
src/GUI/cadencegraphitem.cpp \
|
||||||
src/GUI/powergraphitem.cpp \
|
src/GUI/powergraphitem.cpp \
|
||||||
|
src/GUI/gearratiographitem.cpp \
|
||||||
src/GUI/nicenum.cpp \
|
src/GUI/nicenum.cpp \
|
||||||
src/GUI/mapview.cpp \
|
src/GUI/mapview.cpp \
|
||||||
src/map/maplist.cpp \
|
src/map/maplist.cpp \
|
||||||
@ -177,7 +197,7 @@ SOURCES += src/main.cpp \
|
|||||||
src/map/matrix.cpp \
|
src/map/matrix.cpp \
|
||||||
src/map/ellipsoid.cpp \
|
src/map/ellipsoid.cpp \
|
||||||
src/map/datum.cpp \
|
src/map/datum.cpp \
|
||||||
src/map/mercator.cpp \
|
src/map/webmercator.cpp \
|
||||||
src/map/transversemercator.cpp \
|
src/map/transversemercator.cpp \
|
||||||
src/map/utm.cpp \
|
src/map/utm.cpp \
|
||||||
src/map/lambertconic.cpp \
|
src/map/lambertconic.cpp \
|
||||||
@ -188,6 +208,19 @@ SOURCES += src/main.cpp \
|
|||||||
src/map/transform.cpp \
|
src/map/transform.cpp \
|
||||||
src/map/mapfile.cpp \
|
src/map/mapfile.cpp \
|
||||||
src/map/tifffile.cpp \
|
src/map/tifffile.cpp \
|
||||||
|
src/map/projection.cpp \
|
||||||
|
src/map/gcs.cpp \
|
||||||
|
src/map/angularunits.cpp \
|
||||||
|
src/map/primemeridian.cpp \
|
||||||
|
src/map/linearunits.cpp \
|
||||||
|
src/map/mapsource.cpp \
|
||||||
|
src/map/tileloader.cpp \
|
||||||
|
src/map/wmtsmap.cpp \
|
||||||
|
src/map/wmts.cpp \
|
||||||
|
src/map/wmsmap.cpp \
|
||||||
|
src/map/wms.cpp \
|
||||||
|
src/map/crs.cpp \
|
||||||
|
src/map/coordinatesystem.cpp \
|
||||||
src/data/data.cpp \
|
src/data/data.cpp \
|
||||||
src/data/poi.cpp \
|
src/data/poi.cpp \
|
||||||
src/data/track.cpp \
|
src/data/track.cpp \
|
||||||
@ -200,22 +233,22 @@ SOURCES += src/main.cpp \
|
|||||||
src/data/fitparser.cpp \
|
src/data/fitparser.cpp \
|
||||||
src/data/igcparser.cpp \
|
src/data/igcparser.cpp \
|
||||||
src/data/nmeaparser.cpp \
|
src/data/nmeaparser.cpp \
|
||||||
src/map/projection.cpp \
|
src/data/oziparsers.cpp \
|
||||||
src/map/gcs.cpp \
|
src/map/geocentric.cpp \
|
||||||
src/map/angularunits.cpp \
|
src/map/mercator.cpp \
|
||||||
src/map/primemeridian.cpp \
|
src/map/jnxmap.cpp \
|
||||||
src/map/linearunits.cpp \
|
src/map/krovak.cpp \
|
||||||
src/map/mapsource.cpp \
|
src/map/map.cpp
|
||||||
src/map/tileloader.cpp \
|
|
||||||
src/map/wmtsmap.cpp \
|
|
||||||
src/map/wmts.cpp
|
|
||||||
RESOURCES += gpxsee.qrc
|
RESOURCES += gpxsee.qrc
|
||||||
TRANSLATIONS = lang/gpxsee_cs.ts \
|
TRANSLATIONS = lang/gpxsee_cs.ts \
|
||||||
lang/gpxsee_sv.ts \
|
lang/gpxsee_sv.ts \
|
||||||
lang/gpxsee_de.ts \
|
lang/gpxsee_de.ts \
|
||||||
lang/gpxsee_ru.ts \
|
lang/gpxsee_ru.ts \
|
||||||
lang/gpxsee_fi.ts \
|
lang/gpxsee_fi.ts \
|
||||||
lang/gpxsee_fr.ts
|
lang/gpxsee_fr.ts \
|
||||||
|
lang/gpxsee_pl.ts
|
||||||
|
|
||||||
macx {
|
macx {
|
||||||
ICON = icons/gpxsee.icns
|
ICON = icons/gpxsee.icns
|
||||||
QMAKE_INFO_PLIST = pkg/Info.plist
|
QMAKE_INFO_PLIST = pkg/Info.plist
|
||||||
@ -225,17 +258,22 @@ macx {
|
|||||||
lang/gpxsee_fi.qm \
|
lang/gpxsee_fi.qm \
|
||||||
lang/gpxsee_fr.qm \
|
lang/gpxsee_fr.qm \
|
||||||
lang/gpxsee_ru.qm \
|
lang/gpxsee_ru.qm \
|
||||||
lang/gpxsee_sv.qm
|
lang/gpxsee_sv.qm \
|
||||||
|
lang/gpxsee_pl.qm
|
||||||
CSV.path = Contents/Resources
|
CSV.path = Contents/Resources
|
||||||
CSV.files = pkg/csv
|
CSV.files = pkg/csv
|
||||||
MAPS.path = Contents/Resources
|
MAPS.path = Contents/Resources
|
||||||
MAPS.files = pkg/maps
|
MAPS.files = pkg/maps
|
||||||
ICONS.path = Contents/Resources/icons
|
ICONS.path = Contents/Resources/icons
|
||||||
ICONS.files = icons/tcx.icns \
|
ICONS.files = icons/gpx.icns \
|
||||||
|
icons/tcx.icns \
|
||||||
icons/kml.icns \
|
icons/kml.icns \
|
||||||
icons/fit.icns \
|
icons/fit.icns \
|
||||||
icons/igc.icns \
|
icons/igc.icns \
|
||||||
icons/nmea.icns
|
icons/nmea.icns \
|
||||||
|
icons/plt.icns \
|
||||||
|
icons/rte.icns \
|
||||||
|
icons/wpt.icns
|
||||||
QMAKE_BUNDLE_DATA += LOCALE MAPS ICONS CSV
|
QMAKE_BUNDLE_DATA += LOCALE MAPS ICONS CSV
|
||||||
}
|
}
|
||||||
win32 {
|
win32 {
|
||||||
@ -245,6 +283,11 @@ win32 {
|
|||||||
icons/kml.ico \
|
icons/kml.ico \
|
||||||
icons/fit.ico \
|
icons/fit.ico \
|
||||||
icons/igc.ico \
|
icons/igc.ico \
|
||||||
icons/nmea.ico
|
icons/nmea.ico \
|
||||||
|
icons/plt.ico \
|
||||||
|
icons/rte.ico \
|
||||||
|
icons/wpt.ico
|
||||||
|
DEFINES += _USE_MATH_DEFINES
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
|
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
|
||||||
|
BIN
icons/fit.icns
BIN
icons/fit.ico
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 302 KiB |
171
icons/fit.svg
@ -1,171 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
version="1.1"
|
|
||||||
id="svg3390"
|
|
||||||
height="185"
|
|
||||||
width="185"
|
|
||||||
inkscape:version="0.91 r13725"
|
|
||||||
sodipodi:docname="fit.svg">
|
|
||||||
<sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="1440"
|
|
||||||
inkscape:window-height="815"
|
|
||||||
id="namedview3427"
|
|
||||||
showgrid="false"
|
|
||||||
inkscape:zoom="3.1351351"
|
|
||||||
inkscape:cx="92.5"
|
|
||||||
inkscape:cy="92.5"
|
|
||||||
inkscape:window-x="0"
|
|
||||||
inkscape:window-y="0"
|
|
||||||
inkscape:window-maximized="1"
|
|
||||||
inkscape:current-layer="svg3390" />
|
|
||||||
<metadata
|
|
||||||
id="metadata3404">
|
|
||||||
<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>
|
|
||||||
<defs
|
|
||||||
id="defs3402" />
|
|
||||||
<path
|
|
||||||
style="fill:#ffffff;stroke:#999999;stroke-width:2.18774867"
|
|
||||||
id="path3392"
|
|
||||||
d="m 128.23996,2.2548915 -95.377018,0 0,181.0580085 134.394868,0 0,-141.313567 z m 0,0 0,39.7444415 39.01785,0" />
|
|
||||||
<rect
|
|
||||||
y="124.9782"
|
|
||||||
x="16.573463"
|
|
||||||
height="49.84631"
|
|
||||||
width="120.3215"
|
|
||||||
id="rect3426"
|
|
||||||
style="fill:#006600;fill-opacity:1;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
|
||||||
<g
|
|
||||||
id="g3828"
|
|
||||||
transform="matrix(0.89093793,0,0,0.84489692,3.5017807,-51.565424)">
|
|
||||||
<g
|
|
||||||
id="g3715">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="113"
|
|
||||||
cy="90.875"
|
|
||||||
id="ellipse3717"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2;stroke-linejoin:round"
|
|
||||||
cx="113"
|
|
||||||
cy="90.875"
|
|
||||||
id="ellipse3719"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<polyline
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:4"
|
|
||||||
points="62.3563,178.566 73.5,125.854 96,151.875 113,90.875 136.5,172.375 148.831,160.03 "
|
|
||||||
id="polyline3721" />
|
|
||||||
<g
|
|
||||||
id="g3723">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="73.5"
|
|
||||||
cy="125.854"
|
|
||||||
id="ellipse3725"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="73.5"
|
|
||||||
cy="125.854"
|
|
||||||
id="ellipse3727"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3729">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="136.5"
|
|
||||||
cy="172.375"
|
|
||||||
id="ellipse3731"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="136.5"
|
|
||||||
cy="172.375"
|
|
||||||
id="ellipse3733"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3735">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="60.700001"
|
|
||||||
cy="186.39999"
|
|
||||||
id="ellipse3737"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="60.700001"
|
|
||||||
cy="186.39999"
|
|
||||||
id="ellipse3739"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3741">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="154.5"
|
|
||||||
cy="154.354"
|
|
||||||
id="ellipse3743"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="154.5"
|
|
||||||
cy="154.354"
|
|
||||||
id="ellipse3745"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3747">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="96"
|
|
||||||
cy="151.875"
|
|
||||||
id="ellipse3749"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="96"
|
|
||||||
cy="151.875"
|
|
||||||
id="ellipse3751"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<text
|
|
||||||
transform="scale(0.9437456,1.0596076)"
|
|
||||||
id="text3921"
|
|
||||||
y="155.86783"
|
|
||||||
x="44.388157"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:40px;line-height:100%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
||||||
xml:space="preserve"
|
|
||||||
sodipodi:linespacing="100%"><tspan
|
|
||||||
sodipodi:role="line"
|
|
||||||
id="tspan3429"
|
|
||||||
x="44.388157"
|
|
||||||
y="155.86783">FIT</tspan></text>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 4.9 KiB |
BIN
icons/gpx.icns
BIN
icons/gpx.ico
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 305 KiB |
146
icons/gpx.svg
@ -1,146 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<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"
|
|
||||||
version="1.1"
|
|
||||||
id="svg3390"
|
|
||||||
height="185"
|
|
||||||
width="185">
|
|
||||||
<metadata
|
|
||||||
id="metadata3404">
|
|
||||||
<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>
|
|
||||||
<defs
|
|
||||||
id="defs3402" />
|
|
||||||
<path
|
|
||||||
style="fill:#ffffff;stroke:#999999;stroke-width:2.18774867"
|
|
||||||
id="path3392"
|
|
||||||
d="m 128.23996,2.2548915 -95.377018,0 0,181.0580085 134.394868,0 0,-141.313567 z m 0,0 0,39.7444415 39.01785,0" />
|
|
||||||
<rect
|
|
||||||
y="124.9782"
|
|
||||||
x="16.573463"
|
|
||||||
height="49.84631"
|
|
||||||
width="120.3215"
|
|
||||||
id="rect3426"
|
|
||||||
style="fill:#003399;fill-opacity:1;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
|
||||||
<g
|
|
||||||
id="g3828"
|
|
||||||
transform="matrix(0.89093793,0,0,0.84489692,3.5017807,-51.565424)">
|
|
||||||
<g
|
|
||||||
id="g3715">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="113"
|
|
||||||
cy="90.875"
|
|
||||||
id="ellipse3717"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2;stroke-linejoin:round"
|
|
||||||
cx="113"
|
|
||||||
cy="90.875"
|
|
||||||
id="ellipse3719"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<polyline
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:4"
|
|
||||||
points="62.3563,178.566 73.5,125.854 96,151.875 113,90.875 136.5,172.375 148.831,160.03 "
|
|
||||||
id="polyline3721" />
|
|
||||||
<g
|
|
||||||
id="g3723">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="73.5"
|
|
||||||
cy="125.854"
|
|
||||||
id="ellipse3725"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="73.5"
|
|
||||||
cy="125.854"
|
|
||||||
id="ellipse3727"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3729">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="136.5"
|
|
||||||
cy="172.375"
|
|
||||||
id="ellipse3731"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="136.5"
|
|
||||||
cy="172.375"
|
|
||||||
id="ellipse3733"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3735">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="60.700001"
|
|
||||||
cy="186.39999"
|
|
||||||
id="ellipse3737"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="60.700001"
|
|
||||||
cy="186.39999"
|
|
||||||
id="ellipse3739"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3741">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="154.5"
|
|
||||||
cy="154.354"
|
|
||||||
id="ellipse3743"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="154.5"
|
|
||||||
cy="154.354"
|
|
||||||
id="ellipse3745"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3747">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="96"
|
|
||||||
cy="151.875"
|
|
||||||
id="ellipse3749"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="96"
|
|
||||||
cy="151.875"
|
|
||||||
id="ellipse3751"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<text
|
|
||||||
transform="scale(0.9437456,1.0596076)"
|
|
||||||
id="text3921"
|
|
||||||
y="155.86783"
|
|
||||||
x="31.672857"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:40px;line-height:100%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
||||||
xml:space="preserve"><tspan
|
|
||||||
y="155.86783"
|
|
||||||
x="31.672857"
|
|
||||||
id="tspan3923"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:40px;line-height:100%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';text-align:start;writing-mode:lr-tb;text-anchor:start">GPX</tspan></text>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 4.4 KiB |
BIN
icons/igc.icns
BIN
icons/igc.ico
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 304 KiB |
145
icons/igc.svg
@ -1,145 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<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"
|
|
||||||
width="185"
|
|
||||||
height="185"
|
|
||||||
id="svg3390"
|
|
||||||
version="1.1">
|
|
||||||
<metadata
|
|
||||||
id="metadata3404">
|
|
||||||
<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>
|
|
||||||
<defs
|
|
||||||
id="defs3402" />
|
|
||||||
<path
|
|
||||||
d="m 128.23996,2.2548915 -95.377018,0 0,181.0580085 134.394868,0 0,-141.313567 z m 0,0 0,39.7444415 39.01785,0"
|
|
||||||
id="path3392"
|
|
||||||
style="fill:#ffffff;stroke:#999999;stroke-width:2.18774867" />
|
|
||||||
<rect
|
|
||||||
style="fill:#ff3300;fill-opacity:1;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
||||||
id="rect3426"
|
|
||||||
width="120.3215"
|
|
||||||
height="49.84631"
|
|
||||||
x="16.573463"
|
|
||||||
y="124.9782" />
|
|
||||||
<g
|
|
||||||
transform="matrix(0.89093793,0,0,0.84489692,3.5017807,-51.565424)"
|
|
||||||
id="g3828">
|
|
||||||
<g
|
|
||||||
id="g3715">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3717"
|
|
||||||
cy="90.875"
|
|
||||||
cx="113"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3719"
|
|
||||||
cy="90.875"
|
|
||||||
cx="113"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2;stroke-linejoin:round" />
|
|
||||||
</g>
|
|
||||||
<polyline
|
|
||||||
id="polyline3721"
|
|
||||||
points="62.3563,178.566 73.5,125.854 96,151.875 113,90.875 136.5,172.375 148.831,160.03 "
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:4" />
|
|
||||||
<g
|
|
||||||
id="g3723">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3725"
|
|
||||||
cy="125.854"
|
|
||||||
cx="73.5"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3727"
|
|
||||||
cy="125.854"
|
|
||||||
cx="73.5"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3729">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3731"
|
|
||||||
cy="172.375"
|
|
||||||
cx="136.5"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3733"
|
|
||||||
cy="172.375"
|
|
||||||
cx="136.5"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3735">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3737"
|
|
||||||
cy="186.39999"
|
|
||||||
cx="60.700001"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3739"
|
|
||||||
cy="186.39999"
|
|
||||||
cx="60.700001"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3741">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3743"
|
|
||||||
cy="154.354"
|
|
||||||
cx="154.5"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3745"
|
|
||||||
cy="154.354"
|
|
||||||
cx="154.5"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3747">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3749"
|
|
||||||
cy="151.875"
|
|
||||||
cx="96"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3751"
|
|
||||||
cy="151.875"
|
|
||||||
cx="96"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<text
|
|
||||||
xml:space="preserve"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:40px;line-height:100%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
||||||
x="40.149723"
|
|
||||||
y="155.86783"
|
|
||||||
id="text3921"
|
|
||||||
transform="scale(0.9437456,1.0596076)"><tspan
|
|
||||||
y="155.86783"
|
|
||||||
x="40.149723"
|
|
||||||
id="tspan3448">IGC</tspan></text>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 4.1 KiB |
BIN
icons/kml.icns
BIN
icons/kml.ico
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 304 KiB |
143
icons/kml.svg
@ -1,143 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<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"
|
|
||||||
width="185"
|
|
||||||
height="185"
|
|
||||||
id="svg3390"
|
|
||||||
version="1.1">
|
|
||||||
<metadata
|
|
||||||
id="metadata3404">
|
|
||||||
<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>
|
|
||||||
<defs
|
|
||||||
id="defs3402" />
|
|
||||||
<path
|
|
||||||
d="m 128.23996,2.2548915 -95.377018,0 0,181.0580085 134.394868,0 0,-141.313567 z m 0,0 0,39.7444415 39.01785,0"
|
|
||||||
id="path3392"
|
|
||||||
style="fill:#ffffff;stroke:#999999;stroke-width:2.18774867" />
|
|
||||||
<rect
|
|
||||||
style="fill:#990000;fill-opacity:1;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
||||||
id="rect3426"
|
|
||||||
width="120.3215"
|
|
||||||
height="49.84631"
|
|
||||||
x="16.573463"
|
|
||||||
y="124.9782" />
|
|
||||||
<g
|
|
||||||
transform="matrix(0.89093793,0,0,0.84489692,3.5017807,-51.565424)"
|
|
||||||
id="g3828">
|
|
||||||
<g
|
|
||||||
id="g3715">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3717"
|
|
||||||
cy="90.875"
|
|
||||||
cx="113"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3719"
|
|
||||||
cy="90.875"
|
|
||||||
cx="113"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2;stroke-linejoin:round" />
|
|
||||||
</g>
|
|
||||||
<polyline
|
|
||||||
id="polyline3721"
|
|
||||||
points="62.3563,178.566 73.5,125.854 96,151.875 113,90.875 136.5,172.375 148.831,160.03 "
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:4" />
|
|
||||||
<g
|
|
||||||
id="g3723">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3725"
|
|
||||||
cy="125.854"
|
|
||||||
cx="73.5"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3727"
|
|
||||||
cy="125.854"
|
|
||||||
cx="73.5"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3729">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3731"
|
|
||||||
cy="172.375"
|
|
||||||
cx="136.5"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3733"
|
|
||||||
cy="172.375"
|
|
||||||
cx="136.5"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3735">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3737"
|
|
||||||
cy="186.39999"
|
|
||||||
cx="60.700001"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3739"
|
|
||||||
cy="186.39999"
|
|
||||||
cx="60.700001"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3741">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3743"
|
|
||||||
cy="154.354"
|
|
||||||
cx="154.5"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3745"
|
|
||||||
cy="154.354"
|
|
||||||
cx="154.5"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3747">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3749"
|
|
||||||
cy="151.875"
|
|
||||||
cx="96"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3751"
|
|
||||||
cy="151.875"
|
|
||||||
cx="96"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<text
|
|
||||||
xml:space="preserve"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:40px;line-height:100%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
|
|
||||||
x="31.672857"
|
|
||||||
y="155.86783"
|
|
||||||
id="text3921"
|
|
||||||
transform="scale(0.9437456,1.0596076)"><tspan
|
|
||||||
id="tspan3429">KML</tspan></text>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 4.1 KiB |
BIN
icons/nmea.icns
BIN
icons/nmea.ico
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 304 KiB |
145
icons/nmea.svg
@ -1,145 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<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"
|
|
||||||
version="1.1"
|
|
||||||
id="svg3390"
|
|
||||||
height="185"
|
|
||||||
width="185">
|
|
||||||
<metadata
|
|
||||||
id="metadata3404">
|
|
||||||
<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>
|
|
||||||
<defs
|
|
||||||
id="defs3402" />
|
|
||||||
<path
|
|
||||||
style="fill:#ffffff;stroke:#999999;stroke-width:2.18774867"
|
|
||||||
id="path3392"
|
|
||||||
d="m 128.23996,2.2548915 -95.377018,0 0,181.0580085 134.394868,0 0,-141.313567 z m 0,0 0,39.7444415 39.01785,0" />
|
|
||||||
<rect
|
|
||||||
y="124.9782"
|
|
||||||
x="16.573463"
|
|
||||||
height="49.84631"
|
|
||||||
width="131.6837"
|
|
||||||
id="rect3426"
|
|
||||||
style="fill:#0083d7;fill-opacity:1;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
|
||||||
<g
|
|
||||||
id="g3828"
|
|
||||||
transform="matrix(0.89093793,0,0,0.84489692,3.5017807,-51.565424)">
|
|
||||||
<g
|
|
||||||
id="g3715">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="113"
|
|
||||||
cy="90.875"
|
|
||||||
id="ellipse3717"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2;stroke-linejoin:round"
|
|
||||||
cx="113"
|
|
||||||
cy="90.875"
|
|
||||||
id="ellipse3719"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<polyline
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:4"
|
|
||||||
points="62.3563,178.566 73.5,125.854 96,151.875 113,90.875 136.5,172.375 148.831,160.03 "
|
|
||||||
id="polyline3721" />
|
|
||||||
<g
|
|
||||||
id="g3723">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="73.5"
|
|
||||||
cy="125.854"
|
|
||||||
id="ellipse3725"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="73.5"
|
|
||||||
cy="125.854"
|
|
||||||
id="ellipse3727"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3729">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="136.5"
|
|
||||||
cy="172.375"
|
|
||||||
id="ellipse3731"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="136.5"
|
|
||||||
cy="172.375"
|
|
||||||
id="ellipse3733"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3735">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="60.700001"
|
|
||||||
cy="186.39999"
|
|
||||||
id="ellipse3737"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="60.700001"
|
|
||||||
cy="186.39999"
|
|
||||||
id="ellipse3739"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3741">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="154.5"
|
|
||||||
cy="154.354"
|
|
||||||
id="ellipse3743"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="154.5"
|
|
||||||
cy="154.354"
|
|
||||||
id="ellipse3745"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3747">
|
|
||||||
<circle
|
|
||||||
style="fill:#000000"
|
|
||||||
cx="96"
|
|
||||||
cy="151.875"
|
|
||||||
id="ellipse3749"
|
|
||||||
r="7.0209999" />
|
|
||||||
<circle
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2"
|
|
||||||
cx="96"
|
|
||||||
cy="151.875"
|
|
||||||
id="ellipse3751"
|
|
||||||
r="7.0209999" />
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<text
|
|
||||||
transform="scale(0.9437456,1.0596076)"
|
|
||||||
id="text3921"
|
|
||||||
y="155.86783"
|
|
||||||
x="21.076782"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:40px;line-height:100%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
||||||
xml:space="preserve"><tspan
|
|
||||||
y="155.86783"
|
|
||||||
x="21.076782"
|
|
||||||
id="tspan3429">NMEA</tspan></text>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 4.1 KiB |
BIN
icons/plt.icns
Normal file
BIN
icons/plt.ico
Normal file
After Width: | Height: | Size: 302 KiB |
BIN
icons/rte.icns
Normal file
BIN
icons/rte.ico
Normal file
After Width: | Height: | Size: 303 KiB |
28
icons/scripts/icns.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
EXTENSIONS="fit:#006600 gpx:#003399 igc:#ff3300 kml:#990000 nmea:#0083d7 \
|
||||||
|
plt:#66ff00 rte:#66ff00 tcx:#ffcc00 wpt:#66ff00"
|
||||||
|
|
||||||
|
for e in $EXTENSIONS; do
|
||||||
|
IFS=":"; set $e
|
||||||
|
|
||||||
|
EXT=`echo $1 | tr /a-z/ /A-Z/`
|
||||||
|
sed -e "s/\$EXTENSION/$EXT/" -e "s/\$COLOR/$2/" icon-template.svg > $1.svg
|
||||||
|
|
||||||
|
ICONSET=$1.iconset
|
||||||
|
mkdir $ICONSET
|
||||||
|
|
||||||
|
convert -density 400 -background none -resize '16x16' "$1.svg" "$ICONSET/icon_16x16.png"
|
||||||
|
convert -density 400 -background none -resize '32x32' "$1.svg" "$ICONSET/icon_16x16@2x.png"
|
||||||
|
cp "$ICONSET/icon_16x16@2x.png" "$ICONSET/icon_32x32.png"
|
||||||
|
convert -density 400 -background none -resize '64x64' "$1.svg" "$ICONSET/icon_32x32@2x.png"
|
||||||
|
convert -density 400 -background none -resize '128x128' "$1.svg" "$ICONSET/icon_128x128.png"
|
||||||
|
convert -density 400 -background none -resize '256x256' "$1.svg" "$ICONSET/icon_128x128@2x.png"
|
||||||
|
cp "$ICONSET/icon_128x128@2x.png" "$ICONSET/icon_256x256.png"
|
||||||
|
convert -density 400 -background none -resize '512x512' "$1.svg" "$ICONSET/icon_256x256@2x.png"
|
||||||
|
cp "$ICONSET/icon_256x256@2x.png" "$ICONSET/icon_512x512.png"
|
||||||
|
convert -density 400 -background none -resize '1024x1024' "$1.svg" "$ICONSET/icon_512x512@2x.png"
|
||||||
|
|
||||||
|
iconutil -c icns -o $1.icns "$ICONSET"
|
||||||
|
rm -R "$ICONSET" $1.svg
|
||||||
|
done
|
13
icons/scripts/ico.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
EXTENSIONS="fit:#006600 gpx:#003399 igc:#ff3300 kml:#990000 nmea:#0083d7 \
|
||||||
|
plt:#66ff00 rte:#66ff00 tcx:#ffcc00 wpt:#66ff00"
|
||||||
|
|
||||||
|
for e in $EXTENSIONS; do
|
||||||
|
IFS=":"; set $e
|
||||||
|
|
||||||
|
EXT=`echo $1 | tr /a-z/ /A-Z/`
|
||||||
|
sed -e "s/\$EXTENSION/$EXT/" -e "s/\$COLOR/$2/" icon-template.svg > $1.svg
|
||||||
|
convert -density 400 $1.svg -define icon:auto-resize $1.ico
|
||||||
|
rm $1.svg
|
||||||
|
done
|
17
icons/scripts/icon-template.svg
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" height="185" width="185">
|
||||||
|
<path id="envelope" style="fill:#ffffff;stroke:#999999;stroke-width:2.18774867" d="m 128.23996,2.2548915 -95.377018,0 0,181.0580085 134.394868,0 0,-141.313567 z m 0,0 0,39.7444415 39.01785,0" />
|
||||||
|
<g id="logo" transform="matrix(0.89093793,0,0,0.84489692,3.5017807,-51.565424)">
|
||||||
|
<polyline style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:4" points="62.3563,178.566 73.5,125.854 96,151.875 113,90.875 136.5,172.375 148.831,160.03 "/>
|
||||||
|
<circle style="fill:#000000" cx="113" cy="90.875" r="8"/>
|
||||||
|
<circle style="fill:#000000" cx="73.5" cy="125.854" r="8"/>
|
||||||
|
<circle style="fill:#000000" cx="136.5" cy="172.375" r="8"/>
|
||||||
|
<circle style="fill:#000000" cx="60.700001" cy="186.39999" r="8"/>
|
||||||
|
<circle style="fill:#000000" cx="154.5" cy="154.354" r="8"/>
|
||||||
|
<circle style="fill:#000000" cx="96" cy="151.875" r="8"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(16.573463,124.9782)">
|
||||||
|
<rect y="0" x="0" id="textrect" height="50" width="120" style="fill:$COLOR;fill-opacity:1;stroke:none;"/>
|
||||||
|
<text y="28" x="60" dominant-baseline="central" text-anchor="middle" style="fill:#FFFFFF;font-size:39px;font-family:sans-serif;font-weight:bold;">$EXTENSION</text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
BIN
icons/tcx.icns
BIN
icons/tcx.ico
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 304 KiB |
145
icons/tcx.svg
@ -1,145 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<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"
|
|
||||||
width="185"
|
|
||||||
height="185"
|
|
||||||
id="svg3390"
|
|
||||||
version="1.1">
|
|
||||||
<metadata
|
|
||||||
id="metadata3404">
|
|
||||||
<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>
|
|
||||||
<defs
|
|
||||||
id="defs3402" />
|
|
||||||
<path
|
|
||||||
d="m 128.23996,2.2548915 -95.377018,0 0,181.0580085 134.394868,0 0,-141.313567 z m 0,0 0,39.7444415 39.01785,0"
|
|
||||||
id="path3392"
|
|
||||||
style="fill:#ffffff;stroke:#999999;stroke-width:2.18774867" />
|
|
||||||
<rect
|
|
||||||
style="fill:#ffcc00;fill-opacity:1;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
||||||
id="rect3426"
|
|
||||||
width="120.3215"
|
|
||||||
height="49.84631"
|
|
||||||
x="16.573463"
|
|
||||||
y="124.9782" />
|
|
||||||
<g
|
|
||||||
transform="matrix(0.89093793,0,0,0.84489692,3.5017807,-51.565424)"
|
|
||||||
id="g3828">
|
|
||||||
<g
|
|
||||||
id="g3715">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3717"
|
|
||||||
cy="90.875"
|
|
||||||
cx="113"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3719"
|
|
||||||
cy="90.875"
|
|
||||||
cx="113"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2;stroke-linejoin:round" />
|
|
||||||
</g>
|
|
||||||
<polyline
|
|
||||||
id="polyline3721"
|
|
||||||
points="62.3563,178.566 73.5,125.854 96,151.875 113,90.875 136.5,172.375 148.831,160.03 "
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:4" />
|
|
||||||
<g
|
|
||||||
id="g3723">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3725"
|
|
||||||
cy="125.854"
|
|
||||||
cx="73.5"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3727"
|
|
||||||
cy="125.854"
|
|
||||||
cx="73.5"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3729">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3731"
|
|
||||||
cy="172.375"
|
|
||||||
cx="136.5"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3733"
|
|
||||||
cy="172.375"
|
|
||||||
cx="136.5"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3735">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3737"
|
|
||||||
cy="186.39999"
|
|
||||||
cx="60.700001"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3739"
|
|
||||||
cy="186.39999"
|
|
||||||
cx="60.700001"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3741">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3743"
|
|
||||||
cy="154.354"
|
|
||||||
cx="154.5"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3745"
|
|
||||||
cy="154.354"
|
|
||||||
cx="154.5"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
<g
|
|
||||||
id="g3747">
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3749"
|
|
||||||
cy="151.875"
|
|
||||||
cx="96"
|
|
||||||
style="fill:#000000" />
|
|
||||||
<circle
|
|
||||||
r="7.0209999"
|
|
||||||
id="ellipse3751"
|
|
||||||
cy="151.875"
|
|
||||||
cx="96"
|
|
||||||
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:2" />
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<text
|
|
||||||
xml:space="preserve"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:40px;line-height:100%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
||||||
x="35.911289"
|
|
||||||
y="155.86783"
|
|
||||||
id="text3921"
|
|
||||||
transform="scale(0.9437456,1.0596076)"><tspan
|
|
||||||
y="155.86783"
|
|
||||||
x="35.911289"
|
|
||||||
id="tspan3429">TCX</tspan></text>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 4.1 KiB |
BIN
icons/wpt.icns
Normal file
BIN
icons/wpt.ico
Normal file
After Width: | Height: | Size: 304 KiB |
1704
lang/gpxsee_pl.ts
Normal file
111
pkg/Info.plist
@ -115,6 +115,54 @@
|
|||||||
<key>CFBundleTypeRole</key>
|
<key>CFBundleTypeRole</key>
|
||||||
<string>Viewer</string>
|
<string>Viewer</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeExtensions</key>
|
||||||
|
<array>
|
||||||
|
<string>plt</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeMIMETypes</key>
|
||||||
|
<array>
|
||||||
|
<string>application/vnd.oziexplorer.plt</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeIconFile</key>
|
||||||
|
<string>icons/plt.icns</string>
|
||||||
|
<key>CFBundleTypeName</key>
|
||||||
|
<string>OziExplorer Track Point File</string>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Viewer</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeExtensions</key>
|
||||||
|
<array>
|
||||||
|
<string>rte</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeMIMETypes</key>
|
||||||
|
<array>
|
||||||
|
<string>application/vnd.oziexplorer.rte</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeIconFile</key>
|
||||||
|
<string>icons/rte.icns</string>
|
||||||
|
<key>CFBundleTypeName</key>
|
||||||
|
<string>OziExplorer Route File</string>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Viewer</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeExtensions</key>
|
||||||
|
<array>
|
||||||
|
<string>wpt</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeMIMETypes</key>
|
||||||
|
<array>
|
||||||
|
<string>application/vnd.oziexplorer.wpt</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeIconFile</key>
|
||||||
|
<string>icons/wpt.icns</string>
|
||||||
|
<key>CFBundleTypeName</key>
|
||||||
|
<string>OziExplorer Waypoint File</string>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Viewer</string>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
|
|
||||||
<key>UTImportedTypeDeclarations</key>
|
<key>UTImportedTypeDeclarations</key>
|
||||||
@ -245,6 +293,69 @@
|
|||||||
<string>application/vnd.nmea.nmea</string>
|
<string>application/vnd.nmea.nmea</string>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>UTTypeIdentifier</key>
|
||||||
|
<string>com.oziexplorer3.plt</string>
|
||||||
|
<key>UTTypeReferenceURL</key>
|
||||||
|
<string>http://www.oziexplorer3.com/eng/help/fileformats.html</string>
|
||||||
|
<key>UTTypeDescription</key>
|
||||||
|
<string>OziExplorer Track Point File</string>
|
||||||
|
<key>UTTypeConformsTo</key>
|
||||||
|
<array>
|
||||||
|
<string>public.data</string>
|
||||||
|
</array>
|
||||||
|
<key>UTTypeTagSpecification</key>
|
||||||
|
<dict>
|
||||||
|
<key>public.filename-extension</key>
|
||||||
|
<array>
|
||||||
|
<string>plt</string>
|
||||||
|
</array>
|
||||||
|
<key>public.mime-type</key>
|
||||||
|
<string>application/vnd.oziexplorer.plt</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>UTTypeIdentifier</key>
|
||||||
|
<string>com.oziexplorer3.plt</string>
|
||||||
|
<key>UTTypeReferenceURL</key>
|
||||||
|
<string>http://www.oziexplorer3.com/eng/help/fileformats.html</string>
|
||||||
|
<key>UTTypeDescription</key>
|
||||||
|
<string>OziExplorer Route File</string>
|
||||||
|
<key>UTTypeConformsTo</key>
|
||||||
|
<array>
|
||||||
|
<string>public.data</string>
|
||||||
|
</array>
|
||||||
|
<key>UTTypeTagSpecification</key>
|
||||||
|
<dict>
|
||||||
|
<key>public.filename-extension</key>
|
||||||
|
<array>
|
||||||
|
<string>rte</string>
|
||||||
|
</array>
|
||||||
|
<key>public.mime-type</key>
|
||||||
|
<string>application/vnd.oziexplorer.rte</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>UTTypeIdentifier</key>
|
||||||
|
<string>com.oziexplorer3.plt</string>
|
||||||
|
<key>UTTypeReferenceURL</key>
|
||||||
|
<string>http://www.oziexplorer3.com/eng/help/fileformats.html</string>
|
||||||
|
<key>UTTypeDescription</key>
|
||||||
|
<string>OziExplorer Waypoint File</string>
|
||||||
|
<key>UTTypeConformsTo</key>
|
||||||
|
<array>
|
||||||
|
<string>public.data</string>
|
||||||
|
</array>
|
||||||
|
<key>UTTypeTagSpecification</key>
|
||||||
|
<dict>
|
||||||
|
<key>public.filename-extension</key>
|
||||||
|
<array>
|
||||||
|
<string>wpt</string>
|
||||||
|
</array>
|
||||||
|
<key>public.mime-type</key>
|
||||||
|
<string>application/vnd.oziexplorer.wpt</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
|
|
||||||
</dict>
|
</dict>
|
||||||
|
@ -8,11 +8,11 @@
|
|||||||
<summary>GPS log file viewer and analyzer</summary>
|
<summary>GPS log file viewer and analyzer</summary>
|
||||||
<description>
|
<description>
|
||||||
<p>GPXSee is a GPS log file viewer and analyzer that supports GPX, TCX,
|
<p>GPXSee is a GPS log file viewer and analyzer that supports GPX, TCX,
|
||||||
KML, FIT, IGC and NMEA files.</p>
|
KML, FIT, IGC, NMEA and OziExplorer files.</p>
|
||||||
|
|
||||||
<p>Features:</p>
|
<p>Features:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>User-definable online maps.</li>
|
<li>User-definable online maps (OSM/Google tiles, WMTS, WMS).</li>
|
||||||
<li>Offline maps (OziExplorer maps, TrekBuddy maps/atlases, GeoTIFF
|
<li>Offline maps (OziExplorer maps, TrekBuddy maps/atlases, GeoTIFF
|
||||||
images).</li>
|
images).</li>
|
||||||
<li>Elevation, speed, heart rate, cadence, power and temperature
|
<li>Elevation, speed, heart rate, cadence, power and temperature
|
||||||
@ -21,7 +21,8 @@
|
|||||||
<li>Support for POI files.</li>
|
<li>Support for POI files.</li>
|
||||||
<li>Print/export to PDF.</li>
|
<li>Print/export to PDF.</li>
|
||||||
<li>Full-screen mode.</li>
|
<li>Full-screen mode.</li>
|
||||||
<li>Opens GPX, TCX, FIT, KML, IGC, NMEA and Garmin CSV files.</li>
|
<li>Opens GPX, TCX, FIT, KML, IGC, NMEA, OziExplorer (PLT, WPT, RTE)
|
||||||
|
and Garmin CSV files.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
@ -54,5 +55,8 @@
|
|||||||
<mimetype>application/vnd.google-earth.kml+xml</mimetype>
|
<mimetype>application/vnd.google-earth.kml+xml</mimetype>
|
||||||
<mimetype>application/vnd.fai.igc</mimetype>
|
<mimetype>application/vnd.fai.igc</mimetype>
|
||||||
<mimetype>application/vnd.nmea.nmea</mimetype>
|
<mimetype>application/vnd.nmea.nmea</mimetype>
|
||||||
|
<mimetype>application/vnd.oziexplorer.plt</mimetype>
|
||||||
|
<mimetype>application/vnd.oziexplorer.rte</mimetype>
|
||||||
|
<mimetype>application/vnd.oziexplorer.wpt</mimetype>
|
||||||
</mimetypes>
|
</mimetypes>
|
||||||
</component>
|
</component>
|
||||||
|
@ -3,6 +3,7 @@ Modified Airy,7002,6377340.189,299.3249646
|
|||||||
Australian National,7003,6378160.0,298.25
|
Australian National,7003,6378160.0,298.25
|
||||||
Bessel 1841,7004,6377397.155,299.1528128
|
Bessel 1841,7004,6377397.155,299.1528128
|
||||||
Bessel 1841 (Norway),7005,6377492.0176,299.1528
|
Bessel 1841 (Norway),7005,6377492.0176,299.1528
|
||||||
|
Clarke 1858,7007,6378293.645,294.26
|
||||||
Clarke 1866,7008,6378206.4,294.9786982
|
Clarke 1866,7008,6378206.4,294.9786982
|
||||||
Clarke 1880 (Palestine),7010,6378300.789,293.466
|
Clarke 1880 (Palestine),7010,6378300.789,293.466
|
||||||
Clarke 1880 (IGN),7011,6378249.2,293.466021
|
Clarke 1880 (IGN),7011,6378249.2,293.466021
|
||||||
@ -11,9 +12,17 @@ Everest 1830 (1937 Adjustment),7015,6377276.345,300.8017
|
|||||||
Everest 1830 Modified,7018,6377304.063,300.8017
|
Everest 1830 Modified,7018,6377304.063,300.8017
|
||||||
GRS 80,7019,6378137.0,298.257222101
|
GRS 80,7019,6378137.0,298.257222101
|
||||||
Helmert 1906,7020,6378200.0,298.3
|
Helmert 1906,7020,6378200.0,298.3
|
||||||
|
Indonesian National Spheroid,7021,6378160.0,298.247
|
||||||
International 1924,7022,6378388.0,297.0
|
International 1924,7022,6378388.0,297.0
|
||||||
Krassovsky 1940,7024,6378245.0,298.3
|
Krassovsky 1940,7024,6378245.0,298.3
|
||||||
|
War Office,7029,6378300.0,296.0
|
||||||
South American 1969,7036,6378160.0,298.25
|
South American 1969,7036,6378160.0,298.25
|
||||||
WGS 72,7043,6378135.0,298.26
|
WGS 72,7043,6378135.0,298.26
|
||||||
|
Everest 1830 (1962 Definition),7044,6377301.243,300.8017255
|
||||||
|
Everest 1830 (1975 Definition),7045,6377299.151,300.8017255
|
||||||
Bessel 1841 (Namibia),7046,6377483.865,299.1528128
|
Bessel 1841 (Namibia),7046,6377483.865,299.1528128
|
||||||
|
GRS 1967 Modified,7050,6378160.0,298.25
|
||||||
|
Danish 1876,7051,6377019.27,300.0
|
||||||
Hough 1960,7053,6378270.0,297.0
|
Hough 1960,7053,6378270.0,297.0
|
||||||
|
Clarke 1880 (international foot),7055,6378306.370,293.4663077
|
||||||
|
PZ-90,7054,6378136.0,298.257839303
|
||||||
|
|
497
pkg/csv/gcs.csv
@ -1,123 +1,374 @@
|
|||||||
Adindan,4201,6201,9122,7012,8901,9603,-162,-12,206
|
HD1909,3819,1024,9122,7004,8901,9607,595.48,121.69,515.35,-4.115,2.9383,-0.853,-3.408
|
||||||
Afgooye,4205,6205,9122,7024,8901,9603,-43,-163,45
|
TWD97,3824,1026,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Ain el Abd 1970,4204,6204,9122,7022,8901,9603,-150,-251,-2
|
IGRS,3889,1029,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Anna 1 Astro 1965,4708,6708,9122,7003,8901,9603,-491,-22,435
|
Hermannskogel,3906,1031,9122,7004,8901,9603,653,-212,449,,,,
|
||||||
Arc 1950,4209,6209,9122,7012,8901,9603,-143,-90,-294
|
MOLDREF99,4023,1032,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Arc 1960,4210,6210,9122,7012,8901,9603,-160,-8,-300
|
RGRDC 2005,4046,1033,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Ascension Island 1958,4712,6712,9122,7022,8901,9603,-207,107,52
|
SREF98,4075,1034,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Astro B4 Sorol Atoll,4707,6707,9122,7022,8901,9603,114,-116,-333
|
REGCAN95,4081,1035,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Astro Beacon 1945,4709,6709,9122,7022,8901,9603,145,75,-272
|
GGRS 87,4121,6121,9122,7019,8901,9603,-199.87,74.79,246.62,,,,
|
||||||
Astro DOS 71/4,4710,6710,9122,7022,8901,9603,-320,550,-494
|
Finland Hayford,4123,6123,9122,7022,8901,9603,-78,-231,-97,,,,
|
||||||
Astronomic Stn 1952,4711,6711,9122,7022,8901,9603,124,-234,-25
|
RT 90,4124,6124,9122,7004,8901,9603,498,-36,568,,,,
|
||||||
Australian Geodetic 1966,4202,6202,9122,7003,8901,9603,-133,-48,148
|
Samboja,4125,6125,9108,7004,8901,9603,-404.78,685.68,45.47,,,,
|
||||||
Australian Geodetic 1984,4203,6203,9122,7003,8901,9603,-134,-48,149
|
Tete,4127,6127,9122,7008,8901,9603,-80,-100,-228,,,,
|
||||||
Australian Geocentric 1994 (GDA94),4283,6283,9122,7019,8901,9603,0,0,0
|
Observatario,4129,6129,9122,7008,8901,9603,-132,-110,-335,,,,
|
||||||
Austrian,4312,6312,9122,7004,8901,9603,594,84,471
|
Moznet,4130,6130,9122,7030,8901,9607,0,0,0,0,0,0,0
|
||||||
Bellevue (IGN),4714,6714,9122,7022,8901,9603,-127,-769,472
|
Indian 1960,4131,6131,9122,7015,8901,9603,198,881,317,,,,
|
||||||
Bermuda 1957,4216,6216,9122,7008,8901,9603,-73,213,296
|
FD58,4132,6132,9122,7012,8901,9603,-241.54,-163.64,396.06,,,,
|
||||||
Bogota Observatory,4218,6218,9122,7022,8901,9603,307,304,-318
|
EST92,4133,6133,9122,7019,8901,9607,0.055,-0.541,-0.185,-0.0183,0.0003,0.007,-0.014
|
||||||
Campo Inchauspe,4221,6221,9122,7022,8901,9603,-148,136,90
|
PSD93,4134,6134,9122,7012,8901,9606,-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006
|
||||||
Canton Astro 1966,4716,6716,9122,7022,8901,9603,298,-304,-375
|
Old Hawaiian,4135,6135,9122,7008,8901,9603,61,-285,-181,,,,
|
||||||
Cape,4222,6222,9122,7012,8901,9603,-136,-108,-292
|
Puerto Rico,4139,6139,9122,7008,8901,9603,11,72,-101,,,,
|
||||||
Cape Canaveral,4717,6717,9122,7008,8901,9603,-2,150,181
|
NAD83(CSRS98),4140,6140,9108,7019,8901,9603,0,0,0,,,,
|
||||||
Carthage,4223,6223,9122,7012,8901,9603,-263,6,431
|
Israel 1993,4141,6141,9122,7019,8901,9603,-48,55,52,,,,
|
||||||
CH-1903,4149,6149,9122,7004,8901,9603,674.374,15.056,405.343
|
Locodjo 1965,4142,6142,9122,7012,8901,9603,-125,53,467,,,,
|
||||||
Chatham 1971,4672,6672,9122,7022,8901,9603,175,-38,113
|
Abidjan 1987,4143,6143,9122,7012,8901,9603,-124.76,53,466.79,,,,
|
||||||
Chua Astro,4224,6224,9122,7022,8901,9603,-134,229,-29
|
Kalianpur 1937,4144,6144,9122,7015,8901,9603,214,804,268,,,,
|
||||||
Corrego Alegre,4225,6225,9122,7022,8901,9603,-206,172,-6
|
Kalianpur 1962,4145,6145,9122,7044,8901,9603,283,682,231,,,,
|
||||||
Djakarta (Batavia),4211,6211,9122,7004,8901,9603,-377,681,-50
|
Kalianpur 1975,4146,6146,9122,7045,8901,9603,295,736,257,,,,
|
||||||
DOS 1968,,,9122,7022,8901,9603,230,-199,-752
|
Hanoi 1972,4147,6147,9122,7024,8901,9603,-17.51,-108.32,-62.39,,,,
|
||||||
Easter Island 1967,4719,6719,9122,7022,8901,9603,211,147,111
|
Hartebeeshoek94,4148,6148,9122,7030,8901,9603,0,0,0,,,,
|
||||||
Egypt,4199,6199,9122,7022,8901,9603,-130,-117,-151
|
CH-1903,4149,6149,9122,7004,8901,9603,674.374,15.056,405.343,,,,
|
||||||
ETRS 89,4258,6258,9122,7019,8901,9603,0,0,0
|
CH1903+,4150,6150,9122,7004,8901,9603,674.374,15.056,405.346,,,,
|
||||||
European 1950,4230,6230,9122,7022,8901,9603,-87,-98,-121
|
CHTRF95,4151,6151,9122,7019,8901,9603,0,0,0,,,,
|
||||||
European 1950 (Mean France),,,9122,7022,8901,9603,-87,-96,-120
|
NAD83(HARN),4152,6152,9122,7019,8901,9603,0,0,0,,,,
|
||||||
European 1950 (Spain and Portugal),,,9122,7022,8901,9603,-84,-107,-120
|
Rassadiran,4153,6153,9122,7022,8901,9603,-133.63,-157.5,-158.62,,,,
|
||||||
European 1979,4668,6668,9122,7022,8901,9603,-86,-98,-119
|
ED50(ED77),4154,6154,9122,7022,8901,9603,-117,-132,-164,,,,
|
||||||
Finland Hayford,4123,6123,9122,7022,8901,9603,-78,-231,-97
|
Dabola 1981,4155,6155,9122,7011,8901,9603,-83,37,124,,,,
|
||||||
Gandajika Base,4233,6233,9122,7022,8901,9603,-133,-321,50
|
S-JTSK,4156,6156,9122,7004,8901,9603,589,76,480,,,,
|
||||||
Geodetic Datum 1949,4272,6272,9122,7022,8901,9603,84,-22,209
|
Naparima 1955,4158,6158,9122,7022,8901,9603,-0.465,372.095,171.736,,,,
|
||||||
GGRS 87,4121,6121,9122,7019,8901,9603,-199.87,74.79,246.62
|
ELD79,4159,6159,9122,7022,8901,9603,-115.8543,-99.0583,-152.4616,,,,
|
||||||
Guam 1963,4675,6675,9122,7008,8901,9603,-100,-248,259
|
Pampa del Castillo,4161,6161,9122,7022,8901,9603,27.5,14,186.4,,,,
|
||||||
GUX 1 Astro,4718,6718,9122,7022,8901,9603,252,-209,-751
|
Yemen NGN96,4163,6163,9122,7030,8901,9603,0,0,0,,,,
|
||||||
Hartebeeshoek94,4148,6148,9122,7030,8901,9603,0,0,0
|
South Yemen,4164,6164,9122,7024,8901,9603,-76,-138,67,,,,
|
||||||
Hermannskogel,3906,1031,9122,7004,8901,9603,653,-212,449
|
Bissau,4165,6165,9122,7022,8901,9603,-173,253,27,,,,
|
||||||
Hjorsey 1955,4658,6658,9122,7022,8901,9603,-73,46,-86
|
Korean 1995,4166,6166,9122,7030,8901,9603,0,0,0,,,,
|
||||||
Hong Kong 1963,4739,6739,9122,7022,8901,9603,-156,-271,-189
|
NZGD2000,4167,6167,9122,7030,8901,9603,0,0,0,,,,
|
||||||
Hu-Tzu-Shan,4236,6236,9122,7022,8901,9603,-634,-549,-201
|
Accra,4168,6168,9122,7029,8901,9603,-199,32,322,,,,
|
||||||
Indian Bangladesh,4682,6682,9122,7015,8901,9603,289,734,257
|
American Samoa 1962,4169,6169,9122,7008,8901,9603,-115,118,426,,,,
|
||||||
Indian Thailand,4240,6240,9122,7015,8901,9603,214,836,303
|
SIRGAS 1995,4170,6170,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Israeli,4281,6281,9122,7010,8901,9603,-235,-85,264
|
RGF93,4171,6171,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Ireland 1965,4299,6299,9122,7002,8901,9603,506,-122,611
|
POSGAR,4172,6172,9108,7019,8901,9603,0,0,0,,,,
|
||||||
ISTS 073 Astro 1969,4724,6724,9122,7022,8901,9603,208,-435,-229
|
IRENET95,4173,6173,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Johnston Island,4725,6725,9122,7022,8901,9603,191,-77,-204
|
Sierra Leone 1968,4175,6175,9122,7012,8901,9603,-88,4,101,,,,
|
||||||
Kandawala,4244,6244,9122,7015,8901,9603,-97,787,86
|
Australian Antarctic,4176,6176,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Kerguelen Island,4698,6698,9122,7022,8901,9603,145,-187,103
|
S42 (83),4178,6178,9122,7024,8901,9603,26,-121,-78,,,,
|
||||||
Kertau 1948,4245,6245,9122,7018,8901,9603,-11,851,5
|
S42,4179,6179,9122,7024,8901,9603,28,-121,-77,,,,
|
||||||
L.C. 5 Astro,4726,6726,9122,7008,8901,9603,42,124,147
|
EST97,4180,6180,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Liberia 1964,4251,6251,9122,7012,8901,9603,-90,40,88
|
Luxembourg 1930,4181,6181,9122,7022,8901,9607,-189.6806,18.3463,-42.7695,0.33746,3.09264,-2.53861,0.4598
|
||||||
Luzon Mindanao,,,9122,7008,8901,9603,-133,-79,-72
|
Observatorio 1966,4182,6182,9122,7022,8901,9603,-425,-169,81,,,,
|
||||||
Luzon Philippines,4253,6253,9122,7008,8901,9603,-133,-77,-51
|
Southwest Base,4183,6183,9122,7022,8901,9603,-104,167,-38,,,,
|
||||||
Mahe 1971,4256,6256,9122,7012,8901,9603,41,-220,-134
|
Sao Braz,4184,6184,9122,7022,8901,9603,-203,141,53,,,,
|
||||||
Marco Astro,4616,6616,9122,7022,8901,9603,-289,-124,60
|
OSNI 1952,4188,6188,9122,7001,8901,9606,482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15
|
||||||
Massawa,4262,6262,9122,7004,8901,9603,639,405,60
|
REGVEN,4189,6189,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Merchich,4261,6261,9122,7012,8901,9603,31,146,47
|
POSGAR 98,4190,6190,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Midway Astro 1961,4727,6727,9122,7022,8901,9603,912,-58,1227
|
Albanian 1987,4191,6191,9122,7024,8901,9607,-44.183,-0.58,-38.489,-2.3867,-2.7072,3.5196,-8.2703
|
||||||
Minna,4263,6263,9122,7012,8901,9603,-92,-93,122
|
Douala 1948,4192,6192,9122,7022,8901,9603,-206.1,-174.7,-87.7,,,,
|
||||||
NAD27 Alaska,,,9122,7008,8901,9603,-5,135,172
|
Manoca 1962,4193,6193,9122,7011,8901,9603,-70.9,-151.8,-41.4,,,,
|
||||||
NAD27 Bahamas,,,9122,7008,8901,9603,-4,154,178
|
Qornoq 1927,4194,6194,9122,7022,8901,9603,164,138,-189,,,,
|
||||||
NAD27 Canada,,,9122,7008,8901,9603,-10,158,187
|
Scoresbysund 1952,4195,6195,9122,7022,8901,9606,105,326,-102.5,0,0,0.814,-0.6
|
||||||
NAD27 Canal Zone,,,9122,7008,8901,9603,0,125,201
|
Ammassalik 1958,4196,6196,9122,7022,8901,9606,-45,417,-3.5,0,0,0.814,-0.6
|
||||||
NAD27 Caribbean,,,9122,7008,8901,9603,-3,142,183
|
Egypt,4199,6199,9122,7022,8901,9603,-130,-117,-151,,,,
|
||||||
NAD27 Central,,,9122,7008,8901,9603,0,125,194
|
Pulkovo 1995,4200,6200,9122,7024,8901,9607,24.47,-130.89,-81.56,0,0,-0.13,-0.22
|
||||||
NAD27 CONUS,4267,6267,9122,7008,8901,9603,-8,160,176
|
Adindan,4201,6201,9122,7012,8901,9603,-162,-12,206,,,,
|
||||||
NAD27 Cuba,,,9122,7008,8901,9603,-9,152,178
|
Australian Geodetic 1966,4202,6202,9122,7003,8901,9603,-133,-48,148,,,,
|
||||||
NAD27 Greenland,,,9122,7008,8901,9603,11,114,195
|
Australian Geodetic 1984,4203,6203,9122,7003,8901,9603,-134,-48,149,,,,
|
||||||
NAD27 Mexico,,,9122,7008,8901,9603,-12,130,190
|
Ain el Abd 1970,4204,6204,9122,7022,8901,9603,-150,-251,-2,,,,
|
||||||
NAD27 San Salvador,,,9122,7008,8901,9603,1,140,165
|
Afgooye,4205,6205,9122,7024,8901,9603,-43,-163,45,,,,
|
||||||
NAD83,4269,6269,9122,7019,8901,9603,0,0,0
|
Lisbon,4207,6207,9122,7022,8901,9603,-304.046,-60.576,103.64,,,,
|
||||||
Nahrwn Masirah Ilnd,,,9122,7012,8901,9603,-247,-148,369
|
Aratu,4208,6208,9122,7022,8901,9603,-151.99,287.04,-147.45,,,,
|
||||||
Nahrwn Saudi Arbia,,,9122,7012,8901,9603,-231,-196,482
|
Arc 1950,4209,6209,9122,7012,8901,9603,-143,-90,-294,,,,
|
||||||
Nahrwn United Arab,4270,6270,9122,7012,8901,9603,-249,-156,381
|
Arc 1960,4210,6210,9122,7012,8901,9603,-160,-8,-300,,,,
|
||||||
Naparima BWI,4271,6271,9122,7022,8901,9603,-2,374,172
|
Djakarta (Batavia),4211,6211,9122,7004,8901,9603,-377,681,-50,,,,
|
||||||
NGO1948,4273,6273,9122,7005,8901,9603,315,-217,528
|
Barbados 1938,4212,6212,9122,7012,8901,9603,31.95,300.99,419.19,,,,
|
||||||
NTF France,4275,6275,9122,7011,8901,9603,-168,-60,320
|
Beduaram,4213,6213,9122,7011,8901,9603,-106,-87,188,,,,
|
||||||
Norsk,4817,6817,9122,7005,8913,9603,278,93,474
|
Beijing 1954,4214,6214,9122,7024,8901,9603,15.8,-154.4,-82.3,,,,
|
||||||
NZGD1949,4272,6272,9122,7022,8901,9603,84,-22,209
|
Bermuda 1957,4216,6216,9122,7008,8901,9603,-73,213,296,,,,
|
||||||
NZGD2000,4167,6167,9122,7030,8901,9603,0,0,0
|
Bogota Observatory,4218,6218,9122,7022,8901,9603,307,304,-318,,,,
|
||||||
Observatorio 1966,4182,6182,9122,7022,8901,9603,-425,-169,81
|
Bukit Rimpah,4219,6219,9122,7004,8901,9603,-384,664,-48,,,,
|
||||||
Old Egyptian,4229,6229,9122,7020,8901,9603,-130,110,-13
|
Camacupa,4220,6220,9122,7012,8901,9603,-50.9,-347.6,-231,,,,
|
||||||
Old Hawaiian,4135,6135,9122,7008,8901,9603,61,-285,-181
|
Campo Inchauspe,4221,6221,9122,7022,8901,9603,-148,136,90,,,,
|
||||||
Oman,4232,6232,9122,7012,8901,9603,-346,-1,224
|
Cape,4222,6222,9122,7012,8901,9603,-136,-108,-292,,,,
|
||||||
Ord Srvy Grt Britn,4277,6277,9122,7001,8901,9603,375,-111,431
|
Carthage,4223,6223,9122,7012,8901,9603,-263,6,431,,,,
|
||||||
Pico De Las Nieves,4728,6728,9122,7022,8901,9603,-307,-92,127
|
Chua Astro,4224,6224,9122,7022,8901,9603,-134,229,-29,,,,
|
||||||
Pitcairn Astro 1967,4729,6729,9122,7022,8901,9603,185,165,42
|
Corrego Alegre,4225,6225,9122,7022,8901,9603,-206,172,-6,,,,
|
||||||
Potsdam Rauenberg DHDN,4314,6314,9122,7004,8901,9603,606,23,413
|
Deir ez Zor,4227,6227,9122,7011,8901,9603,-190.421,8.532,238.69,,,,
|
||||||
Prov So Amrican 1956,4248,6248,9122,7022,8901,9603,-288,175,-376
|
Old Egyptian,4229,6229,9122,7020,8901,9603,-130,110,-13,,,,
|
||||||
Prov So Chilean 1963,4254,6254,9122,7022,8901,9603,16,196,93
|
European 1950,4230,6230,9122,7022,8901,9603,-87,-98,-121,,,,
|
||||||
Puerto Rico,4139,6139,9122,7008,8901,9603,11,72,-101
|
ED87,4231,6231,9122,7022,8901,9606,-83.11,-97.38,-117.22,0.005693,-0.044698,0.044285,0.1218
|
||||||
Pulkovo 1942 (1),4284,6284,9122,7024,8901,9603,28,-130,-95
|
Oman,4232,6232,9122,7012,8901,9603,-346,-1,224,,,,
|
||||||
Pulkovo 1942 (2),,,9122,7024,8901,9603,28,-130,-95
|
Gandajika Base,4233,6233,9122,7022,8901,9603,-133,-321,50,,,,
|
||||||
Qatar National,4285,6285,9122,7022,8901,9603,-128,-283,22
|
Hu-Tzu-Shan,4236,6236,9122,7022,8901,9603,-634,-549,-201,,,,
|
||||||
Qornoq,4287,6287,9108,7022,8901,9603,164,138,-189
|
HD72,4237,6237,9122,7036,8901,9603,52.17,-71.82,-14.9,,,,
|
||||||
Reunion,4626,6626,9122,7022,8901,9603,94,-948,-1262
|
ID74,4238,6238,9122,7021,8901,9603,-24,-15,5,,,,
|
||||||
Rijksdriehoeksmeting,4289,6289,9122,7004,8901,9603,593,26,478
|
Indian 1954,4239,6239,9122,7015,8901,9603,217,823,299,,,,
|
||||||
Rome 1940,4806,6806,9122,7022,8906,9603,-225,-65,9
|
Indian Thailand,4240,6240,9122,7015,8901,9603,214,836,303,,,,
|
||||||
RT 90,4124,6124,9122,7004,8901,9603,498,-36,568
|
JAD69,4242,6242,9122,7008,8901,9603,70,207,389.5,,,,
|
||||||
S42,4179,6179,9122,7024,8901,9603,28,-121,-77
|
Kandawala,4244,6244,9122,7015,8901,9603,-97,787,86,,,,
|
||||||
S42 (83),4178,6178,9122,7024,8901,9603,26,-121,-78
|
Kertau 1948,4245,6245,9122,7018,8901,9603,-11,851,5,,,,
|
||||||
Santo (DOS),4730,6730,9122,7022,8901,9603,170,42,84
|
KOC,4246,6246,9122,7012,8901,9603,-294.7,-200.1,525.5,,,,
|
||||||
Sao Braz,4184,6184,9122,7022,8901,9603,-203,141,53
|
La Canoa,4247,6247,9122,7022,8901,9603,-273.5,110.6,-357.9,,,,
|
||||||
Sapper Hill 1943,4292,6292,9122,7022,8901,9603,-355,16,74
|
Prov So Amrican 1956,4248,6248,9122,7022,8901,9603,-288,175,-376,,,,
|
||||||
Schwarzeck,4293,6293,9122,7046,8901,9603,616,97,-251
|
Leigon,4250,6250,9122,7012,8901,9603,-130,29,364,,,,
|
||||||
South American 1969,4291,6291,9108,7036,8901,9603,-57,1,-41
|
Liberia 1964,4251,6251,9122,7012,8901,9603,-90,40,88,,,,
|
||||||
Southeast Base,4615,6615,9122,7022,8901,9603,-499,-249,314
|
Luzon Philippines,4253,6253,9122,7008,8901,9603,-133,-77,-51,,,,
|
||||||
Southwest Base,4183,6183,9122,7022,8901,9603,-104,167,-38
|
Prov So Chilean 1963,4254,6254,9122,7022,8901,9603,16,196,93,,,,
|
||||||
Timbalai 1948,4298,6298,9122,7015,8901,9603,-689,691,-46
|
Herat North,4255,6255,9122,7022,8901,9603,-333,-222,114,,,,
|
||||||
Tokyo,4301,6301,9122,7004,8901,9603,-128,481,664
|
Mahe 1971,4256,6256,9122,7012,8901,9603,41,-220,-134,,,,
|
||||||
Tristan Astro 1968,4734,6734,9122,7022,8901,9603,-632,438,-609
|
Makassar,4257,6257,9122,7004,8901,9603,-587.8,519.75,145.76,,,,
|
||||||
Viti Levu 1916,4731,6731,9122,7012,8901,9603,51,391,-36
|
ETRS 89,4258,6258,9122,7019,8901,9603,0,0,0,,,,
|
||||||
Wake-Eniwetok 1960,4732,6732,9122,7053,8901,9603,101,52,-39
|
Malongo 1987,4259,6259,9122,7022,8901,9603,-254.1,-5.36,-100.29,,,,
|
||||||
WGS 72,4322,6322,9122,7043,8901,9603,0,0,5
|
Manoca,4260,6260,9108,7012,8901,9603,-70.9,-151.8,-41.4,,,,
|
||||||
Yacare,4309,6309,9122,7022,8901,9603,-155,171,37
|
Merchich,4261,6261,9122,7012,8901,9603,31,146,47,,,,
|
||||||
Zanderij,4311,6311,9122,7022,8901,9603,-265,120,-358
|
Massawa,4262,6262,9122,7004,8901,9603,639,405,60,,,,
|
||||||
|
Minna,4263,6263,9122,7012,8901,9603,-92,-93,122,,,,
|
||||||
|
Mhast,4264,6264,9122,7022,8901,9603,-252.95,-4.11,-96.38,,,,
|
||||||
|
Monte Mario,4265,6265,9122,7022,8901,9606,-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68
|
||||||
|
M'poraloko,4266,6266,9122,7011,8901,9603,-74,-130,42,,,,
|
||||||
|
NAD27 CONUS,4267,6267,9122,7008,8901,9603,-8,160,176,,,,
|
||||||
|
NAD83,4269,6269,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Nahrwn United Arab,4270,6270,9122,7012,8901,9603,-249,-156,381,,,,
|
||||||
|
Naparima BWI,4271,6271,9122,7022,8901,9603,-2,374,172,,,,
|
||||||
|
Geodetic Datum 1949,4272,6272,9122,7022,8901,9603,84,-22,209,,,,
|
||||||
|
NZGD1949,4272,6272,9122,7022,8901,9603,84,-22,209,,,,
|
||||||
|
NGO1948,4273,6273,9122,7005,8901,9603,315,-217,528,,,,
|
||||||
|
Datum 73,4274,6274,9122,7022,8901,9603,-223.237,110.193,36.649,,,,
|
||||||
|
NTF France,4275,6275,9122,7011,8901,9603,-168,-60,320,,,,
|
||||||
|
Ord Srvy Grt Britn,4277,6277,9122,7001,8901,9603,375,-111,431,,,,
|
||||||
|
Israeli,4281,6281,9122,7010,8901,9603,-235,-85,264,,,,
|
||||||
|
Pointe Noire,4282,6282,9122,7011,8901,9603,-148,51,-291,,,,
|
||||||
|
Australian Geocentric 1994 (GDA94),4283,6283,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Pulkovo 1942 (1),4284,6284,9122,7024,8901,9603,28,-130,-95,,,,
|
||||||
|
Qatar National,4285,6285,9122,7022,8901,9603,-128,-283,22,,,,
|
||||||
|
Qornoq,4287,6287,9108,7022,8901,9603,164,138,-189,,,,
|
||||||
|
Rijksdriehoeksmeting,4289,6289,9122,7004,8901,9603,593,26,478,,,,
|
||||||
|
South American 1969,4291,6291,9108,7036,8901,9603,-57,1,-41,,,,
|
||||||
|
Sapper Hill 1943,4292,6292,9122,7022,8901,9603,-355,16,74,,,,
|
||||||
|
Schwarzeck,4293,6293,9122,7046,8901,9603,616,97,-251,,,,
|
||||||
|
Segora,4294,6294,9108,7004,8901,9603,-403,684,41,,,,
|
||||||
|
Tananarive,4297,6297,9122,7022,8901,9603,-189,-242,-91,,,,
|
||||||
|
Timbalai 1948,4298,6298,9122,7015,8901,9603,-689,691,-46,,,,
|
||||||
|
Ireland 1965,4299,6299,9122,7002,8901,9603,506,-122,611,,,,
|
||||||
|
TM75,4300,6300,9122,7002,8901,9606,482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15
|
||||||
|
Tokyo,4301,6301,9122,7004,8901,9603,-128,481,664,,,,
|
||||||
|
Trinidad 1903,4302,6302,9122,7007,8901,9603,-61.702,284.488,472.052,,,,
|
||||||
|
Voirol 1875,4304,6304,9122,7011,8901,9603,-73,-247,227,,,,
|
||||||
|
Nord Sahara 1959,4307,6307,9122,7012,8901,9606,-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547
|
||||||
|
Yacare,4309,6309,9122,7022,8901,9603,-155,171,37,,,,
|
||||||
|
Yoff,4310,6310,9122,7011,8901,9603,-30,190,89,,,,
|
||||||
|
Zanderij,4311,6311,9122,7022,8901,9603,-265,120,-358,,,,
|
||||||
|
Austrian,4312,6312,9122,7004,8901,9603,594,84,471,,,,
|
||||||
|
Belge 1972,4313,6313,9122,7022,8901,9607,-106.8686,52.2978,-103.7239,-0.3366,0.457,-1.8422,-1.2747
|
||||||
|
Potsdam Rauenberg DHDN,4314,6314,9122,7004,8901,9603,606,23,413,,,,
|
||||||
|
Conakry 1905,4315,6315,9122,7011,8901,9603,-23,259,-9,,,,
|
||||||
|
Dealul Piscului 1930,4316,6316,9122,7022,8901,9603,103.25,-100.4,-307.19,,,,
|
||||||
|
Dealul Piscului 1970,4317,6317,9122,7024,8901,9603,28,-121,-77,,,,
|
||||||
|
NGN,4318,6318,9122,7030,8901,9603,-3.2,-5.7,2.8,,,,
|
||||||
|
KUDAMS,4319,6319,9122,7019,8901,9603,-20.8,11.3,2.4,,,,
|
||||||
|
WGS 72,4322,6322,9122,7043,8901,9603,0,0,5,,,,
|
||||||
|
WGS 72BE,4324,6324,9122,7043,8901,9606,0,0,1.9,0,0,0.814,-0.38
|
||||||
|
RGSPM06,4463,1038,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
RGM04,4470,1036,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Cadastre 1997,4475,1037,9122,7022,8901,9603,-381.788,-57.501,-256.673,,,,
|
||||||
|
Mexico ITRF92,4483,1042,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
RRAF 1991,4558,1047,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Antigua 1943,4601,6601,9122,7012,8901,9603,-255,-15,71,,,,
|
||||||
|
Dominica 1945,4602,6602,9122,7012,8901,9603,725,685,536,,,,
|
||||||
|
Grenada 1953,4603,6603,9122,7012,8901,9603,72,213.7,93,,,,
|
||||||
|
Montserrat 1958,4604,6604,9122,7012,8901,9603,174,359,365,,,,
|
||||||
|
St. Kitts 1955,4605,6605,9122,7012,8901,9603,9,183,236,,,,
|
||||||
|
St. Lucia 1955,4606,6606,9122,7012,8901,9603,-149,128,296,,,,
|
||||||
|
St. Vincent 1945,4607,6607,9122,7012,8901,9603,195.671,332.517,274.607,,,,
|
||||||
|
Hong Kong 1980,4611,6611,9122,7022,8901,9606,-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246
|
||||||
|
JGD2000,4612,6612,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Segara,4613,6613,9122,7004,8901,9603,-403,684,41,,,,
|
||||||
|
QND95,4614,6614,9122,7022,8901,9606,-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065
|
||||||
|
Southeast Base,4615,6615,9122,7022,8901,9603,-499,-249,314,,,,
|
||||||
|
Marco Astro,4616,6616,9122,7022,8901,9603,-289,-124,60,,,,
|
||||||
|
NAD83(CSRS),4617,6140,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
SAD69,4618,6618,9122,7050,8901,9603,-66.87,4.37,-38.52,,,,
|
||||||
|
SWEREF99,4619,6619,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Point 58,4620,6620,9122,7012,8901,9603,-106,-129,165,,,,
|
||||||
|
Fort Marigot,4621,6621,9122,7022,8901,9603,137,248,-430,,,,
|
||||||
|
Guadeloupe 1948,4622,6622,9122,7022,8901,9603,-467,-16,-300,,,,
|
||||||
|
CSG67,4623,6623,9122,7022,8901,9603,-186,230,110,,,,
|
||||||
|
RGFG95,4624,6624,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Martinique 1938,4625,6625,9122,7022,8901,9603,186,482,151,,,,
|
||||||
|
Reunion,4626,6626,9122,7022,8901,9603,94,-948,-1262,,,,
|
||||||
|
RGR92,4627,6627,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Tahiti 52,4628,6628,9122,7022,8901,9603,162,117,154,,,,
|
||||||
|
Tahaa 54,4629,6629,9122,7022,8901,9607,72.438,345.918,79.486,-1.6045,-0.8823,-0.5565,1.3746
|
||||||
|
IGN72 Nuku Hiva,4630,6630,9122,7022,8901,9603,84,274,65,,,,
|
||||||
|
K0 1949,4631,6631,9122,7022,8901,9603,145,-187,103,,,,
|
||||||
|
Combani 1950,4632,6632,9122,7022,8901,9603,-382,-59,-262,,,,
|
||||||
|
IGN56 Lifou,4633,6633,9122,7022,8901,9603,335.47,222.58,-230.94,,,,
|
||||||
|
IGN72 Grand Terre,4634,6634,9108,7022,8901,9603,-13,-348,292,,,,
|
||||||
|
ST87 Ouvea,4635,6635,9122,7022,8901,9606,-122.383,-188.696,103.344,3.5107,-4.9668,-5.7047,4.4798
|
||||||
|
Petrels 1972,4636,6636,9122,7022,8901,9603,365,194,166,,,,
|
||||||
|
Perroud 1950,4637,6637,9122,7022,8901,9603,325,154,172,,,,
|
||||||
|
Saint Pierre et Miquelon 1950,4638,6638,9122,7008,8901,9603,30,430,368,,,,
|
||||||
|
MOP78,4639,6639,9122,7022,8901,9603,253,-132,-127,,,,
|
||||||
|
RRAF 1991,4640,6640,9122,7030,8901,9603,0,0,0,,,,
|
||||||
|
IGN53 Mare,4641,6641,9122,7022,8901,9603,287.58,177.78,-135.41,,,,
|
||||||
|
ST84 Ile des Pins,4642,6642,9122,7022,8901,9603,-13,-348,292,,,,
|
||||||
|
ST71 Belep,4643,6643,9122,7022,8901,9606,-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002
|
||||||
|
NEA74 Noumea,4644,6644,9122,7022,8901,9603,-10.18,-350.43,291.37,,,,
|
||||||
|
RGNC 1991,4645,6645,9122,7022,8901,9603,0,0,0,,,,
|
||||||
|
Grand Comoros,4646,6646,9122,7022,8901,9603,-963,510,-359,,,,
|
||||||
|
Reykjavik 1900,4657,6657,9122,7051,8901,9603,-28,199,5,,,,
|
||||||
|
Hjorsey 1955,4658,6658,9122,7022,8901,9603,-73,46,-86,,,,
|
||||||
|
ISN93,4659,6659,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Helle 1954,4660,6660,9122,7022,8901,9606,982.6087,552.753,-540.873,6.6816266,-31.6114924,-19.84816,16.805
|
||||||
|
LKS92,4661,6661,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
IGN72 Grande Terre,4662,6634,9122,7022,8901,9603,-11.64,-348.6,291.98,,,,
|
||||||
|
Porto Santo 1995,4663,6663,9122,7022,8901,9603,-502.862,-247.438,312.724,,,,
|
||||||
|
Azores Oriental 1995,4664,6664,9122,7022,8901,9603,-204.619,140.176,55.226,,,,
|
||||||
|
Azores Central 1995,4665,6665,9122,7022,8901,9603,-106.226,166.366,-37.893,,,,
|
||||||
|
Lisbon 1890,4666,6666,9122,7004,8901,9603,508.088,-191.042,565.223,,,,
|
||||||
|
IKBD-92,4667,6667,9122,7030,8901,9603,0,0,0,,,,
|
||||||
|
European 1979,4668,6668,9122,7022,8901,9603,-86,-98,-119,,,,
|
||||||
|
LKS94,4669,6126,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
IGM95,4670,6670,9122,7030,8901,9603,0,0,0,,,,
|
||||||
|
Chatham 1971,4672,6672,9122,7022,8901,9603,175,-38,113,,,,
|
||||||
|
Chatham Islands 1979,4673,6673,9122,7022,8901,9607,174.05,-25.49,112.57,0,0,-0.554,0.2263
|
||||||
|
SIRGAS 2000,4674,6674,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Guam 1963,4675,6675,9122,7008,8901,9603,-100,-248,259,,,,
|
||||||
|
Lao 1997,4678,6678,9122,7024,8901,9603,44.585,-131.212,-39.544,,,,
|
||||||
|
Jouik 1961,4679,6679,9122,7012,8901,9603,-80.01,253.26,291.19,,,,
|
||||||
|
Nouakchott 1965,4680,6680,9122,7012,8901,9603,124.5,-63.5,-281,,,,
|
||||||
|
Indian Bangladesh,4682,6682,9122,7015,8901,9603,289,734,257,,,,
|
||||||
|
PRS92,4683,6683,9122,7008,8901,9607,-127.62,-67.24,-47.04,3.068,-4.903,-1.578,-1.06
|
||||||
|
Gan 1970,4684,6684,9122,7022,8901,9603,-133,-321,50,,,,
|
||||||
|
MAGNA-SIRGAS,4686,6686,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
RGPF,4687,6687,9122,7019,8901,9607,0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093
|
||||||
|
Fatu Iva 72,4688,6688,9122,7022,8901,9607,347.103,1078.125,2623.922,33.8875,-70.6773,9.3943,186.074
|
||||||
|
IGN63 Hiva Oa,4689,6689,9122,7022,8901,9607,410.721,55.049,80.746,-2.5779,-2.3514,-0.6664,17.3311
|
||||||
|
Tahiti 79,4690,6690,9122,7022,8901,9607,221.525,152.948,176.768,2.3847,1.3896,0.877,11.4741
|
||||||
|
Moorea 87,4691,6691,9122,7022,8901,9607,215.525,149.593,176.229,3.2624,1.692,1.1571,10.4773
|
||||||
|
Maupiti 83,4692,6692,9122,7022,8901,9603,217.037,86.959,23.956,,,,
|
||||||
|
Nakhl-e Ghanem,4693,6693,9122,7030,8901,9603,0,-0.15,0.68,,,,
|
||||||
|
POSGAR 94,4694,6694,9122,7030,8901,9603,0,0,0,,,,
|
||||||
|
Katanga 1955,4695,6695,9122,7008,8901,9603,-103.746,-9.614,-255.95,,,,
|
||||||
|
Kerguelen Island,4698,6698,9122,7022,8901,9603,145,-187,103,,,,
|
||||||
|
Le Pouce 1934,4699,6699,9122,7012,8901,9603,-770.1,158.4,-498.2,,,,
|
||||||
|
IGCB 1955,4701,6701,9122,7012,8901,9603,-79.9,-158,-168.9,,,,
|
||||||
|
Mauritania 1999,4702,6702,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Egypt Gulf of Suez S-650 TL,4706,6706,9122,7020,8901,9603,-146.21,112.63,4.05,,,,
|
||||||
|
Astro B4 Sorol Atoll,4707,6707,9122,7022,8901,9603,114,-116,-333,,,,
|
||||||
|
Anna 1 Astro 1965,4708,6708,9122,7003,8901,9603,-491,-22,435,,,,
|
||||||
|
Astro Beacon 1945,4709,6709,9122,7022,8901,9603,145,75,-272,,,,
|
||||||
|
Astro DOS 71/4,4710,6710,9122,7022,8901,9603,-320,550,-494,,,,
|
||||||
|
Astronomic Stn 1952,4711,6711,9122,7022,8901,9603,124,-234,-25,,,,
|
||||||
|
Ascension Island 1958,4712,6712,9122,7022,8901,9603,-207,107,52,,,,
|
||||||
|
Ayabelle Lighthouse,4713,6713,9122,7012,8901,9603,-77,-128,142,,,,
|
||||||
|
Bellevue (IGN),4714,6714,9122,7022,8901,9603,-127,-769,472,,,,
|
||||||
|
Camp Area Astro,4715,6715,9122,7022,8901,9603,-104,-129,239,,,,
|
||||||
|
Canton Astro 1966,4716,6716,9122,7022,8901,9603,298,-304,-375,,,,
|
||||||
|
Cape Canaveral,4717,6717,9122,7008,8901,9603,-2,150,181,,,,
|
||||||
|
GUX 1 Astro,4718,6718,9122,7022,8901,9603,252,-209,-751,,,,
|
||||||
|
Easter Island 1967,4719,6719,9122,7022,8901,9603,211,147,111,,,,
|
||||||
|
Fiji 1986,4720,6720,9122,7043,8901,9606,0,0,4.5,0,0,0.554,0.2263
|
||||||
|
Fiji 1956,4721,6721,9122,7022,8901,9603,265.025,384.929,-194.046,,,,
|
||||||
|
South Georgia 1968,4722,6722,9122,7022,8901,9603,-794,119,-298,,,,
|
||||||
|
GCGD59,4723,6723,9122,7008,8901,9607,-179.483,-69.379,-27.584,7.862,-8.163,-6.042,-13.925
|
||||||
|
ISTS 073 Astro 1969,4724,6724,9122,7022,8901,9603,208,-435,-229,,,,
|
||||||
|
Johnston Island,4725,6725,9122,7022,8901,9603,191,-77,-204,,,,
|
||||||
|
L.C. 5 Astro,4726,6726,9122,7008,8901,9603,42,124,147,,,,
|
||||||
|
Midway Astro 1961,4727,6727,9122,7022,8901,9603,912,-58,1227,,,,
|
||||||
|
Pico De Las Nieves,4728,6728,9122,7022,8901,9603,-307,-92,127,,,,
|
||||||
|
Pitcairn Astro 1967,4729,6729,9122,7022,8901,9603,185,165,42,,,,
|
||||||
|
Santo (DOS),4730,6730,9122,7022,8901,9603,170,42,84,,,,
|
||||||
|
Viti Levu 1916,4731,6731,9122,7012,8901,9603,51,391,-36,,,,
|
||||||
|
Wake-Eniwetok 1960,4732,6732,9122,7053,8901,9603,101,52,-39,,,,
|
||||||
|
Wake Island 1952,4733,6733,9122,7022,8901,9603,276,-57,149,,,,
|
||||||
|
Tristan Astro 1968,4734,6734,9122,7022,8901,9603,-632,438,-609,,,,
|
||||||
|
Kusaie 1951,4735,6735,9122,7022,8901,9603,647,1777,-1124,,,,
|
||||||
|
Deception Island,4736,6736,9122,7012,8901,9603,260,12,-147,,,,
|
||||||
|
Korea 2000,4737,6737,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Hong Kong 1963,4739,6739,9122,7022,8901,9603,-156,-271,-189,,,,
|
||||||
|
PZ-90,4740,6740,9122,7054,8901,9607,0,0,1.5,0,0,-0.076,0
|
||||||
|
Karbala 1979,4743,6743,9122,7012,8901,9603,70.995,-335.916,262.898,,,,
|
||||||
|
Nahrwan 1934,4744,6744,9122,7012,8901,9603,-242.2,-144.9,370.3,,,,
|
||||||
|
GR96,4747,6747,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Vanua Levu 1915,4748,6748,9122,7055,8901,9603,51,391,-36,,,,
|
||||||
|
RGNC91-93,4749,6749,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
ST87 Ouvea,4750,6750,9122,7030,8901,9603,-56.263,16.136,-22.856,,,,
|
||||||
|
Viti Levu 1912,4752,6752,9122,7055,8901,9603,98,390,-22,,,,
|
||||||
|
LGD2006,4754,6754,9122,7022,8901,9603,-208.4058,-109.8777,-2.5764,,,,
|
||||||
|
DGN95,4755,6755,9122,7030,8901,9603,0,0,0,,,,
|
||||||
|
VN-2000,4756,6756,9122,7030,8901,9607,-191.90441429,-39.30318279,-111.45032835,-0.00928836,0.01975479,-0.00427372,0.252906278
|
||||||
|
JAD2001,4758,6758,9122,7030,8901,9603,0,0,0,,,,
|
||||||
|
NAD83(NSRS2007),4759,6759,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
HTRS96,4761,6761,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
BDA2000,4762,6762,9122,7030,8901,9603,0,0,0,,,,
|
||||||
|
Pitcairn 2006,4763,6763,9122,7030,8901,9603,0,0,0,,,,
|
||||||
|
RSRGD2000,4764,6764,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Slovenia 1996,4765,6765,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Bern 1898 (Bern),4801,6801,9122,7004,8907,9603,674.374,15.056,405.346,,,,
|
||||||
|
Bogota 1975 (Bogota),4802,6802,9122,7022,8904,9603,307,304,-318,,,,
|
||||||
|
Lisbon (Lisbon),4803,6803,9122,7022,8902,9603,-304.046,-60.576,103.64,,,,
|
||||||
|
Makassar (Jakarta),4804,6804,9122,7004,8908,9603,-587.8,519.75,145.76,,,,
|
||||||
|
MGI (Ferro),4805,6805,9122,7004,8909,9603,682,-203,480,,,,
|
||||||
|
Rome 1940,4806,6806,9122,7022,8906,9603,-225,-65,9,,,,
|
||||||
|
NTF (Paris),4807,6807,9105,7011,8903,9603,-168,-60,320,,,,
|
||||||
|
Tananarive (Paris),4810,6810,9105,7022,8903,9603,-189,-242,-91,,,,
|
||||||
|
Voirol 1875 (Paris),4811,6811,9105,7011,8903,9603,-73,-247,227,,,,
|
||||||
|
Batavia (Jakarta),4813,6813,9122,7004,8908,9603,-377,681,-50,,,,
|
||||||
|
Carthage (Paris),4816,6816,9105,7011,8903,9603,-263,6,431,,,,
|
||||||
|
Norsk,4817,6817,9122,7005,8913,9603,278,93,474,,,,
|
||||||
|
S-JTSK (Ferro),4818,6818,9122,7004,8909,9603,589,76,480,,,,
|
||||||
|
Nord Sahara 1959 (Paris),4819,6819,9105,7012,8903,9606,-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547
|
||||||
|
Segara (Jakarta),4820,6820,9122,7004,8908,9603,-403,684,41,,,,
|
||||||
|
Lisbon 1890 (Lisbon),4904,6904,9122,7004,8902,9603,508.088,-191.042,565.223,,,,
|
||||||
|
PTRA08,5013,1041,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
S-JTSK/05,5228,1052,9122,7004,8901,9607,572.213,85.334,461.94,-4.9732,-1.529,-5.2484,3.5378
|
||||||
|
S-JTSK/05 (Ferro),5229,1055,9122,7004,8909,9607,572.213,85.334,461.94,-4.9732,-1.529,-5.2484,3.5378
|
||||||
|
SLD99,5233,1053,9122,7015,8901,9607,-0.293,766.95,87.713,-0.195704,-1.695068,-3.473016,-0.039338
|
||||||
|
GDBD2009,5246,1056,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
TUREF,5252,1057,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
DRUKREF 03,5264,1058,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
ISN2004,5324,1060,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
POSGAR 2007,5340,1062,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
MARGEN,5354,1063,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
SIRGAS-Chile,5360,1064,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
CR05,5365,1065,9122,7030,8901,9603,0,0,0,,,,
|
||||||
|
MACARIO SOLIS,5371,1066,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Peru96,5373,1067,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
SIRGAS-ROU98,5381,1068,9122,7030,8901,9603,0,0,0,,,,
|
||||||
|
SIRGAS_ES2007.8,5393,1069,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Ocotepeque 1935,5451,1070,9122,7008,8901,9603,205,96,-98,,,,
|
||||||
|
RGAF09,5489,1073,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
SAD69(96),5527,1075,9122,7050,8901,9603,-67.35,3.88,-38.22,,,,
|
||||||
|
PNG94,5546,1076,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
UCS-2000,5561,1077,9122,7024,8901,9607,25,-141,-78.5,0,-0.35,-0.736,0
|
||||||
|
FEH2010,5593,1078,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
CIGD11,6135,1100,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Nepal 1981,6207,1111,9122,7015,8901,9603,293.17,726.18,245.36,,,,
|
||||||
|
CGRS93,6311,1112,9122,7030,8901,9607,8.846,-4.394,-1.122,0.00237,0.146528,-0.130428,0.783926
|
||||||
|
Mexico ITRF2008,6365,1120,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
RDN2008,6706,1132,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
Aden 1925,6881,1135,9122,7012,8901,9603,-24,-203,268,,,,
|
||||||
|
Bekaa Valley 1920,6882,1137,9122,7012,8901,9603,-183,-15,273,,,,
|
||||||
|
Bioko,6883,1136,9122,7022,8901,9603,-235,-110,393,,,,
|
||||||
|
South East Island 1943,6892,1138,9122,7012,8901,9603,-43.685,-179.785,-267.721,,,,
|
||||||
|
Gambia,6894,1139,9122,7012,8901,9603,-63,176,185,,,,
|
||||||
|
ONGD14,7373,1147,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
St. Helena Tritan,7881,1173,9122,7030,8901,9603,-0.077,0.079,0.086,,,,
|
||||||
|
SHGD2015,7886,1174,9122,7019,8901,9603,0,0,0,,,,
|
||||||
|
DOS 1968,,,9122,7022,8901,9603,230,-199,-752,,,,
|
||||||
|
European 1950 (Mean France),,,9122,7022,8901,9603,-87,-96,-120,,,,
|
||||||
|
European 1950 (Spain and Portugal),,,9122,7022,8901,9603,-84,-107,-120,,,,
|
||||||
|
Luzon Mindanao,,,9122,7008,8901,9603,-133,-79,-72,,,,
|
||||||
|
NAD27 Alaska,,,9122,7008,8901,9603,-5,135,172,,,,
|
||||||
|
NAD27 Bahamas,,,9122,7008,8901,9603,-4,154,178,,,,
|
||||||
|
NAD27 Canada,,,9122,7008,8901,9603,-10,158,187,,,,
|
||||||
|
NAD27 Canal Zone,,,9122,7008,8901,9603,0,125,201,,,,
|
||||||
|
NAD27 Caribbean,,,9122,7008,8901,9603,-3,142,183,,,,
|
||||||
|
NAD27 Central,,,9122,7008,8901,9603,0,125,194,,,,
|
||||||
|
NAD27 Cuba,,,9122,7008,8901,9603,-9,152,178,,,,
|
||||||
|
NAD27 Greenland,,,9122,7008,8901,9603,11,114,195,,,,
|
||||||
|
NAD27 Mexico,,,9122,7008,8901,9603,-12,130,190,,,,
|
||||||
|
NAD27 San Salvador,,,9122,7008,8901,9603,1,140,165,,,,
|
||||||
|
Nahrwn Masirah Ilnd,,,9122,7012,8901,9603,-247,-148,369,,,,
|
||||||
|
Nahrwn Saudi Arbia,,,9122,7012,8901,9603,-231,-196,482,,,,
|
||||||
|
Pulkovo 1942 (2),,,9122,7024,8901,9603,28,-130,-95,,,,
|
||||||
|
|
5472
pkg/csv/pcs.csv
@ -3,10 +3,12 @@ Name=GPXSee
|
|||||||
Comment=GPS log file viewer and analyzer
|
Comment=GPS log file viewer and analyzer
|
||||||
Comment[cz]=Prohlížeč a analyzátor GPS logů
|
Comment[cz]=Prohlížeč a analyzátor GPS logů
|
||||||
Comment[fi]=Ohjelma GPS-lokien katseluun ja analysointiin
|
Comment[fi]=Ohjelma GPS-lokien katseluun ja analysointiin
|
||||||
|
Comment[pl]=Przeglądarka i analizator plików dziennika GPS
|
||||||
Comment[ru]=Программа для просмотра и анализа GPS логов
|
Comment[ru]=Программа для просмотра и анализа GPS логов
|
||||||
|
Comment[sv]=GPS-loggfilsläsare och analysator
|
||||||
Exec=gpxsee %F
|
Exec=gpxsee %F
|
||||||
Icon=gpxsee
|
Icon=gpxsee
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Graphics;Viewer;Maps;Qt;
|
Categories=Graphics;Viewer;Maps;Qt;
|
||||||
MimeType=application/gpx+xml;application/tcx+xml;application/vnd.ant.fit;application/vnd.google-earth.kml+xml;application/vnd.fai.igc;application/vnd.nmea.nmea;
|
MimeType=application/gpx+xml;application/tcx+xml;application/vnd.ant.fit;application/vnd.google-earth.kml+xml;application/vnd.fai.igc;application/vnd.nmea.nmea;application/vnd.oziexplorer.plt;application/vnd.oziexplorer.rte;application/vnd.oziexplorer.wpt;
|
||||||
|
@ -5,14 +5,14 @@
|
|||||||
; The name of the installer
|
; The name of the installer
|
||||||
Name "GPXSee"
|
Name "GPXSee"
|
||||||
; Program version
|
; Program version
|
||||||
!define VERSION "5.4"
|
!define VERSION "5.16"
|
||||||
|
|
||||||
; The file to write
|
; The file to write
|
||||||
OutFile "GPXSee-${VERSION}.exe"
|
OutFile "GPXSee-${VERSION}.exe"
|
||||||
; Compression method
|
; Compression method
|
||||||
SetCompressor /SOLID lzma
|
SetCompressor /SOLID lzma
|
||||||
|
|
||||||
; Required execution level
|
; Required execution level
|
||||||
RequestExecutionLevel admin
|
RequestExecutionLevel admin
|
||||||
|
|
||||||
; The default installation directory
|
; The default installation directory
|
||||||
@ -26,7 +26,7 @@ VIAddVersionKey "ProductName" "GPXSee"
|
|||||||
VIAddVersionKey "LegalCopyright" "GPXSee project"
|
VIAddVersionKey "LegalCopyright" "GPXSee project"
|
||||||
VIAddVersionKey "FileDescription" "GPXSee installer"
|
VIAddVersionKey "FileDescription" "GPXSee installer"
|
||||||
|
|
||||||
; Registry key to check for directory (so if you install again, it will
|
; Registry key to check for directory (so if you install again, it will
|
||||||
; overwrite the old one automatically)
|
; overwrite the old one automatically)
|
||||||
InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
|
InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
|
||||||
|
|
||||||
@ -39,11 +39,14 @@ InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
|
|||||||
!define REGFIT "GPXSee.fit"
|
!define REGFIT "GPXSee.fit"
|
||||||
!define REGIGC "GPXSee.igc"
|
!define REGIGC "GPXSee.igc"
|
||||||
!define REGNMEA "GPXSee.nmea"
|
!define REGNMEA "GPXSee.nmea"
|
||||||
|
!define REGPLT "GPXSee.plt"
|
||||||
|
!define REGRTE "GPXSee.rte"
|
||||||
|
!define REGWPT "GPXSee.wpt"
|
||||||
|
|
||||||
; Start menu page configuration
|
; Start menu page configuration
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
|
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\GPXSee"
|
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\GPXSee"
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "GPXSee"
|
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "GPXSee"
|
||||||
|
|
||||||
Var StartMenuFolder
|
Var StartMenuFolder
|
||||||
|
|
||||||
@ -77,10 +80,10 @@ FunctionEnd
|
|||||||
Section "GPXSee" SEC_APP
|
Section "GPXSee" SEC_APP
|
||||||
|
|
||||||
SectionIn RO
|
SectionIn RO
|
||||||
|
|
||||||
; Set output path to the installation directory.
|
; Set output path to the installation directory
|
||||||
SetOutPath $INSTDIR
|
SetOutPath $INSTDIR
|
||||||
|
|
||||||
; Put the files there
|
; Put the files there
|
||||||
File "gpxsee.exe"
|
File "gpxsee.exe"
|
||||||
File /r "maps"
|
File /r "maps"
|
||||||
@ -88,14 +91,14 @@ Section "GPXSee" SEC_APP
|
|||||||
|
|
||||||
; Create start menu entry and add links
|
; Create start menu entry and add links
|
||||||
SetShellVarContext all
|
SetShellVarContext all
|
||||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\GPXSee.lnk" "$INSTDIR\gpxsee.exe"
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\GPXSee.lnk" "$INSTDIR\gpxsee.exe"
|
||||||
!insertmacro MUI_STARTMENU_WRITE_END
|
!insertmacro MUI_STARTMENU_WRITE_END
|
||||||
|
|
||||||
; Create the uninstaller
|
; Create the uninstaller
|
||||||
WriteUninstaller "$INSTDIR\uninstall.exe"
|
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||||||
|
|
||||||
; Write the installation path into the registry
|
; Write the installation path into the registry
|
||||||
DetailPrint "Registering application..."
|
DetailPrint "Registering application..."
|
||||||
@ -113,28 +116,40 @@ Section "GPXSee" SEC_APP
|
|||||||
DetailPrint "Associating file types..."
|
DetailPrint "Associating file types..."
|
||||||
WriteRegStr HKCR ".gpx" "" "${REGGPX}"
|
WriteRegStr HKCR ".gpx" "" "${REGGPX}"
|
||||||
WriteRegStr HKCR "${REGGPX}" "" "GPS Exchange Format"
|
WriteRegStr HKCR "${REGGPX}" "" "GPS Exchange Format"
|
||||||
WriteRegStr HKCR "${REGGPX}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,1"
|
WriteRegStr HKCR "${REGGPX}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,2"
|
||||||
WriteRegStr HKCR "${REGGPX}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGGPX}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
WriteRegStr HKCR ".tcx" "" "${REGTCX}"
|
WriteRegStr HKCR ".tcx" "" "${REGTCX}"
|
||||||
WriteRegStr HKCR "${REGTCX}" "" "Training Center XML"
|
WriteRegStr HKCR "${REGTCX}" "" "Training Center XML"
|
||||||
WriteRegStr HKCR "${REGTCX}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,2"
|
WriteRegStr HKCR "${REGTCX}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,3"
|
||||||
WriteRegStr HKCR "${REGTCX}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGTCX}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
WriteRegStr HKCR ".kml" "" "${REGKML}"
|
WriteRegStr HKCR ".kml" "" "${REGKML}"
|
||||||
WriteRegStr HKCR "${REGKML}" "" "Keyhole Markup Language"
|
WriteRegStr HKCR "${REGKML}" "" "Keyhole Markup Language"
|
||||||
WriteRegStr HKCR "${REGKML}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,3"
|
WriteRegStr HKCR "${REGKML}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,4"
|
||||||
WriteRegStr HKCR "${REGKML}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGKML}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
WriteRegStr HKCR ".fit" "" "${REGFIT}"
|
WriteRegStr HKCR ".fit" "" "${REGFIT}"
|
||||||
WriteRegStr HKCR "${REGFIT}" "" "Flexible and Interoperable Data Transfer"
|
WriteRegStr HKCR "${REGFIT}" "" "Flexible and Interoperable Data Transfer"
|
||||||
WriteRegStr HKCR "${REGFIT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,4"
|
WriteRegStr HKCR "${REGFIT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,5"
|
||||||
WriteRegStr HKCR "${REGFIT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGFIT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
WriteRegStr HKCR ".igc" "" "${REGIGC}"
|
WriteRegStr HKCR ".igc" "" "${REGIGC}"
|
||||||
WriteRegStr HKCR "${REGIGC}" "" "Flight Recorder Data Format"
|
WriteRegStr HKCR "${REGIGC}" "" "Flight Recorder Data Format"
|
||||||
WriteRegStr HKCR "${REGIGC}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,5"
|
WriteRegStr HKCR "${REGIGC}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,6"
|
||||||
WriteRegStr HKCR "${REGIGC}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGIGC}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
WriteRegStr HKCR ".nmea" "" "${REGNMEA}"
|
WriteRegStr HKCR ".nmea" "" "${REGNMEA}"
|
||||||
WriteRegStr HKCR "${REGNMEA}" "" "NMEA 0183 data"
|
WriteRegStr HKCR "${REGNMEA}" "" "NMEA 0183 data"
|
||||||
WriteRegStr HKCR "${REGNMEA}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,6"
|
WriteRegStr HKCR "${REGNMEA}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,7"
|
||||||
WriteRegStr HKCR "${REGNMEA}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGNMEA}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
|
WriteRegStr HKCR ".plt" "" "${REGPLT}"
|
||||||
|
WriteRegStr HKCR "${REGPLT}" "" "OziExplorer Track Point File"
|
||||||
|
WriteRegStr HKCR "${REGPLT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,8"
|
||||||
|
WriteRegStr HKCR "${REGPLT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
|
WriteRegStr HKCR ".rte" "" "${REGRTE}"
|
||||||
|
WriteRegStr HKCR "${REGRTE}" "" "OziExplorer Route File"
|
||||||
|
WriteRegStr HKCR "${REGRTE}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,9"
|
||||||
|
WriteRegStr HKCR "${REGRTE}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
|
WriteRegStr HKCR ".wpt" "" "${REGWPT}"
|
||||||
|
WriteRegStr HKCR "${REGWPT}" "" "OziExplorer Waypoint File"
|
||||||
|
WriteRegStr HKCR "${REGWPT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,1"
|
||||||
|
WriteRegStr HKCR "${REGWPT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
|
|
||||||
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
||||||
|
|
||||||
@ -152,7 +167,8 @@ Section "QT framework" SEC_QT
|
|||||||
File /r "platforms"
|
File /r "platforms"
|
||||||
File /r "imageformats"
|
File /r "imageformats"
|
||||||
File /r "printsupport"
|
File /r "printsupport"
|
||||||
|
File /r "styles"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "MSVC runtime" SEC_MSVC
|
Section "MSVC runtime" SEC_MSVC
|
||||||
@ -215,6 +231,11 @@ SectionGroup "Localization" SEC_LOCALIZATION
|
|||||||
File /oname=translations\gpxsee_de.qm translations\gpxsee_de.qm
|
File /oname=translations\gpxsee_de.qm translations\gpxsee_de.qm
|
||||||
File /oname=translations\qt_de.qm translations\qt_de.qm
|
File /oname=translations\qt_de.qm translations\qt_de.qm
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
Section "Polish"
|
||||||
|
CreateDirectory "$INSTDIR\translations"
|
||||||
|
File /oname=translations\gpxsee_pl.qm translations\gpxsee_pl.qm
|
||||||
|
File /oname=translations\qt_pl.qm translations\qt_pl.qm
|
||||||
|
SectionEnd
|
||||||
Section "Russian"
|
Section "Russian"
|
||||||
CreateDirectory "$INSTDIR\translations"
|
CreateDirectory "$INSTDIR\translations"
|
||||||
File /oname=translations\gpxsee_ru.qm translations\gpxsee_ru.qm
|
File /oname=translations\gpxsee_ru.qm translations\gpxsee_ru.qm
|
||||||
@ -231,7 +252,7 @@ SectionGroupEnd
|
|||||||
; Uninstaller
|
; Uninstaller
|
||||||
|
|
||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
|
|
||||||
; Remove registry keys
|
; Remove registry keys
|
||||||
DeleteRegKey HKLM "${REGENTRY}"
|
DeleteRegKey HKLM "${REGENTRY}"
|
||||||
DeleteRegKey HKLM SOFTWARE\GPXSee
|
DeleteRegKey HKLM SOFTWARE\GPXSee
|
||||||
@ -258,7 +279,13 @@ Section "Uninstall"
|
|||||||
DeleteRegKey HKCR ".igc"
|
DeleteRegKey HKCR ".igc"
|
||||||
DeleteRegKey HKCR "${REGNMEA}"
|
DeleteRegKey HKCR "${REGNMEA}"
|
||||||
DeleteRegKey HKCR ".nmea"
|
DeleteRegKey HKCR ".nmea"
|
||||||
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
DeleteRegKey HKCR "${REGPLT}"
|
||||||
|
DeleteRegKey HKCR ".plt"
|
||||||
|
DeleteRegKey HKCR "${REGRTE}"
|
||||||
|
DeleteRegKey HKCR ".rte"
|
||||||
|
DeleteRegKey HKCR "${REGWPT}"
|
||||||
|
DeleteRegKey HKCR ".wpt"
|
||||||
|
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
@ -43,4 +43,24 @@
|
|||||||
<glob pattern="*.nmea"/>
|
<glob pattern="*.nmea"/>
|
||||||
</mime-type>
|
</mime-type>
|
||||||
|
|
||||||
|
<mime-type type="application/vnd.oziexplorer.plt">
|
||||||
|
<comment>OziExplorer Track Point File</comment>
|
||||||
|
<sub-class-of type="text/plain"/>
|
||||||
|
<generic-icon name="text-plain"/>
|
||||||
|
<glob pattern="*.plt"/>
|
||||||
|
</mime-type>
|
||||||
|
|
||||||
|
<mime-type type="application/vnd.oziexplorer.rte">
|
||||||
|
<comment>OziExplorer Route File</comment>
|
||||||
|
<sub-class-of type="text/plain"/>
|
||||||
|
<generic-icon name="text-plain"/>
|
||||||
|
<glob pattern="*.rte"/>
|
||||||
|
</mime-type>
|
||||||
|
|
||||||
|
<mime-type type="application/vnd.oziexplorer.wpt">
|
||||||
|
<comment>OziExplorer Waypoint File</comment>
|
||||||
|
<sub-class-of type="text/plain"/>
|
||||||
|
<generic-icon name="text-plain"/>
|
||||||
|
<glob pattern="*.wpt"/>
|
||||||
|
</mime-type>
|
||||||
</mime-info>
|
</mime-info>
|
||||||
|
@ -5,14 +5,14 @@
|
|||||||
; The name of the installer
|
; The name of the installer
|
||||||
Name "GPXSee"
|
Name "GPXSee"
|
||||||
; Program version
|
; Program version
|
||||||
!define VERSION "5.4"
|
!define VERSION "5.16"
|
||||||
|
|
||||||
; The file to write
|
; The file to write
|
||||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||||
; Compression method
|
; Compression method
|
||||||
SetCompressor /SOLID lzma
|
SetCompressor /SOLID lzma
|
||||||
|
|
||||||
; Required execution level
|
; Required execution level
|
||||||
RequestExecutionLevel admin
|
RequestExecutionLevel admin
|
||||||
|
|
||||||
; The default installation directory
|
; The default installation directory
|
||||||
@ -26,7 +26,7 @@ VIAddVersionKey "ProductName" "GPXSee"
|
|||||||
VIAddVersionKey "LegalCopyright" "GPXSee project"
|
VIAddVersionKey "LegalCopyright" "GPXSee project"
|
||||||
VIAddVersionKey "FileDescription" "GPXSee installer (x64)"
|
VIAddVersionKey "FileDescription" "GPXSee installer (x64)"
|
||||||
|
|
||||||
; Registry key to check for directory (so if you install again, it will
|
; Registry key to check for directory (so if you install again, it will
|
||||||
; overwrite the old one automatically)
|
; overwrite the old one automatically)
|
||||||
InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
|
InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
|
||||||
|
|
||||||
@ -39,11 +39,14 @@ InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
|
|||||||
!define REGFIT "GPXSee.fit"
|
!define REGFIT "GPXSee.fit"
|
||||||
!define REGIGC "GPXSee.igc"
|
!define REGIGC "GPXSee.igc"
|
||||||
!define REGNMEA "GPXSee.nmea"
|
!define REGNMEA "GPXSee.nmea"
|
||||||
|
!define REGPLT "GPXSee.plt"
|
||||||
|
!define REGRTE "GPXSee.rte"
|
||||||
|
!define REGWPT "GPXSee.wpt"
|
||||||
|
|
||||||
; Start menu page configuration
|
; Start menu page configuration
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
|
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\GPXSee"
|
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\GPXSee"
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "GPXSee"
|
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "GPXSee"
|
||||||
|
|
||||||
Var StartMenuFolder
|
Var StartMenuFolder
|
||||||
|
|
||||||
@ -71,31 +74,31 @@ Function .onInit
|
|||||||
MessageBox MB_OK "GPXSee can only be installed on Windows 7 or later."
|
MessageBox MB_OK "GPXSee can only be installed on Windows 7 or later."
|
||||||
Abort
|
Abort
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
${If} ${RunningX64}
|
${If} ${RunningX64}
|
||||||
SetRegView 64
|
SetRegView 64
|
||||||
${Else}
|
${Else}
|
||||||
MessageBox MB_OK "The 64b version of GPXSee can not be run on 32b systems."
|
MessageBox MB_OK "The 64b version of GPXSee can not be run on 32b systems."
|
||||||
Abort
|
Abort
|
||||||
${EndIf}
|
${EndIf}
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
; The stuff to install
|
; The stuff to install
|
||||||
Section "GPXSee" SEC_APP
|
Section "GPXSee" SEC_APP
|
||||||
|
|
||||||
SectionIn RO
|
SectionIn RO
|
||||||
|
|
||||||
; Set output path to the installation directory.
|
; Set output path to the installation directory
|
||||||
SetOutPath $INSTDIR
|
SetOutPath $INSTDIR
|
||||||
|
|
||||||
; Put the files there
|
; Put the files there
|
||||||
File "gpxsee.exe"
|
File "gpxsee.exe"
|
||||||
File /r "maps"
|
File /r "maps"
|
||||||
File /r "csv"
|
File /r "csv"
|
||||||
|
|
||||||
; Create start menu entry and add links
|
; Create start menu entry and add links
|
||||||
SetShellVarContext all
|
SetShellVarContext all
|
||||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\GPXSee.lnk" "$INSTDIR\gpxsee.exe"
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\GPXSee.lnk" "$INSTDIR\gpxsee.exe"
|
||||||
@ -103,7 +106,7 @@ Section "GPXSee" SEC_APP
|
|||||||
|
|
||||||
; Create the uninstaller
|
; Create the uninstaller
|
||||||
WriteUninstaller "$INSTDIR\uninstall.exe"
|
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||||||
|
|
||||||
; Write the installation path into the registry
|
; Write the installation path into the registry
|
||||||
DetailPrint "Registering application..."
|
DetailPrint "Registering application..."
|
||||||
WriteRegStr HKLM SOFTWARE\GPXSee "Install_Dir" "$INSTDIR"
|
WriteRegStr HKLM SOFTWARE\GPXSee "Install_Dir" "$INSTDIR"
|
||||||
@ -120,29 +123,41 @@ Section "GPXSee" SEC_APP
|
|||||||
DetailPrint "Associating file types..."
|
DetailPrint "Associating file types..."
|
||||||
WriteRegStr HKCR ".gpx" "" "${REGGPX}"
|
WriteRegStr HKCR ".gpx" "" "${REGGPX}"
|
||||||
WriteRegStr HKCR "${REGGPX}" "" "GPS Exchange Format"
|
WriteRegStr HKCR "${REGGPX}" "" "GPS Exchange Format"
|
||||||
WriteRegStr HKCR "${REGGPX}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,1"
|
WriteRegStr HKCR "${REGGPX}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,2"
|
||||||
WriteRegStr HKCR "${REGGPX}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGGPX}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
WriteRegStr HKCR ".tcx" "" "${REGTCX}"
|
WriteRegStr HKCR ".tcx" "" "${REGTCX}"
|
||||||
WriteRegStr HKCR "${REGTCX}" "" "Training Center XML"
|
WriteRegStr HKCR "${REGTCX}" "" "Training Center XML"
|
||||||
WriteRegStr HKCR "${REGTCX}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,2"
|
WriteRegStr HKCR "${REGTCX}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,3"
|
||||||
WriteRegStr HKCR "${REGTCX}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGTCX}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
WriteRegStr HKCR ".kml" "" "${REGKML}"
|
WriteRegStr HKCR ".kml" "" "${REGKML}"
|
||||||
WriteRegStr HKCR "${REGKML}" "" "Keyhole Markup Language"
|
WriteRegStr HKCR "${REGKML}" "" "Keyhole Markup Language"
|
||||||
WriteRegStr HKCR "${REGKML}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,3"
|
WriteRegStr HKCR "${REGKML}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,4"
|
||||||
WriteRegStr HKCR "${REGKML}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGKML}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
WriteRegStr HKCR ".fit" "" "${REGFIT}"
|
WriteRegStr HKCR ".fit" "" "${REGFIT}"
|
||||||
WriteRegStr HKCR "${REGFIT}" "" "Flexible and Interoperable Data Transfer"
|
WriteRegStr HKCR "${REGFIT}" "" "Flexible and Interoperable Data Transfer"
|
||||||
WriteRegStr HKCR "${REGFIT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,4"
|
WriteRegStr HKCR "${REGFIT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,5"
|
||||||
WriteRegStr HKCR "${REGFIT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGFIT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
WriteRegStr HKCR ".igc" "" "${REGIGC}"
|
WriteRegStr HKCR ".igc" "" "${REGIGC}"
|
||||||
WriteRegStr HKCR "${REGIGC}" "" "Flight Recorder Data Format"
|
WriteRegStr HKCR "${REGIGC}" "" "Flight Recorder Data Format"
|
||||||
WriteRegStr HKCR "${REGIGC}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,5"
|
WriteRegStr HKCR "${REGIGC}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,6"
|
||||||
WriteRegStr HKCR "${REGIGC}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGIGC}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
WriteRegStr HKCR ".nmea" "" "${REGNMEA}"
|
WriteRegStr HKCR ".nmea" "" "${REGNMEA}"
|
||||||
WriteRegStr HKCR "${REGNMEA}" "" "NMEA 0183 data"
|
WriteRegStr HKCR "${REGNMEA}" "" "NMEA 0183 data"
|
||||||
WriteRegStr HKCR "${REGNMEA}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,6"
|
WriteRegStr HKCR "${REGNMEA}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,7"
|
||||||
WriteRegStr HKCR "${REGNMEA}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
WriteRegStr HKCR "${REGNMEA}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
|
WriteRegStr HKCR ".plt" "" "${REGPLT}"
|
||||||
|
WriteRegStr HKCR "${REGPLT}" "" "OziExplorer Track Point File"
|
||||||
|
WriteRegStr HKCR "${REGPLT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,8"
|
||||||
|
WriteRegStr HKCR "${REGPLT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
|
WriteRegStr HKCR ".rte" "" "${REGRTE}"
|
||||||
|
WriteRegStr HKCR "${REGRTE}" "" "OziExplorer Route File"
|
||||||
|
WriteRegStr HKCR "${REGRTE}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,9"
|
||||||
|
WriteRegStr HKCR "${REGRTE}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
|
WriteRegStr HKCR ".wpt" "" "${REGWPT}"
|
||||||
|
WriteRegStr HKCR "${REGWPT}" "" "OziExplorer Waypoint File"
|
||||||
|
WriteRegStr HKCR "${REGWPT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,1"
|
||||||
|
WriteRegStr HKCR "${REGWPT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
|
||||||
|
|
||||||
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
@ -159,7 +174,8 @@ Section "QT framework" SEC_QT
|
|||||||
File /r "platforms"
|
File /r "platforms"
|
||||||
File /r "imageformats"
|
File /r "imageformats"
|
||||||
File /r "printsupport"
|
File /r "printsupport"
|
||||||
|
File /r "styles"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "MSVC runtime" SEC_MSVC
|
Section "MSVC runtime" SEC_MSVC
|
||||||
@ -217,6 +233,11 @@ SectionGroup "Localization" SEC_LOCALIZATION
|
|||||||
File /oname=translations\gpxsee_de.qm translations\gpxsee_de.qm
|
File /oname=translations\gpxsee_de.qm translations\gpxsee_de.qm
|
||||||
File /oname=translations\qt_de.qm translations\qt_de.qm
|
File /oname=translations\qt_de.qm translations\qt_de.qm
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
Section "Polish"
|
||||||
|
CreateDirectory "$INSTDIR\translations"
|
||||||
|
File /oname=translations\gpxsee_pl.qm translations\gpxsee_pl.qm
|
||||||
|
File /oname=translations\qt_pl.qm translations\qt_pl.qm
|
||||||
|
SectionEnd
|
||||||
Section "Russian"
|
Section "Russian"
|
||||||
CreateDirectory "$INSTDIR\translations"
|
CreateDirectory "$INSTDIR\translations"
|
||||||
File /oname=translations\gpxsee_ru.qm translations\gpxsee_ru.qm
|
File /oname=translations\gpxsee_ru.qm translations\gpxsee_ru.qm
|
||||||
@ -233,7 +254,7 @@ SectionGroupEnd
|
|||||||
; Uninstaller
|
; Uninstaller
|
||||||
|
|
||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
|
|
||||||
; Remove registry keys
|
; Remove registry keys
|
||||||
SetRegView 64
|
SetRegView 64
|
||||||
DeleteRegKey HKLM "${REGENTRY}"
|
DeleteRegKey HKLM "${REGENTRY}"
|
||||||
@ -247,7 +268,7 @@ Section "Uninstall"
|
|||||||
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
||||||
Delete "$SMPROGRAMS\$StartMenuFolder\*.*"
|
Delete "$SMPROGRAMS\$StartMenuFolder\*.*"
|
||||||
RMDir "$SMPROGRAMS\$StartMenuFolder"
|
RMDir "$SMPROGRAMS\$StartMenuFolder"
|
||||||
|
|
||||||
; Remove File associations
|
; Remove File associations
|
||||||
DeleteRegKey HKCR "${REGGPX}"
|
DeleteRegKey HKCR "${REGGPX}"
|
||||||
DeleteRegKey HKCR ".gpx"
|
DeleteRegKey HKCR ".gpx"
|
||||||
@ -261,6 +282,12 @@ Section "Uninstall"
|
|||||||
DeleteRegKey HKCR ".igc"
|
DeleteRegKey HKCR ".igc"
|
||||||
DeleteRegKey HKCR "${REGNMEA}"
|
DeleteRegKey HKCR "${REGNMEA}"
|
||||||
DeleteRegKey HKCR ".nmea"
|
DeleteRegKey HKCR ".nmea"
|
||||||
|
DeleteRegKey HKCR "${REGPLT}"
|
||||||
|
DeleteRegKey HKCR ".plt"
|
||||||
|
DeleteRegKey HKCR "${REGRTE}"
|
||||||
|
DeleteRegKey HKCR ".rte"
|
||||||
|
DeleteRegKey HKCR "${REGWPT}"
|
||||||
|
DeleteRegKey HKCR ".wpt"
|
||||||
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map>
|
<map xmlns="http://www.gpxsee.org/map/1">
|
||||||
<name>4UMaps</name>
|
<name>4UMaps</name>
|
||||||
<url>http://4umaps.eu/$z/$x/$y.png</url>
|
<url>https://4umaps.com/$z/$x/$y.png</url>
|
||||||
|
<copyright>Map data: © OpenStreetMap contributors (ODbL) | Rendering: © 4UMaps.eu</copyright>
|
||||||
<zoom min="2" max="15"/>
|
<zoom min="2" max="15"/>
|
||||||
<bounds bottom="-65"/>
|
<bounds bottom="-65"/>
|
||||||
<copyright>Map data: © OpenStreetMap contributors (ODbL) | Rendering: © 4UMaps.eu</copyright>
|
|
||||||
</map>
|
</map>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map>
|
<map xmlns="http://www.gpxsee.org/map/1">
|
||||||
<name>Open Street Map</name>
|
<name>Open Street Map</name>
|
||||||
<url>http://tile.openstreetmap.org/$z/$x/$y.png</url>
|
<url>http://tile.openstreetmap.org/$z/$x/$y.png</url>
|
||||||
<copyright>Map data: © OpenStreetMap contributors (ODbL) | Rendering: © OpenStreetMap (CC-BY-SA)</copyright>
|
<copyright>Map data: © OpenStreetMap contributors (ODbL) | Rendering: © OpenStreetMap (CC-BY-SA)</copyright>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map>
|
<map xmlns="http://www.gpxsee.org/map/1">
|
||||||
<name>Open Topo Map</name>
|
<name>Open Topo Map</name>
|
||||||
<url>https://a.tile.opentopomap.org/$z/$x/$y.png</url>
|
<url>https://a.tile.opentopomap.org/$z/$x/$y.png</url>
|
||||||
<zoom max="17"/>
|
|
||||||
<copyright>Map data: © OpenStreetMap contributors (ODbL), SRTM | Rendering: © OpenTopoMap (CC-BY-SA)</copyright>
|
<copyright>Map data: © OpenStreetMap contributors (ODbL), SRTM | Rendering: © OpenTopoMap (CC-BY-SA)</copyright>
|
||||||
|
<zoom max="17"/>
|
||||||
</map>
|
</map>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map>
|
<map xmlns="http://www.gpxsee.org/map/1">
|
||||||
<name>USGS Imagery</name>
|
<name>USGS Imagery</name>
|
||||||
<url>https://navigator.er.usgs.gov/tiles/aerial_Imagery.cgi/$z/$x/$y</url>
|
<url>https://basemap.nationalmap.gov/ArcGIS/rest/services/USGSImageryOnly/MapServer/tile/$z/$y/$x</url>
|
||||||
|
<copyright>Map services and data available from U.S. Geological Survey, National Geospatial Program.</copyright>
|
||||||
<zoom min="2" max="15"/>
|
<zoom min="2" max="15"/>
|
||||||
<bounds bottom="0" top="74"/>
|
<bounds bottom="0" top="74"/>
|
||||||
<copyright>Map services and data available from U.S. Geological Survey, National Geospatial Program.</copyright>
|
|
||||||
</map>
|
</map>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map>
|
<map xmlns="http://www.gpxsee.org/map/1">
|
||||||
<name>USGS Topo</name>
|
<name>USGS Topo</name>
|
||||||
<url>https://navigator.er.usgs.gov/tiles/tcr.cgi/$z/$x/$y.png</url>
|
<url>https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/tile/$z/$y/$x</url>
|
||||||
<zoom min="2" max="15"/>
|
|
||||||
<copyright>Map services and data available from U.S. Geological Survey, National Geospatial Program.</copyright>
|
<copyright>Map services and data available from U.S. Geological Survey, National Geospatial Program.</copyright>
|
||||||
|
<zoom min="2" max="15"/>
|
||||||
</map>
|
</map>
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#include <QLocale>
|
#include <QLocale>
|
||||||
#include <QFileOpenEvent>
|
#include <QFileOpenEvent>
|
||||||
#include <QNetworkProxyFactory>
|
#include <QNetworkProxyFactory>
|
||||||
|
#include <QNetworkAccessManager>
|
||||||
#include <QLibraryInfo>
|
#include <QLibraryInfo>
|
||||||
#include "map/wmts.h"
|
|
||||||
#include "map/tileloader.h"
|
|
||||||
#include "map/downloader.h"
|
#include "map/downloader.h"
|
||||||
#include "map/ellipsoid.h"
|
#include "map/ellipsoid.h"
|
||||||
#include "map/gcs.h"
|
#include "map/gcs.h"
|
||||||
@ -24,12 +23,12 @@ App::App(int &argc, char **argv) : QApplication(argc, argv),
|
|||||||
installTranslator(gpxsee);
|
installTranslator(gpxsee);
|
||||||
|
|
||||||
QTranslator *qt = new QTranslator(this);
|
QTranslator *qt = new QTranslator(this);
|
||||||
#if defined(Q_OS_WINDOWS) || defined(Q_OS_MAC)
|
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
||||||
qt->load(QLocale::system(), "qt", "_", TRANSLATIONS_DIR);
|
qt->load(QLocale::system(), "qt", "_", TRANSLATIONS_DIR);
|
||||||
#else // Q_OS_WINDOWS || Q_OS_MAC
|
#else // Q_OS_WIN32 || Q_OS_MAC
|
||||||
qt->load(QLocale::system(), "qt", "_", QLibraryInfo::location(
|
qt->load(QLocale::system(), "qt", "_", QLibraryInfo::location(
|
||||||
QLibraryInfo::TranslationsPath));
|
QLibraryInfo::TranslationsPath));
|
||||||
#endif // Q_OS_WINDOWS || Q_OS_MAC
|
#endif // Q_OS_WIN32 || Q_OS_MAC
|
||||||
installTranslator(qt);
|
installTranslator(qt);
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
@ -37,9 +36,7 @@ App::App(int &argc, char **argv) : QApplication(argc, argv),
|
|||||||
#endif // Q_OS_MAC
|
#endif // Q_OS_MAC
|
||||||
|
|
||||||
QNetworkProxyFactory::setUseSystemConfiguration(true);
|
QNetworkProxyFactory::setUseSystemConfiguration(true);
|
||||||
Downloader *dl = new Downloader(this);
|
Downloader::setNetworkAccessManager(new QNetworkAccessManager(this));
|
||||||
TileLoader::setDownloader(dl);
|
|
||||||
WMTS::setDownloader(dl);
|
|
||||||
OPENGL_SET_SAMPLES(4);
|
OPENGL_SET_SAMPLES(4);
|
||||||
loadDatums();
|
loadDatums();
|
||||||
loadPCSs();
|
loadPCSs();
|
||||||
|
@ -11,23 +11,28 @@
|
|||||||
#define XTICKS 15
|
#define XTICKS 15
|
||||||
#define YTICKS 10
|
#define YTICKS 10
|
||||||
|
|
||||||
struct Label {
|
class Ticks
|
||||||
double min;
|
{
|
||||||
double max;
|
public:
|
||||||
double d;
|
Ticks(double minValue, double maxValue, int maxCount);
|
||||||
|
|
||||||
|
int count() const {return ((int)((_max - _min) / _d)) + 1;}
|
||||||
|
double val(int i) const {return _min + i * _d;}
|
||||||
|
double min() const {return _min;}
|
||||||
|
double max() const {return _max;}
|
||||||
|
|
||||||
|
private:
|
||||||
|
double _min;
|
||||||
|
double _max;
|
||||||
|
double _d;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct Label label(double min, double max, int ticks)
|
Ticks::Ticks(double minValue, double maxValue, int maxCount)
|
||||||
{
|
{
|
||||||
double range;
|
double range = niceNum(maxValue - minValue, 0);
|
||||||
struct Label l;
|
_d = niceNum(range / maxCount, 1);
|
||||||
|
_min = ceil(minValue / _d) * _d;
|
||||||
range = niceNum(max - min, 0);
|
_max = floor(maxValue / _d) * _d;
|
||||||
l.d = niceNum(range / ticks, 1);
|
|
||||||
l.min = ceil(min / l.d) * l.d;
|
|
||||||
l.max = floor(max / l.d) * l.d;
|
|
||||||
|
|
||||||
return l;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -36,6 +41,9 @@ AxisItem::AxisItem(Type type, QGraphicsItem *parent) : QGraphicsItem(parent)
|
|||||||
_type = type;
|
_type = type;
|
||||||
_size = 0;
|
_size = 0;
|
||||||
|
|
||||||
|
_font.setPixelSize(FONT_SIZE);
|
||||||
|
_font.setFamily(FONT_FAMILY);
|
||||||
|
|
||||||
#ifndef Q_OS_MAC
|
#ifndef Q_OS_MAC
|
||||||
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
|
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
|
||||||
#endif // Q_OS_MAC
|
#endif // Q_OS_MAC
|
||||||
@ -45,6 +53,16 @@ void AxisItem::setRange(const RangeF &range)
|
|||||||
{
|
{
|
||||||
prepareGeometryChange();
|
prepareGeometryChange();
|
||||||
_range = range;
|
_range = range;
|
||||||
|
|
||||||
|
QFontMetrics fm(_font);
|
||||||
|
Ticks ticks(_range.min(), _range.max(), (_type == X) ? XTICKS : YTICKS);
|
||||||
|
_ticks = QVector<Tick>(ticks.count());
|
||||||
|
for (int i = 0; i < ticks.count(); i++) {
|
||||||
|
Tick &t = _ticks[i];
|
||||||
|
t.value = ticks.val(i);
|
||||||
|
t.boundingBox = fm.tightBoundingRect(QString::number(t.value));
|
||||||
|
}
|
||||||
|
|
||||||
updateBoundingRect();
|
updateBoundingRect();
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
@ -60,42 +78,28 @@ void AxisItem::setSize(qreal size)
|
|||||||
void AxisItem::setLabel(const QString& label)
|
void AxisItem::setLabel(const QString& label)
|
||||||
{
|
{
|
||||||
prepareGeometryChange();
|
prepareGeometryChange();
|
||||||
|
QFontMetrics fm(_font);
|
||||||
_label = label;
|
_label = label;
|
||||||
|
_labelBB = fm.tightBoundingRect(label);
|
||||||
updateBoundingRect();
|
updateBoundingRect();
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AxisItem::updateBoundingRect()
|
void AxisItem::updateBoundingRect()
|
||||||
{
|
{
|
||||||
QFont font;
|
QFontMetrics fm(_font);
|
||||||
font.setPixelSize(FONT_SIZE);
|
QRect es = _ticks.isEmpty() ? QRect() : _ticks.last().boundingBox;
|
||||||
font.setFamily(FONT_FAMILY);
|
QRect ss = _ticks.isEmpty() ? QRect() : _ticks.first().boundingBox;
|
||||||
QFontMetrics fm(font);
|
QRect ls(_labelBB);
|
||||||
QRect ss, es, ls;
|
|
||||||
struct Label l;
|
|
||||||
|
|
||||||
|
|
||||||
l = label(_range.min(), _range.max(), (_type == X) ? XTICKS : YTICKS);
|
|
||||||
es = fm.tightBoundingRect(QString::number(l.max));
|
|
||||||
ss = fm.tightBoundingRect(QString::number(l.min));
|
|
||||||
ls = fm.tightBoundingRect(_label);
|
|
||||||
|
|
||||||
if (_type == X) {
|
if (_type == X) {
|
||||||
_boundingRect = QRectF(-ss.width()/2, -TICK/2,
|
_boundingRect = QRectF(-ss.width()/2, -TICK/2, _size + es.width()/2
|
||||||
_size + es.width()/2 + ss.width()/2,
|
+ ss.width()/2, ls.height() + es.height() - fm.descent() + TICK
|
||||||
ls.height() + es.height() - fm.descent() + TICK + 2*PADDING + 1);
|
+ 2*PADDING + 1);
|
||||||
} else {
|
} else {
|
||||||
int mtw = 0;
|
int mtw = 0;
|
||||||
QRect ts;
|
for (int i = 0; i < _ticks.count(); i++)
|
||||||
qreal val;
|
mtw = qMax(_ticks.at(i).boundingBox.width(), mtw);
|
||||||
|
|
||||||
for (int i = 0; i < ((l.max - l.min) / l.d) + 1; i++) {
|
|
||||||
val = l.min + i * l.d;
|
|
||||||
QString str = QString::number(val);
|
|
||||||
ts = fm.tightBoundingRect(str);
|
|
||||||
mtw = qMax(ts.width(), mtw);
|
|
||||||
}
|
|
||||||
|
|
||||||
_boundingRect = QRectF(-(ls.height() + mtw + 2*PADDING + TICK/2),
|
_boundingRect = QRectF(-(ls.height() + mtw + 2*PADDING + TICK/2),
|
||||||
-(_size + es.height()/2 + fm.descent()), ls.height() + mtw + 2*PADDING
|
-(_size + es.height()/2 + fm.descent()), ls.height() + mtw + 2*PADDING
|
||||||
+ TICK, _size + es.height()/2 + fm.descent() + ss.height()/2);
|
+ TICK, _size + es.height()/2 + fm.descent() + ss.height()/2);
|
||||||
@ -107,60 +111,50 @@ void AxisItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
|||||||
{
|
{
|
||||||
Q_UNUSED(option);
|
Q_UNUSED(option);
|
||||||
Q_UNUSED(widget);
|
Q_UNUSED(widget);
|
||||||
QFont font;
|
QFontMetrics fm(_font);
|
||||||
font.setPixelSize(FONT_SIZE);
|
QRect ts;
|
||||||
font.setFamily(FONT_FAMILY);
|
|
||||||
QFontMetrics fm(font);
|
|
||||||
QRect ts, ls;
|
|
||||||
struct Label l;
|
|
||||||
qreal range = _range.size();
|
|
||||||
qreal val;
|
|
||||||
QPen pen = QPen(Qt::black, AXIS_WIDTH);
|
|
||||||
|
|
||||||
|
|
||||||
painter->setRenderHint(QPainter::Antialiasing, false);
|
painter->setRenderHint(QPainter::Antialiasing, false);
|
||||||
painter->setFont(font);
|
painter->setFont(_font);
|
||||||
painter->setPen(pen);
|
painter->setPen(QPen(Qt::black, AXIS_WIDTH));
|
||||||
|
|
||||||
ls = fm.tightBoundingRect(_label);
|
|
||||||
|
|
||||||
if (_type == X) {
|
if (_type == X) {
|
||||||
painter->drawLine(0, 0, _size, 0);
|
painter->drawLine(0, 0, _size, 0);
|
||||||
|
|
||||||
l = label(_range.min(), _range.max(), XTICKS);
|
for (int i = 0; i < _ticks.count(); i++) {
|
||||||
for (int i = 0; i < ((l.max - l.min) / l.d) + 1; i++) {
|
qreal val = _ticks.at(i).value;
|
||||||
val = l.min + i * l.d;
|
ts = _ticks.at(i).boundingBox;
|
||||||
QString str = QString::number(val);
|
|
||||||
|
|
||||||
painter->drawLine((_size/range) * (val - _range.min()), TICK/2,
|
painter->drawLine((_size/_range.size()) * (val - _range.min()),
|
||||||
(_size/range) * (val - _range.min()), -TICK/2);
|
TICK/2, (_size/_range.size()) * (val - _range.min()), -TICK/2);
|
||||||
ts = fm.tightBoundingRect(str);
|
painter->drawText(((_size/_range.size()) * (val - _range.min()))
|
||||||
painter->drawText(((_size/range) * (val - _range.min()))
|
- (ts.width()/2), ts.height() + TICK/2 + PADDING,
|
||||||
- (ts.width()/2), ts.height() + TICK/2 + PADDING, str);
|
QString::number(val));
|
||||||
}
|
}
|
||||||
|
|
||||||
painter->drawText(_size/2 - ls.width()/2, ls.height() + ts.height()
|
painter->drawText(_size/2 - _labelBB.width()/2, _labelBB.height()
|
||||||
- 2*fm.descent() + TICK/2 + 2*PADDING, _label);
|
+ ts.height() - 2*fm.descent() + TICK/2 + 2*PADDING, _label);
|
||||||
} else {
|
} else {
|
||||||
painter->drawLine(0, 0, 0, -_size);
|
painter->drawLine(0, 0, 0, -_size);
|
||||||
|
|
||||||
l = label(_range.min(), _range.max(), YTICKS);
|
|
||||||
int mtw = 0;
|
int mtw = 0;
|
||||||
for (int i = 0; i < ((l.max - l.min) / l.d) + 1; i++) {
|
for (int i = 0; i < _ticks.count(); i++) {
|
||||||
val = l.min + i * l.d;
|
qreal val = _ticks.at(i).value;
|
||||||
QString str = QString::number(val);
|
ts = _ticks.at(i).boundingBox;
|
||||||
|
|
||||||
painter->drawLine(TICK/2, -((_size/range) * (val - _range.min())),
|
|
||||||
-TICK/2, -((_size/range) * (val - _range.min())));
|
|
||||||
ts = fm.tightBoundingRect(str);
|
|
||||||
mtw = qMax(ts.width(), mtw);
|
mtw = qMax(ts.width(), mtw);
|
||||||
painter->drawText(-(ts.width() + PADDING + TICK/2), -((_size/range)
|
|
||||||
* (val - _range.min())) + (ts.height()/2), str);
|
painter->drawLine(TICK/2, -((_size/_range.size())
|
||||||
|
* (val - _range.min())), -TICK/2, -((_size/_range.size())
|
||||||
|
* (val - _range.min())));
|
||||||
|
painter->drawText(-(ts.width() + PADDING + TICK/2),
|
||||||
|
-((_size/_range.size()) * (val - _range.min())) + (ts.height()/2),
|
||||||
|
QString::number(val));
|
||||||
}
|
}
|
||||||
|
|
||||||
painter->rotate(-90);
|
painter->rotate(-90);
|
||||||
painter->drawText(_size/2 - ls.width()/2, -(mtw + 2*PADDING + TICK/2),
|
painter->drawText(_size/2 - _labelBB.width()/2, -(mtw + 2*PADDING
|
||||||
_label);
|
+ TICK/2), _label);
|
||||||
painter->rotate(90);
|
painter->rotate(90);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -172,46 +166,28 @@ void AxisItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
|||||||
|
|
||||||
QSizeF AxisItem::margin() const
|
QSizeF AxisItem::margin() const
|
||||||
{
|
{
|
||||||
QFont font;
|
QFontMetrics fm(_font);
|
||||||
font.setPixelSize(FONT_SIZE);
|
QRect es = _ticks.isEmpty() ? QRect() : _ticks.last().boundingBox;
|
||||||
QFontMetrics fm(font);
|
|
||||||
QRect ss, es, ls;
|
|
||||||
struct Label l;
|
|
||||||
|
|
||||||
|
|
||||||
l = label(_range.min(), _range.max(), (_type == X) ? XTICKS : YTICKS);
|
|
||||||
es = fm.tightBoundingRect(QString::number(l.max));
|
|
||||||
ss = fm.tightBoundingRect(QString::number(l.min));
|
|
||||||
ls = fm.tightBoundingRect(_label);
|
|
||||||
|
|
||||||
if (_type == X) {
|
if (_type == X) {
|
||||||
return QSizeF(es.width()/2,
|
return QSizeF(es.width()/2, _labelBB.height() + es.height()
|
||||||
ls.height() + es.height() - fm.descent() + TICK/2 + 2*PADDING);
|
- fm.descent() + TICK/2 + 2*PADDING);
|
||||||
} else {
|
} else {
|
||||||
int mtw = 0;
|
int mtw = 0;
|
||||||
QRect ts;
|
for (int i = 0; i < _ticks.count(); i++)
|
||||||
qreal val;
|
mtw = qMax(_ticks.at(i).boundingBox.width(), mtw);
|
||||||
|
|
||||||
for (int i = 0; i < ((l.max - l.min) / l.d) + 1; i++) {
|
return QSizeF(_labelBB.height() -fm.descent() + mtw + 2*PADDING
|
||||||
val = l.min + i * l.d;
|
|
||||||
QString str = QString::number(val);
|
|
||||||
ts = fm.tightBoundingRect(str);
|
|
||||||
mtw = qMax(ts.width(), mtw);
|
|
||||||
}
|
|
||||||
|
|
||||||
return QSizeF(ls.height() -fm.descent() + mtw + 2*PADDING
|
|
||||||
+ TICK/2, es.height()/2 + fm.descent());
|
+ TICK/2, es.height()/2 + fm.descent());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<qreal> AxisItem::ticks() const
|
QList<qreal> AxisItem::ticks() const
|
||||||
{
|
{
|
||||||
struct Label l;
|
|
||||||
QList<qreal> list;
|
QList<qreal> list;
|
||||||
|
|
||||||
l = label(_range.min(), _range.max(), (_type == X) ? XTICKS : YTICKS);
|
for (int i = 0; i < _ticks.count(); i++)
|
||||||
for (int i = 0; i < ((l.max - l.min) / l.d) + 1; i++)
|
list.append(((_size/_range.size()) * (_ticks.at(i).value
|
||||||
list.append(((_size/_range.size()) * ((l.min + i * l.d)
|
|
||||||
- _range.min())));
|
- _range.min())));
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#define AXISITEM_H
|
#define AXISITEM_H
|
||||||
|
|
||||||
#include <QGraphicsItem>
|
#include <QGraphicsItem>
|
||||||
|
#include <QVector>
|
||||||
#include "common/range.h"
|
#include "common/range.h"
|
||||||
|
|
||||||
class AxisItem : public QGraphicsItem
|
class AxisItem : public QGraphicsItem
|
||||||
@ -23,13 +24,21 @@ public:
|
|||||||
QList<qreal> ticks() const;
|
QList<qreal> ticks() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
struct Tick {
|
||||||
|
double value;
|
||||||
|
QRect boundingBox;
|
||||||
|
};
|
||||||
|
|
||||||
void updateBoundingRect();
|
void updateBoundingRect();
|
||||||
|
|
||||||
Type _type;
|
Type _type;
|
||||||
RangeF _range;
|
RangeF _range;
|
||||||
qreal _size;
|
qreal _size;
|
||||||
QString _label;
|
QString _label;
|
||||||
|
QRect _labelBB;
|
||||||
|
QVector<Tick> _ticks;
|
||||||
QRectF _boundingRect;
|
QRectF _boundingRect;
|
||||||
|
QFont _font;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // AXISITEM_H
|
#endif // AXISITEM_H
|
||||||
|
@ -24,28 +24,33 @@ void CadenceGraph::setInfo()
|
|||||||
clearInfo();
|
clearInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CadenceGraph::loadData(const Data &data, const QList<PathItem *> &paths)
|
QList<GraphItem*> CadenceGraph::loadData(const Data &data)
|
||||||
{
|
{
|
||||||
|
QList<GraphItem*> graphs;
|
||||||
|
|
||||||
for (int i = 0; i < data.tracks().count(); i++) {
|
for (int i = 0; i < data.tracks().count(); i++) {
|
||||||
const Graph &graph = data.tracks().at(i)->cadence();
|
const Graph &graph = data.tracks().at(i)->cadence();
|
||||||
|
|
||||||
if (graph.size() < 2) {
|
if (graph.size() < 2) {
|
||||||
skipColor();
|
skipColor();
|
||||||
continue;
|
graphs.append(0);
|
||||||
|
} else {
|
||||||
|
CadenceGraphItem *gi = new CadenceGraphItem(graph, _graphType);
|
||||||
|
GraphView::addGraph(gi);
|
||||||
|
_avg.append(QPointF(data.tracks().at(i)->distance(), gi->avg()));
|
||||||
|
graphs.append(gi);
|
||||||
}
|
}
|
||||||
|
|
||||||
CadenceGraphItem *gi = new CadenceGraphItem(graph, _graphType);
|
|
||||||
GraphView::addGraph(gi, paths.at(i));
|
|
||||||
|
|
||||||
_avg.append(QPointF(data.tracks().at(i)->distance(), gi->avg()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < data.routes().count(); i++)
|
for (int i = 0; i < data.routes().count(); i++) {
|
||||||
skipColor();
|
skipColor();
|
||||||
|
graphs.append(0);
|
||||||
|
}
|
||||||
|
|
||||||
setInfo();
|
setInfo();
|
||||||
|
|
||||||
redraw();
|
redraw();
|
||||||
|
|
||||||
|
return graphs;
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal CadenceGraph::avg() const
|
qreal CadenceGraph::avg() const
|
||||||
|
@ -11,7 +11,7 @@ public:
|
|||||||
CadenceGraph(QWidget *parent = 0);
|
CadenceGraph(QWidget *parent = 0);
|
||||||
|
|
||||||
QString label() const {return tr("Cadence");}
|
QString label() const {return tr("Cadence");}
|
||||||
void loadData(const Data &data, const QList<PathItem *> &paths);
|
QList<GraphItem*> loadData(const Data &data);
|
||||||
void clear();
|
void clear();
|
||||||
void showTracks(bool show);
|
void showTracks(bool show);
|
||||||
void showRoutes(bool show) {Q_UNUSED(show);}
|
void showRoutes(bool show) {Q_UNUSED(show);}
|
||||||
|
@ -65,15 +65,15 @@ void ElevationGraph::setInfo()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ElevationGraph::loadGraph(const Graph &graph, Type type, PathItem *path)
|
GraphItem *ElevationGraph::loadGraph(const Graph &graph, Type type)
|
||||||
{
|
{
|
||||||
if (graph.size() < 2) {
|
if (graph.size() < 2) {
|
||||||
skipColor();
|
skipColor();
|
||||||
return;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ElevationGraphItem *gi = new ElevationGraphItem(graph, _graphType);
|
ElevationGraphItem *gi = new ElevationGraphItem(graph, _graphType);
|
||||||
GraphView::addGraph(gi, path, type);
|
GraphView::addGraph(gi, type);
|
||||||
|
|
||||||
if (type == Track) {
|
if (type == Track) {
|
||||||
_trackAscent += gi->ascent();
|
_trackAscent += gi->ascent();
|
||||||
@ -86,20 +86,23 @@ void ElevationGraph::loadGraph(const Graph &graph, Type type, PathItem *path)
|
|||||||
_routeMax = nMax(_routeMax, gi->max());
|
_routeMax = nMax(_routeMax, gi->max());
|
||||||
_routeMin = nMin(_routeMin, gi->min());
|
_routeMin = nMin(_routeMin, gi->min());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return gi;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ElevationGraph::loadData(const Data &data, const QList<PathItem *> &paths)
|
QList<GraphItem*> ElevationGraph::loadData(const Data &data)
|
||||||
{
|
{
|
||||||
int p = 0;
|
QList<GraphItem*> graphs;
|
||||||
|
|
||||||
for (int i = 0; i < data.tracks().count(); i++)
|
for (int i = 0; i < data.tracks().count(); i++)
|
||||||
loadGraph(data.tracks().at(i)->elevation(), Track, paths.at(p++));
|
graphs.append(loadGraph(data.tracks().at(i)->elevation(), Track));
|
||||||
for (int i = 0; i < data.routes().count(); i++)
|
for (int i = 0; i < data.routes().count(); i++)
|
||||||
loadGraph(data.routes().at(i)->elevation(), Route, paths.at(p++));
|
graphs.append(loadGraph(data.routes().at(i)->elevation(), Route));
|
||||||
|
|
||||||
setInfo();
|
setInfo();
|
||||||
|
|
||||||
redraw();
|
redraw();
|
||||||
|
|
||||||
|
return graphs;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ElevationGraph::clear()
|
void ElevationGraph::clear()
|
||||||
|
@ -11,7 +11,7 @@ public:
|
|||||||
ElevationGraph(QWidget *parent = 0);
|
ElevationGraph(QWidget *parent = 0);
|
||||||
|
|
||||||
QString label() const {return tr("Elevation");}
|
QString label() const {return tr("Elevation");}
|
||||||
void loadData(const Data &data, const QList<PathItem *> &paths);
|
QList<GraphItem*> loadData(const Data &data);
|
||||||
void clear();
|
void clear();
|
||||||
void setUnits(enum Units units);
|
void setUnits(enum Units units);
|
||||||
void showTracks(bool show);
|
void showTracks(bool show);
|
||||||
@ -28,7 +28,7 @@ private:
|
|||||||
void setYUnits(Units units);
|
void setYUnits(Units units);
|
||||||
void setInfo();
|
void setInfo();
|
||||||
|
|
||||||
void loadGraph(const Graph &graph, Type type, PathItem *path);
|
GraphItem *loadGraph(const Graph &graph, Type type);
|
||||||
|
|
||||||
qreal _trackAscent, _trackDescent;
|
qreal _trackAscent, _trackDescent;
|
||||||
qreal _routeAscent, _routeDescent;
|
qreal _routeAscent, _routeDescent;
|
||||||
|
@ -42,9 +42,9 @@ ExportDialog::ExportDialog(Export *exp, QWidget *parent)
|
|||||||
_paperSize->setCurrentIndex(index);
|
_paperSize->setCurrentIndex(index);
|
||||||
|
|
||||||
_resolution = new QComboBox();
|
_resolution = new QComboBox();
|
||||||
|
_resolution->addItem("150 DPI", 150);
|
||||||
_resolution->addItem("300 DPI", 300);
|
_resolution->addItem("300 DPI", 300);
|
||||||
_resolution->addItem("600 DPI", 600);
|
_resolution->addItem("600 DPI", 600);
|
||||||
_resolution->addItem("1200 DPI", 1200);
|
|
||||||
if ((index = _resolution->findData(_export->resolution)) >= 0)
|
if ((index = _resolution->findData(_export->resolution)) >= 0)
|
||||||
_resolution->setCurrentIndex(index);
|
_resolution->setCurrentIndex(index);
|
||||||
|
|
||||||
|
@ -13,11 +13,6 @@ FileBrowser::FileBrowser(QObject *parent) : QObject(parent)
|
|||||||
_index = -1;
|
_index = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
FileBrowser::~FileBrowser()
|
|
||||||
{
|
|
||||||
delete _watcher;
|
|
||||||
}
|
|
||||||
|
|
||||||
void FileBrowser::setCurrent(const QString &path)
|
void FileBrowser::setCurrent(const QString &path)
|
||||||
{
|
{
|
||||||
QFileInfo file(path);
|
QFileInfo file(path);
|
||||||
|
@ -13,7 +13,6 @@ class FileBrowser : public QObject
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
FileBrowser(QObject *parent = 0);
|
FileBrowser(QObject *parent = 0);
|
||||||
~FileBrowser();
|
|
||||||
|
|
||||||
void setFilter(const QStringList &filter);
|
void setFilter(const QStringList &filter);
|
||||||
void setCurrent(const QString &path);
|
void setCurrent(const QString &path);
|
||||||
|
@ -73,10 +73,10 @@ QString Format::distance(qreal value, Units units)
|
|||||||
QString Format::elevation(qreal value, Units units)
|
QString Format::elevation(qreal value, Units units)
|
||||||
{
|
{
|
||||||
if (units == Metric)
|
if (units == Metric)
|
||||||
return QString::number(value, 'f', 0) + UNIT_SPACE
|
return QString::number(qRound(value)) + UNIT_SPACE
|
||||||
+ qApp->translate("Format", "m");
|
+ qApp->translate("Format", "m");
|
||||||
else
|
else
|
||||||
return QString::number(value * M2FT, 'f', 0) + UNIT_SPACE
|
return QString::number(qRound(value * M2FT)) + UNIT_SPACE
|
||||||
+ qApp->translate("Format", "ft");
|
+ qApp->translate("Format", "ft");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
94
src/GUI/gearratiograph.cpp
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
#include "data/data.h"
|
||||||
|
#include "gearratiographitem.h"
|
||||||
|
#include "gearratiograph.h"
|
||||||
|
|
||||||
|
|
||||||
|
GearRatioGraph::GearRatioGraph(QWidget *parent) : GraphTab(parent)
|
||||||
|
{
|
||||||
|
_showTracks = true;
|
||||||
|
|
||||||
|
GraphView::setYUnits("");
|
||||||
|
setYLabel(tr("Gear ratio"));
|
||||||
|
|
||||||
|
setSliderPrecision(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
void GearRatioGraph::setInfo()
|
||||||
|
{
|
||||||
|
if (_showTracks) {
|
||||||
|
GraphView::addInfo(tr("Most used"), QString::number(top() * yScale(),
|
||||||
|
'f', 2) + UNIT_SPACE + yUnits());
|
||||||
|
GraphView::addInfo(tr("Minimum"), QString::number(min() * yScale(), 'f',
|
||||||
|
2) + UNIT_SPACE + yUnits());
|
||||||
|
GraphView::addInfo(tr("Maximum"), QString::number(max() * yScale(), 'f',
|
||||||
|
2) + UNIT_SPACE + yUnits());
|
||||||
|
} else
|
||||||
|
clearInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
QList<GraphItem*> GearRatioGraph::loadData(const Data &data)
|
||||||
|
{
|
||||||
|
QList<GraphItem*> graphs;
|
||||||
|
|
||||||
|
for (int i = 0; i < data.tracks().count(); i++) {
|
||||||
|
const Graph &graph = data.tracks().at(i)->ratio();
|
||||||
|
|
||||||
|
if (graph.size() < 2) {
|
||||||
|
skipColor();
|
||||||
|
graphs.append(0);
|
||||||
|
} else {
|
||||||
|
GearRatioGraphItem *gi = new GearRatioGraphItem(graph, _graphType);
|
||||||
|
GraphView::addGraph(gi);
|
||||||
|
|
||||||
|
for (QMap<qreal, qreal>::const_iterator it = gi->map().constBegin();
|
||||||
|
it != gi->map().constEnd(); ++it)
|
||||||
|
_map.insert(it.key(), _map.value(it.key()) + it.value());
|
||||||
|
graphs.append(gi);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < data.routes().count(); i++) {
|
||||||
|
skipColor();
|
||||||
|
graphs.append(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
setInfo();
|
||||||
|
redraw();
|
||||||
|
|
||||||
|
return graphs;
|
||||||
|
}
|
||||||
|
|
||||||
|
qreal GearRatioGraph::top() const
|
||||||
|
{
|
||||||
|
qreal key = NAN, val = NAN;
|
||||||
|
|
||||||
|
for (QMap<qreal, qreal>::const_iterator it = _map.constBegin();
|
||||||
|
it != _map.constEnd(); ++it) {
|
||||||
|
if (it == _map.constBegin()) {
|
||||||
|
val = it.value();
|
||||||
|
key = it.key();
|
||||||
|
} else if (it.value() > val) {
|
||||||
|
val = it.value();
|
||||||
|
key = it.key();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GearRatioGraph::clear()
|
||||||
|
{
|
||||||
|
_map.clear();
|
||||||
|
|
||||||
|
GraphView::clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
void GearRatioGraph::showTracks(bool show)
|
||||||
|
{
|
||||||
|
_showTracks = show;
|
||||||
|
|
||||||
|
showGraph(show);
|
||||||
|
setInfo();
|
||||||
|
|
||||||
|
redraw();
|
||||||
|
}
|
30
src/GUI/gearratiograph.h
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#ifndef GEARRATIOGRAPH_H
|
||||||
|
#define GEARRATIOGRAPH_H
|
||||||
|
|
||||||
|
#include <QMap>
|
||||||
|
#include "graphtab.h"
|
||||||
|
|
||||||
|
class GearRatioGraph : public GraphTab
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
GearRatioGraph(QWidget *parent = 0);
|
||||||
|
|
||||||
|
QString label() const {return tr("Gear ratio");}
|
||||||
|
QList<GraphItem*> loadData(const Data &data);
|
||||||
|
void clear();
|
||||||
|
void showTracks(bool show);
|
||||||
|
|
||||||
|
private:
|
||||||
|
qreal top() const;
|
||||||
|
qreal min() const {return bounds().top();}
|
||||||
|
qreal max() const {return bounds().bottom();}
|
||||||
|
void setInfo();
|
||||||
|
|
||||||
|
QMap<qreal, qreal> _map;
|
||||||
|
|
||||||
|
bool _showTracks;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // GEARRATIOGRAPH_H
|
39
src/GUI/gearratiographitem.cpp
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
#include <QMap>
|
||||||
|
#include "tooltip.h"
|
||||||
|
#include "gearratiographitem.h"
|
||||||
|
|
||||||
|
GearRatioGraphItem::GearRatioGraphItem(const Graph &graph, GraphType type,
|
||||||
|
QGraphicsItem *parent) : GraphItem(graph, type, parent), _top(NAN)
|
||||||
|
{
|
||||||
|
qreal val = NAN;
|
||||||
|
|
||||||
|
for (int j = 1; j < graph.size(); j++) {
|
||||||
|
const GraphPoint &p = graph.at(j);
|
||||||
|
qreal val = _map.value(p.y());
|
||||||
|
_map.insert(p.y(), val + (p.s() - graph.at(j-1).s()));
|
||||||
|
}
|
||||||
|
|
||||||
|
for (QMap<qreal, qreal>::const_iterator it = _map.constBegin();
|
||||||
|
it != _map.constEnd(); ++it) {
|
||||||
|
if (it == _map.constBegin()) {
|
||||||
|
val = it.value();
|
||||||
|
_top = it.key();
|
||||||
|
} else if (it.value() > val) {
|
||||||
|
val = it.value();
|
||||||
|
_top = it.key();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
setToolTip(toolTip());
|
||||||
|
}
|
||||||
|
|
||||||
|
QString GearRatioGraphItem::toolTip() const
|
||||||
|
{
|
||||||
|
ToolTip tt;
|
||||||
|
|
||||||
|
tt.insert(tr("Minimum"), QString::number(min(), 'f', 2));
|
||||||
|
tt.insert(tr("Maximum"), QString::number(max(), 'f', 2));
|
||||||
|
tt.insert(tr("Most used"), QString::number(top(), 'f', 2));
|
||||||
|
|
||||||
|
return tt.toString();
|
||||||
|
}
|
28
src/GUI/gearratiographitem.h
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#ifndef GEARRATIOGRAPHITEM_H
|
||||||
|
#define GEARRATIOGRAPHITEM_H
|
||||||
|
|
||||||
|
#include <QMap>
|
||||||
|
#include "graphitem.h"
|
||||||
|
|
||||||
|
class GearRatioGraphItem : public GraphItem
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
GearRatioGraphItem(const Graph &graph, GraphType type,
|
||||||
|
QGraphicsItem *parent = 0);
|
||||||
|
|
||||||
|
qreal min() const {return -bounds().bottom();}
|
||||||
|
qreal max() const {return -bounds().top();}
|
||||||
|
qreal top() const {return _top;}
|
||||||
|
|
||||||
|
const QMap<qreal, qreal> &map() const {return _map;}
|
||||||
|
|
||||||
|
private:
|
||||||
|
QString toolTip() const;
|
||||||
|
|
||||||
|
QMap<qreal, qreal> _map;
|
||||||
|
qreal _top;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // GEARRATIOGRAPHITEM_H
|
@ -7,7 +7,7 @@
|
|||||||
#include "timetype.h"
|
#include "timetype.h"
|
||||||
|
|
||||||
class Data;
|
class Data;
|
||||||
class PathItem;
|
class GraphItem;
|
||||||
|
|
||||||
class GraphTab : public GraphView
|
class GraphTab : public GraphView
|
||||||
{
|
{
|
||||||
@ -19,7 +19,7 @@ public:
|
|||||||
virtual ~GraphTab() {}
|
virtual ~GraphTab() {}
|
||||||
|
|
||||||
virtual QString label() const = 0;
|
virtual QString label() const = 0;
|
||||||
virtual void loadData(const Data &data, const QList<PathItem *> &paths) = 0;
|
virtual QList<GraphItem*> loadData(const Data &data) = 0;
|
||||||
virtual void clear() {GraphView::clear();}
|
virtual void clear() {GraphView::clear();}
|
||||||
virtual void setUnits(enum Units units) {GraphView::setUnits(units);}
|
virtual void setUnits(enum Units units) {GraphView::setUnits(units);}
|
||||||
virtual void setGraphType(GraphType type) {GraphView::setGraphType(type);}
|
virtual void setGraphType(GraphType type) {GraphView::setGraphType(type);}
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QPaintEngine>
|
#include <QPaintEngine>
|
||||||
#include <QPaintDevice>
|
#include <QPaintDevice>
|
||||||
|
#include <QGraphicsSimpleTextItem>
|
||||||
|
#include <QPalette>
|
||||||
#include "data/graph.h"
|
#include "data/graph.h"
|
||||||
#include "opengl.h"
|
#include "opengl.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@ -41,6 +43,9 @@ GraphView::GraphView(QWidget *parent)
|
|||||||
_sliderInfo->setZValue(3.0);
|
_sliderInfo->setZValue(3.0);
|
||||||
_info = new InfoItem();
|
_info = new InfoItem();
|
||||||
_grid = new GridItem();
|
_grid = new GridItem();
|
||||||
|
_message = new QGraphicsSimpleTextItem(tr("Data not available"));
|
||||||
|
_message->setBrush(QPalette().brush(QPalette::Disabled,
|
||||||
|
QPalette::WindowText));
|
||||||
|
|
||||||
connect(_slider, SIGNAL(positionChanged(const QPointF&)), this,
|
connect(_slider, SIGNAL(positionChanged(const QPointF&)), this,
|
||||||
SLOT(emitSliderPositionChanged(const QPointF&)));
|
SLOT(emitSliderPositionChanged(const QPointF&)));
|
||||||
@ -63,30 +68,27 @@ GraphView::GraphView(QWidget *parent)
|
|||||||
|
|
||||||
GraphView::~GraphView()
|
GraphView::~GraphView()
|
||||||
{
|
{
|
||||||
if (_xAxis->scene() != _scene)
|
delete _xAxis;
|
||||||
delete _xAxis;
|
delete _yAxis;
|
||||||
if (_yAxis->scene() != _scene)
|
delete _slider;
|
||||||
delete _yAxis;
|
delete _info;
|
||||||
if (_slider->scene() != _scene)
|
delete _grid;
|
||||||
delete _slider;
|
delete _message;
|
||||||
if (_info->scene() != _scene)
|
|
||||||
delete _info;
|
|
||||||
if (_grid->scene() != _scene)
|
|
||||||
delete _grid;
|
|
||||||
|
|
||||||
for (int i = 0; i < _graphs.count(); i++)
|
for (int i = 0; i < _graphs.count(); i++)
|
||||||
if (_graphs.at(i)->scene() != _scene)
|
delete _graphs[i];
|
||||||
delete _graphs[i];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphView::createXLabel()
|
void GraphView::createXLabel()
|
||||||
{
|
{
|
||||||
_xAxis->setLabel(QString("%1 [%2]").arg(_xLabel).arg(_xUnits));
|
_xAxis->setLabel(QString("%1 [%2]").arg(_xLabel,
|
||||||
|
_xUnits.isEmpty() ? "-" : _xUnits));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphView::createYLabel()
|
void GraphView::createYLabel()
|
||||||
{
|
{
|
||||||
_yAxis->setLabel(QString("%1 [%2]").arg(_yLabel).arg(_yUnits));
|
_yAxis->setLabel(QString("%1 [%2]").arg(_yLabel,
|
||||||
|
_yUnits.isEmpty() ? "-" : _yUnits));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphView::setYLabel(const QString &label)
|
void GraphView::setYLabel(const QString &label)
|
||||||
@ -163,9 +165,16 @@ void GraphView::setGraphType(GraphType type)
|
|||||||
_bounds = QRectF();
|
_bounds = QRectF();
|
||||||
|
|
||||||
for (int i = 0; i < _graphs.count(); i++) {
|
for (int i = 0; i < _graphs.count(); i++) {
|
||||||
_graphs.at(i)->setGraphType(type);
|
GraphItem *gi = _graphs.at(i);
|
||||||
if (_graphs.at(i)->scene() == _scene)
|
gi->setGraphType(type);
|
||||||
_bounds |= _graphs.at(i)->bounds();
|
if (!_hide.contains(gi->id())) {
|
||||||
|
if (gi->bounds().width() > 0)
|
||||||
|
addItem(gi);
|
||||||
|
else
|
||||||
|
removeItem(gi);
|
||||||
|
}
|
||||||
|
if (gi->scene() == _scene)
|
||||||
|
_bounds |= gi->bounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == Distance)
|
if (type == Distance)
|
||||||
@ -187,7 +196,7 @@ void GraphView::showSliderInfo(bool show)
|
|||||||
_sliderInfo->setVisible(show);
|
_sliderInfo->setVisible(show);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphView::addGraph(GraphItem *graph, PathItem *path, int id)
|
void GraphView::addGraph(GraphItem *graph, int id)
|
||||||
{
|
{
|
||||||
QColor color(_palette.nextColor());
|
QColor color(_palette.nextColor());
|
||||||
color.setAlpha(255);
|
color.setAlpha(255);
|
||||||
@ -199,17 +208,15 @@ void GraphView::addGraph(GraphItem *graph, PathItem *path, int id)
|
|||||||
|
|
||||||
connect(this, SIGNAL(sliderPositionChanged(qreal)), graph,
|
connect(this, SIGNAL(sliderPositionChanged(qreal)), graph,
|
||||||
SLOT(emitSliderPositionChanged(qreal)));
|
SLOT(emitSliderPositionChanged(qreal)));
|
||||||
connect(graph, SIGNAL(sliderPositionChanged(qreal)), path,
|
|
||||||
SLOT(moveMarker(qreal)));
|
|
||||||
connect(path, SIGNAL(selected(bool)), graph, SLOT(hover(bool)));
|
|
||||||
connect(graph, SIGNAL(selected(bool)), path, SLOT(hover(bool)));
|
|
||||||
|
|
||||||
_graphs.append(graph);
|
_graphs.append(graph);
|
||||||
|
|
||||||
if (!_hide.contains(id)) {
|
if (!_hide.contains(id)) {
|
||||||
_visible.append(graph);
|
_visible.append(graph);
|
||||||
_scene->addItem(graph);
|
if (graph->bounds().width() > 0) {
|
||||||
_bounds |= graph->bounds();
|
_scene->addItem(graph);
|
||||||
|
_bounds |= graph->bounds();
|
||||||
|
}
|
||||||
setXUnits();
|
setXUnits();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -236,13 +243,15 @@ void GraphView::showGraph(bool show, int id)
|
|||||||
_visible.clear();
|
_visible.clear();
|
||||||
_bounds = QRectF();
|
_bounds = QRectF();
|
||||||
for (int i = 0; i < _graphs.count(); i++) {
|
for (int i = 0; i < _graphs.count(); i++) {
|
||||||
GraphItem* gi = _graphs.at(i);
|
GraphItem *gi = _graphs.at(i);
|
||||||
if (_hide.contains(gi->id()))
|
if (_hide.contains(gi->id()))
|
||||||
removeItem(gi);
|
removeItem(gi);
|
||||||
else {
|
else {
|
||||||
addItem(gi);
|
|
||||||
_visible.append(gi);
|
_visible.append(gi);
|
||||||
_bounds |= gi->bounds();
|
if (gi->bounds().width() > 0) {
|
||||||
|
addItem(gi);
|
||||||
|
_bounds |= gi->bounds();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -256,7 +265,8 @@ QRectF GraphView::bounds() const
|
|||||||
|
|
||||||
void GraphView::redraw()
|
void GraphView::redraw()
|
||||||
{
|
{
|
||||||
redraw(viewport()->size() - QSizeF(MARGIN, MARGIN));
|
if (!_graphs.isEmpty())
|
||||||
|
redraw(viewport()->size() - QSizeF(MARGIN, MARGIN));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphView::redraw(const QSizeF &size)
|
void GraphView::redraw(const QSizeF &size)
|
||||||
@ -267,16 +277,18 @@ void GraphView::redraw(const QSizeF &size)
|
|||||||
qreal sx, sy;
|
qreal sx, sy;
|
||||||
|
|
||||||
|
|
||||||
if (_visible.isEmpty() || _bounds.isNull()) {
|
if (_bounds.isNull()) {
|
||||||
removeItem(_xAxis);
|
removeItem(_xAxis);
|
||||||
removeItem(_yAxis);
|
removeItem(_yAxis);
|
||||||
removeItem(_slider);
|
removeItem(_slider);
|
||||||
removeItem(_info);
|
removeItem(_info);
|
||||||
removeItem(_grid);
|
removeItem(_grid);
|
||||||
_scene->setSceneRect(QRectF());
|
addItem(_message);
|
||||||
|
_scene->setSceneRect(_scene->itemsBoundingRect());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
removeItem(_message);
|
||||||
addItem(_xAxis);
|
addItem(_xAxis);
|
||||||
addItem(_yAxis);
|
addItem(_yAxis);
|
||||||
addItem(_slider);
|
addItem(_slider);
|
||||||
@ -312,6 +324,7 @@ void GraphView::redraw(const QSizeF &size)
|
|||||||
if (r.height() < _minYRange * sy)
|
if (r.height() < _minYRange * sy)
|
||||||
r.adjust(0, -(_minYRange/2 * sy - r.height()/2), 0,
|
r.adjust(0, -(_minYRange/2 * sy - r.height()/2), 0,
|
||||||
(_minYRange/2) * sy - r.height()/2);
|
(_minYRange/2) * sy - r.height()/2);
|
||||||
|
r = r.toRect();
|
||||||
|
|
||||||
_xAxis->setSize(r.width());
|
_xAxis->setSize(r.width());
|
||||||
_yAxis->setSize(r.height());
|
_yAxis->setSize(r.height());
|
||||||
@ -333,9 +346,11 @@ void GraphView::redraw(const QSizeF &size)
|
|||||||
_scene->setSceneRect(_scene->itemsBoundingRect());
|
_scene->setSceneRect(_scene->itemsBoundingRect());
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphView::resizeEvent(QResizeEvent *)
|
void GraphView::resizeEvent(QResizeEvent *e)
|
||||||
{
|
{
|
||||||
redraw();
|
redraw(e->size() - QSizeF(MARGIN, MARGIN));
|
||||||
|
|
||||||
|
QGraphicsView::resizeEvent(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphView::mousePressEvent(QMouseEvent *e)
|
void GraphView::mousePressEvent(QMouseEvent *e)
|
||||||
|
@ -7,15 +7,16 @@
|
|||||||
#include "data/graph.h"
|
#include "data/graph.h"
|
||||||
#include "palette.h"
|
#include "palette.h"
|
||||||
#include "units.h"
|
#include "units.h"
|
||||||
|
#include "infoitem.h"
|
||||||
|
|
||||||
|
|
||||||
class AxisItem;
|
class AxisItem;
|
||||||
class SliderItem;
|
class SliderItem;
|
||||||
class SliderInfoItem;
|
class SliderInfoItem;
|
||||||
class InfoItem;
|
|
||||||
class GraphItem;
|
class GraphItem;
|
||||||
class PathItem;
|
class PathItem;
|
||||||
class GridItem;
|
class GridItem;
|
||||||
|
class QGraphicsSimpleTextItem;
|
||||||
|
|
||||||
class GraphView : public QGraphicsView
|
class GraphView : public QGraphicsView
|
||||||
{
|
{
|
||||||
@ -26,6 +27,7 @@ public:
|
|||||||
~GraphView();
|
~GraphView();
|
||||||
|
|
||||||
bool isEmpty() const {return _graphs.isEmpty();}
|
bool isEmpty() const {return _graphs.isEmpty();}
|
||||||
|
const QList<KV> &info() const {return _info->info();}
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
void plot(QPainter *painter, const QRectF &target, qreal scale);
|
void plot(QPainter *painter, const QRectF &target, qreal scale);
|
||||||
@ -44,7 +46,7 @@ signals:
|
|||||||
void sliderPositionChanged(qreal);
|
void sliderPositionChanged(qreal);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void addGraph(GraphItem *graph, PathItem *path, int id = 0);
|
void addGraph(GraphItem *graph, int id = 0);
|
||||||
|
|
||||||
void showGraph(bool show, int id = 0);
|
void showGraph(bool show, int id = 0);
|
||||||
void setGraphType(GraphType type);
|
void setGraphType(GraphType type);
|
||||||
@ -64,7 +66,6 @@ protected:
|
|||||||
|
|
||||||
QRectF bounds() const;
|
QRectF bounds() const;
|
||||||
void redraw();
|
void redraw();
|
||||||
void redraw(const QSizeF &size);
|
|
||||||
void addInfo(const QString &key, const QString &value);
|
void addInfo(const QString &key, const QString &value);
|
||||||
void clearInfo();
|
void clearInfo();
|
||||||
void skipColor() {_palette.nextColor();}
|
void skipColor() {_palette.nextColor();}
|
||||||
@ -77,6 +78,7 @@ private slots:
|
|||||||
void newSliderPosition(const QPointF &pos);
|
void newSliderPosition(const QPointF &pos);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void redraw(const QSizeF &size);
|
||||||
void setXUnits();
|
void setXUnits();
|
||||||
void createXLabel();
|
void createXLabel();
|
||||||
void createYLabel();
|
void createYLabel();
|
||||||
@ -85,8 +87,8 @@ private:
|
|||||||
void removeItem(QGraphicsItem *item);
|
void removeItem(QGraphicsItem *item);
|
||||||
void addItem(QGraphicsItem *item);
|
void addItem(QGraphicsItem *item);
|
||||||
|
|
||||||
void resizeEvent(QResizeEvent *);
|
void resizeEvent(QResizeEvent *e);
|
||||||
void mousePressEvent(QMouseEvent *);
|
void mousePressEvent(QMouseEvent *e);
|
||||||
|
|
||||||
Units _units;
|
Units _units;
|
||||||
qreal _xScale, _yScale;
|
qreal _xScale, _yScale;
|
||||||
@ -104,6 +106,7 @@ private:
|
|||||||
SliderInfoItem *_sliderInfo;
|
SliderInfoItem *_sliderInfo;
|
||||||
InfoItem *_info;
|
InfoItem *_info;
|
||||||
GridItem *_grid;
|
GridItem *_grid;
|
||||||
|
QGraphicsSimpleTextItem *_message;
|
||||||
|
|
||||||
QList<GraphItem*> _visible;
|
QList<GraphItem*> _visible;
|
||||||
QSet<int> _hide;
|
QSet<int> _hide;
|
||||||
|
@ -4,13 +4,6 @@
|
|||||||
|
|
||||||
#define GRID_WIDTH 0
|
#define GRID_WIDTH 0
|
||||||
|
|
||||||
GridItem::GridItem(QGraphicsItem *parent) : QGraphicsItem(parent)
|
|
||||||
{
|
|
||||||
#ifndef Q_OS_MAC
|
|
||||||
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
|
|
||||||
#endif // Q_OS_MAC
|
|
||||||
}
|
|
||||||
|
|
||||||
void GridItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
void GridItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||||
QWidget *widget)
|
QWidget *widget)
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
class GridItem : public QGraphicsItem
|
class GridItem : public QGraphicsItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GridItem(QGraphicsItem *parent = 0);
|
GridItem(QGraphicsItem *parent = 0): QGraphicsItem(parent) {}
|
||||||
|
|
||||||
QRectF boundingRect() const {return _boundingRect;}
|
QRectF boundingRect() const {return _boundingRect;}
|
||||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||||
|
288
src/GUI/gui.cpp
@ -23,8 +23,10 @@
|
|||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <QPixmapCache>
|
#include <QPixmapCache>
|
||||||
#include "data/data.h"
|
#include "data/data.h"
|
||||||
|
#include "data/poi.h"
|
||||||
#include "map/maplist.h"
|
#include "map/maplist.h"
|
||||||
#include "map/emptymap.h"
|
#include "map/emptymap.h"
|
||||||
|
#include "map/downloader.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "icons.h"
|
#include "icons.h"
|
||||||
#include "keys.h"
|
#include "keys.h"
|
||||||
@ -35,11 +37,14 @@
|
|||||||
#include "temperaturegraph.h"
|
#include "temperaturegraph.h"
|
||||||
#include "cadencegraph.h"
|
#include "cadencegraph.h"
|
||||||
#include "powergraph.h"
|
#include "powergraph.h"
|
||||||
|
#include "gearratiograph.h"
|
||||||
#include "mapview.h"
|
#include "mapview.h"
|
||||||
#include "trackinfo.h"
|
#include "trackinfo.h"
|
||||||
#include "filebrowser.h"
|
#include "filebrowser.h"
|
||||||
#include "cpuarch.h"
|
#include "cpuarch.h"
|
||||||
#include "graphtab.h"
|
#include "graphtab.h"
|
||||||
|
#include "graphitem.h"
|
||||||
|
#include "pathitem.h"
|
||||||
#include "gui.h"
|
#include "gui.h"
|
||||||
|
|
||||||
|
|
||||||
@ -57,15 +62,15 @@ GUI::GUI()
|
|||||||
|
|
||||||
createBrowser();
|
createBrowser();
|
||||||
|
|
||||||
QSplitter *splitter = new QSplitter();
|
_splitter = new QSplitter();
|
||||||
splitter->setOrientation(Qt::Vertical);
|
_splitter->setOrientation(Qt::Vertical);
|
||||||
splitter->setChildrenCollapsible(false);
|
_splitter->setChildrenCollapsible(false);
|
||||||
splitter->addWidget(_mapView);
|
_splitter->addWidget(_mapView);
|
||||||
splitter->addWidget(_graphTabWidget);
|
_splitter->addWidget(_graphTabWidget);
|
||||||
splitter->setContentsMargins(0, 0, 0, 0);
|
_splitter->setContentsMargins(0, 0, 0, 0);
|
||||||
splitter->setStretchFactor(0, 255);
|
_splitter->setStretchFactor(0, 255);
|
||||||
splitter->setStretchFactor(1, 1);
|
_splitter->setStretchFactor(1, 1);
|
||||||
setCentralWidget(splitter);
|
setCentralWidget(_splitter);
|
||||||
|
|
||||||
setWindowIcon(QIcon(QPixmap(APP_ICON)));
|
setWindowIcon(QIcon(QPixmap(APP_ICON)));
|
||||||
setWindowTitle(APP_NAME);
|
setWindowTitle(APP_NAME);
|
||||||
@ -82,6 +87,10 @@ GUI::GUI()
|
|||||||
|
|
||||||
_sliderPos = 0;
|
_sliderPos = 0;
|
||||||
|
|
||||||
|
_dataDir = QDir::homePath();
|
||||||
|
_mapDir = QDir::homePath();
|
||||||
|
_poiDir = QDir::homePath();
|
||||||
|
|
||||||
readSettings();
|
readSettings();
|
||||||
|
|
||||||
updateGraphTabs();
|
updateGraphTabs();
|
||||||
@ -89,14 +98,6 @@ GUI::GUI()
|
|||||||
updateStatusBarInfo();
|
updateStatusBarInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
GUI::~GUI()
|
|
||||||
{
|
|
||||||
for (int i = 0; i < _tabs.size(); i++) {
|
|
||||||
if (_graphTabWidget->indexOf(_tabs.at(i)) < 0)
|
|
||||||
delete _tabs.at(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void GUI::loadMaps()
|
void GUI::loadMaps()
|
||||||
{
|
{
|
||||||
_ml = new MapList(this);
|
_ml = new MapList(this);
|
||||||
@ -141,6 +142,7 @@ void GUI::createMapActions()
|
|||||||
|
|
||||||
for (int i = 0; i < _ml->maps().count(); i++) {
|
for (int i = 0; i < _ml->maps().count(); i++) {
|
||||||
QAction *a = new QAction(_ml->maps().at(i)->name(), this);
|
QAction *a = new QAction(_ml->maps().at(i)->name(), this);
|
||||||
|
a->setMenuRole(QAction::NoRole);
|
||||||
a->setCheckable(true);
|
a->setCheckable(true);
|
||||||
a->setActionGroup(_mapsActionGroup);
|
a->setActionGroup(_mapsActionGroup);
|
||||||
|
|
||||||
@ -169,6 +171,7 @@ QAction *GUI::createPOIFileAction(int index)
|
|||||||
{
|
{
|
||||||
QAction *a = new QAction(QFileInfo(_poi->files().at(index)).fileName(),
|
QAction *a = new QAction(QFileInfo(_poi->files().at(index)).fileName(),
|
||||||
this);
|
this);
|
||||||
|
a->setMenuRole(QAction::NoRole);
|
||||||
a->setCheckable(true);
|
a->setCheckable(true);
|
||||||
|
|
||||||
_poiFilesSignalMapper->setMapping(a, index);
|
_poiFilesSignalMapper->setMapping(a, index);
|
||||||
@ -200,8 +203,10 @@ void GUI::createActions()
|
|||||||
|
|
||||||
// Help & About
|
// Help & About
|
||||||
_pathsAction = new QAction(tr("Paths"), this);
|
_pathsAction = new QAction(tr("Paths"), this);
|
||||||
|
_pathsAction->setMenuRole(QAction::NoRole);
|
||||||
connect(_pathsAction, SIGNAL(triggered()), this, SLOT(paths()));
|
connect(_pathsAction, SIGNAL(triggered()), this, SLOT(paths()));
|
||||||
_keysAction = new QAction(tr("Keyboard controls"), this);
|
_keysAction = new QAction(tr("Keyboard controls"), this);
|
||||||
|
_keysAction->setMenuRole(QAction::NoRole);
|
||||||
connect(_keysAction, SIGNAL(triggered()), this, SLOT(keys()));
|
connect(_keysAction, SIGNAL(triggered()), this, SLOT(keys()));
|
||||||
_aboutAction = new QAction(QIcon(QPixmap(APP_ICON)),
|
_aboutAction = new QAction(QIcon(QPixmap(APP_ICON)),
|
||||||
tr("About GPXSee"), this);
|
tr("About GPXSee"), this);
|
||||||
@ -211,50 +216,66 @@ void GUI::createActions()
|
|||||||
// File actions
|
// File actions
|
||||||
_openFileAction = new QAction(QIcon(QPixmap(OPEN_FILE_ICON)),
|
_openFileAction = new QAction(QIcon(QPixmap(OPEN_FILE_ICON)),
|
||||||
tr("Open..."), this);
|
tr("Open..."), this);
|
||||||
|
_openFileAction->setMenuRole(QAction::NoRole);
|
||||||
_openFileAction->setShortcut(OPEN_SHORTCUT);
|
_openFileAction->setShortcut(OPEN_SHORTCUT);
|
||||||
connect(_openFileAction, SIGNAL(triggered()), this, SLOT(openFile()));
|
connect(_openFileAction, SIGNAL(triggered()), this, SLOT(openFile()));
|
||||||
addAction(_openFileAction);
|
addAction(_openFileAction);
|
||||||
_printFileAction = new QAction(QIcon(QPixmap(PRINT_FILE_ICON)),
|
_printFileAction = new QAction(QIcon(QPixmap(PRINT_FILE_ICON)),
|
||||||
tr("Print..."), this);
|
tr("Print..."), this);
|
||||||
|
_printFileAction->setMenuRole(QAction::NoRole);
|
||||||
_printFileAction->setActionGroup(_fileActionGroup);
|
_printFileAction->setActionGroup(_fileActionGroup);
|
||||||
connect(_printFileAction, SIGNAL(triggered()), this, SLOT(printFile()));
|
connect(_printFileAction, SIGNAL(triggered()), this, SLOT(printFile()));
|
||||||
addAction(_printFileAction);
|
addAction(_printFileAction);
|
||||||
_exportFileAction = new QAction(QIcon(QPixmap(EXPORT_FILE_ICON)),
|
_exportFileAction = new QAction(QIcon(QPixmap(EXPORT_FILE_ICON)),
|
||||||
tr("Export to PDF..."), this);
|
tr("Export to PDF..."), this);
|
||||||
|
_exportFileAction->setMenuRole(QAction::NoRole);
|
||||||
_exportFileAction->setShortcut(EXPORT_SHORTCUT);
|
_exportFileAction->setShortcut(EXPORT_SHORTCUT);
|
||||||
_exportFileAction->setActionGroup(_fileActionGroup);
|
_exportFileAction->setActionGroup(_fileActionGroup);
|
||||||
connect(_exportFileAction, SIGNAL(triggered()), this, SLOT(exportFile()));
|
connect(_exportFileAction, SIGNAL(triggered()), this, SLOT(exportFile()));
|
||||||
addAction(_exportFileAction);
|
addAction(_exportFileAction);
|
||||||
_closeFileAction = new QAction(QIcon(QPixmap(CLOSE_FILE_ICON)),
|
_closeFileAction = new QAction(QIcon(QPixmap(CLOSE_FILE_ICON)),
|
||||||
tr("Close"), this);
|
tr("Close"), this);
|
||||||
|
_closeFileAction->setMenuRole(QAction::NoRole);
|
||||||
_closeFileAction->setShortcut(CLOSE_SHORTCUT);
|
_closeFileAction->setShortcut(CLOSE_SHORTCUT);
|
||||||
_closeFileAction->setActionGroup(_fileActionGroup);
|
_closeFileAction->setActionGroup(_fileActionGroup);
|
||||||
connect(_closeFileAction, SIGNAL(triggered()), this, SLOT(closeAll()));
|
connect(_closeFileAction, SIGNAL(triggered()), this, SLOT(closeAll()));
|
||||||
addAction(_closeFileAction);
|
addAction(_closeFileAction);
|
||||||
_reloadFileAction = new QAction(QIcon(QPixmap(RELOAD_FILE_ICON)),
|
_reloadFileAction = new QAction(QIcon(QPixmap(RELOAD_FILE_ICON)),
|
||||||
tr("Reload"), this);
|
tr("Reload"), this);
|
||||||
|
_reloadFileAction->setMenuRole(QAction::NoRole);
|
||||||
_reloadFileAction->setShortcut(RELOAD_SHORTCUT);
|
_reloadFileAction->setShortcut(RELOAD_SHORTCUT);
|
||||||
_reloadFileAction->setActionGroup(_fileActionGroup);
|
_reloadFileAction->setActionGroup(_fileActionGroup);
|
||||||
connect(_reloadFileAction, SIGNAL(triggered()), this, SLOT(reloadFile()));
|
connect(_reloadFileAction, SIGNAL(triggered()), this, SLOT(reloadFile()));
|
||||||
addAction(_reloadFileAction);
|
addAction(_reloadFileAction);
|
||||||
|
_statisticsAction = new QAction(tr("Statistics..."), this);
|
||||||
|
_statisticsAction->setMenuRole(QAction::NoRole);
|
||||||
|
_statisticsAction->setShortcut(STATISTICS_SHORTCUT);
|
||||||
|
_statisticsAction->setActionGroup(_fileActionGroup);
|
||||||
|
connect(_statisticsAction, SIGNAL(triggered()), this, SLOT(statistics()));
|
||||||
|
addAction(_statisticsAction);
|
||||||
|
|
||||||
// POI actions
|
// POI actions
|
||||||
_openPOIAction = new QAction(QIcon(QPixmap(OPEN_FILE_ICON)),
|
_openPOIAction = new QAction(QIcon(QPixmap(OPEN_FILE_ICON)),
|
||||||
tr("Load POI file..."), this);
|
tr("Load POI file..."), this);
|
||||||
|
_openPOIAction->setMenuRole(QAction::NoRole);
|
||||||
connect(_openPOIAction, SIGNAL(triggered()), this, SLOT(openPOIFile()));
|
connect(_openPOIAction, SIGNAL(triggered()), this, SLOT(openPOIFile()));
|
||||||
_closePOIAction = new QAction(QIcon(QPixmap(CLOSE_FILE_ICON)),
|
_closePOIAction = new QAction(QIcon(QPixmap(CLOSE_FILE_ICON)),
|
||||||
tr("Close POI files"), this);
|
tr("Close POI files"), this);
|
||||||
|
_closePOIAction->setMenuRole(QAction::NoRole);
|
||||||
connect(_closePOIAction, SIGNAL(triggered()), this, SLOT(closePOIFiles()));
|
connect(_closePOIAction, SIGNAL(triggered()), this, SLOT(closePOIFiles()));
|
||||||
_overlapPOIAction = new QAction(tr("Overlap POIs"), this);
|
_overlapPOIAction = new QAction(tr("Overlap POIs"), this);
|
||||||
|
_overlapPOIAction->setMenuRole(QAction::NoRole);
|
||||||
_overlapPOIAction->setCheckable(true);
|
_overlapPOIAction->setCheckable(true);
|
||||||
connect(_overlapPOIAction, SIGNAL(triggered(bool)), _mapView,
|
connect(_overlapPOIAction, SIGNAL(triggered(bool)), _mapView,
|
||||||
SLOT(setPOIOverlap(bool)));
|
SLOT(setPOIOverlap(bool)));
|
||||||
_showPOILabelsAction = new QAction(tr("Show POI labels"), this);
|
_showPOILabelsAction = new QAction(tr("Show POI labels"), this);
|
||||||
|
_showPOILabelsAction->setMenuRole(QAction::NoRole);
|
||||||
_showPOILabelsAction->setCheckable(true);
|
_showPOILabelsAction->setCheckable(true);
|
||||||
connect(_showPOILabelsAction, SIGNAL(triggered(bool)), _mapView,
|
connect(_showPOILabelsAction, SIGNAL(triggered(bool)), _mapView,
|
||||||
SLOT(showPOILabels(bool)));
|
SLOT(showPOILabels(bool)));
|
||||||
_showPOIAction = new QAction(QIcon(QPixmap(SHOW_POI_ICON)),
|
_showPOIAction = new QAction(QIcon(QPixmap(SHOW_POI_ICON)),
|
||||||
tr("Show POIs"), this);
|
tr("Show POIs"), this);
|
||||||
|
_showPOIAction->setMenuRole(QAction::NoRole);
|
||||||
_showPOIAction->setCheckable(true);
|
_showPOIAction->setCheckable(true);
|
||||||
_showPOIAction->setShortcut(SHOW_POI_SHORTCUT);
|
_showPOIAction->setShortcut(SHOW_POI_SHORTCUT);
|
||||||
connect(_showPOIAction, SIGNAL(triggered(bool)), _mapView,
|
connect(_showPOIAction, SIGNAL(triggered(bool)), _mapView,
|
||||||
@ -265,6 +286,7 @@ void GUI::createActions()
|
|||||||
// Map actions
|
// Map actions
|
||||||
_showMapAction = new QAction(QIcon(QPixmap(SHOW_MAP_ICON)), tr("Show map"),
|
_showMapAction = new QAction(QIcon(QPixmap(SHOW_MAP_ICON)), tr("Show map"),
|
||||||
this);
|
this);
|
||||||
|
_showMapAction->setMenuRole(QAction::NoRole);
|
||||||
_showMapAction->setCheckable(true);
|
_showMapAction->setCheckable(true);
|
||||||
_showMapAction->setShortcut(SHOW_MAP_SHORTCUT);
|
_showMapAction->setShortcut(SHOW_MAP_SHORTCUT);
|
||||||
connect(_showMapAction, SIGNAL(triggered(bool)), _mapView,
|
connect(_showMapAction, SIGNAL(triggered(bool)), _mapView,
|
||||||
@ -272,16 +294,20 @@ void GUI::createActions()
|
|||||||
addAction(_showMapAction);
|
addAction(_showMapAction);
|
||||||
_loadMapAction = new QAction(QIcon(QPixmap(OPEN_FILE_ICON)),
|
_loadMapAction = new QAction(QIcon(QPixmap(OPEN_FILE_ICON)),
|
||||||
tr("Load map..."), this);
|
tr("Load map..."), this);
|
||||||
|
_loadMapAction->setMenuRole(QAction::NoRole);
|
||||||
connect(_loadMapAction, SIGNAL(triggered()), this, SLOT(loadMap()));
|
connect(_loadMapAction, SIGNAL(triggered()), this, SLOT(loadMap()));
|
||||||
_clearMapCacheAction = new QAction(tr("Clear tile cache"), this);
|
_clearMapCacheAction = new QAction(tr("Clear tile cache"), this);
|
||||||
|
_clearMapCacheAction->setMenuRole(QAction::NoRole);
|
||||||
connect(_clearMapCacheAction, SIGNAL(triggered()), _mapView,
|
connect(_clearMapCacheAction, SIGNAL(triggered()), _mapView,
|
||||||
SLOT(clearMapCache()));
|
SLOT(clearMapCache()));
|
||||||
createMapActions();
|
createMapActions();
|
||||||
_nextMapAction = new QAction(tr("Next map"), this);
|
_nextMapAction = new QAction(tr("Next map"), this);
|
||||||
|
_nextMapAction->setMenuRole(QAction::NoRole);
|
||||||
_nextMapAction->setShortcut(NEXT_MAP_SHORTCUT);
|
_nextMapAction->setShortcut(NEXT_MAP_SHORTCUT);
|
||||||
connect(_nextMapAction, SIGNAL(triggered()), this, SLOT(nextMap()));
|
connect(_nextMapAction, SIGNAL(triggered()), this, SLOT(nextMap()));
|
||||||
addAction(_nextMapAction);
|
addAction(_nextMapAction);
|
||||||
_prevMapAction = new QAction(tr("Next map"), this);
|
_prevMapAction = new QAction(tr("Next map"), this);
|
||||||
|
_prevMapAction->setMenuRole(QAction::NoRole);
|
||||||
_prevMapAction->setShortcut(PREV_MAP_SHORTCUT);
|
_prevMapAction->setShortcut(PREV_MAP_SHORTCUT);
|
||||||
connect(_prevMapAction, SIGNAL(triggered()), this, SLOT(prevMap()));
|
connect(_prevMapAction, SIGNAL(triggered()), this, SLOT(prevMap()));
|
||||||
addAction(_prevMapAction);
|
addAction(_prevMapAction);
|
||||||
@ -292,22 +318,27 @@ void GUI::createActions()
|
|||||||
|
|
||||||
// Data actions
|
// Data actions
|
||||||
_showTracksAction = new QAction(tr("Show tracks"), this);
|
_showTracksAction = new QAction(tr("Show tracks"), this);
|
||||||
|
_showTracksAction->setMenuRole(QAction::NoRole);
|
||||||
_showTracksAction->setCheckable(true);
|
_showTracksAction->setCheckable(true);
|
||||||
connect(_showTracksAction, SIGNAL(triggered(bool)), this,
|
connect(_showTracksAction, SIGNAL(triggered(bool)), this,
|
||||||
SLOT(showTracks(bool)));
|
SLOT(showTracks(bool)));
|
||||||
_showRoutesAction = new QAction(tr("Show routes"), this);
|
_showRoutesAction = new QAction(tr("Show routes"), this);
|
||||||
|
_showRoutesAction->setMenuRole(QAction::NoRole);
|
||||||
_showRoutesAction->setCheckable(true);
|
_showRoutesAction->setCheckable(true);
|
||||||
connect(_showRoutesAction, SIGNAL(triggered(bool)), this,
|
connect(_showRoutesAction, SIGNAL(triggered(bool)), this,
|
||||||
SLOT(showRoutes(bool)));
|
SLOT(showRoutes(bool)));
|
||||||
_showWaypointsAction = new QAction(tr("Show waypoints"), this);
|
_showWaypointsAction = new QAction(tr("Show waypoints"), this);
|
||||||
|
_showWaypointsAction->setMenuRole(QAction::NoRole);
|
||||||
_showWaypointsAction->setCheckable(true);
|
_showWaypointsAction->setCheckable(true);
|
||||||
connect(_showWaypointsAction, SIGNAL(triggered(bool)), _mapView,
|
connect(_showWaypointsAction, SIGNAL(triggered(bool)), _mapView,
|
||||||
SLOT(showWaypoints(bool)));
|
SLOT(showWaypoints(bool)));
|
||||||
_showWaypointLabelsAction = new QAction(tr("Waypoint labels"), this);
|
_showWaypointLabelsAction = new QAction(tr("Waypoint labels"), this);
|
||||||
|
_showWaypointLabelsAction->setMenuRole(QAction::NoRole);
|
||||||
_showWaypointLabelsAction->setCheckable(true);
|
_showWaypointLabelsAction->setCheckable(true);
|
||||||
connect(_showWaypointLabelsAction, SIGNAL(triggered(bool)), _mapView,
|
connect(_showWaypointLabelsAction, SIGNAL(triggered(bool)), _mapView,
|
||||||
SLOT(showWaypointLabels(bool)));
|
SLOT(showWaypointLabels(bool)));
|
||||||
_showRouteWaypointsAction = new QAction(tr("Route waypoints"), this);
|
_showRouteWaypointsAction = new QAction(tr("Route waypoints"), this);
|
||||||
|
_showRouteWaypointsAction->setMenuRole(QAction::NoRole);
|
||||||
_showRouteWaypointsAction->setCheckable(true);
|
_showRouteWaypointsAction->setCheckable(true);
|
||||||
connect(_showRouteWaypointsAction, SIGNAL(triggered(bool)), _mapView,
|
connect(_showRouteWaypointsAction, SIGNAL(triggered(bool)), _mapView,
|
||||||
SLOT(showRouteWaypoints(bool)));
|
SLOT(showRouteWaypoints(bool)));
|
||||||
@ -315,6 +346,7 @@ void GUI::createActions()
|
|||||||
// Graph actions
|
// Graph actions
|
||||||
_showGraphsAction = new QAction(QIcon(QPixmap(SHOW_GRAPHS_ICON)),
|
_showGraphsAction = new QAction(QIcon(QPixmap(SHOW_GRAPHS_ICON)),
|
||||||
tr("Show graphs"), this);
|
tr("Show graphs"), this);
|
||||||
|
_showGraphsAction->setMenuRole(QAction::NoRole);
|
||||||
_showGraphsAction->setCheckable(true);
|
_showGraphsAction->setCheckable(true);
|
||||||
_showGraphsAction->setShortcut(SHOW_GRAPHS_SHORTCUT);
|
_showGraphsAction->setShortcut(SHOW_GRAPHS_SHORTCUT);
|
||||||
connect(_showGraphsAction, SIGNAL(triggered(bool)), this,
|
connect(_showGraphsAction, SIGNAL(triggered(bool)), this,
|
||||||
@ -323,39 +355,46 @@ void GUI::createActions()
|
|||||||
ag = new QActionGroup(this);
|
ag = new QActionGroup(this);
|
||||||
ag->setExclusive(true);
|
ag->setExclusive(true);
|
||||||
_distanceGraphAction = new QAction(tr("Distance"), this);
|
_distanceGraphAction = new QAction(tr("Distance"), this);
|
||||||
|
_distanceGraphAction->setMenuRole(QAction::NoRole);
|
||||||
_distanceGraphAction->setCheckable(true);
|
_distanceGraphAction->setCheckable(true);
|
||||||
_distanceGraphAction->setActionGroup(ag);
|
_distanceGraphAction->setActionGroup(ag);
|
||||||
connect(_distanceGraphAction, SIGNAL(triggered()), this,
|
connect(_distanceGraphAction, SIGNAL(triggered()), this,
|
||||||
SLOT(setDistanceGraph()));
|
SLOT(setDistanceGraph()));
|
||||||
addAction(_distanceGraphAction);
|
addAction(_distanceGraphAction);
|
||||||
_timeGraphAction = new QAction(tr("Time"), this);
|
_timeGraphAction = new QAction(tr("Time"), this);
|
||||||
|
_timeGraphAction->setMenuRole(QAction::NoRole);
|
||||||
_timeGraphAction->setCheckable(true);
|
_timeGraphAction->setCheckable(true);
|
||||||
_timeGraphAction->setActionGroup(ag);
|
_timeGraphAction->setActionGroup(ag);
|
||||||
connect(_timeGraphAction, SIGNAL(triggered()), this,
|
connect(_timeGraphAction, SIGNAL(triggered()), this,
|
||||||
SLOT(setTimeGraph()));
|
SLOT(setTimeGraph()));
|
||||||
addAction(_timeGraphAction);
|
addAction(_timeGraphAction);
|
||||||
_showGraphGridAction = new QAction(tr("Show grid"), this);
|
_showGraphGridAction = new QAction(tr("Show grid"), this);
|
||||||
|
_showGraphGridAction->setMenuRole(QAction::NoRole);
|
||||||
_showGraphGridAction->setCheckable(true);
|
_showGraphGridAction->setCheckable(true);
|
||||||
connect(_showGraphGridAction, SIGNAL(triggered(bool)), this,
|
connect(_showGraphGridAction, SIGNAL(triggered(bool)), this,
|
||||||
SLOT(showGraphGrids(bool)));
|
SLOT(showGraphGrids(bool)));
|
||||||
_showGraphSliderInfoAction = new QAction(tr("Show slider info"), this);
|
_showGraphSliderInfoAction = new QAction(tr("Show slider info"), this);
|
||||||
|
_showGraphSliderInfoAction->setMenuRole(QAction::NoRole);
|
||||||
_showGraphSliderInfoAction->setCheckable(true);
|
_showGraphSliderInfoAction->setCheckable(true);
|
||||||
connect(_showGraphSliderInfoAction, SIGNAL(triggered(bool)), this,
|
connect(_showGraphSliderInfoAction, SIGNAL(triggered(bool)), this,
|
||||||
SLOT(showGraphSliderInfo(bool)));
|
SLOT(showGraphSliderInfo(bool)));
|
||||||
|
|
||||||
// Settings actions
|
// Settings actions
|
||||||
_showToolbarsAction = new QAction(tr("Show toolbars"), this);
|
_showToolbarsAction = new QAction(tr("Show toolbars"), this);
|
||||||
|
_showToolbarsAction->setMenuRole(QAction::NoRole);
|
||||||
_showToolbarsAction->setCheckable(true);
|
_showToolbarsAction->setCheckable(true);
|
||||||
connect(_showToolbarsAction, SIGNAL(triggered(bool)), this,
|
connect(_showToolbarsAction, SIGNAL(triggered(bool)), this,
|
||||||
SLOT(showToolbars(bool)));
|
SLOT(showToolbars(bool)));
|
||||||
ag = new QActionGroup(this);
|
ag = new QActionGroup(this);
|
||||||
ag->setExclusive(true);
|
ag->setExclusive(true);
|
||||||
_totalTimeAction = new QAction(tr("Total time"), this);
|
_totalTimeAction = new QAction(tr("Total time"), this);
|
||||||
|
_totalTimeAction->setMenuRole(QAction::NoRole);
|
||||||
_totalTimeAction->setCheckable(true);
|
_totalTimeAction->setCheckable(true);
|
||||||
_totalTimeAction->setActionGroup(ag);
|
_totalTimeAction->setActionGroup(ag);
|
||||||
connect(_totalTimeAction, SIGNAL(triggered()), this,
|
connect(_totalTimeAction, SIGNAL(triggered()), this,
|
||||||
SLOT(setTotalTime()));
|
SLOT(setTotalTime()));
|
||||||
_movingTimeAction = new QAction(tr("Moving time"), this);
|
_movingTimeAction = new QAction(tr("Moving time"), this);
|
||||||
|
_movingTimeAction->setMenuRole(QAction::NoRole);
|
||||||
_movingTimeAction->setCheckable(true);
|
_movingTimeAction->setCheckable(true);
|
||||||
_movingTimeAction->setActionGroup(ag);
|
_movingTimeAction->setActionGroup(ag);
|
||||||
connect(_movingTimeAction, SIGNAL(triggered()), this,
|
connect(_movingTimeAction, SIGNAL(triggered()), this,
|
||||||
@ -363,16 +402,19 @@ void GUI::createActions()
|
|||||||
ag = new QActionGroup(this);
|
ag = new QActionGroup(this);
|
||||||
ag->setExclusive(true);
|
ag->setExclusive(true);
|
||||||
_metricUnitsAction = new QAction(tr("Metric"), this);
|
_metricUnitsAction = new QAction(tr("Metric"), this);
|
||||||
|
_metricUnitsAction->setMenuRole(QAction::NoRole);
|
||||||
_metricUnitsAction->setCheckable(true);
|
_metricUnitsAction->setCheckable(true);
|
||||||
_metricUnitsAction->setActionGroup(ag);
|
_metricUnitsAction->setActionGroup(ag);
|
||||||
connect(_metricUnitsAction, SIGNAL(triggered()), this,
|
connect(_metricUnitsAction, SIGNAL(triggered()), this,
|
||||||
SLOT(setMetricUnits()));
|
SLOT(setMetricUnits()));
|
||||||
_imperialUnitsAction = new QAction(tr("Imperial"), this);
|
_imperialUnitsAction = new QAction(tr("Imperial"), this);
|
||||||
|
_imperialUnitsAction->setMenuRole(QAction::NoRole);
|
||||||
_imperialUnitsAction->setCheckable(true);
|
_imperialUnitsAction->setCheckable(true);
|
||||||
_imperialUnitsAction->setActionGroup(ag);
|
_imperialUnitsAction->setActionGroup(ag);
|
||||||
connect(_imperialUnitsAction, SIGNAL(triggered()), this,
|
connect(_imperialUnitsAction, SIGNAL(triggered()), this,
|
||||||
SLOT(setImperialUnits()));
|
SLOT(setImperialUnits()));
|
||||||
_nauticalUnitsAction = new QAction(tr("Nautical"), this);
|
_nauticalUnitsAction = new QAction(tr("Nautical"), this);
|
||||||
|
_nauticalUnitsAction->setMenuRole(QAction::NoRole);
|
||||||
_nauticalUnitsAction->setCheckable(true);
|
_nauticalUnitsAction->setCheckable(true);
|
||||||
_nauticalUnitsAction->setActionGroup(ag);
|
_nauticalUnitsAction->setActionGroup(ag);
|
||||||
connect(_nauticalUnitsAction, SIGNAL(triggered()), this,
|
connect(_nauticalUnitsAction, SIGNAL(triggered()), this,
|
||||||
@ -380,22 +422,26 @@ void GUI::createActions()
|
|||||||
ag = new QActionGroup(this);
|
ag = new QActionGroup(this);
|
||||||
ag->setExclusive(true);
|
ag->setExclusive(true);
|
||||||
_decimalDegreesAction = new QAction(tr("Decimal degrees (DD)"), this);
|
_decimalDegreesAction = new QAction(tr("Decimal degrees (DD)"), this);
|
||||||
|
_decimalDegreesAction->setMenuRole(QAction::NoRole);
|
||||||
_decimalDegreesAction->setCheckable(true);
|
_decimalDegreesAction->setCheckable(true);
|
||||||
_decimalDegreesAction->setActionGroup(ag);
|
_decimalDegreesAction->setActionGroup(ag);
|
||||||
connect(_decimalDegreesAction, SIGNAL(triggered()), this,
|
connect(_decimalDegreesAction, SIGNAL(triggered()), this,
|
||||||
SLOT(setDecimalDegrees()));
|
SLOT(setDecimalDegrees()));
|
||||||
_degreesMinutesAction = new QAction(tr("Degrees and decimal minutes (DMM)"),
|
_degreesMinutesAction = new QAction(tr("Degrees and decimal minutes (DMM)"),
|
||||||
this);
|
this);
|
||||||
|
_degreesMinutesAction->setMenuRole(QAction::NoRole);
|
||||||
_degreesMinutesAction->setCheckable(true);
|
_degreesMinutesAction->setCheckable(true);
|
||||||
_degreesMinutesAction->setActionGroup(ag);
|
_degreesMinutesAction->setActionGroup(ag);
|
||||||
connect(_degreesMinutesAction, SIGNAL(triggered()), this,
|
connect(_degreesMinutesAction, SIGNAL(triggered()), this,
|
||||||
SLOT(setDegreesMinutes()));
|
SLOT(setDegreesMinutes()));
|
||||||
_DMSAction = new QAction(tr("Degrees, minutes, seconds (DMS)"), this);
|
_DMSAction = new QAction(tr("Degrees, minutes, seconds (DMS)"), this);
|
||||||
|
_DMSAction->setMenuRole(QAction::NoRole);
|
||||||
_DMSAction->setCheckable(true);
|
_DMSAction->setCheckable(true);
|
||||||
_DMSAction->setActionGroup(ag);
|
_DMSAction->setActionGroup(ag);
|
||||||
connect(_DMSAction, SIGNAL(triggered()), this, SLOT(setDMS()));
|
connect(_DMSAction, SIGNAL(triggered()), this, SLOT(setDMS()));
|
||||||
_fullscreenAction = new QAction(QIcon(QPixmap(FULLSCREEN_ICON)),
|
_fullscreenAction = new QAction(QIcon(QPixmap(FULLSCREEN_ICON)),
|
||||||
tr("Fullscreen mode"), this);
|
tr("Fullscreen mode"), this);
|
||||||
|
_fullscreenAction->setMenuRole(QAction::NoRole);
|
||||||
_fullscreenAction->setCheckable(true);
|
_fullscreenAction->setCheckable(true);
|
||||||
_fullscreenAction->setShortcut(FULLSCREEN_SHORTCUT);
|
_fullscreenAction->setShortcut(FULLSCREEN_SHORTCUT);
|
||||||
connect(_fullscreenAction, SIGNAL(triggered(bool)), this,
|
connect(_fullscreenAction, SIGNAL(triggered(bool)), this,
|
||||||
@ -409,16 +455,20 @@ void GUI::createActions()
|
|||||||
// Navigation actions
|
// Navigation actions
|
||||||
_nextAction = new QAction(QIcon(QPixmap(NEXT_FILE_ICON)), tr("Next"), this);
|
_nextAction = new QAction(QIcon(QPixmap(NEXT_FILE_ICON)), tr("Next"), this);
|
||||||
_nextAction->setActionGroup(_navigationActionGroup);
|
_nextAction->setActionGroup(_navigationActionGroup);
|
||||||
|
_nextAction->setMenuRole(QAction::NoRole);
|
||||||
connect(_nextAction, SIGNAL(triggered()), this, SLOT(next()));
|
connect(_nextAction, SIGNAL(triggered()), this, SLOT(next()));
|
||||||
_prevAction = new QAction(QIcon(QPixmap(PREV_FILE_ICON)), tr("Previous"),
|
_prevAction = new QAction(QIcon(QPixmap(PREV_FILE_ICON)), tr("Previous"),
|
||||||
this);
|
this);
|
||||||
|
_prevAction->setMenuRole(QAction::NoRole);
|
||||||
_prevAction->setActionGroup(_navigationActionGroup);
|
_prevAction->setActionGroup(_navigationActionGroup);
|
||||||
connect(_prevAction, SIGNAL(triggered()), this, SLOT(prev()));
|
connect(_prevAction, SIGNAL(triggered()), this, SLOT(prev()));
|
||||||
_lastAction = new QAction(QIcon(QPixmap(LAST_FILE_ICON)), tr("Last"), this);
|
_lastAction = new QAction(QIcon(QPixmap(LAST_FILE_ICON)), tr("Last"), this);
|
||||||
|
_lastAction->setMenuRole(QAction::NoRole);
|
||||||
_lastAction->setActionGroup(_navigationActionGroup);
|
_lastAction->setActionGroup(_navigationActionGroup);
|
||||||
connect(_lastAction, SIGNAL(triggered()), this, SLOT(last()));
|
connect(_lastAction, SIGNAL(triggered()), this, SLOT(last()));
|
||||||
_firstAction = new QAction(QIcon(QPixmap(FIRST_FILE_ICON)), tr("First"),
|
_firstAction = new QAction(QIcon(QPixmap(FIRST_FILE_ICON)), tr("First"),
|
||||||
this);
|
this);
|
||||||
|
_firstAction->setMenuRole(QAction::NoRole);
|
||||||
_firstAction->setActionGroup(_navigationActionGroup);
|
_firstAction->setActionGroup(_navigationActionGroup);
|
||||||
connect(_firstAction, SIGNAL(triggered()), this, SLOT(first()));
|
connect(_firstAction, SIGNAL(triggered()), this, SLOT(first()));
|
||||||
}
|
}
|
||||||
@ -431,8 +481,9 @@ void GUI::createMenus()
|
|||||||
fileMenu->addAction(_printFileAction);
|
fileMenu->addAction(_printFileAction);
|
||||||
fileMenu->addAction(_exportFileAction);
|
fileMenu->addAction(_exportFileAction);
|
||||||
fileMenu->addSeparator();
|
fileMenu->addSeparator();
|
||||||
fileMenu->addAction(_reloadFileAction);
|
fileMenu->addAction(_statisticsAction);
|
||||||
fileMenu->addSeparator();
|
fileMenu->addSeparator();
|
||||||
|
fileMenu->addAction(_reloadFileAction);
|
||||||
fileMenu->addAction(_closeFileAction);
|
fileMenu->addAction(_closeFileAction);
|
||||||
#ifndef Q_OS_MAC
|
#ifndef Q_OS_MAC
|
||||||
fileMenu->addSeparator();
|
fileMenu->addSeparator();
|
||||||
@ -550,12 +601,13 @@ void GUI::createGraphTabs()
|
|||||||
_graphTabWidget->setDocumentMode(true);
|
_graphTabWidget->setDocumentMode(true);
|
||||||
#endif // Q_OS_WIN32
|
#endif // Q_OS_WIN32
|
||||||
|
|
||||||
_tabs.append(new ElevationGraph);
|
_tabs.append(new ElevationGraph(_graphTabWidget));
|
||||||
_tabs.append(new SpeedGraph);
|
_tabs.append(new SpeedGraph(_graphTabWidget));
|
||||||
_tabs.append(new HeartRateGraph);
|
_tabs.append(new HeartRateGraph(_graphTabWidget));
|
||||||
_tabs.append(new CadenceGraph);
|
_tabs.append(new CadenceGraph(_graphTabWidget));
|
||||||
_tabs.append(new PowerGraph);
|
_tabs.append(new PowerGraph(_graphTabWidget));
|
||||||
_tabs.append(new TemperatureGraph);
|
_tabs.append(new TemperatureGraph(_graphTabWidget));
|
||||||
|
_tabs.append(new GearRatioGraph(_graphTabWidget));
|
||||||
|
|
||||||
for (int i = 0; i < _tabs.count(); i++)
|
for (int i = 0; i < _tabs.count(); i++)
|
||||||
connect(_tabs.at(i), SIGNAL(sliderPositionChanged(qreal)), this,
|
connect(_tabs.at(i), SIGNAL(sliderPositionChanged(qreal)), this,
|
||||||
@ -639,19 +691,19 @@ void GUI::paths()
|
|||||||
msgBox.setWindowTitle(tr("Paths"));
|
msgBox.setWindowTitle(tr("Paths"));
|
||||||
msgBox.setText("<h3>" + tr("Paths") + "</h3>");
|
msgBox.setText("<h3>" + tr("Paths") + "</h3>");
|
||||||
msgBox.setInformativeText(
|
msgBox.setInformativeText(
|
||||||
"<style>td {white-space: pre; padding-right: 1em;}</style>"
|
"<style>td {white-space: pre; padding-right: 1em;}</style><h4>"
|
||||||
"<div><table><tr><td>" + tr("Map directory:") + "</td><td><code>"
|
+ tr("Global") + "</h4><table><tr><td>" + tr("Map directory:")
|
||||||
+ QDir::cleanPath(GLOBAL_MAP_DIR) + "</code></td></tr><tr><td>"
|
+ "</td><td><code>" + QDir::cleanPath(GLOBAL_MAP_DIR)
|
||||||
+ tr("POI directory:") + "</td><td><code>"
|
+ "</code></td></tr><tr><td>" + tr("POI directory:") + "</td><td><code>"
|
||||||
+ QDir::cleanPath(GLOBAL_POI_DIR) + "</code></td></tr><tr><td>"
|
+ QDir::cleanPath(GLOBAL_POI_DIR) + "</code></td></tr><tr><td>"
|
||||||
+ tr("GCS file:") + "</td><td><code>" + QDir::cleanPath(GLOBAL_GCS_FILE)
|
+ tr("GCS/PCS directory:") + "</td><td><code>"
|
||||||
+ "</code></td></tr><tr><td>" + tr("PCS file:") + "</td><td><code>"
|
+ QDir::cleanPath(GLOBAL_CSV_DIR) + "</code></td></tr></table>"
|
||||||
+ QDir::cleanPath(GLOBAL_PCS_FILE) + "</code></td></tr><tr><td>"
|
+ "<h4>" + tr("User-specific") + "</h4><table><tr><td>"
|
||||||
+ tr("Ellipsoids file:") + "</td><td><code>"
|
+ tr("Map directory:") + "</td><td><code>" + QDir::cleanPath(USER_MAP_DIR)
|
||||||
+ QDir::cleanPath(GLOBAL_ELLIPSOID_FILE) + "</code></td></tr>"
|
+ "</code></td></tr><tr><td>" + tr("POI directory:") + "</td><td><code>"
|
||||||
+ "<tr><td></td><td></td></tr></table></div><div><table><tr><td>"
|
+ QDir::cleanPath(USER_POI_DIR) + "</code></td></tr><tr><td>"
|
||||||
+ tr("User override directory:") + "</td><td><code>"
|
+ tr("GCS/PCS directory:") + "</td><td><code>"
|
||||||
+ QDir::cleanPath(USER_DIR) + "</td></tr></table></div>"
|
+ QDir::cleanPath(USER_CSV_DIR) + "</code></td></tr></table>"
|
||||||
);
|
);
|
||||||
|
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
@ -660,11 +712,13 @@ void GUI::paths()
|
|||||||
void GUI::openFile()
|
void GUI::openFile()
|
||||||
{
|
{
|
||||||
QStringList files = QFileDialog::getOpenFileNames(this, tr("Open file"),
|
QStringList files = QFileDialog::getOpenFileNames(this, tr("Open file"),
|
||||||
QString(), Data::formats());
|
_dataDir, Data::formats());
|
||||||
QStringList list = files;
|
QStringList list = files;
|
||||||
|
|
||||||
for (QStringList::Iterator it = list.begin(); it != list.end(); it++)
|
for (QStringList::Iterator it = list.begin(); it != list.end(); it++)
|
||||||
openFile(*it);
|
openFile(*it);
|
||||||
|
if (!list.isEmpty())
|
||||||
|
_dataDir = QFileInfo(list.first()).path();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GUI::openFile(const QString &fileName)
|
bool GUI::openFile(const QString &fileName)
|
||||||
@ -681,8 +735,6 @@ bool GUI::openFile(const QString &fileName)
|
|||||||
updateNavigationActions();
|
updateNavigationActions();
|
||||||
updateStatusBarInfo();
|
updateStatusBarInfo();
|
||||||
updateWindowTitle();
|
updateWindowTitle();
|
||||||
updateGraphTabs();
|
|
||||||
updateMapView();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
@ -696,13 +748,10 @@ bool GUI::openFile(const QString &fileName)
|
|||||||
bool GUI::loadFile(const QString &fileName)
|
bool GUI::loadFile(const QString &fileName)
|
||||||
{
|
{
|
||||||
Data data;
|
Data data;
|
||||||
|
QList<QList<GraphItem*> > graphs;
|
||||||
QList<PathItem*> paths;
|
QList<PathItem*> paths;
|
||||||
|
|
||||||
if (data.loadFile(fileName)) {
|
if (data.loadFile(fileName)) {
|
||||||
paths = _mapView->loadData(data);
|
|
||||||
for (int i = 0; i < _tabs.count(); i++)
|
|
||||||
_tabs.at(i)->loadData(data, paths);
|
|
||||||
|
|
||||||
for (int i = 0; i < data.tracks().count(); i++) {
|
for (int i = 0; i < data.tracks().count(); i++) {
|
||||||
_trackDistance += data.tracks().at(i)->distance();
|
_trackDistance += data.tracks().at(i)->distance();
|
||||||
_time += data.tracks().at(i)->time();
|
_time += data.tracks().at(i)->time();
|
||||||
@ -729,6 +778,25 @@ bool GUI::loadFile(const QString &fileName)
|
|||||||
} else
|
} else
|
||||||
_pathName = QString();
|
_pathName = QString();
|
||||||
|
|
||||||
|
for (int i = 0; i < _tabs.count(); i++)
|
||||||
|
graphs.append(_tabs.at(i)->loadData(data));
|
||||||
|
if (updateGraphTabs() | updateMapView())
|
||||||
|
_splitter->refresh();
|
||||||
|
paths = _mapView->loadData(data);
|
||||||
|
|
||||||
|
for (int i = 0; i < paths.count(); i++) {
|
||||||
|
const PathItem *pi = paths.at(i);
|
||||||
|
for (int j = 0; j < graphs.count(); j++) {
|
||||||
|
const GraphItem *gi = graphs.at(j).at(i);
|
||||||
|
if (!gi)
|
||||||
|
continue;
|
||||||
|
connect(gi, SIGNAL(sliderPositionChanged(qreal)), pi,
|
||||||
|
SLOT(moveMarker(qreal)));
|
||||||
|
connect(pi, SIGNAL(selected(bool)), gi, SLOT(hover(bool)));
|
||||||
|
connect(gi, SIGNAL(selected(bool)), pi, SLOT(hover(bool)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
updateNavigationActions();
|
updateNavigationActions();
|
||||||
@ -749,11 +817,13 @@ bool GUI::loadFile(const QString &fileName)
|
|||||||
void GUI::openPOIFile()
|
void GUI::openPOIFile()
|
||||||
{
|
{
|
||||||
QStringList files = QFileDialog::getOpenFileNames(this, tr("Open POI file"),
|
QStringList files = QFileDialog::getOpenFileNames(this, tr("Open POI file"),
|
||||||
QString(), Data::formats());
|
_poiDir, Data::formats());
|
||||||
QStringList list = files;
|
QStringList list = files;
|
||||||
|
|
||||||
for (QStringList::Iterator it = list.begin(); it != list.end(); it++)
|
for (QStringList::Iterator it = list.begin(); it != list.end(); it++)
|
||||||
openPOIFile(*it);
|
openPOIFile(*it);
|
||||||
|
if (!list.isEmpty())
|
||||||
|
_poiDir = QFileInfo(list.first()).path();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GUI::openPOIFile(const QString &fileName)
|
bool GUI::openPOIFile(const QString &fileName)
|
||||||
@ -842,11 +912,18 @@ void GUI::openOptions()
|
|||||||
SET_TRACK_OPTION(outlierEliminate, setOutlierElimination);
|
SET_TRACK_OPTION(outlierEliminate, setOutlierElimination);
|
||||||
SET_TRACK_OPTION(pauseSpeed, setPauseSpeed);
|
SET_TRACK_OPTION(pauseSpeed, setPauseSpeed);
|
||||||
SET_TRACK_OPTION(pauseInterval, setPauseInterval);
|
SET_TRACK_OPTION(pauseInterval, setPauseInterval);
|
||||||
|
SET_TRACK_OPTION(useReportedSpeed, useReportedSpeed);
|
||||||
|
|
||||||
if (options.poiRadius != _options.poiRadius)
|
if (options.poiRadius != _options.poiRadius)
|
||||||
_poi->setRadius(options.poiRadius);
|
_poi->setRadius(options.poiRadius);
|
||||||
if (options.pixmapCache != _options.pixmapCache)
|
if (options.pixmapCache != _options.pixmapCache)
|
||||||
QPixmapCache::setCacheLimit(options.pixmapCache * 1024);
|
QPixmapCache::setCacheLimit(options.pixmapCache * 1024);
|
||||||
|
if (options.connectionTimeout != _options.connectionTimeout)
|
||||||
|
Downloader::setTimeout(options.connectionTimeout);
|
||||||
|
#ifdef ENABLE_HTTP2
|
||||||
|
if (options.enableHTTP2 != _options.enableHTTP2)
|
||||||
|
Downloader::enableHTTP2(options.enableHTTP2);
|
||||||
|
#endif // ENABLE_HTTP2
|
||||||
|
|
||||||
if (reload)
|
if (reload)
|
||||||
reloadFile();
|
reloadFile();
|
||||||
@ -885,14 +962,78 @@ void GUI::exportFile()
|
|||||||
plot(&printer);
|
plot(&printer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GUI::statistics()
|
||||||
|
{
|
||||||
|
#ifdef Q_OS_WIN32
|
||||||
|
QString text = "<style>td {white-space: pre; padding-right: 4em;}"
|
||||||
|
"th {text-align: left; padding-top: 0.5em;}</style><table>";
|
||||||
|
#else // Q_OS_WIN32
|
||||||
|
QString text = "<style>td {white-space: pre; padding-right: 2em;}"
|
||||||
|
"th {text-align: left; padding-top: 0.5em;}</style><table>";
|
||||||
|
#endif // Q_OS_WIN32
|
||||||
|
|
||||||
|
if (_showTracksAction->isChecked() && _trackCount > 1)
|
||||||
|
text.append("<tr><td>" + tr("Tracks") + ":</td><td>"
|
||||||
|
+ QString::number(_trackCount) + "</td></tr>");
|
||||||
|
if (_showRoutesAction->isChecked() && _routeCount > 1)
|
||||||
|
text.append("<tr><td>" + tr("Routes") + ":</td><td>"
|
||||||
|
+ QString::number(_routeCount) + "</td></tr>");
|
||||||
|
if (_showWaypointsAction->isChecked() && _waypointCount > 1)
|
||||||
|
text.append("<tr><td>" + tr("Waypoints") + ":</td><td>"
|
||||||
|
+ QString::number(_waypointCount) + "</td></tr>");
|
||||||
|
|
||||||
|
if (_dateRange.first.isValid()) {
|
||||||
|
if (_dateRange.first == _dateRange.second) {
|
||||||
|
QString format = QLocale::system().dateFormat(QLocale::LongFormat);
|
||||||
|
text.append("<tr><td>" + tr("Date") + ":</td><td>"
|
||||||
|
+ _dateRange.first.toString(format) + "</td></tr>");
|
||||||
|
} else {
|
||||||
|
QString format = QLocale::system().dateFormat(QLocale::ShortFormat);
|
||||||
|
text.append("<tr><td>" + tr("Date") + ":</td><td>"
|
||||||
|
+ QString("%1 - %2").arg(_dateRange.first.toString(format),
|
||||||
|
_dateRange.second.toString(format)) + "</td></tr>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (distance() > 0)
|
||||||
|
text.append("<tr><td>" + tr("Distance") + ":</td><td>"
|
||||||
|
+ Format::distance(distance(), units()) + "</td></tr>");
|
||||||
|
if (time() > 0) {
|
||||||
|
text.append("<tr><td>" + tr("Time") + ":</td><td>"
|
||||||
|
+ Format::timeSpan(time()) + "</td></tr>");
|
||||||
|
text.append("<tr><td>" + tr("Moving time") + ":</td><td>"
|
||||||
|
+ Format::timeSpan(movingTime()) + "</td></tr>");
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < _tabs.count(); i++) {
|
||||||
|
const GraphTab *tab = _tabs.at(i);
|
||||||
|
if (tab->isEmpty())
|
||||||
|
continue;
|
||||||
|
|
||||||
|
text.append("<tr><th colspan=\"2\">" + tab->label() + "</th></tr>");
|
||||||
|
for (int j = 0; j < tab->info().size(); j++) {
|
||||||
|
const KV &kv = tab->info().at(j);
|
||||||
|
text.append("<tr><td>" + kv.key() + ":</td><td>" + kv.value()
|
||||||
|
+ "</td></tr>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
text.append("</table>");
|
||||||
|
|
||||||
|
|
||||||
|
QMessageBox msgBox(this);
|
||||||
|
msgBox.setWindowTitle(tr("Statistics"));
|
||||||
|
msgBox.setText("<h3>" + tr("Statistics") + "</h3>");
|
||||||
|
msgBox.setInformativeText(text);
|
||||||
|
msgBox.exec();
|
||||||
|
}
|
||||||
|
|
||||||
void GUI::plot(QPrinter *printer)
|
void GUI::plot(QPrinter *printer)
|
||||||
{
|
{
|
||||||
QPainter p(printer);
|
QPainter p(printer);
|
||||||
TrackInfo info;
|
TrackInfo info;
|
||||||
qreal ih, gh, mh, ratio;
|
qreal ih, gh, mh, ratio;
|
||||||
qreal d = distance();
|
|
||||||
qreal t = time();
|
|
||||||
qreal tm = movingTime();
|
|
||||||
|
|
||||||
if (!_pathName.isNull() && _options.printName)
|
if (!_pathName.isNull() && _options.printName)
|
||||||
info.insert(tr("Name"), _pathName);
|
info.insert(tr("Name"), _pathName);
|
||||||
@ -902,7 +1043,7 @@ void GUI::plot(QPrinter *printer)
|
|||||||
info.insert(tr("Tracks"), QString::number(_trackCount));
|
info.insert(tr("Tracks"), QString::number(_trackCount));
|
||||||
if (_showRoutesAction->isChecked() && _routeCount > 1)
|
if (_showRoutesAction->isChecked() && _routeCount > 1)
|
||||||
info.insert(tr("Routes"), QString::number(_routeCount));
|
info.insert(tr("Routes"), QString::number(_routeCount));
|
||||||
if (_showWaypointsAction->isChecked() && _waypointCount > 2)
|
if (_showWaypointsAction->isChecked() && _waypointCount > 1)
|
||||||
info.insert(tr("Waypoints"), QString::number(_waypointCount));
|
info.insert(tr("Waypoints"), QString::number(_waypointCount));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -918,12 +1059,12 @@ void GUI::plot(QPrinter *printer)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d > 0 && _options.printDistance)
|
if (distance() > 0 && _options.printDistance)
|
||||||
info.insert(tr("Distance"), Format::distance(d, units()));
|
info.insert(tr("Distance"), Format::distance(distance(), units()));
|
||||||
if (t > 0 && _options.printTime)
|
if (time() > 0 && _options.printTime)
|
||||||
info.insert(tr("Time"), Format::timeSpan(t));
|
info.insert(tr("Time"), Format::timeSpan(time()));
|
||||||
if (tm > 0 && _options.printMovingTime)
|
if (movingTime() > 0 && _options.printMovingTime)
|
||||||
info.insert(tr("Moving time"), Format::timeSpan(tm));
|
info.insert(tr("Moving time"), Format::timeSpan(movingTime()));
|
||||||
|
|
||||||
qreal fsr = 1085.0 / (qMax(printer->width(), printer->height())
|
qreal fsr = 1085.0 / (qMax(printer->width(), printer->height())
|
||||||
/ (qreal)printer->resolution());
|
/ (qreal)printer->resolution());
|
||||||
@ -999,8 +1140,6 @@ void GUI::reloadFile()
|
|||||||
|
|
||||||
updateStatusBarInfo();
|
updateStatusBarInfo();
|
||||||
updateWindowTitle();
|
updateWindowTitle();
|
||||||
updateGraphTabs();
|
|
||||||
updateMapView();
|
|
||||||
if (_files.isEmpty())
|
if (_files.isEmpty())
|
||||||
_fileActionGroup->setEnabled(false);
|
_fileActionGroup->setEnabled(false);
|
||||||
else
|
else
|
||||||
@ -1125,11 +1264,13 @@ void GUI::showGraphSliderInfo(bool show)
|
|||||||
void GUI::loadMap()
|
void GUI::loadMap()
|
||||||
{
|
{
|
||||||
QStringList files = QFileDialog::getOpenFileNames(this, tr("Open map file"),
|
QStringList files = QFileDialog::getOpenFileNames(this, tr("Open map file"),
|
||||||
QString(), MapList::formats());
|
_mapDir, MapList::formats());
|
||||||
QStringList list = files;
|
QStringList list = files;
|
||||||
|
|
||||||
for (QStringList::Iterator it = list.begin(); it != list.end(); it++)
|
for (QStringList::Iterator it = list.begin(); it != list.end(); it++)
|
||||||
loadMap(*it);
|
loadMap(*it);
|
||||||
|
if (!list.isEmpty())
|
||||||
|
_mapDir = QFileInfo(list.first()).path();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GUI::loadMap(const QString &fileName)
|
bool GUI::loadMap(const QString &fileName)
|
||||||
@ -1139,6 +1280,7 @@ bool GUI::loadMap(const QString &fileName)
|
|||||||
|
|
||||||
if (_ml->loadFile(fileName)) {
|
if (_ml->loadFile(fileName)) {
|
||||||
QAction *a = new QAction(_ml->maps().last()->name(), this);
|
QAction *a = new QAction(_ml->maps().last()->name(), this);
|
||||||
|
a->setMenuRole(QAction::NoRole);
|
||||||
a->setCheckable(true);
|
a->setCheckable(true);
|
||||||
a->setActionGroup(_mapsActionGroup);
|
a->setActionGroup(_mapsActionGroup);
|
||||||
_mapsSignalMapper->setMapping(a, _ml->maps().size() - 1);
|
_mapsSignalMapper->setMapping(a, _ml->maps().size() - 1);
|
||||||
@ -1263,10 +1405,11 @@ void GUI::updateNavigationActions()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::updateGraphTabs()
|
bool GUI::updateGraphTabs()
|
||||||
{
|
{
|
||||||
int index;
|
int index;
|
||||||
GraphTab *tab;
|
GraphTab *tab;
|
||||||
|
bool hidden = _graphTabWidget->isHidden();
|
||||||
|
|
||||||
for (int i = 0; i < _tabs.size(); i++) {
|
for (int i = 0; i < _tabs.size(); i++) {
|
||||||
tab = _tabs.at(i);
|
tab = _tabs.at(i);
|
||||||
@ -1290,14 +1433,20 @@ void GUI::updateGraphTabs()
|
|||||||
_graphTabWidget->setHidden(true);
|
_graphTabWidget->setHidden(true);
|
||||||
_showGraphsAction->setEnabled(false);
|
_showGraphsAction->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return (hidden != _graphTabWidget->isHidden());
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::updateMapView()
|
bool GUI::updateMapView()
|
||||||
{
|
{
|
||||||
|
bool hidden = _mapView->isHidden();
|
||||||
|
|
||||||
if (_options.alwaysShowMap)
|
if (_options.alwaysShowMap)
|
||||||
_mapView->setHidden(false);
|
_mapView->setHidden(false);
|
||||||
else
|
else
|
||||||
_mapView->setHidden(!(_trackCount + _routeCount + _waypointCount));
|
_mapView->setHidden(!(_trackCount + _routeCount + _waypointCount));
|
||||||
|
|
||||||
|
return (hidden != _mapView->isHidden());
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::setTimeType(TimeType type)
|
void GUI::setTimeType(TimeType type)
|
||||||
@ -1604,12 +1753,20 @@ void GUI::writeSettings()
|
|||||||
settings.setValue(PAUSE_SPEED_SETTING, _options.pauseSpeed);
|
settings.setValue(PAUSE_SPEED_SETTING, _options.pauseSpeed);
|
||||||
if (_options.pauseInterval != PAUSE_INTERVAL_DEFAULT)
|
if (_options.pauseInterval != PAUSE_INTERVAL_DEFAULT)
|
||||||
settings.setValue(PAUSE_INTERVAL_SETTING, _options.pauseInterval);
|
settings.setValue(PAUSE_INTERVAL_SETTING, _options.pauseInterval);
|
||||||
|
if (_options.useReportedSpeed != USE_REPORTED_SPEED_DEFAULT)
|
||||||
|
settings.setValue(USE_REPORTED_SPEED_SETTING, _options.useReportedSpeed);
|
||||||
if (_options.poiRadius != POI_RADIUS_DEFAULT)
|
if (_options.poiRadius != POI_RADIUS_DEFAULT)
|
||||||
settings.setValue(POI_RADIUS_SETTING, _options.poiRadius);
|
settings.setValue(POI_RADIUS_SETTING, _options.poiRadius);
|
||||||
if (_options.useOpenGL != USE_OPENGL_DEFAULT)
|
if (_options.useOpenGL != USE_OPENGL_DEFAULT)
|
||||||
settings.setValue(USE_OPENGL_SETTING, _options.useOpenGL);
|
settings.setValue(USE_OPENGL_SETTING, _options.useOpenGL);
|
||||||
|
#ifdef ENABLE_HTTP2
|
||||||
|
if (_options.enableHTTP2 != ENABLE_HTTP2_DEFAULT)
|
||||||
|
settings.setValue(ENABLE_HTTP2_SETTING, _options.enableHTTP2);
|
||||||
|
#endif // ENABLE_HTTP2
|
||||||
if (_options.pixmapCache != PIXMAP_CACHE_DEFAULT)
|
if (_options.pixmapCache != PIXMAP_CACHE_DEFAULT)
|
||||||
settings.setValue(PIXMAP_CACHE_SETTING, _options.pixmapCache);
|
settings.setValue(PIXMAP_CACHE_SETTING, _options.pixmapCache);
|
||||||
|
if (_options.connectionTimeout != CONNECTION_TIMEOUT_DEFAULT)
|
||||||
|
settings.setValue(CONNECTION_TIMEOUT_SETTING, _options.connectionTimeout);
|
||||||
if (_options.hiresPrint != HIRES_PRINT_DEFAULT)
|
if (_options.hiresPrint != HIRES_PRINT_DEFAULT)
|
||||||
settings.setValue(HIRES_PRINT_SETTING, _options.hiresPrint);
|
settings.setValue(HIRES_PRINT_SETTING, _options.hiresPrint);
|
||||||
if (_options.printName != PRINT_NAME_DEFAULT)
|
if (_options.printName != PRINT_NAME_DEFAULT)
|
||||||
@ -1830,14 +1987,22 @@ void GUI::readSettings()
|
|||||||
OUTLIER_ELIMINATE_DEFAULT).toBool();
|
OUTLIER_ELIMINATE_DEFAULT).toBool();
|
||||||
_options.pauseSpeed = settings.value(PAUSE_SPEED_SETTING,
|
_options.pauseSpeed = settings.value(PAUSE_SPEED_SETTING,
|
||||||
PAUSE_SPEED_DEFAULT).toFloat();
|
PAUSE_SPEED_DEFAULT).toFloat();
|
||||||
|
_options.useReportedSpeed = settings.value(USE_REPORTED_SPEED_SETTING,
|
||||||
|
USE_REPORTED_SPEED_DEFAULT).toBool();
|
||||||
_options.pauseInterval = settings.value(PAUSE_INTERVAL_SETTING,
|
_options.pauseInterval = settings.value(PAUSE_INTERVAL_SETTING,
|
||||||
PAUSE_INTERVAL_DEFAULT).toInt();
|
PAUSE_INTERVAL_DEFAULT).toInt();
|
||||||
_options.poiRadius = settings.value(POI_RADIUS_SETTING, POI_RADIUS_DEFAULT)
|
_options.poiRadius = settings.value(POI_RADIUS_SETTING, POI_RADIUS_DEFAULT)
|
||||||
.toInt();
|
.toInt();
|
||||||
_options.useOpenGL = settings.value(USE_OPENGL_SETTING, USE_OPENGL_DEFAULT)
|
_options.useOpenGL = settings.value(USE_OPENGL_SETTING, USE_OPENGL_DEFAULT)
|
||||||
.toBool();
|
.toBool();
|
||||||
|
#ifdef ENABLE_HTTP2
|
||||||
|
_options.enableHTTP2 = settings.value(ENABLE_HTTP2_SETTING,
|
||||||
|
ENABLE_HTTP2_DEFAULT).toBool();
|
||||||
|
#endif // ENABLE_HTTP2
|
||||||
_options.pixmapCache = settings.value(PIXMAP_CACHE_SETTING,
|
_options.pixmapCache = settings.value(PIXMAP_CACHE_SETTING,
|
||||||
PIXMAP_CACHE_DEFAULT).toInt();
|
PIXMAP_CACHE_DEFAULT).toInt();
|
||||||
|
_options.connectionTimeout = settings.value(CONNECTION_TIMEOUT_SETTING,
|
||||||
|
CONNECTION_TIMEOUT_DEFAULT).toInt();
|
||||||
_options.hiresPrint = settings.value(HIRES_PRINT_SETTING,
|
_options.hiresPrint = settings.value(HIRES_PRINT_SETTING,
|
||||||
HIRES_PRINT_DEFAULT).toBool();
|
HIRES_PRINT_DEFAULT).toBool();
|
||||||
_options.printName = settings.value(PRINT_NAME_SETTING, PRINT_NAME_DEFAULT)
|
_options.printName = settings.value(PRINT_NAME_SETTING, PRINT_NAME_DEFAULT)
|
||||||
@ -1893,10 +2058,15 @@ void GUI::readSettings()
|
|||||||
Track::setOutlierElimination(_options.outlierEliminate);
|
Track::setOutlierElimination(_options.outlierEliminate);
|
||||||
Track::setPauseSpeed(_options.pauseSpeed);
|
Track::setPauseSpeed(_options.pauseSpeed);
|
||||||
Track::setPauseInterval(_options.pauseInterval);
|
Track::setPauseInterval(_options.pauseInterval);
|
||||||
|
Track::useReportedSpeed(_options.useReportedSpeed);
|
||||||
|
|
||||||
_poi->setRadius(_options.poiRadius);
|
_poi->setRadius(_options.poiRadius);
|
||||||
|
|
||||||
QPixmapCache::setCacheLimit(_options.pixmapCache * 1024);
|
QPixmapCache::setCacheLimit(_options.pixmapCache * 1024);
|
||||||
|
Downloader::setTimeout(_options.connectionTimeout);
|
||||||
|
#ifdef ENABLE_HTTP2
|
||||||
|
Downloader::enableHTTP2(_options.enableHTTP2);
|
||||||
|
#endif // ENABLE_HTTP2
|
||||||
|
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#include <QDate>
|
#include <QDate>
|
||||||
#include <QPrinter>
|
#include <QPrinter>
|
||||||
#include "data/graph.h"
|
#include "data/graph.h"
|
||||||
#include "data/poi.h"
|
|
||||||
#include "units.h"
|
#include "units.h"
|
||||||
#include "timetype.h"
|
#include "timetype.h"
|
||||||
#include "format.h"
|
#include "format.h"
|
||||||
@ -20,6 +19,7 @@ class QTabWidget;
|
|||||||
class QActionGroup;
|
class QActionGroup;
|
||||||
class QAction;
|
class QAction;
|
||||||
class QLabel;
|
class QLabel;
|
||||||
|
class QSplitter;
|
||||||
class QSignalMapper;
|
class QSignalMapper;
|
||||||
class QPrinter;
|
class QPrinter;
|
||||||
class FileBrowser;
|
class FileBrowser;
|
||||||
@ -27,6 +27,7 @@ class GraphTab;
|
|||||||
class MapView;
|
class MapView;
|
||||||
class Map;
|
class Map;
|
||||||
class MapList;
|
class MapList;
|
||||||
|
class POI;
|
||||||
|
|
||||||
class GUI : public QMainWindow
|
class GUI : public QMainWindow
|
||||||
{
|
{
|
||||||
@ -34,7 +35,6 @@ class GUI : public QMainWindow
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
GUI();
|
GUI();
|
||||||
~GUI();
|
|
||||||
|
|
||||||
bool openFile(const QString &fileName);
|
bool openFile(const QString &fileName);
|
||||||
|
|
||||||
@ -47,6 +47,7 @@ private slots:
|
|||||||
void openFile();
|
void openFile();
|
||||||
void closeAll();
|
void closeAll();
|
||||||
void reloadFile();
|
void reloadFile();
|
||||||
|
void statistics();
|
||||||
void openPOIFile();
|
void openPOIFile();
|
||||||
void closePOIFiles();
|
void closePOIFiles();
|
||||||
void showGraphs(bool show);
|
void showGraphs(bool show);
|
||||||
@ -109,8 +110,8 @@ private:
|
|||||||
void updateStatusBarInfo();
|
void updateStatusBarInfo();
|
||||||
void updateWindowTitle();
|
void updateWindowTitle();
|
||||||
void updateNavigationActions();
|
void updateNavigationActions();
|
||||||
void updateGraphTabs();
|
bool updateGraphTabs();
|
||||||
void updateMapView();
|
bool updateMapView();
|
||||||
|
|
||||||
TimeType timeType() const;
|
TimeType timeType() const;
|
||||||
Units units() const;
|
Units units() const;
|
||||||
@ -150,6 +151,7 @@ private:
|
|||||||
QAction *_openFileAction;
|
QAction *_openFileAction;
|
||||||
QAction *_closeFileAction;
|
QAction *_closeFileAction;
|
||||||
QAction *_reloadFileAction;
|
QAction *_reloadFileAction;
|
||||||
|
QAction *_statisticsAction;
|
||||||
QAction *_openPOIAction;
|
QAction *_openPOIAction;
|
||||||
QAction *_closePOIAction;
|
QAction *_closePOIAction;
|
||||||
QAction *_showPOIAction;
|
QAction *_showPOIAction;
|
||||||
@ -196,6 +198,7 @@ private:
|
|||||||
QLabel *_distanceLabel;
|
QLabel *_distanceLabel;
|
||||||
QLabel *_timeLabel;
|
QLabel *_timeLabel;
|
||||||
|
|
||||||
|
QSplitter *_splitter;
|
||||||
MapView *_mapView;
|
MapView *_mapView;
|
||||||
QTabWidget *_graphTabWidget;
|
QTabWidget *_graphTabWidget;
|
||||||
QList<GraphTab*> _tabs;
|
QList<GraphTab*> _tabs;
|
||||||
@ -224,6 +227,8 @@ private:
|
|||||||
|
|
||||||
Export _export;
|
Export _export;
|
||||||
Options _options;
|
Options _options;
|
||||||
|
|
||||||
|
QString _dataDir, _mapDir, _poiDir;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // GUI_H
|
#endif // GUI_H
|
||||||
|
@ -24,28 +24,33 @@ void HeartRateGraph::setInfo()
|
|||||||
clearInfo();
|
clearInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HeartRateGraph::loadData(const Data &data, const QList<PathItem *> &paths)
|
QList<GraphItem*> HeartRateGraph::loadData(const Data &data)
|
||||||
{
|
{
|
||||||
|
QList<GraphItem*> graphs;
|
||||||
|
|
||||||
for (int i = 0; i < data.tracks().count(); i++) {
|
for (int i = 0; i < data.tracks().count(); i++) {
|
||||||
const Graph &graph = data.tracks().at(i)->heartRate();
|
const Graph &graph = data.tracks().at(i)->heartRate();
|
||||||
|
|
||||||
if (graph.size() < 2) {
|
if (graph.size() < 2) {
|
||||||
skipColor();
|
skipColor();
|
||||||
continue;
|
graphs.append(0);
|
||||||
|
} else {
|
||||||
|
HeartRateGraphItem *gi = new HeartRateGraphItem(graph, _graphType);
|
||||||
|
GraphView::addGraph(gi);
|
||||||
|
_avg.append(QPointF(data.tracks().at(i)->distance(), gi->avg()));
|
||||||
|
graphs.append(gi);
|
||||||
}
|
}
|
||||||
|
|
||||||
HeartRateGraphItem *gi = new HeartRateGraphItem(graph, _graphType);
|
|
||||||
GraphView::addGraph(gi, paths.at(i));
|
|
||||||
|
|
||||||
_avg.append(QPointF(data.tracks().at(i)->distance(), gi->avg()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < data.routes().count(); i++)
|
for (int i = 0; i < data.routes().count(); i++) {
|
||||||
skipColor();
|
skipColor();
|
||||||
|
graphs.append(0);
|
||||||
|
}
|
||||||
|
|
||||||
setInfo();
|
setInfo();
|
||||||
|
|
||||||
redraw();
|
redraw();
|
||||||
|
|
||||||
|
return graphs;
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal HeartRateGraph::avg() const
|
qreal HeartRateGraph::avg() const
|
||||||
|
@ -11,7 +11,7 @@ public:
|
|||||||
HeartRateGraph(QWidget *parent = 0);
|
HeartRateGraph(QWidget *parent = 0);
|
||||||
|
|
||||||
QString label() const {return tr("Heart rate");}
|
QString label() const {return tr("Heart rate");}
|
||||||
void loadData(const Data &data, const QList<PathItem *> &paths);
|
QList<GraphItem*> loadData(const Data &data);
|
||||||
void clear();
|
void clear();
|
||||||
void showTracks(bool show);
|
void showTracks(bool show);
|
||||||
|
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
InfoItem::InfoItem(QGraphicsItem *parent) : QGraphicsItem(parent)
|
InfoItem::InfoItem(QGraphicsItem *parent) : QGraphicsItem(parent)
|
||||||
{
|
{
|
||||||
|
_font.setPixelSize(FONT_SIZE);
|
||||||
|
_font.setFamily(FONT_FAMILY);
|
||||||
|
|
||||||
#ifndef Q_OS_MAC
|
#ifndef Q_OS_MAC
|
||||||
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
|
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
|
||||||
#endif // Q_OS_MAC
|
#endif // Q_OS_MAC
|
||||||
@ -14,16 +17,14 @@ InfoItem::InfoItem(QGraphicsItem *parent) : QGraphicsItem(parent)
|
|||||||
|
|
||||||
void InfoItem::updateBoundingRect()
|
void InfoItem::updateBoundingRect()
|
||||||
{
|
{
|
||||||
QFont font;
|
QFontMetrics fm(_font);
|
||||||
font.setPixelSize(FONT_SIZE);
|
|
||||||
font.setFamily(FONT_FAMILY);
|
|
||||||
QFontMetrics fm(font);
|
|
||||||
QList<KV>::const_iterator i;
|
|
||||||
qreal width = 0;
|
qreal width = 0;
|
||||||
|
|
||||||
for (i = _list.constBegin(); i != _list.constEnd(); i++) {
|
for (QList<KV>::const_iterator i = _list.constBegin();
|
||||||
width += fm.width(i->key + ": ");
|
i != _list.constEnd(); i++) {
|
||||||
width += fm.width(i->value) + ((i == _list.end() - 1) ? 0 : PADDING);
|
width += fm.width(i->key() + ": ");
|
||||||
|
width += fm.width(i->value()) + ((i == _list.constEnd() - 1)
|
||||||
|
? 0 : PADDING);
|
||||||
}
|
}
|
||||||
|
|
||||||
_boundingRect = QRectF(0, 0, width, _list.isEmpty() ? 0 : fm.height());
|
_boundingRect = QRectF(0, 0, width, _list.isEmpty() ? 0 : fm.height());
|
||||||
@ -34,23 +35,20 @@ void InfoItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
|||||||
{
|
{
|
||||||
Q_UNUSED(option);
|
Q_UNUSED(option);
|
||||||
Q_UNUSED(widget);
|
Q_UNUSED(widget);
|
||||||
QFont font;
|
QFontMetrics fm(_font);
|
||||||
font.setPixelSize(FONT_SIZE);
|
|
||||||
font.setFamily(FONT_FAMILY);
|
|
||||||
painter->setFont(font);
|
|
||||||
QFontMetrics fm(font);
|
|
||||||
QList<KV>::const_iterator i;
|
|
||||||
int width = 0;
|
int width = 0;
|
||||||
|
|
||||||
|
painter->setFont(_font);
|
||||||
painter->setRenderHint(QPainter::Antialiasing, false);
|
painter->setRenderHint(QPainter::Antialiasing, false);
|
||||||
|
|
||||||
for (i = _list.constBegin(); i != _list.constEnd(); i++) {
|
for (QList<KV>::const_iterator i = _list.constBegin();
|
||||||
painter->drawText(width, fm.height() - fm.descent(), i->key + ": ");
|
i != _list.constEnd(); i++) {
|
||||||
width += fm.width(i->key + ": ");
|
painter->drawText(width, fm.height() - fm.descent(), i->key() + ": ");
|
||||||
painter->drawText(width, fm.height() - fm.descent(), i->value);
|
width += fm.width(i->key() + ": ");
|
||||||
width += fm.width(i->value) + ((i == _list.end() - 1) ? 0 : PADDING);
|
painter->drawText(width, fm.height() - fm.descent(), i->value());
|
||||||
if (i != _list.end() - 1) {
|
width += fm.width(i->value()) + ((i == _list.constEnd() - 1)
|
||||||
|
? 0 : PADDING);
|
||||||
|
if (i != _list.constEnd() - 1) {
|
||||||
painter->save();
|
painter->save();
|
||||||
painter->setPen(Qt::gray);
|
painter->setPen(Qt::gray);
|
||||||
painter->drawLine(width - PADDING/2, fm.descent(),
|
painter->drawLine(width - PADDING/2, fm.descent(),
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <QGraphicsItem>
|
#include <QGraphicsItem>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
|
#include "kv.h"
|
||||||
|
|
||||||
class InfoItem : public QGraphicsItem
|
class InfoItem : public QGraphicsItem
|
||||||
{
|
{
|
||||||
@ -13,6 +14,8 @@ public:
|
|||||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||||
QWidget *widget);
|
QWidget *widget);
|
||||||
|
|
||||||
|
const QList<KV> &info() const {return _list;}
|
||||||
|
|
||||||
void insert(const QString &key, const QString &value);
|
void insert(const QString &key, const QString &value);
|
||||||
void clear();
|
void clear();
|
||||||
bool isEmpty() {return _list.isEmpty();}
|
bool isEmpty() {return _list.isEmpty();}
|
||||||
@ -20,19 +23,9 @@ public:
|
|||||||
private:
|
private:
|
||||||
void updateBoundingRect();
|
void updateBoundingRect();
|
||||||
|
|
||||||
class KV {
|
|
||||||
public:
|
|
||||||
QString key;
|
|
||||||
QString value;
|
|
||||||
|
|
||||||
KV(const QString &k, const QString &v)
|
|
||||||
{key = k; value = v;}
|
|
||||||
bool operator==(const KV &other) const
|
|
||||||
{return this->key == other.key;}
|
|
||||||
};
|
|
||||||
|
|
||||||
QList<KV> _list;
|
QList<KV> _list;
|
||||||
QRectF _boundingRect;
|
QRectF _boundingRect;
|
||||||
|
QFont _font;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INFOITEM_H
|
#endif // INFOITEM_H
|
||||||
|
@ -9,10 +9,8 @@
|
|||||||
#define FIRST_KEY Qt::Key_Home
|
#define FIRST_KEY Qt::Key_Home
|
||||||
#define LAST_KEY Qt::Key_End
|
#define LAST_KEY Qt::Key_End
|
||||||
#define MODIFIER Qt::ShiftModifier
|
#define MODIFIER Qt::ShiftModifier
|
||||||
|
#define ZOOM_IN Qt::Key_Plus
|
||||||
#define ZOOM_IN QKeySequence::ZoomIn
|
#define ZOOM_OUT Qt::Key_Minus
|
||||||
#define ZOOM_OUT QKeySequence::ZoomOut
|
|
||||||
|
|
||||||
#define TOGGLE_GRAPH_TYPE_KEY Qt::Key_X
|
#define TOGGLE_GRAPH_TYPE_KEY Qt::Key_X
|
||||||
#define TOGGLE_TIME_TYPE_KEY Qt::Key_T
|
#define TOGGLE_TIME_TYPE_KEY Qt::Key_T
|
||||||
|
|
||||||
@ -26,6 +24,7 @@
|
|||||||
#define NEXT_MAP_SHORTCUT QKeySequence(QKeySequence::Forward)
|
#define NEXT_MAP_SHORTCUT QKeySequence(QKeySequence::Forward)
|
||||||
#define PREV_MAP_SHORTCUT QKeySequence(QKeySequence::Back)
|
#define PREV_MAP_SHORTCUT QKeySequence(QKeySequence::Back)
|
||||||
#define SHOW_GRAPHS_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_G)
|
#define SHOW_GRAPHS_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_G)
|
||||||
|
#define STATISTICS_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_S)
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
#define FULLSCREEN_SHORTCUT QKeySequence(Qt::META + Qt::CTRL + Qt::Key_F)
|
#define FULLSCREEN_SHORTCUT QKeySequence(Qt::META + Qt::CTRL + Qt::Key_F)
|
||||||
|
21
src/GUI/kv.h
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#ifndef KV_H
|
||||||
|
#define KV_H
|
||||||
|
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
|
class KV {
|
||||||
|
public:
|
||||||
|
KV(const QString &key, const QString &value) : _key(key), _value(value) {}
|
||||||
|
|
||||||
|
const QString &key() const {return _key;}
|
||||||
|
const QString &value() const {return _value;}
|
||||||
|
|
||||||
|
bool operator==(const KV &other) const
|
||||||
|
{return this->key() == other.key();}
|
||||||
|
|
||||||
|
private:
|
||||||
|
QString _key;
|
||||||
|
QString _value;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // KV_H
|
@ -75,7 +75,6 @@ MapView::MapView(Map *map, POI *poi, QWidget *parent)
|
|||||||
_plot = false;
|
_plot = false;
|
||||||
_digitalZoom = 0;
|
_digitalZoom = 0;
|
||||||
|
|
||||||
_map->setBackgroundColor(_backgroundColor);
|
|
||||||
_res = _map->resolution(_map->bounds());
|
_res = _map->resolution(_map->bounds());
|
||||||
_scene->setSceneRect(_map->bounds());
|
_scene->setSceneRect(_map->bounds());
|
||||||
|
|
||||||
@ -150,7 +149,7 @@ void MapView::addWaypoints(const QList<Waypoint> &waypoints)
|
|||||||
|
|
||||||
WaypointItem *wi = new WaypointItem(w, _map);
|
WaypointItem *wi = new WaypointItem(w, _map);
|
||||||
_waypoints.append(wi);
|
_waypoints.append(wi);
|
||||||
_wr.unite(wi->waypoint().coordinates());
|
_wr = _wr.united(wi->waypoint().coordinates());
|
||||||
wi->setZValue(1);
|
wi->setZValue(1);
|
||||||
wi->setSize(_waypointSize);
|
wi->setSize(_waypointSize);
|
||||||
wi->setColor(_waypointColor);
|
wi->setColor(_waypointColor);
|
||||||
@ -179,7 +178,7 @@ QList<PathItem *> MapView::loadData(const Data &data)
|
|||||||
if (_tracks.empty() && _routes.empty() && _waypoints.empty())
|
if (_tracks.empty() && _routes.empty() && _waypoints.empty())
|
||||||
return paths;
|
return paths;
|
||||||
|
|
||||||
if (mapZoom() != zoom)
|
if (fitMapZoom() != zoom)
|
||||||
rescale();
|
rescale();
|
||||||
else
|
else
|
||||||
updatePOIVisibility();
|
updatePOIVisibility();
|
||||||
@ -189,13 +188,13 @@ QList<PathItem *> MapView::loadData(const Data &data)
|
|||||||
return paths;
|
return paths;
|
||||||
}
|
}
|
||||||
|
|
||||||
int MapView::mapZoom() const
|
int MapView::fitMapZoom() const
|
||||||
{
|
{
|
||||||
RectC br = _tr | _rr | _wr;
|
RectC br = _tr | _rr | _wr;
|
||||||
|
|
||||||
return _map->zoomFit(viewport()->size() - QSize(2*MARGIN, 2*MARGIN),
|
return _map->zoomFit(viewport()->size() - QSize(2*MARGIN, 2*MARGIN),
|
||||||
br.isNull() ? RectC(_map->xy2ll(sceneRect().topLeft()),
|
br.isNull() ? RectC(_map->xy2ll(_map->bounds().topLeft()),
|
||||||
_map->xy2ll(sceneRect().bottomRight())) : br);
|
_map->xy2ll(_map->bounds().bottomRight())) : br);
|
||||||
}
|
}
|
||||||
|
|
||||||
QPointF MapView::contentCenter() const
|
QPointF MapView::contentCenter() const
|
||||||
@ -267,7 +266,6 @@ void MapView::setMap(Map *map)
|
|||||||
|
|
||||||
_map = map;
|
_map = map;
|
||||||
_map->load();
|
_map->load();
|
||||||
_map->setBackgroundColor(_backgroundColor);
|
|
||||||
connect(_map, SIGNAL(loaded()), this, SLOT(reloadMap()));
|
connect(_map, SIGNAL(loaded()), this, SLOT(reloadMap()));
|
||||||
|
|
||||||
digitalZoom(0);
|
digitalZoom(0);
|
||||||
@ -287,7 +285,9 @@ void MapView::setMap(Map *map)
|
|||||||
it.value()->setMap(_map);
|
it.value()->setMap(_map);
|
||||||
updatePOIVisibility();
|
updatePOIVisibility();
|
||||||
|
|
||||||
centerOn(_map->ll2xy(cr.center()));
|
QPointF nc = QRectF(_map->ll2xy(cr.topLeft()),
|
||||||
|
_map->ll2xy(cr.bottomRight())).center();
|
||||||
|
centerOn(nc);
|
||||||
|
|
||||||
resetCachedContent();
|
resetCachedContent();
|
||||||
QPixmapCache::clear();
|
QPixmapCache::clear();
|
||||||
@ -389,7 +389,10 @@ void MapView::setCoordinatesFormat(CoordinatesFormat format)
|
|||||||
void MapView::clearMapCache()
|
void MapView::clearMapCache()
|
||||||
{
|
{
|
||||||
_map->clearCache();
|
_map->clearCache();
|
||||||
resetCachedContent();
|
|
||||||
|
fitMapZoom();
|
||||||
|
rescale();
|
||||||
|
centerOn(contentCenter());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MapView::digitalZoom(int zoom)
|
void MapView::digitalZoom(int zoom)
|
||||||
@ -416,7 +419,7 @@ void MapView::digitalZoom(int zoom)
|
|||||||
_mapScale->setDigitalZoom(_digitalZoom);
|
_mapScale->setDigitalZoom(_digitalZoom);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MapView::zoom(int zoom, const QPoint &pos, const Coordinates &c)
|
void MapView::zoom(int zoom, const QPoint &pos)
|
||||||
{
|
{
|
||||||
bool shift = QApplication::keyboardModifiers() & Qt::ShiftModifier;
|
bool shift = QApplication::keyboardModifiers() & Qt::ShiftModifier;
|
||||||
|
|
||||||
@ -428,9 +431,9 @@ void MapView::zoom(int zoom, const QPoint &pos, const Coordinates &c)
|
|||||||
|
|
||||||
digitalZoom(zoom);
|
digitalZoom(zoom);
|
||||||
} else {
|
} else {
|
||||||
qreal os, ns;
|
Coordinates c = _map->xy2ll(mapToScene(pos));
|
||||||
os = _map->zoom();
|
qreal os = _map->zoom();
|
||||||
ns = (zoom > 0) ? _map->zoomIn() : _map->zoomOut();
|
qreal ns = (zoom > 0) ? _map->zoomIn() : _map->zoomOut();
|
||||||
|
|
||||||
if (ns != os) {
|
if (ns != os) {
|
||||||
rescale();
|
rescale();
|
||||||
@ -451,8 +454,7 @@ void MapView::wheelEvent(QWheelEvent *event)
|
|||||||
return;
|
return;
|
||||||
deg = 0;
|
deg = 0;
|
||||||
|
|
||||||
Coordinates c = _map->xy2ll(mapToScene(event->pos()));
|
zoom((event->delta() > 0) ? 1 : -1, event->pos());
|
||||||
zoom((event->delta() > 0) ? 1 : -1, event->pos(), c);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MapView::mouseDoubleClickEvent(QMouseEvent *event)
|
void MapView::mouseDoubleClickEvent(QMouseEvent *event)
|
||||||
@ -460,8 +462,7 @@ void MapView::mouseDoubleClickEvent(QMouseEvent *event)
|
|||||||
if (event->button() != Qt::LeftButton && event->button() != Qt::RightButton)
|
if (event->button() != Qt::LeftButton && event->button() != Qt::RightButton)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Coordinates c = _map->xy2ll(mapToScene(event->pos()));
|
zoom((event->button() == Qt::LeftButton) ? 1 : -1, event->pos());
|
||||||
zoom((event->button() == Qt::LeftButton) ? 1 : -1, event->pos(), c);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MapView::keyPressEvent(QKeyEvent *event)
|
void MapView::keyPressEvent(QKeyEvent *event)
|
||||||
@ -469,11 +470,10 @@ void MapView::keyPressEvent(QKeyEvent *event)
|
|||||||
int z;
|
int z;
|
||||||
|
|
||||||
QPoint pos = viewport()->rect().center();
|
QPoint pos = viewport()->rect().center();
|
||||||
Coordinates c = _map->xy2ll(mapToScene(pos));
|
|
||||||
|
|
||||||
if (event->matches(ZOOM_IN))
|
if (event->key() == ZOOM_IN)
|
||||||
z = 1;
|
z = 1;
|
||||||
else if (event->matches(ZOOM_OUT))
|
else if (event->key() == ZOOM_OUT)
|
||||||
z = -1;
|
z = -1;
|
||||||
else if (_digitalZoom && event->key() == Qt::Key_Escape) {
|
else if (_digitalZoom && event->key() == Qt::Key_Escape) {
|
||||||
digitalZoom(0);
|
digitalZoom(0);
|
||||||
@ -483,7 +483,7 @@ void MapView::keyPressEvent(QKeyEvent *event)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
zoom(z, pos, c);
|
zoom(z, pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MapView::plot(QPainter *painter, const QRectF &target, qreal scale,
|
void MapView::plot(QPainter *painter, const QRectF &target, qreal scale,
|
||||||
@ -492,13 +492,12 @@ void MapView::plot(QPainter *painter, const QRectF &target, qreal scale,
|
|||||||
QRect orig, adj;
|
QRect orig, adj;
|
||||||
qreal ratio, diff, q;
|
qreal ratio, diff, q;
|
||||||
QPointF origScene, origPos;
|
QPointF origScene, origPos;
|
||||||
RectC origC;
|
int zoom;
|
||||||
|
|
||||||
|
|
||||||
// Enter plot mode
|
// Enter plot mode
|
||||||
setUpdatesEnabled(false);
|
setUpdatesEnabled(false);
|
||||||
_plot = true;
|
_plot = true;
|
||||||
_map->setBlockingMode(true);
|
|
||||||
|
|
||||||
// Compute sizes & ratios
|
// Compute sizes & ratios
|
||||||
orig = viewport()->rect();
|
orig = viewport()->rect();
|
||||||
@ -517,8 +516,8 @@ void MapView::plot(QPainter *painter, const QRectF &target, qreal scale,
|
|||||||
|
|
||||||
// Adjust the view for printing
|
// Adjust the view for printing
|
||||||
if (hires) {
|
if (hires) {
|
||||||
|
zoom = _map->zoom();
|
||||||
QRectF vr(mapToScene(orig).boundingRect());
|
QRectF vr(mapToScene(orig).boundingRect());
|
||||||
origC = RectC(_map->xy2ll(vr.topLeft()), _map->xy2ll(vr.bottomRight()));
|
|
||||||
origScene = vr.center();
|
origScene = vr.center();
|
||||||
|
|
||||||
QPointF s(painter->device()->logicalDpiX()
|
QPointF s(painter->device()->logicalDpiX()
|
||||||
@ -533,12 +532,12 @@ void MapView::plot(QPainter *painter, const QRectF &target, qreal scale,
|
|||||||
centerOn(center);
|
centerOn(center);
|
||||||
adj.moveCenter(mapFromScene(center));
|
adj.moveCenter(mapFromScene(center));
|
||||||
|
|
||||||
_mapScale->setDigitalZoom(-log2(s.x() / q));
|
_mapScale->setDigitalZoom(_digitalZoom - log2(s.x() / q));
|
||||||
_mapScale->setPos(mapToScene(QPoint(adj.bottomRight() + QPoint(
|
_mapScale->setPos(mapToScene(QPoint(adj.bottomRight() + QPoint(
|
||||||
-(SCALE_OFFSET + _mapScale->boundingRect().width()) * (s.x() / q),
|
-(SCALE_OFFSET + _mapScale->boundingRect().width()) * (s.x() / q),
|
||||||
-(SCALE_OFFSET + _mapScale->boundingRect().height()) * (s.x() / q)))));
|
-(SCALE_OFFSET + _mapScale->boundingRect().height()) * (s.x() / q)))));
|
||||||
} else {
|
} else {
|
||||||
_mapScale->setDigitalZoom(-log2(1.0 / q));
|
_mapScale->setDigitalZoom(_digitalZoom - log2(1.0 / q));
|
||||||
_mapScale->setPos(mapToScene(QPoint(adj.bottomRight() + QPoint(
|
_mapScale->setPos(mapToScene(QPoint(adj.bottomRight() + QPoint(
|
||||||
-(SCALE_OFFSET + _mapScale->boundingRect().width()) / q ,
|
-(SCALE_OFFSET + _mapScale->boundingRect().width()) / q ,
|
||||||
-(SCALE_OFFSET + _mapScale->boundingRect().height()) / q))));
|
-(SCALE_OFFSET + _mapScale->boundingRect().height()) / q))));
|
||||||
@ -549,15 +548,14 @@ void MapView::plot(QPainter *painter, const QRectF &target, qreal scale,
|
|||||||
|
|
||||||
// Revert view changes to display mode
|
// Revert view changes to display mode
|
||||||
if (hires) {
|
if (hires) {
|
||||||
_map->zoomFit(orig.size(), origC);
|
_map->setZoom(zoom);
|
||||||
rescale();
|
rescale();
|
||||||
centerOn(origScene);
|
centerOn(origScene);
|
||||||
}
|
}
|
||||||
_mapScale->setDigitalZoom(0);
|
_mapScale->setDigitalZoom(_digitalZoom);
|
||||||
_mapScale->setPos(origPos);
|
_mapScale->setPos(origPos);
|
||||||
|
|
||||||
// Exit plot mode
|
// Exit plot mode
|
||||||
_map->setBlockingMode(false);
|
|
||||||
_plot = false;
|
_plot = false;
|
||||||
setUpdatesEnabled(true);
|
setUpdatesEnabled(true);
|
||||||
}
|
}
|
||||||
@ -746,7 +744,6 @@ void MapView::setMapOpacity(int opacity)
|
|||||||
void MapView::setBackgroundColor(const QColor &color)
|
void MapView::setBackgroundColor(const QColor &color)
|
||||||
{
|
{
|
||||||
_backgroundColor = color;
|
_backgroundColor = color;
|
||||||
_map->setBackgroundColor(color);
|
|
||||||
resetCachedContent();
|
resetCachedContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -758,7 +755,7 @@ void MapView::drawBackground(QPainter *painter, const QRectF &rect)
|
|||||||
QRectF ir = rect.intersected(_map->bounds());
|
QRectF ir = rect.intersected(_map->bounds());
|
||||||
if (_opacity < 1.0)
|
if (_opacity < 1.0)
|
||||||
painter->setOpacity(_opacity);
|
painter->setOpacity(_opacity);
|
||||||
_map->draw(painter, ir);
|
_map->draw(painter, ir, _plot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -767,7 +764,7 @@ void MapView::resizeEvent(QResizeEvent *event)
|
|||||||
QGraphicsView::resizeEvent(event);
|
QGraphicsView::resizeEvent(event);
|
||||||
|
|
||||||
int zoom = _map->zoom();
|
int zoom = _map->zoom();
|
||||||
if (mapZoom() != zoom)
|
if (fitMapZoom() != zoom)
|
||||||
rescale();
|
rescale();
|
||||||
|
|
||||||
centerOn(contentCenter());
|
centerOn(contentCenter());
|
||||||
|
@ -22,6 +22,7 @@ class RouteItem;
|
|||||||
class WaypointItem;
|
class WaypointItem;
|
||||||
class ScaleItem;
|
class ScaleItem;
|
||||||
class PathItem;
|
class PathItem;
|
||||||
|
class GraphItem;
|
||||||
|
|
||||||
class MapView : public QGraphicsView
|
class MapView : public QGraphicsView
|
||||||
{
|
{
|
||||||
@ -30,7 +31,7 @@ class MapView : public QGraphicsView
|
|||||||
public:
|
public:
|
||||||
MapView(Map *map, POI *poi, QWidget *parent = 0);
|
MapView(Map *map, POI *poi, QWidget *parent = 0);
|
||||||
|
|
||||||
QList<PathItem*> loadData(const Data &data);
|
QList<PathItem *> loadData(const Data &data);
|
||||||
|
|
||||||
void setPalette(const Palette &palette);
|
void setPalette(const Palette &palette);
|
||||||
void setPOI(POI *poi);
|
void setPOI(POI *poi);
|
||||||
@ -80,11 +81,11 @@ private:
|
|||||||
void loadPOI();
|
void loadPOI();
|
||||||
void clearPOI();
|
void clearPOI();
|
||||||
|
|
||||||
int mapZoom() const;
|
int fitMapZoom() const;
|
||||||
QPointF contentCenter() const;
|
QPointF contentCenter() const;
|
||||||
void rescale();
|
void rescale();
|
||||||
void centerOn(const QPointF &pos);
|
void centerOn(const QPointF &pos);
|
||||||
void zoom(int zoom, const QPoint &pos, const Coordinates &c);
|
void zoom(int zoom, const QPoint &pos);
|
||||||
void digitalZoom(int zoom);
|
void digitalZoom(int zoom);
|
||||||
void updatePOIVisibility();
|
void updatePOIVisibility();
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) || defined(Q_OS_MAC)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
|
||||||
#include <QGLWidget>
|
#include <QGLWidget>
|
||||||
#include <QGLFormat>
|
#include <QGLFormat>
|
||||||
#else
|
#else
|
||||||
@ -7,13 +7,13 @@
|
|||||||
#include <QSurfaceFormat>
|
#include <QSurfaceFormat>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) || defined(Q_OS_MAC)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
|
||||||
#define OPENGL_WIDGET QGLWidget
|
#define OPENGL_WIDGET QGLWidget
|
||||||
#else
|
#else
|
||||||
#define OPENGL_WIDGET QOpenGLWidget
|
#define OPENGL_WIDGET QOpenGLWidget
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) || defined(Q_OS_MAC)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
|
||||||
#define OPENGL_SET_SAMPLES(samples) \
|
#define OPENGL_SET_SAMPLES(samples) \
|
||||||
{QGLFormat fmt; \
|
{QGLFormat fmt; \
|
||||||
fmt.setSamples(samples); \
|
fmt.setSamples(samples); \
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include <QRadioButton>
|
#include <QRadioButton>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QSysInfo>
|
#include <QSysInfo>
|
||||||
#include "config.h"
|
|
||||||
#include "icons.h"
|
#include "icons.h"
|
||||||
#include "colorbox.h"
|
#include "colorbox.h"
|
||||||
#include "stylecombobox.h"
|
#include "stylecombobox.h"
|
||||||
@ -311,9 +310,25 @@ QWidget *OptionsDialog::createDataPage()
|
|||||||
pauseTab->setLayout(pauseLayout);
|
pauseTab->setLayout(pauseLayout);
|
||||||
|
|
||||||
|
|
||||||
|
_computed = new QRadioButton(tr("Computed from distance/time"));
|
||||||
|
_reported = new QRadioButton(tr("Recorded by device"));
|
||||||
|
if (_options->useReportedSpeed)
|
||||||
|
_reported->setChecked(true);
|
||||||
|
else
|
||||||
|
_computed->setChecked(true);
|
||||||
|
|
||||||
|
QFormLayout *sourceLayout = new QFormLayout();
|
||||||
|
sourceLayout->addWidget(_computed);
|
||||||
|
sourceLayout->addWidget(_reported);
|
||||||
|
|
||||||
|
QWidget *sourceTab = new QWidget();
|
||||||
|
sourceTab->setLayout(sourceLayout);
|
||||||
|
|
||||||
|
|
||||||
QTabWidget *filterPage = new QTabWidget();
|
QTabWidget *filterPage = new QTabWidget();
|
||||||
filterPage->addTab(filterTab, tr("Filtering"));
|
filterPage->addTab(filterTab, tr("Filtering"));
|
||||||
filterPage->addTab(pauseTab, tr("Pause detection"));
|
filterPage->addTab(pauseTab, tr("Pause detection"));
|
||||||
|
filterPage->addTab(sourceTab, tr("Speed"));
|
||||||
|
|
||||||
return filterPage;
|
return filterPage;
|
||||||
}
|
}
|
||||||
@ -424,6 +439,10 @@ QWidget *OptionsDialog::createSystemPage()
|
|||||||
{
|
{
|
||||||
_useOpenGL = new QCheckBox(tr("Use OpenGL"));
|
_useOpenGL = new QCheckBox(tr("Use OpenGL"));
|
||||||
_useOpenGL->setChecked(_options->useOpenGL);
|
_useOpenGL->setChecked(_options->useOpenGL);
|
||||||
|
#ifdef ENABLE_HTTP2
|
||||||
|
_enableHTTP2 = new QCheckBox(tr("Enable HTTP/2"));
|
||||||
|
_enableHTTP2->setChecked(_options->enableHTTP2);
|
||||||
|
#endif // ENABLE_HTTP2
|
||||||
|
|
||||||
_pixmapCache = new QSpinBox();
|
_pixmapCache = new QSpinBox();
|
||||||
_pixmapCache->setMinimum(16);
|
_pixmapCache->setMinimum(16);
|
||||||
@ -431,16 +450,26 @@ QWidget *OptionsDialog::createSystemPage()
|
|||||||
_pixmapCache->setSuffix(UNIT_SPACE + tr("MB"));
|
_pixmapCache->setSuffix(UNIT_SPACE + tr("MB"));
|
||||||
_pixmapCache->setValue(_options->pixmapCache);
|
_pixmapCache->setValue(_options->pixmapCache);
|
||||||
|
|
||||||
QFormLayout *cacheLayout = new QFormLayout();
|
_connectionTimeout = new QSpinBox();
|
||||||
cacheLayout->addRow(tr("Image cache size:"), _pixmapCache);
|
_connectionTimeout->setMinimum(30);
|
||||||
|
_connectionTimeout->setMaximum(120);
|
||||||
|
_connectionTimeout->setSuffix(UNIT_SPACE + tr("s"));
|
||||||
|
_connectionTimeout->setValue(_options->connectionTimeout);
|
||||||
|
|
||||||
QFormLayout *openGLLayout = new QFormLayout();
|
QFormLayout *formLayout = new QFormLayout();
|
||||||
openGLLayout->addWidget(_useOpenGL);
|
formLayout->addRow(tr("Image cache size:"), _pixmapCache);
|
||||||
|
formLayout->addRow(tr("Connection timeout:"), _connectionTimeout);
|
||||||
|
|
||||||
|
QFormLayout *checkboxLayout = new QFormLayout();
|
||||||
|
#ifdef ENABLE_HTTP2
|
||||||
|
checkboxLayout->addWidget(_enableHTTP2);
|
||||||
|
#endif // ENABLE_HTTP2
|
||||||
|
checkboxLayout->addWidget(_useOpenGL);
|
||||||
|
|
||||||
QWidget *systemTab = new QWidget();
|
QWidget *systemTab = new QWidget();
|
||||||
QVBoxLayout *systemTabLayout = new QVBoxLayout();
|
QVBoxLayout *systemTabLayout = new QVBoxLayout();
|
||||||
systemTabLayout->addLayout(cacheLayout);
|
systemTabLayout->addLayout(formLayout);
|
||||||
systemTabLayout->addLayout(openGLLayout);
|
systemTabLayout->addLayout(checkboxLayout);
|
||||||
systemTabLayout->addStretch();
|
systemTabLayout->addStretch();
|
||||||
systemTab->setLayout(systemTabLayout);
|
systemTab->setLayout(systemTabLayout);
|
||||||
|
|
||||||
@ -536,6 +565,7 @@ void OptionsDialog::accept()
|
|||||||
if (qAbs(pauseSpeed - _options->pauseSpeed) > 0.01)
|
if (qAbs(pauseSpeed - _options->pauseSpeed) > 0.01)
|
||||||
_options->pauseSpeed = pauseSpeed;
|
_options->pauseSpeed = pauseSpeed;
|
||||||
_options->pauseInterval = _pauseInterval->value();
|
_options->pauseInterval = _pauseInterval->value();
|
||||||
|
_options->useReportedSpeed = _reported->isChecked();
|
||||||
|
|
||||||
qreal poiRadius = (_options->units == Imperial)
|
qreal poiRadius = (_options->units == Imperial)
|
||||||
? _poiRadius->value() * MIINM : (_options->units == Nautical)
|
? _poiRadius->value() * MIINM : (_options->units == Nautical)
|
||||||
@ -544,7 +574,11 @@ void OptionsDialog::accept()
|
|||||||
_options->poiRadius = poiRadius;
|
_options->poiRadius = poiRadius;
|
||||||
|
|
||||||
_options->useOpenGL = _useOpenGL->isChecked();
|
_options->useOpenGL = _useOpenGL->isChecked();
|
||||||
|
#ifdef ENABLE_HTTP2
|
||||||
|
_options->enableHTTP2 = _enableHTTP2->isChecked();
|
||||||
|
#endif // ENABLE_HTTP2
|
||||||
_options->pixmapCache = _pixmapCache->value();
|
_options->pixmapCache = _pixmapCache->value();
|
||||||
|
_options->connectionTimeout = _connectionTimeout->value();
|
||||||
|
|
||||||
_options->hiresPrint = _hires->isChecked();
|
_options->hiresPrint = _hires->isChecked();
|
||||||
_options->printName = _name->isChecked();
|
_options->printName = _name->isChecked();
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include "palette.h"
|
#include "palette.h"
|
||||||
#include "units.h"
|
#include "units.h"
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
|
||||||
class ColorBox;
|
class ColorBox;
|
||||||
class StyleComboBox;
|
class StyleComboBox;
|
||||||
@ -43,11 +45,16 @@ struct Options {
|
|||||||
bool outlierEliminate;
|
bool outlierEliminate;
|
||||||
qreal pauseSpeed;
|
qreal pauseSpeed;
|
||||||
int pauseInterval;
|
int pauseInterval;
|
||||||
|
bool useReportedSpeed;
|
||||||
// POI
|
// POI
|
||||||
int poiRadius;
|
int poiRadius;
|
||||||
// System
|
// System
|
||||||
bool useOpenGL;
|
bool useOpenGL;
|
||||||
|
#ifdef ENABLE_HTTP2
|
||||||
|
bool enableHTTP2;
|
||||||
|
#endif // ENABLE_HTTP2
|
||||||
int pixmapCache;
|
int pixmapCache;
|
||||||
|
int connectionTimeout;
|
||||||
// Print/Export
|
// Print/Export
|
||||||
bool hiresPrint;
|
bool hiresPrint;
|
||||||
bool printName;
|
bool printName;
|
||||||
@ -109,11 +116,17 @@ private:
|
|||||||
QCheckBox *_outlierEliminate;
|
QCheckBox *_outlierEliminate;
|
||||||
QDoubleSpinBox *_pauseSpeed;
|
QDoubleSpinBox *_pauseSpeed;
|
||||||
QSpinBox *_pauseInterval;
|
QSpinBox *_pauseInterval;
|
||||||
|
QRadioButton *_computed;
|
||||||
|
QRadioButton *_reported;
|
||||||
// POI
|
// POI
|
||||||
QDoubleSpinBox *_poiRadius;
|
QDoubleSpinBox *_poiRadius;
|
||||||
// System
|
// System
|
||||||
QSpinBox *_pixmapCache;
|
QSpinBox *_pixmapCache;
|
||||||
|
QSpinBox *_connectionTimeout;
|
||||||
QCheckBox *_useOpenGL;
|
QCheckBox *_useOpenGL;
|
||||||
|
#ifdef ENABLE_HTTP2
|
||||||
|
QCheckBox *_enableHTTP2;
|
||||||
|
#endif // ENABLE_HTTP2
|
||||||
// Print/Export
|
// Print/Export
|
||||||
QRadioButton *_wysiwyg;
|
QRadioButton *_wysiwyg;
|
||||||
QRadioButton *_hires;
|
QRadioButton *_hires;
|
||||||
|
@ -175,10 +175,10 @@ void PathItem::setMarkerColor(const QColor &color)
|
|||||||
void PathItem::hover(bool hover)
|
void PathItem::hover(bool hover)
|
||||||
{
|
{
|
||||||
if (hover) {
|
if (hover) {
|
||||||
_pen.setWidth(_width + 1);
|
_pen.setWidth((_width + 1) * pow(2, -_digitalZoom));
|
||||||
setZValue(zValue() + 1.0);
|
setZValue(zValue() + 1.0);
|
||||||
} else {
|
} else {
|
||||||
_pen.setWidth(_width);
|
_pen.setWidth(_width * pow(2, -_digitalZoom));
|
||||||
setZValue(zValue() - 1.0);
|
setZValue(zValue() - 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,28 +24,33 @@ void PowerGraph::setInfo()
|
|||||||
clearInfo();
|
clearInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PowerGraph::loadData(const Data &data, const QList<PathItem *> &paths)
|
QList<GraphItem*> PowerGraph::loadData(const Data &data)
|
||||||
{
|
{
|
||||||
|
QList<GraphItem*> graphs;
|
||||||
|
|
||||||
for (int i = 0; i < data.tracks().count(); i++) {
|
for (int i = 0; i < data.tracks().count(); i++) {
|
||||||
const Graph &graph = data.tracks().at(i)->power();
|
const Graph &graph = data.tracks().at(i)->power();
|
||||||
|
|
||||||
if (graph.size() < 2) {
|
if (graph.size() < 2) {
|
||||||
skipColor();
|
skipColor();
|
||||||
continue;
|
graphs.append(0);
|
||||||
|
} else {
|
||||||
|
PowerGraphItem *gi = new PowerGraphItem(graph, _graphType);
|
||||||
|
GraphView::addGraph(gi);
|
||||||
|
_avg.append(QPointF(data.tracks().at(i)->distance(), gi->avg()));
|
||||||
|
graphs.append(gi);
|
||||||
}
|
}
|
||||||
|
|
||||||
PowerGraphItem *gi = new PowerGraphItem(graph, _graphType);
|
|
||||||
GraphView::addGraph(gi, paths.at(i));
|
|
||||||
|
|
||||||
_avg.append(QPointF(data.tracks().at(i)->distance(), gi->avg()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < data.routes().count(); i++)
|
for (int i = 0; i < data.routes().count(); i++) {
|
||||||
skipColor();
|
skipColor();
|
||||||
|
graphs.append(0);
|
||||||
|
}
|
||||||
|
|
||||||
setInfo();
|
setInfo();
|
||||||
|
|
||||||
redraw();
|
redraw();
|
||||||
|
|
||||||
|
return graphs;
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal PowerGraph::avg() const
|
qreal PowerGraph::avg() const
|
||||||
|
@ -11,7 +11,7 @@ public:
|
|||||||
PowerGraph(QWidget *parent = 0);
|
PowerGraph(QWidget *parent = 0);
|
||||||
|
|
||||||
QString label() const {return tr("Power");}
|
QString label() const {return tr("Power");}
|
||||||
void loadData(const Data &data, const QList<PathItem *> &paths);
|
QList<GraphItem*> loadData(const Data &data);
|
||||||
void clear();
|
void clear();
|
||||||
void showTracks(bool show);
|
void showTracks(bool show);
|
||||||
|
|
||||||
|
@ -18,52 +18,34 @@ ScaleItem::ScaleItem(QGraphicsItem *parent) : QGraphicsItem(parent)
|
|||||||
_res = 1.0;
|
_res = 1.0;
|
||||||
_digitalZoom = 0;
|
_digitalZoom = 0;
|
||||||
|
|
||||||
|
_font.setPixelSize(FONT_SIZE);
|
||||||
|
_font.setFamily(FONT_FAMILY);
|
||||||
|
|
||||||
#ifndef Q_OS_MAC
|
#ifndef Q_OS_MAC
|
||||||
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
|
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
|
||||||
#endif // Q_OS_MAC
|
#endif // Q_OS_MAC
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScaleItem::updateBoundingRect()
|
|
||||||
{
|
|
||||||
QFont font;
|
|
||||||
font.setPixelSize(FONT_SIZE);
|
|
||||||
font.setFamily(FONT_FAMILY);
|
|
||||||
QFontMetrics fm(font);
|
|
||||||
QRect ss, es, us;
|
|
||||||
|
|
||||||
ss = fm.tightBoundingRect(QString::number(0));
|
|
||||||
es = fm.tightBoundingRect(QString::number(_length * SEGMENTS));
|
|
||||||
us = fm.tightBoundingRect(units());
|
|
||||||
|
|
||||||
_boundingRect = QRectF(-ss.width()/2, 0, _width * SEGMENTS + ss.width()/2
|
|
||||||
+ qMax(us.width() + PADDING, es.width()/2) + 1, SCALE_HEIGHT + PADDING
|
|
||||||
+ ss.height() + 2*fm.descent());
|
|
||||||
}
|
|
||||||
|
|
||||||
void ScaleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
void ScaleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||||
QWidget *widget)
|
QWidget *widget)
|
||||||
{
|
{
|
||||||
Q_UNUSED(option);
|
Q_UNUSED(option);
|
||||||
Q_UNUSED(widget);
|
Q_UNUSED(widget);
|
||||||
QFont font;
|
QFontMetrics fm(_font);
|
||||||
font.setPixelSize(FONT_SIZE);
|
|
||||||
font.setFamily(FONT_FAMILY);
|
|
||||||
QFontMetrics fm(font);
|
|
||||||
QRect br;
|
QRect br;
|
||||||
QPen pen = QPen(Qt::black, BORDER_WIDTH);
|
|
||||||
|
|
||||||
|
|
||||||
painter->setRenderHint(QPainter::Antialiasing, false);
|
painter->setRenderHint(QPainter::Antialiasing, false);
|
||||||
painter->setFont(font);
|
painter->setFont(_font);
|
||||||
painter->setPen(pen);
|
painter->setPen(QPen(Qt::black, BORDER_WIDTH));
|
||||||
|
|
||||||
for (int i = 0; i <= SEGMENTS; i++) {
|
for (int i = 0; i < _ticks.size(); i++) {
|
||||||
QString label = QString::number(_length * i);
|
br = _ticks.at(i).boundingBox;
|
||||||
br = fm.tightBoundingRect(label);
|
painter->drawText(_width * i - br.width()/2, br.height() + 1,
|
||||||
painter->drawText(_width * i - br.width()/2, br.height() + 1, label);
|
QString::number(_ticks.at(i).value));
|
||||||
}
|
}
|
||||||
painter->drawText(_width * SEGMENTS + PADDING, SCALE_HEIGHT + PADDING
|
painter->drawText(_width * SEGMENTS + PADDING, SCALE_HEIGHT + PADDING
|
||||||
+ br.height() + fm.descent(), units());
|
+ br.height() + fm.descent(), _unitsStr);
|
||||||
|
|
||||||
painter->drawRect(QRectF(0, br.height() + PADDING, SEGMENTS * _width,
|
painter->drawRect(QRectF(0, br.height() + PADDING, SEGMENTS * _width,
|
||||||
SCALE_HEIGHT));
|
SCALE_HEIGHT));
|
||||||
@ -77,19 +59,6 @@ void ScaleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ScaleItem::units() const
|
|
||||||
{
|
|
||||||
if (_units == Imperial)
|
|
||||||
return _scale ? qApp->translate("ScaleItem", "mi")
|
|
||||||
: qApp->translate("ScaleItem", "ft");
|
|
||||||
else if (_units == Nautical)
|
|
||||||
return _scale ? qApp->translate("ScaleItem", "nmi")
|
|
||||||
: qApp->translate("ScaleItem", "ft");
|
|
||||||
else
|
|
||||||
return _scale ? qApp->translate("ScaleItem", "km")
|
|
||||||
: qApp->translate("ScaleItem", "m");
|
|
||||||
}
|
|
||||||
|
|
||||||
void ScaleItem::computeScale()
|
void ScaleItem::computeScale()
|
||||||
{
|
{
|
||||||
qreal res = _res * pow(2, -_digitalZoom);
|
qreal res = _res * pow(2, -_digitalZoom);
|
||||||
@ -127,21 +96,50 @@ void ScaleItem::computeScale()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ScaleItem::updateCache()
|
||||||
|
{
|
||||||
|
QFontMetrics fm(_font);
|
||||||
|
|
||||||
|
_ticks = QVector<Tick>(SEGMENTS + 1);
|
||||||
|
for (int i = 0; i < _ticks.size(); i++) {
|
||||||
|
Tick &t = _ticks[i];
|
||||||
|
t.value = _length * i;
|
||||||
|
t.boundingBox = fm.tightBoundingRect(QString::number(t.value));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_units == Imperial)
|
||||||
|
_unitsStr = _scale ? qApp->translate("ScaleItem", "mi")
|
||||||
|
: qApp->translate("ScaleItem", "ft");
|
||||||
|
else if (_units == Nautical)
|
||||||
|
_unitsStr = _scale ? qApp->translate("ScaleItem", "nmi")
|
||||||
|
: qApp->translate("ScaleItem", "ft");
|
||||||
|
else
|
||||||
|
_unitsStr = _scale ? qApp->translate("ScaleItem", "km")
|
||||||
|
: qApp->translate("ScaleItem", "m");
|
||||||
|
_unitsBB = fm.tightBoundingRect(_unitsStr);
|
||||||
|
|
||||||
|
QRect ss = _ticks.isEmpty() ? QRect() : _ticks.first().boundingBox;
|
||||||
|
QRect es = _ticks.isEmpty() ? QRect() : _ticks.last().boundingBox;
|
||||||
|
_boundingRect = QRectF(-ss.width()/2, 0, _width * SEGMENTS + ss.width()/2
|
||||||
|
+ qMax(_unitsBB.width() + PADDING, es.width()/2) + 1, SCALE_HEIGHT
|
||||||
|
+ PADDING + ss.height() + 2*fm.descent());
|
||||||
|
}
|
||||||
|
|
||||||
void ScaleItem::setResolution(qreal res)
|
void ScaleItem::setResolution(qreal res)
|
||||||
{
|
{
|
||||||
prepareGeometryChange();
|
prepareGeometryChange();
|
||||||
_res = res;
|
_res = res;
|
||||||
computeScale();
|
computeScale();
|
||||||
updateBoundingRect();
|
updateCache();
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScaleItem::setUnits(enum Units units)
|
void ScaleItem::setUnits(Units units)
|
||||||
{
|
{
|
||||||
prepareGeometryChange();
|
prepareGeometryChange();
|
||||||
_units = units;
|
_units = units;
|
||||||
computeScale();
|
computeScale();
|
||||||
updateBoundingRect();
|
updateCache();
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,7 +148,7 @@ void ScaleItem::setDigitalZoom(qreal zoom)
|
|||||||
prepareGeometryChange();
|
prepareGeometryChange();
|
||||||
_digitalZoom = zoom;
|
_digitalZoom = zoom;
|
||||||
computeScale();
|
computeScale();
|
||||||
updateBoundingRect();
|
updateCache();
|
||||||
update();
|
update();
|
||||||
|
|
||||||
setScale(pow(2, -_digitalZoom));
|
setScale(pow(2, -_digitalZoom));
|
||||||
|
@ -14,23 +14,29 @@ public:
|
|||||||
QWidget *widget);
|
QWidget *widget);
|
||||||
|
|
||||||
void setResolution(qreal res);
|
void setResolution(qreal res);
|
||||||
void setUnits(enum Units units);
|
void setUnits(Units units);
|
||||||
void setDigitalZoom(qreal zoom);
|
void setDigitalZoom(qreal zoom);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateBoundingRect();
|
struct Tick {
|
||||||
|
double value;
|
||||||
|
QRect boundingBox;
|
||||||
|
};
|
||||||
|
|
||||||
void computeScale();
|
void computeScale();
|
||||||
QString units() const;
|
void updateCache();
|
||||||
|
|
||||||
qreal _res;
|
qreal _res;
|
||||||
qreal _width;
|
qreal _width;
|
||||||
qreal _length;
|
qreal _length;
|
||||||
Units _units;
|
Units _units;
|
||||||
bool _scale;
|
bool _scale;
|
||||||
|
|
||||||
qreal _digitalZoom;
|
qreal _digitalZoom;
|
||||||
|
|
||||||
QRectF _boundingRect;
|
QRectF _boundingRect;
|
||||||
|
QFont _font;
|
||||||
|
QVector<Tick> _ticks;
|
||||||
|
QRect _unitsBB;
|
||||||
|
QString _unitsStr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SCALEITEM_H
|
#endif // SCALEITEM_H
|
||||||
|
@ -124,12 +124,18 @@
|
|||||||
#define PAUSE_SPEED_DEFAULT 0.5 /* m/s */
|
#define PAUSE_SPEED_DEFAULT 0.5 /* m/s */
|
||||||
#define PAUSE_INTERVAL_SETTING "pauseInterval"
|
#define PAUSE_INTERVAL_SETTING "pauseInterval"
|
||||||
#define PAUSE_INTERVAL_DEFAULT 10 /* s */
|
#define PAUSE_INTERVAL_DEFAULT 10 /* s */
|
||||||
|
#define USE_REPORTED_SPEED_SETTING "useReportedSpeed"
|
||||||
|
#define USE_REPORTED_SPEED_DEFAULT false
|
||||||
#define POI_RADIUS_SETTING "poiRadius"
|
#define POI_RADIUS_SETTING "poiRadius"
|
||||||
#define POI_RADIUS_DEFAULT (int)(IMPERIAL_UNITS() ? MIINM : KMINM)
|
#define POI_RADIUS_DEFAULT (int)(IMPERIAL_UNITS() ? MIINM : KMINM)
|
||||||
#define USE_OPENGL_SETTING "useOpenGL"
|
#define USE_OPENGL_SETTING "useOpenGL"
|
||||||
#define USE_OPENGL_DEFAULT false
|
#define USE_OPENGL_DEFAULT false
|
||||||
|
#define ENABLE_HTTP2_SETTING "enableHTTP2"
|
||||||
|
#define ENABLE_HTTP2_DEFAULT true
|
||||||
#define PIXMAP_CACHE_SETTING "pixmapCache"
|
#define PIXMAP_CACHE_SETTING "pixmapCache"
|
||||||
#define PIXMAP_CACHE_DEFAULT 64 /* MB */
|
#define PIXMAP_CACHE_DEFAULT 64 /* MB */
|
||||||
|
#define CONNECTION_TIMEOUT_SETTING "connectionTimeout"
|
||||||
|
#define CONNECTION_TIMEOUT_DEFAULT 30 /* s */
|
||||||
#define HIRES_PRINT_SETTING "hiresPrint"
|
#define HIRES_PRINT_SETTING "hiresPrint"
|
||||||
#define HIRES_PRINT_DEFAULT false
|
#define HIRES_PRINT_DEFAULT false
|
||||||
#define PRINT_NAME_SETTING "printName"
|
#define PRINT_NAME_SETTING "printName"
|
||||||
|
@ -9,14 +9,14 @@ SliderInfoItem::SliderInfoItem(QGraphicsItem *parent) : QGraphicsItem(parent)
|
|||||||
{
|
{
|
||||||
_side = Right;
|
_side = Right;
|
||||||
_color = Qt::red;
|
_color = Qt::red;
|
||||||
|
|
||||||
|
_font.setPixelSize(FONT_SIZE);
|
||||||
|
_font.setFamily(FONT_FAMILY);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SliderInfoItem::updateBoundingRect()
|
void SliderInfoItem::updateBoundingRect()
|
||||||
{
|
{
|
||||||
QFont font;
|
QFontMetrics fm(_font);
|
||||||
font.setPixelSize(FONT_SIZE);
|
|
||||||
font.setFamily(FONT_FAMILY);
|
|
||||||
QFontMetrics fm(font);
|
|
||||||
|
|
||||||
qreal width = qMax(fm.width(_x), fm.width(_y));
|
qreal width = qMax(fm.width(_x), fm.width(_y));
|
||||||
qreal height = 2 * fm.height() - 2*fm.descent();
|
qreal height = 2 * fm.height() - 2*fm.descent();
|
||||||
@ -31,10 +31,7 @@ void SliderInfoItem::paint(QPainter *painter, const QStyleOptionGraphicsItem
|
|||||||
{
|
{
|
||||||
Q_UNUSED(option);
|
Q_UNUSED(option);
|
||||||
Q_UNUSED(widget);
|
Q_UNUSED(widget);
|
||||||
QFont font;
|
QFontMetrics fm(_font);
|
||||||
font.setPixelSize(FONT_SIZE);
|
|
||||||
font.setFamily(FONT_FAMILY);
|
|
||||||
QFontMetrics fm(font);
|
|
||||||
QRectF rx, ry;
|
QRectF rx, ry;
|
||||||
|
|
||||||
|
|
||||||
@ -57,7 +54,7 @@ void SliderInfoItem::paint(QPainter *painter, const QStyleOptionGraphicsItem
|
|||||||
painter->drawRect(rx);
|
painter->drawRect(rx);
|
||||||
painter->setBrush(Qt::NoBrush);
|
painter->setBrush(Qt::NoBrush);
|
||||||
|
|
||||||
painter->setFont(font);
|
painter->setFont(_font);
|
||||||
painter->setRenderHint(QPainter::Antialiasing, false);
|
painter->setRenderHint(QPainter::Antialiasing, false);
|
||||||
painter->setPen(_color);
|
painter->setPen(_color);
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ private:
|
|||||||
QString _x, _y;
|
QString _x, _y;
|
||||||
QRectF _boundingRect;
|
QRectF _boundingRect;
|
||||||
QColor _color;
|
QColor _color;
|
||||||
|
QFont _font;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SLIDERINFOITEM_H
|
#endif // SLIDERINFOITEM_H
|
||||||
|
@ -34,32 +34,37 @@ void SpeedGraph::setInfo()
|
|||||||
clearInfo();
|
clearInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpeedGraph::loadData(const Data &data, const QList<PathItem *> &paths)
|
QList<GraphItem*> SpeedGraph::loadData(const Data &data)
|
||||||
{
|
{
|
||||||
|
QList<GraphItem*> graphs;
|
||||||
|
|
||||||
for (int i = 0; i < data.tracks().count(); i++) {
|
for (int i = 0; i < data.tracks().count(); i++) {
|
||||||
const Track *track = data.tracks().at(i);
|
const Track *track = data.tracks().at(i);
|
||||||
const Graph &graph = track->speed();
|
const Graph &graph = track->speed();
|
||||||
|
|
||||||
if (graph.size() < 2) {
|
if (graph.size() < 2) {
|
||||||
skipColor();
|
skipColor();
|
||||||
continue;
|
graphs.append(0);
|
||||||
|
} else {
|
||||||
|
SpeedGraphItem *gi = new SpeedGraphItem(graph, _graphType,
|
||||||
|
track->movingTime());
|
||||||
|
gi->setTimeType(_timeType);
|
||||||
|
GraphView::addGraph(gi);
|
||||||
|
_avg.append(QPointF(track->distance(), gi->avg()));
|
||||||
|
_mavg.append(QPointF(track->distance(), gi->mavg()));
|
||||||
|
graphs.append(gi);
|
||||||
}
|
}
|
||||||
|
|
||||||
SpeedGraphItem *gi = new SpeedGraphItem(graph, _graphType,
|
|
||||||
track->movingTime());
|
|
||||||
gi->setTimeType(_timeType);
|
|
||||||
GraphView::addGraph(gi, paths.at(i));
|
|
||||||
|
|
||||||
_avg.append(QPointF(track->distance(), gi->avg()));
|
|
||||||
_mavg.append(QPointF(track->distance(), gi->mavg()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < data.routes().count(); i++)
|
for (int i = 0; i < data.routes().count(); i++) {
|
||||||
skipColor();
|
skipColor();
|
||||||
|
graphs.append(0);
|
||||||
|
}
|
||||||
|
|
||||||
setInfo();
|
setInfo();
|
||||||
|
|
||||||
redraw();
|
redraw();
|
||||||
|
|
||||||
|
return graphs;
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal SpeedGraph::avg() const
|
qreal SpeedGraph::avg() const
|
||||||
|
@ -12,7 +12,7 @@ public:
|
|||||||
SpeedGraph(QWidget *parent = 0);
|
SpeedGraph(QWidget *parent = 0);
|
||||||
|
|
||||||
QString label() const {return tr("Speed");}
|
QString label() const {return tr("Speed");}
|
||||||
void loadData(const Data &data, const QList<PathItem *> &paths);
|
QList<GraphItem*> loadData(const Data &data);
|
||||||
void clear();
|
void clear();
|
||||||
void setUnits(Units units);
|
void setUnits(Units units);
|
||||||
void setTimeType(TimeType type);
|
void setTimeType(TimeType type);
|
||||||
|
@ -26,28 +26,34 @@ void TemperatureGraph::setInfo()
|
|||||||
clearInfo();
|
clearInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TemperatureGraph::loadData(const Data &data, const QList<PathItem *> &paths)
|
QList<GraphItem*> TemperatureGraph::loadData(const Data &data)
|
||||||
{
|
{
|
||||||
|
QList<GraphItem*> graphs;
|
||||||
|
|
||||||
for (int i = 0; i < data.tracks().count(); i++) {
|
for (int i = 0; i < data.tracks().count(); i++) {
|
||||||
const Graph &graph = data.tracks().at(i)->temperature();
|
const Graph &graph = data.tracks().at(i)->temperature();
|
||||||
|
|
||||||
if (graph.size() < 2) {
|
if (graph.size() < 2) {
|
||||||
skipColor();
|
skipColor();
|
||||||
continue;
|
graphs.append(0);
|
||||||
|
} else {
|
||||||
|
TemperatureGraphItem *gi = new TemperatureGraphItem(graph,
|
||||||
|
_graphType);
|
||||||
|
GraphView::addGraph(gi);
|
||||||
|
_avg.append(QPointF(data.tracks().at(i)->distance(), gi->avg()));
|
||||||
|
graphs.append(gi);
|
||||||
}
|
}
|
||||||
|
|
||||||
TemperatureGraphItem *gi = new TemperatureGraphItem(graph, _graphType);
|
|
||||||
GraphView::addGraph(gi, paths.at(i));
|
|
||||||
|
|
||||||
_avg.append(QPointF(data.tracks().at(i)->distance(), gi->avg()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < data.routes().count(); i++)
|
for (int i = 0; i < data.routes().count(); i++) {
|
||||||
skipColor();
|
skipColor();
|
||||||
|
graphs.append(0);
|
||||||
|
}
|
||||||
|
|
||||||
setInfo();
|
setInfo();
|
||||||
|
|
||||||
redraw();
|
redraw();
|
||||||
|
|
||||||
|
return graphs;
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal TemperatureGraph::avg() const
|
qreal TemperatureGraph::avg() const
|
||||||
|
@ -11,7 +11,7 @@ public:
|
|||||||
TemperatureGraph(QWidget *parent = 0);
|
TemperatureGraph(QWidget *parent = 0);
|
||||||
|
|
||||||
QString label() const {return tr("Temperature");}
|
QString label() const {return tr("Temperature");}
|
||||||
void loadData(const Data &data, const QList<PathItem *> &paths);
|
QList<GraphItem*> loadData(const Data &data);
|
||||||
void clear();
|
void clear();
|
||||||
void setUnits(enum Units units);
|
void setUnits(enum Units units);
|
||||||
void showTracks(bool show);
|
void showTracks(bool show);
|
||||||
|
@ -36,11 +36,13 @@ WaypointItem::WaypointItem(const Waypoint &waypoint, Map *map,
|
|||||||
{
|
{
|
||||||
_waypoint = waypoint;
|
_waypoint = waypoint;
|
||||||
_showLabel = true;
|
_showLabel = true;
|
||||||
_hover = false;
|
|
||||||
_size = 8;
|
_size = 8;
|
||||||
_color = Qt::black;
|
_color = Qt::black;
|
||||||
|
|
||||||
updateShape();
|
_font.setPixelSize(FS(_size));
|
||||||
|
_font.setFamily(FONT_FAMILY);
|
||||||
|
|
||||||
|
updateCache();
|
||||||
|
|
||||||
setPos(map->ll2xy(waypoint.coordinates()));
|
setPos(map->ll2xy(waypoint.coordinates()));
|
||||||
setToolTip(toolTip(Metric, DecimalDegrees));
|
setToolTip(toolTip(Metric, DecimalDegrees));
|
||||||
@ -48,23 +50,18 @@ WaypointItem::WaypointItem(const Waypoint &waypoint, Map *map,
|
|||||||
setAcceptHoverEvents(true);
|
setAcceptHoverEvents(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WaypointItem::updateShape()
|
void WaypointItem::updateCache()
|
||||||
{
|
{
|
||||||
QPainterPath p;
|
QPainterPath p;
|
||||||
qreal pointSize = _hover ? HS(_size) : _size;
|
qreal pointSize = _font.bold() ? HS(_size) : _size;
|
||||||
|
|
||||||
if (_showLabel) {
|
if (_showLabel) {
|
||||||
QFont font;
|
QFontMetrics fm(_font);
|
||||||
font.setPixelSize(FS(_size));
|
_labelBB = fm.tightBoundingRect(_waypoint.name());
|
||||||
font.setFamily(FONT_FAMILY);
|
|
||||||
if (_hover)
|
|
||||||
font.setBold(true);
|
|
||||||
QFontMetrics fm(font);
|
|
||||||
QRect ts = fm.tightBoundingRect(_waypoint.name());
|
|
||||||
|
|
||||||
p.addRect(-pointSize/2, -pointSize/2, pointSize, pointSize);
|
p.addRect(-pointSize/2, -pointSize/2, pointSize, pointSize);
|
||||||
p.addRect(pointSize/2, pointSize/2,
|
p.addRect(pointSize/2, pointSize/2, _labelBB.width(), _labelBB.height()
|
||||||
ts.width(), ts.height() + fm.descent());
|
+ fm.descent());
|
||||||
} else
|
} else
|
||||||
p.addRect(-pointSize/2, -pointSize/2, pointSize, pointSize);
|
p.addRect(-pointSize/2, -pointSize/2, pointSize, pointSize);
|
||||||
|
|
||||||
@ -76,23 +73,14 @@ void WaypointItem::paint(QPainter *painter,
|
|||||||
{
|
{
|
||||||
Q_UNUSED(option);
|
Q_UNUSED(option);
|
||||||
Q_UNUSED(widget);
|
Q_UNUSED(widget);
|
||||||
|
qreal pointSize = _font.bold() ? HS(_size) : _size;
|
||||||
qreal pointSize = _hover ? HS(_size) : _size;
|
|
||||||
|
|
||||||
painter->setPen(_color);
|
painter->setPen(_color);
|
||||||
|
|
||||||
if (_showLabel) {
|
if (_showLabel) {
|
||||||
QFont font;
|
painter->setFont(_font);
|
||||||
font.setPixelSize(FS(_size));
|
painter->drawText(pointSize/2 - qMax(_labelBB.x(), 0), pointSize/2
|
||||||
font.setFamily(FONT_FAMILY);
|
+ _labelBB.height(), _waypoint.name());
|
||||||
if (_hover)
|
|
||||||
font.setBold(true);
|
|
||||||
QFontMetrics fm(font);
|
|
||||||
QRect ts = fm.tightBoundingRect(_waypoint.name());
|
|
||||||
|
|
||||||
painter->setFont(font);
|
|
||||||
painter->drawText(pointSize/2 - qMax(ts.x(), 0), pointSize/2
|
|
||||||
+ ts.height(), _waypoint.name());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
painter->setBrush(QBrush(_color, Qt::SolidPattern));
|
painter->setBrush(QBrush(_color, Qt::SolidPattern));
|
||||||
@ -112,7 +100,8 @@ void WaypointItem::setSize(int size)
|
|||||||
|
|
||||||
prepareGeometryChange();
|
prepareGeometryChange();
|
||||||
_size = size;
|
_size = size;
|
||||||
updateShape();
|
_font.setPixelSize(FS(_size));
|
||||||
|
updateCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WaypointItem::setColor(const QColor &color)
|
void WaypointItem::setColor(const QColor &color)
|
||||||
@ -136,7 +125,7 @@ void WaypointItem::showLabel(bool show)
|
|||||||
|
|
||||||
prepareGeometryChange();
|
prepareGeometryChange();
|
||||||
_showLabel = show;
|
_showLabel = show;
|
||||||
updateShape();
|
updateCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WaypointItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
void WaypointItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
||||||
@ -144,8 +133,8 @@ void WaypointItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
|||||||
Q_UNUSED(event);
|
Q_UNUSED(event);
|
||||||
|
|
||||||
prepareGeometryChange();
|
prepareGeometryChange();
|
||||||
_hover = true;
|
_font.setBold(true);
|
||||||
updateShape();
|
updateCache();
|
||||||
setZValue(zValue() + 1.0);
|
setZValue(zValue() + 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -154,7 +143,7 @@ void WaypointItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
|
|||||||
Q_UNUSED(event);
|
Q_UNUSED(event);
|
||||||
|
|
||||||
prepareGeometryChange();
|
prepareGeometryChange();
|
||||||
_hover = false;
|
_font.setBold(false);
|
||||||
updateShape();
|
updateCache();
|
||||||
setZValue(zValue() - 1.0);
|
setZValue(zValue() - 1.0);
|
||||||
}
|
}
|
||||||
|
@ -31,16 +31,16 @@ private:
|
|||||||
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
|
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
|
||||||
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
|
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
|
||||||
|
|
||||||
void updateShape();
|
void updateCache();
|
||||||
QString toolTip(Units units, CoordinatesFormat format);
|
QString toolTip(Units units, CoordinatesFormat format);
|
||||||
|
|
||||||
QPainterPath _shape;
|
|
||||||
Waypoint _waypoint;
|
Waypoint _waypoint;
|
||||||
|
QPainterPath _shape;
|
||||||
QColor _color;
|
QColor _color;
|
||||||
int _size;
|
int _size;
|
||||||
bool _hover;
|
|
||||||
bool _showLabel;
|
bool _showLabel;
|
||||||
|
QFont _font;
|
||||||
|
QRect _labelBB;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // WAYPOINTITEM_H
|
#endif // WAYPOINTITEM_H
|
||||||
|
@ -1,50 +1,16 @@
|
|||||||
#include "wgs84.h"
|
#include "wgs84.h"
|
||||||
#include "coordinates.h"
|
#include "coordinates.h"
|
||||||
|
|
||||||
#define MIN_LAT deg2rad(-90.0)
|
double Coordinates::distanceTo(const Coordinates &c) const
|
||||||
#define MAX_LAT deg2rad(90.0)
|
|
||||||
#define MIN_LON deg2rad(-180.0)
|
|
||||||
#define MAX_LON deg2rad(180.0)
|
|
||||||
|
|
||||||
qreal Coordinates::distanceTo(const Coordinates &c) const
|
|
||||||
{
|
{
|
||||||
qreal dLat = deg2rad(c.lat() - _lat);
|
double dLat = deg2rad(c.lat() - _lat);
|
||||||
qreal dLon = deg2rad(c.lon() - _lon);
|
double dLon = deg2rad(c.lon() - _lon);
|
||||||
qreal a = pow(sin(dLat / 2.0), 2.0)
|
double a = pow(sin(dLat / 2.0), 2.0)
|
||||||
+ cos(deg2rad(_lat)) * cos(deg2rad(c.lat())) * pow(sin(dLon / 2.0), 2.0);
|
+ cos(deg2rad(_lat)) * cos(deg2rad(c.lat())) * pow(sin(dLon / 2.0), 2.0);
|
||||||
|
|
||||||
return (WGS84_RADIUS * (2.0 * atan2(sqrt(a), sqrt(1.0 - a))));
|
return (WGS84_RADIUS * (2.0 * atan2(sqrt(a), sqrt(1.0 - a))));
|
||||||
}
|
}
|
||||||
|
|
||||||
QPair<Coordinates, Coordinates> Coordinates::boundingRect(qreal distance) const
|
|
||||||
{
|
|
||||||
qreal radDist = distance / WGS84_RADIUS;
|
|
||||||
|
|
||||||
qreal minLat = deg2rad(_lat) - radDist;
|
|
||||||
qreal maxLat = deg2rad(_lat) + radDist;
|
|
||||||
|
|
||||||
qreal minLon, maxLon;
|
|
||||||
if (minLat > MIN_LAT && maxLat < MAX_LAT) {
|
|
||||||
qreal deltaLon = asin(sin(radDist) / cos(_lat));
|
|
||||||
minLon = deg2rad(_lon) - deltaLon;
|
|
||||||
if (minLon < MIN_LON)
|
|
||||||
minLon += 2.0 * M_PI;
|
|
||||||
maxLon = deg2rad(_lon) + deltaLon;
|
|
||||||
if (maxLon > MAX_LON)
|
|
||||||
maxLon -= 2.0 * M_PI;
|
|
||||||
} else {
|
|
||||||
// a pole is within the distance
|
|
||||||
minLat = qMax(minLat, MIN_LAT);
|
|
||||||
maxLat = qMin(maxLat, MAX_LAT);
|
|
||||||
minLon = MIN_LON;
|
|
||||||
maxLon = MAX_LON;
|
|
||||||
}
|
|
||||||
|
|
||||||
return QPair<Coordinates, Coordinates>(Coordinates(rad2deg(qMin(minLon,
|
|
||||||
maxLon)), rad2deg(qMin(minLat, maxLat))), Coordinates(rad2deg(qMax(minLon,
|
|
||||||
maxLon)), rad2deg(qMax(minLat, maxLat))));
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef QT_NO_DEBUG
|
#ifndef QT_NO_DEBUG
|
||||||
QDebug operator<<(QDebug dbg, const Coordinates &c)
|
QDebug operator<<(QDebug dbg, const Coordinates &c)
|
||||||
{
|
{
|
||||||
|