mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-21 12:49:10 +02:00
Compare commits
20 Commits
66036f6cd7
...
6ce2a63a1c
Author | SHA1 | Date | |
---|---|---|---|
6ce2a63a1c | |||
3e8b54f605 | |||
|
c6af082fa3 | ||
|
c644ea2170 | ||
|
04041a2d9c | ||
|
6a128c8eb4 | ||
|
1a08e50c3e | ||
|
dd0dec54df | ||
|
c03e24ce52 | ||
|
cbd2d99739 | ||
|
3e0b732a65 | ||
|
4b51d30e00 | ||
|
40c41b88e3 | ||
|
fcd02e4978 | ||
|
0f4bb95d57 | ||
|
2efac25629 | ||
|
2f74c4bbb6 | ||
|
66ba8268a3 | ||
|
e328321b19 | ||
|
8b20124533 |
@ -1,4 +1,4 @@
|
|||||||
version: 13.5.{build}
|
version: 13.6.{build}
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
- Release
|
- Release
|
||||||
|
@ -3,7 +3,7 @@ unix:!macx:!android {
|
|||||||
} else {
|
} else {
|
||||||
TARGET = GPXSee
|
TARGET = GPXSee
|
||||||
}
|
}
|
||||||
VERSION = 13.5
|
VERSION = 13.6
|
||||||
|
|
||||||
|
|
||||||
QT += core \
|
QT += core \
|
||||||
|
@ -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
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
BIN
icons/map/water-arrow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 181 B |
BIN
icons/map/water-arrow@2x.png
Normal file
BIN
icons/map/water-arrow@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 249 B |
@ -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"/>
|
||||||
|
@ -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"/>
|
||||||
|
@ -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"/>
|
||||||
|
@ -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>
|
||||||
|
@ -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"/>
|
||||||
|
@ -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"/>
|
||||||
|
@ -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"
|
||||||
|
@ -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);
|
||||||
|
@ -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;
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user