mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-20 12:19:11 +02:00
Compare commits
6 Commits
973abedf3e
...
3b6e6c03a7
Author | SHA1 | Date | |
---|---|---|---|
3b6e6c03a7 | |||
a1a6fade92 | |||
c001235e91 | |||
c01b9da10c | |||
e4d42453a0 | |||
d6d316676c |
@ -1,4 +1,4 @@
|
||||
version: 11.12.{build}
|
||||
version: 12.0.{build}
|
||||
|
||||
configuration:
|
||||
- Release
|
||||
|
2
.github/workflows/android.yml
vendored
2
.github/workflows/android.yml
vendored
@ -37,7 +37,7 @@ jobs:
|
||||
version: '6.4.0'
|
||||
target: 'android'
|
||||
arch: 'android_armv7'
|
||||
modules: qtpositioning qt5compat
|
||||
modules: qtpositioning qt5compat qtserialport
|
||||
- name: Install Android OpenSSL
|
||||
run: git clone https://github.com/KDAB/android_openssl.git
|
||||
- name: Create localization
|
||||
|
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
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
|
||||
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
|
||||
- name: Create localization
|
||||
run: lrelease gpxsee.pro
|
||||
- name: Configure build
|
||||
|
@ -3,7 +3,7 @@ unix:!macx:!android {
|
||||
} else {
|
||||
TARGET = GPXSee
|
||||
}
|
||||
VERSION = 11.12
|
||||
VERSION = 12.0
|
||||
|
||||
QT += core \
|
||||
gui \
|
||||
@ -14,7 +14,8 @@ QT += core \
|
||||
widgets \
|
||||
printsupport \
|
||||
positioning \
|
||||
svg
|
||||
svg \
|
||||
serialport
|
||||
greaterThan(QT_MAJOR_VERSION, 5) {
|
||||
QT += openglwidgets \
|
||||
core5compat
|
||||
@ -263,6 +264,7 @@ SOURCES += src/main.cpp \
|
||||
src/GUI/motioninfoitem.cpp \
|
||||
src/GUI/navigationwidget.cpp \
|
||||
src/GUI/pluginparameters.cpp \
|
||||
src/GUI/settings.cpp \
|
||||
src/common/coordinates.cpp \
|
||||
src/common/rectc.cpp \
|
||||
src/common/range.cpp \
|
||||
|
@ -37,7 +37,7 @@ Unicode true
|
||||
; The name of the installer
|
||||
Name "GPXSee"
|
||||
; Program version
|
||||
!define VERSION "11.12"
|
||||
!define VERSION "12.0"
|
||||
|
||||
; The file to write
|
||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||
|
@ -2641,8 +2641,8 @@ void GUI::writeSettings()
|
||||
settings.setValue(DEM_USERNAME_SETTING, _options.demUsername);
|
||||
if (_options.demPassword != DEM_PASSWORD_DEFAULT)
|
||||
settings.setValue(DEM_PASSWORD_SETTING, _options.demPassword);
|
||||
// the plugins order is random so always store the value
|
||||
settings.setValue(POSITION_PLUGIN_SETTING, _options.plugin);
|
||||
if (_options.plugin != POSITION_PLUGIN_DEFAULT)
|
||||
settings.setValue(POSITION_PLUGIN_SETTING, _options.plugin);
|
||||
index = 0;
|
||||
for (QMap<QString, QVariantMap>::const_iterator it
|
||||
= _options.pluginParams.constBegin();
|
||||
|
@ -2,6 +2,7 @@
|
||||
#define MARKERINFOITEM_H
|
||||
|
||||
#include <QGraphicsItem>
|
||||
#include <QFont>
|
||||
#include "format.h"
|
||||
|
||||
class Coordinates;
|
||||
|
21
src/GUI/settings.cpp
Normal file
21
src/GUI/settings.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#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,14 +1,21 @@
|
||||
#ifndef SETTINGS_H
|
||||
#define SETTINGS_H
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QLocale>
|
||||
#include <QDir>
|
||||
#include <QPageLayout>
|
||||
#include <QPageSize>
|
||||
#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() \
|
||||
(QLocale::system().measurementSystem() == QLocale::ImperialSystem)
|
||||
#define POSITION_PLUGIN() \
|
||||
(QGeoPositionInfoSource::availableSources().isEmpty() \
|
||||
? "" : QGeoPositionInfoSource::availableSources().first())
|
||||
#define CURRENT_PATH(filename) \
|
||||
QDir::current().filePath(filename)
|
||||
|
||||
@ -214,7 +221,7 @@
|
||||
#define DEM_PASSWORD_SETTING "demPassword"
|
||||
#define DEM_PASSWORD_DEFAULT ""
|
||||
#define POSITION_PLUGIN_SETTING "positionPlugin"
|
||||
#define POSITION_PLUGIN_DEFAULT POSITION_PLUGIN()
|
||||
#define POSITION_PLUGIN_DEFAULT Settings::positionPlugin()
|
||||
#define POSITION_PLUGIN_PARAMS_PREFIX "pluginParameters"
|
||||
#define POSITION_PLUGIN_PARAMS_PLUGIN "plugin"
|
||||
#define POSITION_PLUGIN_PARAMS_PARAM "parameters"
|
||||
@ -255,10 +262,15 @@
|
||||
#define HIDPI_MAP_SETTING "HiDPIMap"
|
||||
#define HIDPI_MAP_DEFAULT true
|
||||
#define DATA_PATH_SETTING "dataPath"
|
||||
#define DATA_PATH_DEFAULT QString()
|
||||
#define DATA_PATH_DEFAULT ""
|
||||
#define MAPS_PATH_SETTING "mapsPath"
|
||||
#define MAPS_PATH_DEFAULT QString()
|
||||
#define MAPS_PATH_DEFAULT ""
|
||||
#define POI_PATH_SETTING "poiPath"
|
||||
#define POI_PATH_DEFAULT QString()
|
||||
#define POI_PATH_DEFAULT ""
|
||||
|
||||
namespace Settings
|
||||
{
|
||||
const QString &positionPlugin();
|
||||
}
|
||||
|
||||
#endif // SETTINGS_H
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
#include <QList>
|
||||
#include <QVector>
|
||||
#include <QColor>
|
||||
#include <QDebug>
|
||||
#include <cmath>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user