diff --git a/Info.plist b/Info.plist index f541556d..de8ca2e7 100644 --- a/Info.plist +++ b/Info.plist @@ -99,6 +99,22 @@ CFBundleTypeRole Viewer + + CFBundleTypeExtensions + + nmea + + CFBundleTypeMIMETypes + + application/vnd.nmea.nmea + + CFBundleTypeIconFile + nmea.icns + CFBundleTypeName + NMEA 0183 data + CFBundleTypeRole + Viewer + UTImportedTypeDeclarations @@ -208,6 +224,27 @@ application/vnd.fai.igc + + UTTypeIdentifier + org.nmea.nmea + UTTypeReferenceURL + http://www.nmea.org/content/nmea_standards/nmea_0183_v_410.asp + UTTypeDescription + NMEA 0183 data + UTTypeConformsTo + + public.data + + UTTypeTagSpecification + + public.filename-extension + + nmea + + public.mime-type + application/vnd.nmea.nmea + + diff --git a/gpxsee.pro b/gpxsee.pro index b53784a4..3d6faa7f 100644 --- a/gpxsee.pro +++ b/gpxsee.pro @@ -1,5 +1,5 @@ TARGET = GPXSee -VERSION = 3.1 +VERSION = 3.2 QT += core \ gui \ network @@ -132,6 +132,7 @@ macx { icons/kml.icns \ icons/fit.icns \ icons/igc.icns \ + icons/nmea.icns \ pkg/maps.txt APP_RESOURCES.path = Contents/Resources QMAKE_BUNDLE_DATA += APP_RESOURCES @@ -142,6 +143,7 @@ win32 { icons/tcx.ico \ icons/kml.ico \ icons/fit.ico \ - icons/igc.ico + icons/igc.ico \ + icons/nmea.ico } DEFINES += APP_VERSION=\\\"$$VERSION\\\" diff --git a/icons/nmea.icns b/icons/nmea.icns new file mode 100644 index 00000000..2c0381ee Binary files /dev/null and b/icons/nmea.icns differ diff --git a/icons/nmea.ico b/icons/nmea.ico new file mode 100644 index 00000000..3ca117a5 Binary files /dev/null and b/icons/nmea.ico differ diff --git a/icons/nmea.svg b/icons/nmea.svg new file mode 100644 index 00000000..8d32b475 --- /dev/null +++ b/icons/nmea.svg @@ -0,0 +1,145 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NMEA + diff --git a/pkg/gpxsee.nsi b/pkg/gpxsee.nsi index 71fbaa0d..b5afb5fb 100644 --- a/pkg/gpxsee.nsi +++ b/pkg/gpxsee.nsi @@ -4,7 +4,7 @@ ; The name of the installer Name "GPXSee" ; Program version -!define VERSION "3.1" +!define VERSION "3.2" ; The file to write OutFile "GPXSee-${VERSION}.exe" @@ -27,6 +27,7 @@ InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir" !define REGKML "GPXSee.kml" !define REGFIT "GPXSee.fit" !define REGIGC "GPXSee.igc" +!define REGNMEA "GPXSee.nmea" ; Start menu page configuration !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM" @@ -112,7 +113,11 @@ Section "GPXSee (required)" SEC_APP WriteRegStr HKCR "${REGIGC}" "" "Flight Recorder Data Format" WriteRegStr HKCR "${REGIGC}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,5" WriteRegStr HKCR "${REGIGC}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\"" - + WriteRegStr HKCR ".nmea" "" "${REGNMEA}" + WriteRegStr HKCR "${REGNMEA}" "" "NMEA 0183 data" + WriteRegStr HKCR "${REGNMEA}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,6" + WriteRegStr HKCR "${REGNMEA}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\"" + System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)' SectionEnd @@ -182,6 +187,8 @@ Section "Uninstall" DeleteRegKey HKCR ".fit" DeleteRegKey HKCR "${REGIGC}" DeleteRegKey HKCR ".igc" + DeleteRegKey HKCR "${REGNMEA}" + DeleteRegKey HKCR ".nmea" System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)' SectionEnd @@ -203,4 +210,4 @@ LangString DESC_APP ${LANG_ENGLISH} \ !insertmacro MUI_DESCRIPTION_TEXT ${SEC_QT} $(DESC_QT) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MSVC} $(DESC_MSVC) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_APP} $(DESC_APP) -!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 290385a8..b26f2b7e 100644 --- a/pkg/gpxsee64.nsi +++ b/pkg/gpxsee64.nsi @@ -4,7 +4,7 @@ ; The name of the installer Name "GPXSee" ; Program version -!define VERSION "3.1" +!define VERSION "3.2" ; The file to write OutFile "GPXSee-${VERSION}_x64.exe" @@ -27,6 +27,7 @@ InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir" !define REGKML "GPXSee.kml" !define REGFIT "GPXSee.fit" !define REGIGC "GPXSee.igc" +!define REGNMEA "GPXSee.nmea" ; Start menu page configuration !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM" @@ -120,6 +121,10 @@ Section "GPXSee (required)" SEC_APP WriteRegStr HKCR "${REGIGC}" "" "Flight Recorder Data Format" WriteRegStr HKCR "${REGIGC}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,5" WriteRegStr HKCR "${REGIGC}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\"" + WriteRegStr HKCR ".nmea" "" "${REGNMEA}" + WriteRegStr HKCR "${REGNMEA}" "" "NMEA 0183 data" + WriteRegStr HKCR "${REGNMEA}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,6" + WriteRegStr HKCR "${REGNMEA}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\"" System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)' @@ -186,6 +191,8 @@ Section "Uninstall" DeleteRegKey HKCR ".fit" DeleteRegKey HKCR "${REGIGC}" DeleteRegKey HKCR ".igc" + DeleteRegKey HKCR "${REGNMEA}" + DeleteRegKey HKCR ".nmea" System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)' SectionEnd @@ -207,4 +214,4 @@ LangString DESC_APP ${LANG_ENGLISH} \ !insertmacro MUI_DESCRIPTION_TEXT ${SEC_QT} $(DESC_QT) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MSVC} $(DESC_MSVC) !insertmacro MUI_DESCRIPTION_TEXT ${SEC_APP} $(DESC_APP) -!insertmacro MUI_FUNCTION_DESCRIPTION_END \ No newline at end of file +!insertmacro MUI_FUNCTION_DESCRIPTION_END