From d1522210e530b0132bb1cbceb8290748119602eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 28 Oct 2019 14:34:01 +0100 Subject: [PATCH] Added Windows GPI integration --- gpxsee.pro | 3 ++- pkg/gpxsee.nsi | 24 +++++++++++++----------- pkg/gpxsee64.nsi | 22 ++++++++++++---------- 3 files changed, 27 insertions(+), 22 deletions(-) diff --git a/gpxsee.pro b/gpxsee.pro index 44fa8f96..c9cb7848 100644 --- a/gpxsee.pro +++ b/gpxsee.pro @@ -401,7 +401,8 @@ win32 { icons/formats/loc.ico \ icons/formats/slf.ico \ icons/formats/json.ico \ - icons/formats/cup.ico + icons/formats/cup.ico \ + icons/formats/gpi.ico DEFINES += _USE_MATH_DEFINES \ NOGDI } diff --git a/pkg/gpxsee.nsi b/pkg/gpxsee.nsi index a9411b19..85523a81 100644 --- a/pkg/gpxsee.nsi +++ b/pkg/gpxsee.nsi @@ -106,19 +106,20 @@ Section "GPXSee" SEC_APP ; Associate file formats DetailPrint "Associating file types..." - !insertmacro FILE_ASSOCIATION_ADD "gpx" "GPS Exchange Format" 6 - !insertmacro FILE_ASSOCIATION_ADD "tcx" "Training Center XML" 7 - !insertmacro FILE_ASSOCIATION_ADD "kml" "Keyhole Markup Language" 8 - !insertmacro FILE_ASSOCIATION_ADD "fit" "Flexible and Interoperable Data Transfer" 9 - !insertmacro FILE_ASSOCIATION_ADD "igc" "Flight Recorder Data Format" 10 - !insertmacro FILE_ASSOCIATION_ADD "nmea" "NMEA 0183 data" 11 - !insertmacro FILE_ASSOCIATION_ADD "plt" "OziExplorer Track Point File" 12 - !insertmacro FILE_ASSOCIATION_ADD "rte" "OziExplorer Route File" 13 + !insertmacro FILE_ASSOCIATION_ADD "gpx" "GPS Exchange Format" 7 + !insertmacro FILE_ASSOCIATION_ADD "tcx" "Training Center XML" 8 + !insertmacro FILE_ASSOCIATION_ADD "kml" "Keyhole Markup Language" 9 + !insertmacro FILE_ASSOCIATION_ADD "fit" "Flexible and Interoperable Data Transfer" 10 + !insertmacro FILE_ASSOCIATION_ADD "igc" "Flight Recorder Data Format" 11 + !insertmacro FILE_ASSOCIATION_ADD "nmea" "NMEA 0183 Data" 12 + !insertmacro FILE_ASSOCIATION_ADD "plt" "OziExplorer Track Point File" 13 + !insertmacro FILE_ASSOCIATION_ADD "rte" "OziExplorer Route File" 14 !insertmacro FILE_ASSOCIATION_ADD "wpt" "OziExplorer Waypoint File" 1 !insertmacro FILE_ASSOCIATION_ADD "loc" "Geocaching.com Waypoint File" 2 !insertmacro FILE_ASSOCIATION_ADD "slf" "Sigma Log File" 3 !insertmacro FILE_ASSOCIATION_ADD "geojson" "GeoJSON" 4 - !insertmacro FILE_ASSOCIATION_ADD "cup" "SeeYou CUP file" 5 + !insertmacro FILE_ASSOCIATION_ADD "cup" "SeeYou CUP File" 5 + !insertmacro FILE_ASSOCIATION_ADD "gpi" "Garmin POI File" 6 System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)' SectionEnd @@ -228,7 +229,8 @@ Section "Uninstall" !insertmacro FILE_ASSOCIATION_REMOVE "loc" !insertmacro FILE_ASSOCIATION_REMOVE "slf" !insertmacro FILE_ASSOCIATION_REMOVE "geojson" - !insertmacro FILE_ASSOCIATION_REMOVE "cup" + !insertmacro FILE_ASSOCIATION_REMOVE "cup" + !insertmacro FILE_ASSOCIATION_REMOVE "gpi" System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)' SectionEnd @@ -259,4 +261,4 @@ LangString DESC_LOCALIZATION ${LANG_ENGLISH} \ !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MSVC} $(DESC_MSVC) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_APP} $(DESC_APP) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_LOCALIZATION} $(DESC_LOCALIZATION) -!insertmacro MUI_FUNCTION_DESCRIPTION_END \ No newline at end of file +!insertmacro MUI_FUNCTION_DESCRIPTION_END diff --git a/pkg/gpxsee64.nsi b/pkg/gpxsee64.nsi index 3add90f0..e148384e 100644 --- a/pkg/gpxsee64.nsi +++ b/pkg/gpxsee64.nsi @@ -113,19 +113,20 @@ Section "GPXSee" SEC_APP ; Associate file formats DetailPrint "Associating file types..." - !insertmacro FILE_ASSOCIATION_ADD "gpx" "GPS Exchange Format" 6 - !insertmacro FILE_ASSOCIATION_ADD "tcx" "Training Center XML" 7 - !insertmacro FILE_ASSOCIATION_ADD "kml" "Keyhole Markup Language" 8 - !insertmacro FILE_ASSOCIATION_ADD "fit" "Flexible and Interoperable Data Transfer" 9 - !insertmacro FILE_ASSOCIATION_ADD "igc" "Flight Recorder Data Format" 10 - !insertmacro FILE_ASSOCIATION_ADD "nmea" "NMEA 0183 data" 11 - !insertmacro FILE_ASSOCIATION_ADD "plt" "OziExplorer Track Point File" 12 - !insertmacro FILE_ASSOCIATION_ADD "rte" "OziExplorer Route File" 13 + !insertmacro FILE_ASSOCIATION_ADD "gpx" "GPS Exchange Format" 7 + !insertmacro FILE_ASSOCIATION_ADD "tcx" "Training Center XML" 8 + !insertmacro FILE_ASSOCIATION_ADD "kml" "Keyhole Markup Language" 9 + !insertmacro FILE_ASSOCIATION_ADD "fit" "Flexible and Interoperable Data Transfer" 10 + !insertmacro FILE_ASSOCIATION_ADD "igc" "Flight Recorder Data Format" 11 + !insertmacro FILE_ASSOCIATION_ADD "nmea" "NMEA 0183 Data" 12 + !insertmacro FILE_ASSOCIATION_ADD "plt" "OziExplorer Track Point File" 13 + !insertmacro FILE_ASSOCIATION_ADD "rte" "OziExplorer Route File" 14 !insertmacro FILE_ASSOCIATION_ADD "wpt" "OziExplorer Waypoint File" 1 !insertmacro FILE_ASSOCIATION_ADD "loc" "Geocaching.com Waypoint File" 2 !insertmacro FILE_ASSOCIATION_ADD "slf" "Sigma Log File" 3 !insertmacro FILE_ASSOCIATION_ADD "geojson" "GeoJSON" 4 - !insertmacro FILE_ASSOCIATION_ADD "cup" "SeeYou CUP file" 5 + !insertmacro FILE_ASSOCIATION_ADD "cup" "SeeYou CUP File" 5 + !insertmacro FILE_ASSOCIATION_ADD "gpi" "Garmin POI File" 6 System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)' SectionEnd @@ -232,6 +233,7 @@ Section "Uninstall" !insertmacro FILE_ASSOCIATION_REMOVE "slf" !insertmacro FILE_ASSOCIATION_REMOVE "geojson" !insertmacro FILE_ASSOCIATION_REMOVE "cup" + !insertmacro FILE_ASSOCIATION_REMOVE "gpi" System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)' SectionEnd @@ -262,4 +264,4 @@ LangString DESC_LOCALIZATION ${LANG_ENGLISH} \ !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MSVC} $(DESC_MSVC) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_APP} $(DESC_APP) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_LOCALIZATION} $(DESC_LOCALIZATION) -!insertmacro MUI_FUNCTION_DESCRIPTION_END \ No newline at end of file +!insertmacro MUI_FUNCTION_DESCRIPTION_END