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

Added support for OziExplorer data files

This commit is contained in:
2018-04-13 20:54:38 +02:00
parent f64e88290d
commit f8009b0151
11 changed files with 364 additions and 7 deletions

View File

@ -8,6 +8,9 @@
#include "fitparser.h"
#include "igcparser.h"
#include "nmeaparser.h"
#include "pltparser.h"
#include "wptparser.h"
#include "rteparser.h"
#include "data.h"
@ -18,6 +21,9 @@ static FITParser fit;
static CSVParser csv;
static IGCParser igc;
static NMEAParser nmea;
static PLTParser plt;
static WPTParser wpt;
static RTEParser rte;
static QHash<QString, Parser*> parsers()
{
@ -30,6 +36,9 @@ static QHash<QString, Parser*> parsers()
hash.insert("csv", &csv);
hash.insert("igc", &igc);
hash.insert("nmea", &nmea);
hash.insert("plt", &plt);
hash.insert("wpt", &wpt);
hash.insert("rte", &rte);
return hash;
}
@ -100,11 +109,14 @@ bool Data::loadFile(const QString &fileName)
QString Data::formats()
{
return
tr("Supported files") + " (*.csv *.fit *.gpx *.igc *.kml *.nmea *.tcx);;"
tr("Supported files")
+ " (*.csv *.fit *.gpx *.igc *.kml *.nmea *.plt *.rte *.tcx *.wpt);;"
+ tr("CSV files") + " (*.csv);;" + tr("FIT files") + " (*.fit);;"
+ tr("GPX files") + " (*.gpx);;" + tr("IGC files") + " (*.igc);;"
+ tr("KML files") + " (*.kml);;" + tr("NMEA files") + " (*.nmea);;"
+ tr("TCX files") + " (*.tcx);;" + tr("All files") + "(*)";
+ tr("PLT files") + " (*.plt);;" + tr("RTE files") + " (*.rte);;"
+ tr("TCX files") + " (*.tcx);;" + tr("WPT files") + " (*.wpt);;"
+ tr("All files") + " (*)";
}
QStringList Data::filter()