diff --git a/Info.plist b/Info.plist
index 2f71577b..f541556d 100644
--- a/Info.plist
+++ b/Info.plist
@@ -74,7 +74,7 @@
CFBundleTypeMIMETypes
- application/octet-stream
+ application/vnd.ant.fit
CFBundleTypeIconFile
fit.icns
@@ -83,6 +83,22 @@
CFBundleTypeRole
Viewer
+
+ CFBundleTypeExtensions
+
+ igc
+
+ CFBundleTypeMIMETypes
+
+ application/vnd.fai.igc
+
+ CFBundleTypeIconFile
+ igc.icns
+ CFBundleTypeName
+ Flight Recorder Data Format
+ CFBundleTypeRole
+ Viewer
+
UTImportedTypeDeclarations
@@ -171,6 +187,27 @@
application/vnd.ant.fit
+
+ UTTypeIdentifier
+ org.fai.igc
+ UTTypeReferenceURL
+ http://www.fai.org/gnss-recording-devices/igc-approved-flight-recorders
+ UTTypeDescription
+ Flight Recorder Data Format
+ UTTypeConformsTo
+
+ public.data
+
+ UTTypeTagSpecification
+
+ public.filename-extension
+
+ igc
+
+ public.mime-type
+ application/vnd.fai.igc
+
+
diff --git a/gpxsee.pro b/gpxsee.pro
index 5ebeef96..9b41d85f 100644
--- a/gpxsee.pro
+++ b/gpxsee.pro
@@ -1,5 +1,5 @@
TARGET = GPXSee
-VERSION = 3.0
+VERSION = 3.1
QT += core \
gui \
network
@@ -128,6 +128,7 @@ macx {
icons/tcx.icns \
icons/kml.icns \
icons/fit.icns \
+ icons/igc.icns \
pkg/maps.txt
APP_RESOURCES.path = Contents/Resources
QMAKE_BUNDLE_DATA += APP_RESOURCES
@@ -137,6 +138,7 @@ win32 {
icons/gpx.ico \
icons/tcx.ico \
icons/kml.ico \
- icons/fit.ico
+ icons/fit.ico \
+ icons/igc.ico
}
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
diff --git a/pkg/gpxsee.nsi b/pkg/gpxsee.nsi
index 4b322edf..71fbaa0d 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.0"
+!define VERSION "3.1"
; The file to write
OutFile "GPXSee-${VERSION}.exe"
@@ -26,6 +26,7 @@ InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
!define REGTCX "GPXSee.tcx"
!define REGKML "GPXSee.kml"
!define REGFIT "GPXSee.fit"
+!define REGIGC "GPXSee.igc"
; Start menu page configuration
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
@@ -107,7 +108,11 @@ Section "GPXSee (required)" SEC_APP
WriteRegStr HKCR "${REGFIT}" "" "Flexible and Interoperable Data Transfer"
WriteRegStr HKCR "${REGFIT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,4"
WriteRegStr HKCR "${REGFIT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
-
+ WriteRegStr HKCR ".igc" "" "${REGIGC}"
+ 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$\""
+
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
SectionEnd
@@ -175,6 +180,8 @@ Section "Uninstall"
DeleteRegKey HKCR ".kml"
DeleteRegKey HKCR "${REGFIT}"
DeleteRegKey HKCR ".fit"
+ DeleteRegKey HKCR "${REGIGC}"
+ DeleteRegKey HKCR ".igc"
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
SectionEnd
diff --git a/pkg/gpxsee64.nsi b/pkg/gpxsee64.nsi
index 0f74e986..290385a8 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.0"
+!define VERSION "3.1"
; The file to write
OutFile "GPXSee-${VERSION}_x64.exe"
@@ -26,6 +26,7 @@ InstallDirRegKey HKLM "Software\GPXSee" "Install_Dir"
!define REGTCX "GPXSee.tcx"
!define REGKML "GPXSee.kml"
!define REGFIT "GPXSee.fit"
+!define REGIGC "GPXSee.igc"
; Start menu page configuration
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
@@ -115,7 +116,11 @@ Section "GPXSee (required)" SEC_APP
WriteRegStr HKCR "${REGFIT}" "" "Flexible and Interoperable Data Transfer"
WriteRegStr HKCR "${REGFIT}\DefaultIcon" "" "$INSTDIR\GPXSee.exe,4"
WriteRegStr HKCR "${REGFIT}\shell\open\command" "" "$\"$INSTDIR\GPXSee.exe$\" $\"%1$\""
-
+ WriteRegStr HKCR ".igc" "" "${REGIGC}"
+ 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$\""
+
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
SectionEnd
@@ -179,6 +184,8 @@ Section "Uninstall"
DeleteRegKey HKCR ".kml"
DeleteRegKey HKCR "${REGFIT}"
DeleteRegKey HKCR ".fit"
+ DeleteRegKey HKCR "${REGIGC}"
+ DeleteRegKey HKCR ".igc"
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
SectionEnd