1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Added LOC file association stuff

This commit is contained in:
Martin Tůma 2018-08-09 22:48:44 +02:00
parent 93a912a34a
commit ba2347f363
7 changed files with 65 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# 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, NMEA and OziExplorer files. KML, FIT, IGC, NMEA, LOC and OziExplorer files.
## Features ## Features
* User-definable online maps (OSM/Google tiles, WMTS, WMS). * User-definable online maps (OSM/Google tiles, WMTS, WMS).
@ -11,7 +11,7 @@ KML, FIT, IGC, NMEA and OziExplorer 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, OziExplorer (PLT, RTE, WPT) and Garmin CSV files. * Opens GPX, TCX, FIT, KML, IGC, NMEA, LOC, OziExplorer (PLT, RTE, WPT) and Garmin CSV files.
![GPXSee - Linux](https://a.fsdn.com/con/app/proj/gpxsee/screenshots/linux2.png) ![GPXSee - Linux](https://a.fsdn.com/con/app/proj/gpxsee/screenshots/linux2.png)

View File

@ -275,7 +275,8 @@ macx {
icons/nmea.icns \ icons/nmea.icns \
icons/plt.icns \ icons/plt.icns \
icons/rte.icns \ icons/rte.icns \
icons/wpt.icns icons/wpt.icns \
icons/loc.icns
QMAKE_BUNDLE_DATA += LOCALE MAPS ICONS CSV QMAKE_BUNDLE_DATA += LOCALE MAPS ICONS CSV
} }
win32 { win32 {
@ -288,7 +289,8 @@ win32 {
icons/nmea.ico \ icons/nmea.ico \
icons/plt.ico \ icons/plt.ico \
icons/rte.ico \ icons/rte.ico \
icons/wpt.ico icons/wpt.ico \
icons/loc.ico
DEFINES += _USE_MATH_DEFINES DEFINES += _USE_MATH_DEFINES
} }

View File

@ -67,6 +67,22 @@
<key>CFBundleTypeRole</key> <key>CFBundleTypeRole</key>
<string>Viewer</string> <string>Viewer</string>
</dict> </dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>loc</string>
</array>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>application/loc+xml</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>icons/loc.icns</string>
<key>CFBundleTypeName</key>
<string>Geocaching.com Waypoint File</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
<dict> <dict>
<key>CFBundleTypeExtensions</key> <key>CFBundleTypeExtensions</key>
<array> <array>
@ -230,6 +246,27 @@
<string>application/vnd.google-earth.kml+xml</string> <string>application/vnd.google-earth.kml+xml</string>
</dict> </dict>
</dict> </dict>
<dict>
<key>UTTypeIdentifier</key>
<string>com.geocaching.loc</string>
<key>UTTypeReferenceURL</key>
<string>https://www.geocaching.com</string>
<key>UTTypeDescription</key>
<string>Geocaching.com Waypoint File</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.xml</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>loc</string>
</array>
<key>public.mime-type</key>
<string>application/loc+xml</string>
</dict>
</dict>
<dict> <dict>
<key>UTTypeIdentifier</key> <key>UTTypeIdentifier</key>
<string>com.thisisant.fit</string> <string>com.thisisant.fit</string>

View File

@ -11,4 +11,4 @@ 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;application/vnd.oziexplorer.plt;application/vnd.oziexplorer.rte;application/vnd.oziexplorer.wpt; 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;application/loc+xml;

View File

@ -42,6 +42,7 @@ InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
!define REGPLT "GPXSee.plt" !define REGPLT "GPXSee.plt"
!define REGRTE "GPXSee.rte" !define REGRTE "GPXSee.rte"
!define REGWPT "GPXSee.wpt" !define REGWPT "GPXSee.wpt"
!define REGLOC "GPXSee.loc"
; Start menu page configuration ; Start menu page configuration
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM" !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
@ -150,6 +151,10 @@ Section "GPXSee" SEC_APP
WriteRegStr HKCR "${REGWPT}" "" "OziExplorer Waypoint File" WriteRegStr HKCR "${REGWPT}" "" "OziExplorer Waypoint File"
WriteRegStr HKCR "${REGWPT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,1" WriteRegStr HKCR "${REGWPT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,1"
WriteRegStr HKCR "${REGWPT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\"" WriteRegStr HKCR "${REGWPT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
WriteRegStr HKCR ".loc" "" "${REGLOC}"
WriteRegStr HKCR "${REGLOC}" "" "Geocaching.com Waypoint File"
WriteRegStr HKCR "${REGLOC}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,10"
WriteRegStr HKCR "${REGLOC}\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)'
@ -285,6 +290,8 @@ Section "Uninstall"
DeleteRegKey HKCR ".rte" DeleteRegKey HKCR ".rte"
DeleteRegKey HKCR "${REGWPT}" DeleteRegKey HKCR "${REGWPT}"
DeleteRegKey HKCR ".wpt" DeleteRegKey HKCR ".wpt"
DeleteRegKey HKCR "${REGLOC}"
DeleteRegKey HKCR ".loc"
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

View File

@ -22,6 +22,13 @@
<glob pattern="*.kml"/> <glob pattern="*.kml"/>
</mime-type> </mime-type>
<mime-type type="application/loc+xml">
<comment>Geocaching.com Waypoint File</comment>
<sub-class-of type="application/xml"/>
<generic-icon name="application-xml"/>
<glob pattern="*.loc"/>
</mime-type>
<mime-type type="application/vnd.ant.fit"> <mime-type type="application/vnd.ant.fit">
<comment>Flexible and Interoperable Data Transfer</comment> <comment>Flexible and Interoperable Data Transfer</comment>
<sub-class-of type="application/octet-stream"/> <sub-class-of type="application/octet-stream"/>

View File

@ -42,6 +42,7 @@ InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
!define REGPLT "GPXSee.plt" !define REGPLT "GPXSee.plt"
!define REGRTE "GPXSee.rte" !define REGRTE "GPXSee.rte"
!define REGWPT "GPXSee.wpt" !define REGWPT "GPXSee.wpt"
!define REGLOC "GPXSee.loc"
; Start menu page configuration ; Start menu page configuration
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM" !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
@ -157,6 +158,10 @@ Section "GPXSee" SEC_APP
WriteRegStr HKCR "${REGWPT}" "" "OziExplorer Waypoint File" WriteRegStr HKCR "${REGWPT}" "" "OziExplorer Waypoint File"
WriteRegStr HKCR "${REGWPT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,1" WriteRegStr HKCR "${REGWPT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,1"
WriteRegStr HKCR "${REGWPT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\"" WriteRegStr HKCR "${REGWPT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
WriteRegStr HKCR ".loc" "" "${REGLOC}"
WriteRegStr HKCR "${REGLOC}" "" "Geocaching.com Waypoint File"
WriteRegStr HKCR "${REGLOC}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,10"
WriteRegStr HKCR "${REGLOC}\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)'
@ -288,6 +293,8 @@ Section "Uninstall"
DeleteRegKey HKCR ".rte" DeleteRegKey HKCR ".rte"
DeleteRegKey HKCR "${REGWPT}" DeleteRegKey HKCR "${REGWPT}"
DeleteRegKey HKCR ".wpt" DeleteRegKey HKCR ".wpt"
DeleteRegKey HKCR "${REGLOC}"
DeleteRegKey HKCR ".loc"
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