Compare commits
162 Commits
Author | SHA1 | Date | |
---|---|---|---|
d5415179e4 | |||
b6b64065fb | |||
be75165088 | |||
3e60d0c84a | |||
4589478957 | |||
a4c20f8924 | |||
09833474f1 | |||
804c76a6b8 | |||
21da89cad1 | |||
f8deb573b0 | |||
2bfa6b8c1b | |||
6312570d5a | |||
23391de792 | |||
df8e8d76b8 | |||
1034c52b39 | |||
cc8704ff20 | |||
7a9e4171f9 | |||
625451c041 | |||
ef7b863003 | |||
c7f76f3009 | |||
7700ded936 | |||
e8fee5e587 | |||
450b6a3c39 | |||
e73b9f36c5 | |||
0d79dca72e | |||
e49b217b55 | |||
a788aa9e53 | |||
1067ef7352 | |||
6b467226b5 | |||
80f3f74b47 | |||
d565d3b526 | |||
b6d37c3499 | |||
70afef390c | |||
96fe90cc3f | |||
e741fab183 | |||
8730206939 | |||
7c434381a3 | |||
5e29c12881 | |||
22c2204047 | |||
d3a3734e71 | |||
b0af165e53 | |||
76f10c233a | |||
0e0dcdd721 | |||
1186cb104b | |||
02a7445f86 | |||
8b51f3ff04 | |||
55cae2d0cd | |||
ee0c49db9d | |||
9f5e09a664 | |||
8b391fc871 | |||
cb90523ef7 | |||
3d898bd482 | |||
1d90ae460c | |||
3e6ad20c05 | |||
4c97b427fe | |||
98704ef44b | |||
095897d016 | |||
d750715bed | |||
0596c86ea1 | |||
592b552721 | |||
33f6ce2e0e | |||
173f618d0b | |||
5b2ac6cde2 | |||
69951fe248 | |||
7ff8002387 | |||
74cf139b01 | |||
d2dd916d1b | |||
849fbac5ba | |||
5fb1feaf88 | |||
515d801e58 | |||
b75d805947 | |||
ae27b53eb1 | |||
cc214ba76d | |||
edae24f443 | |||
3ba10bb595 | |||
d1dc4251f0 | |||
5ed6e7602c | |||
6ce0b03295 | |||
3d01424f44 | |||
ad178db57e | |||
4d6affb43c | |||
171d3108fc | |||
5c9aee99d5 | |||
df2af2f419 | |||
39dd5ceba0 | |||
3f3ac6e093 | |||
68c2432adb | |||
550c62c917 | |||
1d26631531 | |||
fc3dec8540 | |||
46b04308db | |||
b51c504d62 | |||
15a5f71d32 | |||
11b9f842e5 | |||
4bb5ed1ec8 | |||
feabd6668b | |||
e700c3d729 | |||
332abd53ae | |||
73fa197c25 | |||
4d17dd5b92 | |||
c4b85ef493 | |||
c425be3741 | |||
09d0b281c2 | |||
ff25f02965 | |||
27401d58b7 | |||
da2b6661f6 | |||
de76eafdfb | |||
19cda6fbd5 | |||
6803ee0324 | |||
43271d9ff8 | |||
6bd83780cd | |||
c4d07b5f12 | |||
b28217a026 | |||
1af2c130b0 | |||
ca0d859c6d | |||
947d2d62b3 | |||
11677f5e35 | |||
6ef6644260 | |||
f6f9e4146d | |||
d1401bc302 | |||
488e5e1cac | |||
ff4f3eea60 | |||
d46ac8435e | |||
15fbd6d35e | |||
7de180d580 | |||
bd37521ca0 | |||
4445976cb9 | |||
76b14c23c6 | |||
3b4376cc03 | |||
41b1ec3605 | |||
4476998333 | |||
5940a2ced4 | |||
33c45f845a | |||
6f12f91cb1 | |||
55de85579c | |||
86f98aca42 | |||
56425a3318 | |||
d045fed086 | |||
31cd65f15e | |||
089ccfde71 | |||
a0ce50e7e4 | |||
031d82f689 | |||
99f620f101 | |||
5f3203d638 | |||
33cc1df601 | |||
5ef29bf827 | |||
6f029d81a0 | |||
90395a32dd | |||
d4b10b091c | |||
6210d1b983 | |||
5e71715f22 | |||
648f90f230 | |||
324168340b | |||
3e1bddbcfd | |||
b069d2ac3f | |||
9b46845568 | |||
f814d1f5a3 | |||
0f05dd6ba3 | |||
8a069f113e | |||
bfe31023e0 | |||
779f98a206 | |||
a660cbd463 |
@ -1,4 +1,4 @@
|
||||
version: 13.18.{build}
|
||||
version: 13.23.{build}
|
||||
|
||||
configuration:
|
||||
- Release
|
||||
@ -12,8 +12,8 @@ environment:
|
||||
- QTDIR: C:\Qt\5.15\msvc2019_64
|
||||
OPENSSLDIR: C:\OpenSSL-v111-Win64\bin
|
||||
NSISDEF: /DOPENSSL /DANGLE
|
||||
- QTDIR: C:\Qt\6.5\msvc2019_64
|
||||
OPENSSLDIR: C:\OpenSSL-v30-Win64\bin
|
||||
- QTDIR: C:\Qt\6.7\msvc2019_64
|
||||
OPENSSLDIR: C:\OpenSSL-v32-Win64\bin
|
||||
NSISDEF: /DQT6 /DOPENSSL
|
||||
|
||||
install:
|
||||
|
8
.github/workflows/codeql.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@ -26,7 +26,7 @@ jobs:
|
||||
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: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
@ -37,9 +37,9 @@ jobs:
|
||||
# queries: security-extended,security-and-quality
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
uses: github/codeql-action/analyze@v3
|
||||
with:
|
||||
category: "/language:${{matrix.language}}"
|
||||
|
4
.github/workflows/osx.yml
vendored
@ -8,7 +8,7 @@ on:
|
||||
jobs:
|
||||
qt5:
|
||||
name: GPXSee Qt5 build
|
||||
runs-on: macos-latest
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@ -39,7 +39,7 @@ jobs:
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
version: '6.6.1'
|
||||
version: '6.7.1'
|
||||
modules: qtpositioning qtserialport qtimageformats
|
||||
- name: Create localization
|
||||
run: lrelease gpxsee.pro
|
||||
|
@ -1,4 +1,4 @@
|
||||
Only localization contributions are accepted at the moment, code pull requests will be rejected.
|
||||
__Only localization contributions are accepted at the moment, code pull requests will be rejected.__
|
||||
|
||||
The rationale is, that I want leave the possibility to distribute GPXsee builds in the OS X/Windows
|
||||
stores under a non-GPL licence open. In the future, code pull requests under a
|
||||
|
27
gpxsee.pro
@ -3,7 +3,7 @@ unix:!macx:!android {
|
||||
} else {
|
||||
TARGET = GPXSee
|
||||
}
|
||||
VERSION = 13.18
|
||||
VERSION = 13.23
|
||||
|
||||
|
||||
QT += core \
|
||||
@ -39,12 +39,9 @@ HEADERS += src/common/config.h \
|
||||
src/common/greatcircle.h \
|
||||
src/common/programpaths.h \
|
||||
src/common/tifffile.h \
|
||||
src/common/downloader.h \
|
||||
src/common/polygon.h \
|
||||
src/common/color.h \
|
||||
src/common/csv.h \
|
||||
src/common/dem.h \
|
||||
src/common/demloader.h \
|
||||
src/GUI/crosshairitem.h \
|
||||
src/GUI/motioninfoitem.h \
|
||||
src/GUI/pluginparameters.h \
|
||||
@ -122,12 +119,18 @@ HEADERS += src/common/config.h \
|
||||
src/data/gpsdumpparser.h \
|
||||
src/data/style.h \
|
||||
src/data/twonavparser.h \
|
||||
src/map/downloader.h \
|
||||
src/map/demloader.h \
|
||||
src/map/ENC/attributes.h \
|
||||
src/map/ENC/mapdata.h \
|
||||
src/map/ENC/atlasdata.h \
|
||||
src/map/ENC/objects.h \
|
||||
src/map/ENC/rastertile.h \
|
||||
src/map/ENC/style.h \
|
||||
src/map/IMG/demfile.h \
|
||||
src/map/IMG/demtile.h \
|
||||
src/map/IMG/demtree.h \
|
||||
src/map/IMG/jls.h \
|
||||
src/map/IMG/section.h \
|
||||
src/map/IMG/zoom.h \
|
||||
src/map/conversion.h \
|
||||
@ -135,8 +138,10 @@ HEADERS += src/common/config.h \
|
||||
src/map/encjob.h \
|
||||
src/map/encmap.h \
|
||||
src/map/ENC/iso8211.h \
|
||||
src/map/filter.h \
|
||||
src/map/gemfmap.h \
|
||||
src/map/gmifile.h \
|
||||
src/map/metatype.h \
|
||||
src/map/oruxmap.h \
|
||||
src/map/osmdroidmap.h \
|
||||
src/map/proj/polyconic.h \
|
||||
@ -190,6 +195,7 @@ HEADERS += src/common/config.h \
|
||||
src/map/sqlitemap.h \
|
||||
src/map/utm.h \
|
||||
src/map/map.h \
|
||||
src/map/dem.h \
|
||||
src/map/maplist.h \
|
||||
src/map/onlinemap.h \
|
||||
src/map/tile.h \
|
||||
@ -275,10 +281,7 @@ SOURCES += src/main.cpp \
|
||||
src/common/greatcircle.cpp \
|
||||
src/common/programpaths.cpp \
|
||||
src/common/tifffile.cpp \
|
||||
src/common/downloader.cpp \
|
||||
src/common/csv.cpp \
|
||||
src/common/dem.cpp \
|
||||
src/common/demloader.cpp \
|
||||
src/GUI/crosshairitem.cpp \
|
||||
src/GUI/motioninfoitem.cpp \
|
||||
src/GUI/pluginparameters.cpp \
|
||||
@ -341,14 +344,20 @@ SOURCES += src/main.cpp \
|
||||
src/GUI/pngexportdialog.cpp \
|
||||
src/GUI/projectioncombobox.cpp \
|
||||
src/GUI/passwordedit.cpp \
|
||||
src/map/downloader.cpp \
|
||||
src/map/demloader.cpp \
|
||||
src/map/ENC/atlasdata.cpp \
|
||||
src/map/ENC/mapdata.cpp \
|
||||
src/map/ENC/rastertile.cpp \
|
||||
src/map/ENC/style.cpp \
|
||||
src/map/IMG/demfile.cpp \
|
||||
src/map/IMG/demtree.cpp \
|
||||
src/map/IMG/jls.cpp \
|
||||
src/map/conversion.cpp \
|
||||
src/map/encatlas.cpp \
|
||||
src/map/encmap.cpp \
|
||||
src/map/ENC/iso8211.cpp \
|
||||
src/map/filter.cpp \
|
||||
src/map/gemfmap.cpp \
|
||||
src/map/gmifile.cpp \
|
||||
src/map/oruxmap.cpp \
|
||||
@ -426,6 +435,7 @@ SOURCES += src/main.cpp \
|
||||
src/map/geocentric.cpp \
|
||||
src/map/jnxmap.cpp \
|
||||
src/map/map.cpp \
|
||||
src/map/dem.cpp \
|
||||
src/map/geotiffmap.cpp \
|
||||
src/map/image.cpp \
|
||||
src/map/mbtilesmap.cpp \
|
||||
@ -465,8 +475,7 @@ SOURCES += src/main.cpp \
|
||||
src/data/smlparser.cpp \
|
||||
src/data/geojsonparser.cpp
|
||||
|
||||
DEFINES += APP_VERSION=\\\"$$VERSION\\\" \
|
||||
QT_NO_DEPRECATED_WARNINGS
|
||||
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
|
||||
|
||||
RESOURCES += gpxsee.qrc
|
||||
TRANSLATIONS = lang/gpxsee_en.ts \
|
||||
|
@ -165,6 +165,10 @@
|
||||
<file alias="rescue-station.png">icons/map/marine/rescue-station.png</file>
|
||||
<file alias="windmill.png">icons/map/marine/windmill.png</file>
|
||||
<file alias="flagstaff.png">icons/map/marine/flagstaff.png</file>
|
||||
<file alias="deviation-dolphin.png">icons/map/marine/deviation-dolphin.png</file>
|
||||
<file alias="kelp.png">icons/map/marine/kelp.png</file>
|
||||
<file alias="eddies.png">icons/map/marine/eddies.png</file>
|
||||
<file alias="dome.png">icons/map/marine/dome.png</file>
|
||||
</qresource>
|
||||
|
||||
<!-- Mapsforge rendertheme -->
|
||||
|
@ -4,7 +4,7 @@ while read e; do
|
||||
IFS=":"; set $e
|
||||
|
||||
EXT=`echo $1 | tr /a-z/ /A-Z/`
|
||||
sed -e "s/\$EXTENSION/$EXT/" -e "s/\$COLOR/$2/" icon-template.svg > $1.svg
|
||||
sed -e "s/\$EXT/$EXT/" -e "s/\$COLOR/$2/" icon-template.svg > $1.svg
|
||||
|
||||
ICONSET=$1.iconset
|
||||
mkdir $ICONSET
|
||||
|
@ -4,7 +4,7 @@ while read e; do
|
||||
IFS=":"; set $e
|
||||
|
||||
EXT=`echo $1 | tr /a-z/ /A-Z/`
|
||||
sed -e "s/\$EXTENSION/$EXT/" -e "s/\$COLOR/$2/" icon-template.svg > $1.svg
|
||||
sed -e "s/\$EXT/$EXT/" -e "s/\$COLOR/$2/" icon-template.svg > $1.svg
|
||||
convert -density 400 -background none $1.svg -define icon:auto-resize $1.ico
|
||||
rm $1.svg
|
||||
done < extensions
|
||||
|
@ -13,8 +13,8 @@
|
||||
<g transform="translate(16.573463,124.9782)">
|
||||
<rect y="0" x="0" id="textrect" height="50" width="120" style="fill:$COLOR;fill-opacity:1;stroke:none;"/>
|
||||
<!--
|
||||
<text y="28" x="60" dominant-baseline="central" text-anchor="middle" style="fill:#FFFFFF;font-size:39px;font-family:Helvetica;font-weight:bold;">$EXTENSION</text>
|
||||
<text y="28" x="60" dominant-baseline="central" text-anchor="middle" style="fill:#FFFFFF;font-size:39px;font-family:Helvetica;font-weight:bold;">$EXT</text>
|
||||
-->
|
||||
<text y="25" x="60" dy="0.36em" text-anchor="middle" style="fill:#FFFFFF;font-size:39px;font-family:Helvetica;font-weight:bold;">$EXTENSION</text>
|
||||
<text y="25" x="60" dy="0.36em" text-anchor="middle" style="fill:#FFFFFF;font-size:39px;font-family:Helvetica;font-weight:bold;">$EXT</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 208 B After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 419 B |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 192 B After Width: | Height: | Size: 4.2 KiB |
BIN
icons/map/marine/deviation-dolphin.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
icons/map/marine/dome.png
Normal file
After Width: | Height: | Size: 263 B |
BIN
icons/map/marine/eddies.png
Normal file
After Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 415 B After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 241 B After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 225 B After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 4.2 KiB |
BIN
icons/map/marine/kelp.png
Normal file
After Width: | Height: | Size: 924 B |
Before Width: | Height: | Size: 610 B After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 630 B |
Before Width: | Height: | Size: 255 B After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 288 B After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 4.3 KiB |
BIN
icons/symbols/Alert.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 987 B After Width: | Height: | Size: 884 B |
BIN
icons/symbols/Checkpoint.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
icons/symbols/Danger.png
Normal file
After Width: | Height: | Size: 767 B |
BIN
icons/symbols/First Aid.png
Normal file
After Width: | Height: | Size: 606 B |
BIN
icons/symbols/First Category.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 824 B |
Before Width: | Height: | Size: 724 B After Width: | Height: | Size: 822 B |
Before Width: | Height: | Size: 724 B After Width: | Height: | Size: 822 B |
BIN
icons/symbols/Food.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
icons/symbols/Fourth Category.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
icons/symbols/Gear.png
Normal file
After Width: | Height: | Size: 976 B |
BIN
icons/symbols/Hors Category.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
icons/symbols/Info.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
icons/symbols/Left.png
Normal file
After Width: | Height: | Size: 810 B |
BIN
icons/symbols/Meeting Spot.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
icons/symbols/Obstacle.png
Normal file
After Width: | Height: | Size: 863 B |
BIN
icons/symbols/Overlook.png
Normal file
After Width: | Height: | Size: 821 B |
BIN
icons/symbols/Rest Area.png
Normal file
After Width: | Height: | Size: 918 B |
BIN
icons/symbols/Right.png
Normal file
After Width: | Height: | Size: 821 B |
BIN
icons/symbols/Second Category.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
icons/symbols/Segment End.png
Normal file
After Width: | Height: | Size: 792 B |
BIN
icons/symbols/Segment Start.png
Normal file
After Width: | Height: | Size: 724 B |
BIN
icons/symbols/Service.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
icons/symbols/Sharp Curve.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
icons/symbols/Sharp Left.png
Normal file
After Width: | Height: | Size: 942 B |
BIN
icons/symbols/Sharp Right.png
Normal file
After Width: | Height: | Size: 909 B |
BIN
icons/symbols/Shelter.png
Normal file
After Width: | Height: | Size: 764 B |
BIN
icons/symbols/Slight Left.png
Normal file
After Width: | Height: | Size: 826 B |
BIN
icons/symbols/Slight Right.png
Normal file
After Width: | Height: | Size: 825 B |
BIN
icons/symbols/Sprint.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
icons/symbols/Steep Incline.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
icons/symbols/Store.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
icons/symbols/Straight.png
Normal file
After Width: | Height: | Size: 791 B |
BIN
icons/symbols/Third Category.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
icons/symbols/Toilet.png
Normal file
After Width: | Height: | Size: 989 B |
BIN
icons/symbols/Transport.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
icons/symbols/U-Turn.png
Normal file
After Width: | Height: | Size: 989 B |
BIN
icons/symbols/Valley.png
Normal file
After Width: | Height: | Size: 1018 B |
BIN
icons/symbols/Water.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 824 B |
@ -269,6 +269,7 @@
|
||||
<root-XML namespaceURI="http://www.gpxsee.org/map/1.2" localName="map"/>
|
||||
<root-XML namespaceURI="http://www.gpxsee.org/map/1.3" localName="map"/>
|
||||
<root-XML namespaceURI="http://www.gpxsee.org/map/1.4" localName="map"/>
|
||||
<root-XML namespaceURI="http://www.gpxsee.org/map/1.5" localName="map"/>
|
||||
<glob pattern="*.xml"/>
|
||||
</mime-type>
|
||||
|
||||
|
@ -1712,7 +1712,7 @@
|
||||
<key>UTTypeIdentifier</key>
|
||||
<string>org.gpxsee.map</string>
|
||||
<key>UTTypeReferenceURL</key>
|
||||
<string>http://www.gpxsee.org/map/1.4/</string>
|
||||
<string>http://www.gpxsee.org/map/1.5/</string>
|
||||
<key>UTTypeDescription</key>
|
||||
<string>GPXSee Map Definition File</string>
|
||||
<key>UTTypeConformsTo</key>
|
||||
|
@ -37,7 +37,7 @@ Unicode true
|
||||
; The name of the installer
|
||||
Name "GPXSee"
|
||||
; Program version
|
||||
!define VERSION "13.18"
|
||||
!define VERSION "13.23"
|
||||
|
||||
; The file to write
|
||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||
|
@ -13,8 +13,8 @@
|
||||
#endif // Q_OS_ANDROID
|
||||
#include "common/programpaths.h"
|
||||
#include "common/config.h"
|
||||
#include "common/downloader.h"
|
||||
#include "common/dem.h"
|
||||
#include "map/downloader.h"
|
||||
#include "map/dem.h"
|
||||
#include "map/ellipsoid.h"
|
||||
#include "map/gcs.h"
|
||||
#include "map/conversion.h"
|
||||
@ -29,9 +29,9 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
|
||||
{
|
||||
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
||||
setApplicationName(APP_NAME);
|
||||
#else
|
||||
#else // Q_OS_WIN32 || Q_OS_MAC
|
||||
setApplicationName(QString(APP_NAME).toLower());
|
||||
#endif
|
||||
#endif // Q_OS_WIN32 || Q_OS_MAC
|
||||
setApplicationVersion(APP_VERSION);
|
||||
|
||||
QTranslator *app = new QTranslator(this);
|
||||
@ -43,8 +43,13 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
|
||||
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
||||
if (qt->load(QLocale::system(), "qt", "_", ProgramPaths::translationsDir()))
|
||||
#else // Q_OS_WIN32 || Q_OS_MAC
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
if (qt->load(QLocale::system(), "qt", "_", QLibraryInfo::location(
|
||||
QLibraryInfo::TranslationsPath)))
|
||||
#else // QT 6
|
||||
if (qt->load(QLocale::system(), "qt", "_", QLibraryInfo::path(
|
||||
QLibraryInfo::TranslationsPath)))
|
||||
#endif // QT 6
|
||||
#endif // Q_OS_WIN32 || Q_OS_MAC
|
||||
installTranslator(qt);
|
||||
|
||||
@ -65,6 +70,9 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
|
||||
loadPCSs();
|
||||
Waypoint::loadSymbolIcons(ProgramPaths::symbolsDir());
|
||||
|
||||
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
||||
QIcon::setThemeName(APP_NAME);
|
||||
#endif // Q_OS_WIN32 || Q_OS_MAC
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
||||
QIcon::setFallbackThemeName(APP_NAME);
|
||||
#endif // QT 5.12
|
||||
|
@ -39,8 +39,9 @@ void CadenceGraph::setInfo()
|
||||
clearInfo();
|
||||
}
|
||||
|
||||
QList<GraphItem*> CadenceGraph::loadData(const Data &data)
|
||||
QList<GraphItem*> CadenceGraph::loadData(const Data &data, Map *map)
|
||||
{
|
||||
Q_UNUSED(map);
|
||||
QList<GraphItem*> graphs;
|
||||
|
||||
for (int i = 0; i < data.tracks().count(); i++) {
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
~CadenceGraph();
|
||||
|
||||
QString label() const {return tr("Cadence");}
|
||||
QList<GraphItem*> loadData(const Data &data);
|
||||
QList<GraphItem*> loadData(const Data &data, Map *map);
|
||||
void clear();
|
||||
void showTracks(bool show);
|
||||
|
||||
|