1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-21 14:24:24 +02:00

Added support for Geotagged JPEG files

This commit is contained in:
2019-03-13 00:25:46 +01:00
parent 78d07cc166
commit bf845a4a65
8 changed files with 285 additions and 45 deletions

View File

@ -14,6 +14,7 @@
#include "slfparser.h"
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include "geojsonparser.h"
#include "exifparser.h"
#endif // QT 5
#include "dem.h"
#include "data.h"
@ -34,6 +35,7 @@ static SLFParser slf;
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
static GeoJSONParser geojson;
#endif // QT 5
static EXIFParser exif;
static QHash<QString, Parser*> parsers()
{
@ -55,6 +57,8 @@ static QHash<QString, Parser*> parsers()
hash.insert("json", &geojson);
hash.insert("geojson", &geojson);
#endif // QT 5
hash.insert("jpeg", &exif);
hash.insert("jpg", &exif);
return hash;
}
@ -148,6 +152,7 @@ QString Data::formats()
#endif // QT5
+ qApp->translate("Data", "GPX files") + " (*.gpx);;"
+ qApp->translate("Data", "IGC files") + " (*.igc);;"
+ qApp->translate("Data", "JPEG images") + " (*.jpg *.jpeg);;"
+ qApp->translate("Data", "KML files") + " (*.kml);;"
+ qApp->translate("Data", "LOC files") + " (*.loc);;"
+ qApp->translate("Data", "NMEA files") + " (*.nmea);;"