mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-21 04:39:10 +02:00
Compare commits
No commits in common. "3b6e6c03a7fb5608366131ab15487cf47898217e" and "973abedf3eb67ba0d2905d13fd090480daa8872d" have entirely different histories.
3b6e6c03a7
...
973abedf3e
@ -1,4 +1,4 @@
|
|||||||
version: 12.0.{build}
|
version: 11.12.{build}
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
- Release
|
- Release
|
||||||
|
2
.github/workflows/android.yml
vendored
2
.github/workflows/android.yml
vendored
@ -37,7 +37,7 @@ jobs:
|
|||||||
version: '6.4.0'
|
version: '6.4.0'
|
||||||
target: 'android'
|
target: 'android'
|
||||||
arch: 'android_armv7'
|
arch: 'android_armv7'
|
||||||
modules: qtpositioning qt5compat qtserialport
|
modules: qtpositioning qt5compat
|
||||||
- name: Install Android OpenSSL
|
- name: Install Android OpenSSL
|
||||||
run: git clone https://github.com/KDAB/android_openssl.git
|
run: git clone https://github.com/KDAB/android_openssl.git
|
||||||
- name: Create localization
|
- name: Create localization
|
||||||
|
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install qtbase5-dev qtbase5-private-dev qtbase5-dev-tools qt5-qmake qttools5-dev-tools libqt5opengl5-dev qtpositioning5-dev libqt5svg5-dev libqt5serialport5-dev
|
sudo apt-get install qtbase5-dev qtbase5-private-dev qtbase5-dev-tools qt5-qmake qttools5-dev-tools libqt5opengl5-dev qtpositioning5-dev libqt5svg5-dev
|
||||||
- name: Create localization
|
- name: Create localization
|
||||||
run: lrelease gpxsee.pro
|
run: lrelease gpxsee.pro
|
||||||
- name: Configure build
|
- name: Configure build
|
||||||
|
@ -3,7 +3,7 @@ unix:!macx:!android {
|
|||||||
} else {
|
} else {
|
||||||
TARGET = GPXSee
|
TARGET = GPXSee
|
||||||
}
|
}
|
||||||
VERSION = 12.0
|
VERSION = 11.12
|
||||||
|
|
||||||
QT += core \
|
QT += core \
|
||||||
gui \
|
gui \
|
||||||
@ -14,8 +14,7 @@ QT += core \
|
|||||||
widgets \
|
widgets \
|
||||||
printsupport \
|
printsupport \
|
||||||
positioning \
|
positioning \
|
||||||
svg \
|
svg
|
||||||
serialport
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 5) {
|
greaterThan(QT_MAJOR_VERSION, 5) {
|
||||||
QT += openglwidgets \
|
QT += openglwidgets \
|
||||||
core5compat
|
core5compat
|
||||||
@ -264,7 +263,6 @@ SOURCES += src/main.cpp \
|
|||||||
src/GUI/motioninfoitem.cpp \
|
src/GUI/motioninfoitem.cpp \
|
||||||
src/GUI/navigationwidget.cpp \
|
src/GUI/navigationwidget.cpp \
|
||||||
src/GUI/pluginparameters.cpp \
|
src/GUI/pluginparameters.cpp \
|
||||||
src/GUI/settings.cpp \
|
|
||||||
src/common/coordinates.cpp \
|
src/common/coordinates.cpp \
|
||||||
src/common/rectc.cpp \
|
src/common/rectc.cpp \
|
||||||
src/common/range.cpp \
|
src/common/range.cpp \
|
||||||
|
@ -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 "12.0"
|
!define VERSION "11.12"
|
||||||
|
|
||||||
; The file to write
|
; The file to write
|
||||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||||
|
@ -2641,8 +2641,8 @@ void GUI::writeSettings()
|
|||||||
settings.setValue(DEM_USERNAME_SETTING, _options.demUsername);
|
settings.setValue(DEM_USERNAME_SETTING, _options.demUsername);
|
||||||
if (_options.demPassword != DEM_PASSWORD_DEFAULT)
|
if (_options.demPassword != DEM_PASSWORD_DEFAULT)
|
||||||
settings.setValue(DEM_PASSWORD_SETTING, _options.demPassword);
|
settings.setValue(DEM_PASSWORD_SETTING, _options.demPassword);
|
||||||
if (_options.plugin != POSITION_PLUGIN_DEFAULT)
|
// the plugins order is random so always store the value
|
||||||
settings.setValue(POSITION_PLUGIN_SETTING, _options.plugin);
|
settings.setValue(POSITION_PLUGIN_SETTING, _options.plugin);
|
||||||
index = 0;
|
index = 0;
|
||||||
for (QMap<QString, QVariantMap>::const_iterator it
|
for (QMap<QString, QVariantMap>::const_iterator it
|
||||||
= _options.pluginParams.constBegin();
|
= _options.pluginParams.constBegin();
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#define MARKERINFOITEM_H
|
#define MARKERINFOITEM_H
|
||||||
|
|
||||||
#include <QGraphicsItem>
|
#include <QGraphicsItem>
|
||||||
#include <QFont>
|
|
||||||
#include "format.h"
|
#include "format.h"
|
||||||
|
|
||||||
class Coordinates;
|
class Coordinates;
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
#include <QGeoPositionInfoSource>
|
|
||||||
#include "settings.h"
|
|
||||||
|
|
||||||
static QString defaultPlugin()
|
|
||||||
{
|
|
||||||
QString source;
|
|
||||||
|
|
||||||
QGeoPositionInfoSource *ps = QGeoPositionInfoSource::createDefaultSource(0);
|
|
||||||
if (ps) {
|
|
||||||
source = ps->sourceName();
|
|
||||||
delete ps;
|
|
||||||
}
|
|
||||||
|
|
||||||
return source;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QString &Settings::positionPlugin()
|
|
||||||
{
|
|
||||||
static QString plugin(defaultPlugin());
|
|
||||||
return plugin;
|
|
||||||
}
|
|
@ -1,21 +1,14 @@
|
|||||||
#ifndef SETTINGS_H
|
#ifndef SETTINGS_H
|
||||||
#define SETTINGS_H
|
#define SETTINGS_H
|
||||||
|
|
||||||
#include <QLocale>
|
#include <QtGlobal>
|
||||||
#include <QDir>
|
|
||||||
#include <QPageLayout>
|
|
||||||
#include <QPageSize>
|
|
||||||
#include "common/config.h"
|
#include "common/config.h"
|
||||||
#include "common/util.h"
|
|
||||||
#include "data/graph.h"
|
|
||||||
#include "format.h"
|
|
||||||
#include "units.h"
|
|
||||||
#include "timetype.h"
|
|
||||||
#include "markerinfoitem.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define IMPERIAL_UNITS() \
|
#define IMPERIAL_UNITS() \
|
||||||
(QLocale::system().measurementSystem() == QLocale::ImperialSystem)
|
(QLocale::system().measurementSystem() == QLocale::ImperialSystem)
|
||||||
|
#define POSITION_PLUGIN() \
|
||||||
|
(QGeoPositionInfoSource::availableSources().isEmpty() \
|
||||||
|
? "" : QGeoPositionInfoSource::availableSources().first())
|
||||||
#define CURRENT_PATH(filename) \
|
#define CURRENT_PATH(filename) \
|
||||||
QDir::current().filePath(filename)
|
QDir::current().filePath(filename)
|
||||||
|
|
||||||
@ -221,7 +214,7 @@
|
|||||||
#define DEM_PASSWORD_SETTING "demPassword"
|
#define DEM_PASSWORD_SETTING "demPassword"
|
||||||
#define DEM_PASSWORD_DEFAULT ""
|
#define DEM_PASSWORD_DEFAULT ""
|
||||||
#define POSITION_PLUGIN_SETTING "positionPlugin"
|
#define POSITION_PLUGIN_SETTING "positionPlugin"
|
||||||
#define POSITION_PLUGIN_DEFAULT Settings::positionPlugin()
|
#define POSITION_PLUGIN_DEFAULT POSITION_PLUGIN()
|
||||||
#define POSITION_PLUGIN_PARAMS_PREFIX "pluginParameters"
|
#define POSITION_PLUGIN_PARAMS_PREFIX "pluginParameters"
|
||||||
#define POSITION_PLUGIN_PARAMS_PLUGIN "plugin"
|
#define POSITION_PLUGIN_PARAMS_PLUGIN "plugin"
|
||||||
#define POSITION_PLUGIN_PARAMS_PARAM "parameters"
|
#define POSITION_PLUGIN_PARAMS_PARAM "parameters"
|
||||||
@ -262,15 +255,10 @@
|
|||||||
#define HIDPI_MAP_SETTING "HiDPIMap"
|
#define HIDPI_MAP_SETTING "HiDPIMap"
|
||||||
#define HIDPI_MAP_DEFAULT true
|
#define HIDPI_MAP_DEFAULT true
|
||||||
#define DATA_PATH_SETTING "dataPath"
|
#define DATA_PATH_SETTING "dataPath"
|
||||||
#define DATA_PATH_DEFAULT ""
|
#define DATA_PATH_DEFAULT QString()
|
||||||
#define MAPS_PATH_SETTING "mapsPath"
|
#define MAPS_PATH_SETTING "mapsPath"
|
||||||
#define MAPS_PATH_DEFAULT ""
|
#define MAPS_PATH_DEFAULT QString()
|
||||||
#define POI_PATH_SETTING "poiPath"
|
#define POI_PATH_SETTING "poiPath"
|
||||||
#define POI_PATH_DEFAULT ""
|
#define POI_PATH_DEFAULT QString()
|
||||||
|
|
||||||
namespace Settings
|
|
||||||
{
|
|
||||||
const QString &positionPlugin();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // SETTINGS_H
|
#endif // SETTINGS_H
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
#include <QColor>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user