mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-04 06:49:16 +02:00
Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
c0e2597dcc | |||
ff0affc8ec | |||
e38772c9b6 | |||
713876d7a4 | |||
d0e0ea32ab | |||
2529ea9932 | |||
025313edb0 | |||
86dbc58e8e | |||
3117127a3e | |||
76c2da9b50 | |||
39ab3d7a85 | |||
53b34ff24c | |||
00a9adce1e | |||
c4e0ff6435 | |||
40616fb868 | |||
c062a62014 |
@ -1,4 +1,4 @@
|
|||||||
version: 10.1.{build}
|
version: 10.2.{build}
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
- Release
|
- Release
|
||||||
|
@ -3,7 +3,7 @@ unix:!macx {
|
|||||||
} else {
|
} else {
|
||||||
TARGET = GPXSee
|
TARGET = GPXSee
|
||||||
}
|
}
|
||||||
VERSION = 10.1
|
VERSION = 10.2
|
||||||
|
|
||||||
QT += core \
|
QT += core \
|
||||||
gui \
|
gui \
|
||||||
|
@ -157,7 +157,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/data/data.cpp" line="167"/>
|
<location filename="../src/data/data.cpp" line="167"/>
|
||||||
<source>TwoNav files</source>
|
<source>TwoNav files</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>TwoNav-dosieroj</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/data/data.cpp" line="168"/>
|
<location filename="../src/data/data.cpp" line="168"/>
|
||||||
|
@ -157,7 +157,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/data/data.cpp" line="167"/>
|
<location filename="../src/data/data.cpp" line="167"/>
|
||||||
<source>TwoNav files</source>
|
<source>TwoNav files</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>TwoNav-tiedostot</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/data/data.cpp" line="168"/>
|
<location filename="../src/data/data.cpp" line="168"/>
|
||||||
|
@ -157,7 +157,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/data/data.cpp" line="167"/>
|
<location filename="../src/data/data.cpp" line="167"/>
|
||||||
<source>TwoNav files</source>
|
<source>TwoNav files</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Données TwoNav</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/data/data.cpp" line="168"/>
|
<location filename="../src/data/data.cpp" line="168"/>
|
||||||
@ -423,7 +423,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="273"/>
|
<location filename="../src/GUI/gui.cpp" line="273"/>
|
||||||
<source>Show POI icons</source>
|
<source>Show POI icons</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Afficher les icônes POI</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="303"/>
|
<location filename="../src/GUI/gui.cpp" line="303"/>
|
||||||
@ -450,22 +450,22 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="335"/>
|
<location filename="../src/GUI/gui.cpp" line="335"/>
|
||||||
<source>Show position</source>
|
<source>Show position</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Afficher la position</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="341"/>
|
<location filename="../src/GUI/gui.cpp" line="341"/>
|
||||||
<source>Follow position</source>
|
<source>Follow position</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Suivre la position</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="346"/>
|
<location filename="../src/GUI/gui.cpp" line="346"/>
|
||||||
<source>Show coordinates</source>
|
<source>Show coordinates</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Afficher les coordonnées</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="352"/>
|
<location filename="../src/GUI/gui.cpp" line="352"/>
|
||||||
<source>Show motion info</source>
|
<source>Show motion info</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Afficher les infos de déplacement</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="359"/>
|
<location filename="../src/GUI/gui.cpp" line="359"/>
|
||||||
@ -490,7 +490,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="377"/>
|
<location filename="../src/GUI/gui.cpp" line="377"/>
|
||||||
<source>Waypoint icons</source>
|
<source>Waypoint icons</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Icônes de points de cheminement</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="382"/>
|
<location filename="../src/GUI/gui.cpp" line="382"/>
|
||||||
@ -637,7 +637,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="642"/>
|
<location filename="../src/GUI/gui.cpp" line="642"/>
|
||||||
<source>Position</source>
|
<source>Position</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Position</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="653"/>
|
<location filename="../src/GUI/gui.cpp" line="653"/>
|
||||||
@ -737,7 +737,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="842"/>
|
<location filename="../src/GUI/gui.cpp" line="842"/>
|
||||||
<source>Symbols directory:</source>
|
<source>Symbols directory:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Dossier de symboles :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/gui.cpp" line="1235"/>
|
<location filename="../src/GUI/gui.cpp" line="1235"/>
|
||||||
@ -1154,7 +1154,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/map/maplist.cpp" line="135"/>
|
<location filename="../src/map/maplist.cpp" line="135"/>
|
||||||
<source>QuickChart maps</source>
|
<source>QuickChart maps</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Cartes QuickChart</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/map/maplist.cpp" line="139"/>
|
<location filename="../src/map/maplist.cpp" line="139"/>
|
||||||
@ -1192,27 +1192,27 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/motioninfoitem.cpp" line="87"/>
|
<location filename="../src/GUI/motioninfoitem.cpp" line="87"/>
|
||||||
<source>kn</source>
|
<source>kn</source>
|
||||||
<translation type="unfinished">nd</translation>
|
<translation>nd</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/motioninfoitem.cpp" line="90"/>
|
<location filename="../src/GUI/motioninfoitem.cpp" line="90"/>
|
||||||
<source>mi/h</source>
|
<source>mi/h</source>
|
||||||
<translation type="unfinished">mi/h</translation>
|
<translation>mi/h</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/motioninfoitem.cpp" line="93"/>
|
<location filename="../src/GUI/motioninfoitem.cpp" line="93"/>
|
||||||
<source>km/h</source>
|
<source>km/h</source>
|
||||||
<translation type="unfinished">km/h</translation>
|
<translation>km/h</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/motioninfoitem.cpp" line="100"/>
|
<location filename="../src/GUI/motioninfoitem.cpp" line="100"/>
|
||||||
<source>ft/min</source>
|
<source>ft/min</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>pied/min</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/motioninfoitem.cpp" line="103"/>
|
<location filename="../src/GUI/motioninfoitem.cpp" line="103"/>
|
||||||
<source>m/min</source>
|
<source>m/min</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>m/min</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
@ -1616,17 +1616,17 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/optionsdialog.cpp" line="283"/>
|
<location filename="../src/GUI/optionsdialog.cpp" line="283"/>
|
||||||
<source>Info background</source>
|
<source>Info background</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Fond de l'info</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/optionsdialog.cpp" line="289"/>
|
<location filename="../src/GUI/optionsdialog.cpp" line="289"/>
|
||||||
<source>Crosshair color:</source>
|
<source>Crosshair color:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Couleur du réticule :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/optionsdialog.cpp" line="290"/>
|
<location filename="../src/GUI/optionsdialog.cpp" line="290"/>
|
||||||
<source>Info color:</source>
|
<source>Info color:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Couleur d'info :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/optionsdialog.cpp" line="363"/>
|
<location filename="../src/GUI/optionsdialog.cpp" line="363"/>
|
||||||
@ -1680,7 +1680,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/optionsdialog.cpp" line="622"/>
|
<location filename="../src/GUI/optionsdialog.cpp" line="622"/>
|
||||||
<source>Plugin:</source>
|
<source>Plugin:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Module complémentaire :</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/optionsdialog.cpp" line="642"/>
|
<location filename="../src/GUI/optionsdialog.cpp" line="642"/>
|
||||||
@ -1829,7 +1829,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/optionsdialog.cpp" line="800"/>
|
<location filename="../src/GUI/optionsdialog.cpp" line="800"/>
|
||||||
<source>Position</source>
|
<source>Position</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Position</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/optionsdialog.cpp" line="801"/>
|
<location filename="../src/GUI/optionsdialog.cpp" line="801"/>
|
||||||
@ -2350,7 +2350,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/waypointitem.cpp" line="48"/>
|
<location filename="../src/GUI/waypointitem.cpp" line="48"/>
|
||||||
<source>Symbol</source>
|
<source>Symbol</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Symbol</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/GUI/waypointitem.cpp" line="53"/>
|
<location filename="../src/GUI/waypointitem.cpp" line="53"/>
|
||||||
|
@ -157,7 +157,7 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../src/data/data.cpp" line="167"/>
|
<location filename="../src/data/data.cpp" line="167"/>
|
||||||
<source>TwoNav files</source>
|
<source>TwoNav files</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>TwoNav файлы</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/data/data.cpp" line="168"/>
|
<location filename="../src/data/data.cpp" line="168"/>
|
||||||
|
@ -37,7 +37,7 @@ Unicode true
|
|||||||
; The name of the installer
|
; The name of the installer
|
||||||
Name "GPXSee"
|
Name "GPXSee"
|
||||||
; Program version
|
; Program version
|
||||||
!define VERSION "10.1"
|
!define VERSION "10.2"
|
||||||
|
|
||||||
; The file to write
|
; The file to write
|
||||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||||
@ -256,6 +256,7 @@ Section "QT framework" SEC_QT
|
|||||||
File "Qt6Core5Compat.dll"
|
File "Qt6Core5Compat.dll"
|
||||||
File "Qt6Positioning.dll"
|
File "Qt6Positioning.dll"
|
||||||
File "Qt6SerialPort.dll"
|
File "Qt6SerialPort.dll"
|
||||||
|
File /r "tls"
|
||||||
!else
|
!else
|
||||||
File "Qt5Core.dll"
|
File "Qt5Core.dll"
|
||||||
File "Qt5Gui.dll"
|
File "Qt5Gui.dll"
|
||||||
|
@ -1059,13 +1059,7 @@ void GUI::openOptions()
|
|||||||
if (options.plugin != _options.plugin
|
if (options.plugin != _options.plugin
|
||||||
|| options.pluginParams.value(options.plugin)
|
|| options.pluginParams.value(options.plugin)
|
||||||
!= _options.pluginParams.value(_options.plugin)) {
|
!= _options.pluginParams.value(_options.plugin)) {
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
QGeoPositionInfoSource *source = positionSource(options);
|
||||||
QGeoPositionInfoSource *source = QGeoPositionInfoSource::createSource(
|
|
||||||
options.plugin, this);
|
|
||||||
#else // QT 5.14
|
|
||||||
QGeoPositionInfoSource *source = QGeoPositionInfoSource::createSource(
|
|
||||||
options.plugin, options.pluginParams.value(options.plugin), this);
|
|
||||||
#endif // QT 5.14
|
|
||||||
_showPositionAction->setEnabled(source != 0);
|
_showPositionAction->setEnabled(source != 0);
|
||||||
_mapView->setPositionSource(source);
|
_mapView->setPositionSource(source);
|
||||||
delete _positionSource;
|
delete _positionSource;
|
||||||
@ -2149,6 +2143,23 @@ void GUI::dropEvent(QDropEvent *event)
|
|||||||
event->acceptProposedAction();
|
event->acceptProposedAction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QGeoPositionInfoSource *GUI::positionSource(const Options &options)
|
||||||
|
{
|
||||||
|
QGeoPositionInfoSource *source;
|
||||||
|
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
||||||
|
source = QGeoPositionInfoSource::createSource(options.plugin, this);
|
||||||
|
#else // QT 5.14
|
||||||
|
source = QGeoPositionInfoSource::createSource(options.plugin,
|
||||||
|
options.pluginParams.value(options.plugin), this);
|
||||||
|
#endif // QT 5.14
|
||||||
|
if (source)
|
||||||
|
source->setPreferredPositioningMethods(
|
||||||
|
QGeoPositionInfoSource::SatellitePositioningMethods);
|
||||||
|
|
||||||
|
return source;
|
||||||
|
}
|
||||||
|
|
||||||
void GUI::writeSettings()
|
void GUI::writeSettings()
|
||||||
{
|
{
|
||||||
int index;
|
int index;
|
||||||
@ -2794,13 +2805,7 @@ void GUI::readSettings(QString &activeMap, QStringList &disabledPOIs)
|
|||||||
.toString();
|
.toString();
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
_positionSource = positionSource(_options);
|
||||||
_positionSource = QGeoPositionInfoSource::createSource(_options.plugin,
|
|
||||||
this);
|
|
||||||
#else // QT 5.14
|
|
||||||
_positionSource = QGeoPositionInfoSource::createSource(_options.plugin,
|
|
||||||
_options.pluginParams.value(_options.plugin), this);
|
|
||||||
#endif // QT 5.14
|
|
||||||
_showPositionAction->setEnabled(_positionSource != 0);
|
_showPositionAction->setEnabled(_positionSource != 0);
|
||||||
|
|
||||||
settings.beginGroup(POSITION_SETTINGS_GROUP);
|
settings.beginGroup(POSITION_SETTINGS_GROUP);
|
||||||
|
@ -158,6 +158,7 @@ private:
|
|||||||
qreal time() const;
|
qreal time() const;
|
||||||
qreal movingTime() const;
|
qreal movingTime() const;
|
||||||
QAction *mapAction(const QString &name);
|
QAction *mapAction(const QString &name);
|
||||||
|
QGeoPositionInfoSource *positionSource(const Options &options);
|
||||||
void readSettings(QString &activeMap, QStringList &disabledPOIs);
|
void readSettings(QString &activeMap, QStringList &disabledPOIs);
|
||||||
void writeSettings();
|
void writeSettings();
|
||||||
|
|
||||||
|
@ -198,7 +198,7 @@
|
|||||||
#define POI_RADIUS_SETTING "poiRadius"
|
#define POI_RADIUS_SETTING "poiRadius"
|
||||||
#define POI_RADIUS_DEFAULT (int)(IMPERIAL_UNITS() ? MIINM : KMINM)
|
#define POI_RADIUS_DEFAULT (int)(IMPERIAL_UNITS() ? MIINM : KMINM)
|
||||||
#define DEM_URL_SETTING "demURL"
|
#define DEM_URL_SETTING "demURL"
|
||||||
#define DEM_URL_DEFAULT ""
|
#define DEM_URL_DEFAULT "http://dem.gpxsee.org/$lat/$lat$lon.hgt.zip"
|
||||||
#define DEM_AUTH_SETTING "demAuthentication"
|
#define DEM_AUTH_SETTING "demAuthentication"
|
||||||
#define DEM_AUTH_DEFAULT false
|
#define DEM_AUTH_DEFAULT false
|
||||||
#define DEM_USERNAME_SETTING "demUsername"
|
#define DEM_USERNAME_SETTING "demUsername"
|
||||||
|
@ -171,10 +171,14 @@ QString Data::formats()
|
|||||||
QStringList Data::filter()
|
QStringList Data::filter()
|
||||||
{
|
{
|
||||||
QStringList filter;
|
QStringList filter;
|
||||||
|
QString last;
|
||||||
|
|
||||||
for (QMultiMap<QString, Parser*>::iterator it = _parsers.begin();
|
for (QMultiMap<QString, Parser*>::iterator it = _parsers.begin();
|
||||||
it != _parsers.end(); it++)
|
it != _parsers.end(); it++) {
|
||||||
filter << "*." + it.key();
|
if (it.key() != last)
|
||||||
|
filter << "*." + it.key();
|
||||||
|
last = it.key();
|
||||||
|
}
|
||||||
|
|
||||||
return filter;
|
return filter;
|
||||||
}
|
}
|
||||||
|
@ -138,11 +138,8 @@ bool TwoNavParser::parse(QFile *file, QList<TrackData> &tracks,
|
|||||||
|
|
||||||
if (list.size() > 5) {
|
if (list.size() > 5) {
|
||||||
QDateTime ts(timestamp(list.at(4), list.at(5)));
|
QDateTime ts(timestamp(list.at(4), list.at(5)));
|
||||||
if (!ts.isValid()) {
|
if (ts.isValid())
|
||||||
_errorString = "Invalid date/time";
|
t.setTimestamp(ts);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
t.setTimestamp(ts);
|
|
||||||
}
|
}
|
||||||
if (list.size() > 7) {
|
if (list.size() > 7) {
|
||||||
qreal elevation = list.at(7).toDouble(&ok);
|
qreal elevation = list.at(7).toDouble(&ok);
|
||||||
@ -179,11 +176,8 @@ bool TwoNavParser::parse(QFile *file, QList<TrackData> &tracks,
|
|||||||
|
|
||||||
if (list.size() > 6) {
|
if (list.size() > 6) {
|
||||||
QDateTime ts(timestamp(list.at(5), list.at(6)));
|
QDateTime ts(timestamp(list.at(5), list.at(6)));
|
||||||
if (!ts.isValid()) {
|
if (ts.isValid())
|
||||||
_errorString = "Invalid date/time";
|
w.setTimestamp(ts);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
w.setTimestamp(ts);
|
|
||||||
}
|
}
|
||||||
if (list.size() > 7) {
|
if (list.size() > 7) {
|
||||||
qreal elevation = list.at(7).toDouble(&ok);
|
qreal elevation = list.at(7).toDouble(&ok);
|
||||||
|
@ -27,6 +27,9 @@ QPair<qreal, qreal> Waypoint::elevations() const
|
|||||||
|
|
||||||
void Waypoint::loadSymbolIcons(const QString &dir)
|
void Waypoint::loadSymbolIcons(const QString &dir)
|
||||||
{
|
{
|
||||||
|
if (dir.isEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
QDir d(dir);
|
QDir d(dir);
|
||||||
QFileInfoList files(d.entryInfoList(QDir::Files | QDir::Readable));
|
QFileInfoList files(d.entryInfoList(QDir::Files | QDir::Readable));
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ public:
|
|||||||
|
|
||||||
_data.resize(1U<<subFile->blockBits());
|
_data.resize(1U<<subFile->blockBits());
|
||||||
_file.setFileName(subFile->fileName());
|
_file.setFileName(subFile->fileName());
|
||||||
_file.open(QIODevice::ReadOnly);
|
_file.open(QIODevice::ReadOnly | QIODevice::Unbuffered);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user