1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-04-21 12:49:10 +02:00

Compare commits

...

20 Commits

Author SHA1 Message Date
6ce2a63a1c Version++ 2023-07-31 23:38:50 +02:00
3e8b54f605 Added hi-dpi one-way street (+ water ways) arrows 2023-07-31 23:36:14 +02:00
Hosted Weblate
c6af082fa3
Merge branch 'origin/master' into Weblate. 2023-07-24 19:03:57 +02:00
Nikolay Korotkiy
c644ea2170
Translated using Weblate (Esperanto)
Currently translated at 94.4% (441 of 467 strings)

Translation: GPXSee/Translations
Translate-URL: https://hosted.weblate.org/projects/gpxsee/translations/eo/
2023-07-23 11:03:14 +02:00
Nikolay Korotkiy
04041a2d9c
Translated using Weblate (Ukrainian)
Currently translated at 99.1% (463 of 467 strings)

Translation: GPXSee/Translations
Translate-URL: https://hosted.weblate.org/projects/gpxsee/translations/uk/
2023-07-23 11:03:13 +02:00
Nikolay Korotkiy
6a128c8eb4
Translated using Weblate (Russian)
Currently translated at 100.0% (467 of 467 strings)

Translation: GPXSee/Translations
Translate-URL: https://hosted.weblate.org/projects/gpxsee/translations/ru/
2023-07-23 11:03:13 +02:00
Nikolay Korotkiy
1a08e50c3e
Translated using Weblate (Finnish)
Currently translated at 97.6% (456 of 467 strings)

Translation: GPXSee/Translations
Translate-URL: https://hosted.weblate.org/projects/gpxsee/translations/fi/
2023-07-23 11:03:13 +02:00
Hosted Weblate
dd0dec54df
Merge branch 'origin/master' into Weblate. 2023-07-14 10:33:46 +02:00
Hosted Weblate
c03e24ce52
Merge branch 'origin/master' into Weblate. 2023-07-14 09:54:24 +02:00
Hosted Weblate
cbd2d99739
Merge branch 'origin/master' into Weblate. 2023-07-13 12:00:41 +02:00
Hosted Weblate
3e0b732a65
Merge branch 'origin/master' into Weblate. 2023-07-06 10:57:05 +02:00
Hosted Weblate
4b51d30e00
Merge branch 'origin/master' into Weblate. 2023-07-06 10:19:13 +02:00
Hosted Weblate
40c41b88e3
Merge branch 'origin/master' into Weblate. 2023-07-06 10:12:17 +02:00
Hosted Weblate
fcd02e4978
Merge branch 'origin/master' into Weblate. 2023-07-06 10:07:33 +02:00
Hosted Weblate
0f4bb95d57
Merge branch 'origin/master' into Weblate. 2023-07-04 20:27:49 +02:00
Hosted Weblate
2efac25629
Merge branch 'origin/master' into Weblate. 2023-06-30 09:58:22 +02:00
Hosted Weblate
2f74c4bbb6
Merge branch 'origin/master' into Weblate. 2023-06-29 07:22:32 +02:00
raf
66ba8268a3
Translated using Weblate (Catalan)
Currently translated at 100.0% (467 of 467 strings)

Translation: GPXSee/Translations
Translate-URL: https://hosted.weblate.org/projects/gpxsee/translations/ca/
2023-06-28 12:52:20 +02:00
Hosted Weblate
e328321b19
Merge branch 'origin/master' into Weblate. 2023-06-23 13:56:58 +02:00
99 efi
8b20124533
Translated using Weblate (Hungarian)
Currently translated at 100.0% (467 of 467 strings)

Translation: GPXSee/Translations
Translate-URL: https://hosted.weblate.org/projects/gpxsee/translations/hu/
2023-06-20 12:52:11 +02:00
16 changed files with 32 additions and 25 deletions

View File

@ -1,4 +1,4 @@
version: 13.5.{build} version: 13.6.{build}
configuration: configuration:
- Release - Release

View File

@ -3,7 +3,7 @@ unix:!macx:!android {
} else { } else {
TARGET = GPXSee TARGET = GPXSee
} }
VERSION = 13.5 VERSION = 13.6
QT += core \ QT += core \

View File

@ -58,6 +58,9 @@
<!-- Common map stuff --> <!-- Common map stuff -->
<qresource prefix="/map"> <qresource prefix="/map">
<file alias="arrow.png">icons/map/arrow.png</file> <file alias="arrow.png">icons/map/arrow.png</file>
<file alias="arrow@2x.png">icons/map/arrow@2x.png</file>
<file alias="water-arrow.png">icons/map/water-arrow.png</file>
<file alias="water-arrow@2x.png">icons/map/water-arrow@2x.png</file>
</qresource> </qresource>
<!-- POIs (IMG & ENC style) --> <!-- POIs (IMG & ENC style) -->

BIN
icons/map/arrow@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

BIN
icons/map/water-arrow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

View File

@ -1320,7 +1320,7 @@
<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>km</translation> <translation>nus</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/motioninfoitem.cpp" line="90"/> <location filename="../src/GUI/motioninfoitem.cpp" line="90"/>

View File

@ -712,13 +712,13 @@
<location filename="../src/GUI/gui.cpp" line="907"/> <location filename="../src/GUI/gui.cpp" line="907"/>
<location filename="../src/GUI/gui.cpp" line="925"/> <location filename="../src/GUI/gui.cpp" line="925"/>
<source>CRS directory:</source> <source>CRS directory:</source>
<translation type="unfinished"></translation> <translation>CRS-dosierujo:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="913"/> <location filename="../src/GUI/gui.cpp" line="913"/>
<location filename="../src/GUI/gui.cpp" line="931"/> <location filename="../src/GUI/gui.cpp" line="931"/>
<source>Symbols directory:</source> <source>Symbols directory:</source>
<translation type="unfinished"></translation> <translation>Dosierujo de simboloj:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="960"/> <location filename="../src/GUI/gui.cpp" line="960"/>

View File

@ -425,7 +425,7 @@
<message> <message>
<location filename="../src/GUI/gui.cpp" line="217"/> <location filename="../src/GUI/gui.cpp" line="217"/>
<source>Open directory...</source> <source>Open directory...</source>
<translation type="unfinished"></translation> <translation>Avaa hakemisto</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="236"/> <location filename="../src/GUI/gui.cpp" line="236"/>
@ -878,7 +878,7 @@
<location filename="../src/GUI/gui.cpp" line="907"/> <location filename="../src/GUI/gui.cpp" line="907"/>
<location filename="../src/GUI/gui.cpp" line="925"/> <location filename="../src/GUI/gui.cpp" line="925"/>
<source>CRS directory:</source> <source>CRS directory:</source>
<translation type="unfinished"></translation> <translation>CRS-hakemisto:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="915"/> <location filename="../src/GUI/gui.cpp" line="915"/>

View File

@ -1019,6 +1019,7 @@
<source>%n files</source> <source>%n files</source>
<translation> <translation>
<numerusform>%n fájl</numerusform> <numerusform>%n fájl</numerusform>
<numerusform>%n fájl</numerusform>
</translation> </translation>
</message> </message>
</context> </context>

View File

@ -878,7 +878,7 @@
<location filename="../src/GUI/gui.cpp" line="907"/> <location filename="../src/GUI/gui.cpp" line="907"/>
<location filename="../src/GUI/gui.cpp" line="925"/> <location filename="../src/GUI/gui.cpp" line="925"/>
<source>CRS directory:</source> <source>CRS directory:</source>
<translation type="unfinished"></translation> <translation>Каталог CRS:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="915"/> <location filename="../src/GUI/gui.cpp" line="915"/>
@ -1428,12 +1428,12 @@
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="70"/> <location filename="../src/GUI/optionsdialog.cpp" line="70"/>
<source>Select the proper coordinate reference system (CRS) of maps without a CRS definition (JNX, KMZ and World file maps).</source> <source>Select the proper coordinate reference system (CRS) of maps without a CRS definition (JNX, KMZ and World file maps).</source>
<translation type="unfinished"></translation> <translation>Выберите правильную систему координат (CRS) для карт без определения CRS (форматы JNX, KMZ и World file).</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="73"/> <location filename="../src/GUI/optionsdialog.cpp" line="73"/>
<source>Select the desired projection of vector maps (IMG, Mapsforge and ENC maps). The projection must be valid for the whole map area.</source> <source>Select the desired projection of vector maps (IMG, Mapsforge and ENC maps). The projection must be valid for the whole map area.</source>
<translation type="unfinished"></translation> <translation>Выберите нужную проекцию векторных карт (IMG, Mapsforge и ENC). Проекция должна быть действительна для всей области карты.</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/optionsdialog.cpp" line="77"/> <location filename="../src/GUI/optionsdialog.cpp" line="77"/>

View File

@ -712,7 +712,7 @@
<location filename="../src/GUI/gui.cpp" line="907"/> <location filename="../src/GUI/gui.cpp" line="907"/>
<location filename="../src/GUI/gui.cpp" line="925"/> <location filename="../src/GUI/gui.cpp" line="925"/>
<source>CRS directory:</source> <source>CRS directory:</source>
<translation type="unfinished"></translation> <translation>Каталог CRS:</translation>
</message> </message>
<message> <message>
<location filename="../src/GUI/gui.cpp" line="913"/> <location filename="../src/GUI/gui.cpp" line="913"/>

View File

@ -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 "13.5" !define VERSION "13.6"
; The file to write ; The file to write
OutFile "GPXSee-${VERSION}_x64.exe" OutFile "GPXSee-${VERSION}_x64.exe"

View File

@ -25,12 +25,6 @@ static const QColor shieldBgColor1("#dd3e3e");
static const QColor shieldBgColor2("#379947"); static const QColor shieldBgColor2("#379947");
static const QColor shieldBgColor3("#4a7fc1"); static const QColor shieldBgColor3("#4a7fc1");
static const QImage *arrow()
{
static QImage img(":/map/arrow.png");
return &img;
}
static QFont pixelSizeFont(int pixelSize) static QFont pixelSizeFont(int pixelSize)
{ {
QFont f; QFont f;
@ -308,17 +302,17 @@ void RasterTile::processPolygons(const QList<MapData::Poly> &polygons,
} }
void RasterTile::processLines(QList<MapData::Poly> &lines, void RasterTile::processLines(QList<MapData::Poly> &lines,
QList<TextItem*> &textItems) QList<TextItem*> &textItems, const QImage &arrow, const QImage &waterArrow)
{ {
std::stable_sort(lines.begin(), lines.end()); std::stable_sort(lines.begin(), lines.end());
if (_zoom >= 22) if (_zoom >= 22)
processStreetNames(lines, textItems); processStreetNames(lines, textItems, arrow, waterArrow);
processShields(lines, textItems); processShields(lines, textItems);
} }
void RasterTile::processStreetNames(const QList<MapData::Poly> &lines, void RasterTile::processStreetNames(const QList<MapData::Poly> &lines,
QList<TextItem*> &textItems) QList<TextItem*> &textItems, const QImage &arrow, const QImage &waterArrow)
{ {
for (int i = 0; i < lines.size(); i++) { for (int i = 0; i < lines.size(); i++) {
const MapData::Poly &poly = lines.at(i); const MapData::Poly &poly = lines.at(i);
@ -334,7 +328,9 @@ void RasterTile::processStreetNames(const QList<MapData::Poly> &lines,
const QColor *color = style.textColor().isValid() const QColor *color = style.textColor().isValid()
? &style.textColor() : 0; ? &style.textColor() : 0;
const QColor *hColor = Style::isContourLine(poly.type) ? 0 : &haloColor; const QColor *hColor = Style::isContourLine(poly.type) ? 0 : &haloColor;
const QImage *img = poly.oneway ? arrow() : 0; const QImage *img = poly.oneway
? Style::isWaterLine(poly.type)
? &waterArrow : &arrow : 0;
TextPathItem *item = new TextPathItem(poly.points, TextPathItem *item = new TextPathItem(poly.points,
&poly.label.text(), _rect, fnt, color, hColor, img); &poly.label.text(), _rect, fnt, color, hColor, img);
@ -479,6 +475,10 @@ void RasterTile::render()
QList<MapData::Poly> lines; QList<MapData::Poly> lines;
QList<MapData::Point> points; QList<MapData::Point> points;
QList<TextItem*> textItems; QList<TextItem*> textItems;
QImage arrow = (_ratio >= 2)
? QImage(":/map/arrow@2x.png") : QImage(":/map/arrow.png");
QImage waterArrow = (_ratio >= 2)
? QImage(":/map/water-arrow@2x.png") : QImage(":/map/water-arrow.png");
fetchData(polygons, lines, points); fetchData(polygons, lines, points);
ll2xy(polygons); ll2xy(polygons);
@ -487,7 +487,7 @@ void RasterTile::render()
processPoints(points, textItems); processPoints(points, textItems);
processPolygons(polygons, textItems); processPolygons(polygons, textItems);
processLines(lines, textItems); processLines(lines, textItems, arrow, waterArrow);
_pixmap.setDevicePixelRatio(_ratio); _pixmap.setDevicePixelRatio(_ratio);
_pixmap.fill(Qt::transparent); _pixmap.fill(Qt::transparent);

View File

@ -45,13 +45,13 @@ private:
void processPolygons(const QList<MapData::Poly> &polygons, void processPolygons(const QList<MapData::Poly> &polygons,
QList<TextItem *> &textItems); QList<TextItem *> &textItems);
void processLines(QList<MapData::Poly> &lines, void processLines(QList<MapData::Poly> &lines,
QList<TextItem*> &textItems); QList<TextItem*> &textItems, const QImage &arrow, const QImage &waterArrow);
void processPoints(QList<MapData::Point> &points, void processPoints(QList<MapData::Point> &points,
QList<TextItem*> &textItems); QList<TextItem*> &textItems);
void processShields(const QList<MapData::Poly> &lines, void processShields(const QList<MapData::Poly> &lines,
QList<TextItem*> &textItems); QList<TextItem*> &textItems);
void processStreetNames(const QList<MapData::Poly> &lines, void processStreetNames(const QList<MapData::Poly> &lines,
QList<TextItem*> &textItems); QList<TextItem*> &textItems, const QImage &arrow, const QImage &waterArrow);
Projection _proj; Projection _proj;
Transform _transform; Transform _transform;

View File

@ -104,6 +104,9 @@ public:
static bool isWaterArea(quint32 type) static bool isWaterArea(quint32 type)
{return ((type >= TYPE(0x3c) && type <= TYPE(0x44)) {return ((type >= TYPE(0x3c) && type <= TYPE(0x44))
|| (type & 0xffff00) == TYPE(0x10b));} || (type & 0xffff00) == TYPE(0x10b));}
static bool isWaterLine(quint32 type)
{return (type == TYPE(0x26) || type == TYPE(0x18)
|| type == TYPE(0x1f));}
static bool isMilitaryArea(quint32 type) static bool isMilitaryArea(quint32 type)
{return (type == TYPE(0x04) || type == 0x10901);} {return (type == TYPE(0x04) || type == 0x10901);}
static bool isNatureReserve(quint32 type) static bool isNatureReserve(quint32 type)