1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-03-17 20:17:45 +01:00

Compare commits

..

No commits in common. "82b8314b743b85cc147be8f1bb3fd8165debc4a9" and "a05098f502a48db9ab4c2f9b88281ebcd3c97e53" have entirely different histories.

9 changed files with 47 additions and 71 deletions

View File

@ -179,11 +179,6 @@
<file alias="conveyor-line.png">icons/map/marine/conveyor-line.png</file> <file alias="conveyor-line.png">icons/map/marine/conveyor-line.png</file>
<file alias="pipeline-overhead.png">icons/map/marine/pipeline-overhead.png</file> <file alias="pipeline-overhead.png">icons/map/marine/pipeline-overhead.png</file>
<file alias="coast-guard.png">icons/map/marine/coast-guard.png</file> <file alias="coast-guard.png">icons/map/marine/coast-guard.png</file>
<file alias="monument.png">icons/map/marine/monument.png</file>
<file alias="radio.png">icons/map/marine/radio.png</file>
<file alias="radar.png">icons/map/marine/radar.png</file>
<file alias="radar-transponder.png">icons/map/marine/radar-transponder.png</file>
<file alias="silo.png">icons/map/marine/silo.png</file>
</qresource> </qresource>
<!-- Mapsforge rendertheme --> <!-- Mapsforge rendertheme -->

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

View File

@ -28,37 +28,33 @@ static QMap<uint,uint> orderMapInit()
map.insert(SUBTYPE(BUAARE, 2), 5); map.insert(SUBTYPE(BUAARE, 2), 5);
map.insert(SUBTYPE(BUAARE, 6), 6); map.insert(SUBTYPE(BUAARE, 6), 6);
map.insert(SUBTYPE(BUAARE, 0), 7); map.insert(SUBTYPE(BUAARE, 0), 7);
map.insert(TYPE(RDOSTA), 8); map.insert(TYPE(BCNISD), 8);
map.insert(TYPE(RADSTA), 9); map.insert(TYPE(BCNLAT), 9);
map.insert(TYPE(RTPBCN), 10); map.insert(TYPE(I_BCNLAT), 9);
map.insert(TYPE(BCNISD), 11); map.insert(TYPE(BCNSAW), 10);
map.insert(TYPE(BCNLAT), 12); map.insert(TYPE(BCNSPP), 11);
map.insert(TYPE(I_BCNLAT), 12); map.insert(TYPE(BOYCAR), 12);
map.insert(TYPE(BCNSAW), 13); map.insert(TYPE(BOYINB), 13);
map.insert(TYPE(BCNSPP), 14); map.insert(TYPE(BOYISD), 14);
map.insert(TYPE(BOYCAR), 15); map.insert(TYPE(BOYLAT), 15);
map.insert(TYPE(BOYINB), 16); map.insert(TYPE(I_BOYLAT), 15);
map.insert(TYPE(BOYISD), 17); map.insert(TYPE(BOYSAW), 16);
map.insert(TYPE(BOYLAT), 18); map.insert(TYPE(BOYSPP), 17);
map.insert(TYPE(I_BOYLAT), 18); map.insert(TYPE(MORFAC), 18);
map.insert(TYPE(BOYSAW), 19); map.insert(TYPE(OFSPLF), 19);
map.insert(TYPE(BOYSPP), 20); map.insert(TYPE(LIGHTS), 20);
map.insert(TYPE(MORFAC), 21); map.insert(TYPE(OBSTRN), 21);
map.insert(TYPE(OFSPLF), 22); map.insert(TYPE(WRECKS), 22);
map.insert(TYPE(LIGHTS), 23); map.insert(TYPE(UWTROC), 23);
map.insert(TYPE(OBSTRN), 24); map.insert(TYPE(HRBFAC), 24);
map.insert(TYPE(WRECKS), 25); map.insert(TYPE(PILPNT), 25);
map.insert(TYPE(UWTROC), 26); map.insert(TYPE(ACHBRT), 26);
map.insert(TYPE(HRBFAC), 27); map.insert(TYPE(I_ACHBRT), 26);
map.insert(TYPE(PILPNT), 28); map.insert(TYPE(CRANES), 27);
map.insert(TYPE(ACHBRT), 29); map.insert(TYPE(I_CRANES), 27);
map.insert(TYPE(I_ACHBRT), 29); map.insert(TYPE(LNDMRK), 28);
map.insert(TYPE(CRANES), 30); map.insert(TYPE(LNDELV), 29);
map.insert(TYPE(I_CRANES), 30); map.insert(TYPE(I_DISMAR), 30);
map.insert(TYPE(LNDMRK), 31);
map.insert(TYPE(SILTNK), 32);
map.insert(TYPE(LNDELV), 33);
map.insert(TYPE(I_DISMAR), 0xFFFFFFFE);
map.insert(TYPE(SOUNDG), 0xFFFFFFFF); map.insert(TYPE(SOUNDG), 0xFFFFFFFF);
return map; return map;
@ -874,25 +870,25 @@ Range MapData::zooms() const
double size = qMin(_bounds.width(), _bounds.height()); double size = qMin(_bounds.width(), _bounds.height());
if (size > 180) if (size > 180)
return Range(0, 10); return Range(0, 20);
else if (size > 90) else if (size > 90)
return Range(1, 11); return Range(1, 20);
else if (size > 45) else if (size > 45)
return Range(2, 12); return Range(2, 20);
else if (size > 22.5) else if (size > 22.5)
return Range(3, 13); return Range(3, 20);
else if (size > 11.25) else if (size > 11.25)
return Range(4, 14); return Range(4, 20);
else if (size > 5.625) else if (size > 5.625)
return Range(5, 15); return Range(5, 20);
else if (size > 2.813) else if (size > 2.813)
return Range(6, 16); return Range(6, 20);
else if (size > 1.406) else if (size > 1.406)
return Range(7, 17); return Range(7, 20);
else if (size > 0.703) else if (size > 0.703)
return Range(8, 18); return Range(8, 20);
else if (size > 0.352) else if (size > 0.352)
return Range(9, 19); return Range(9, 20);
else if (size > 0.176) else if (size > 0.176)
return Range(10, 20); return Range(10, 20);
else if (size > 0.088) else if (size > 0.088)

View File

@ -46,7 +46,6 @@
#define LNDELV 72 #define LNDELV 72
#define LNDMRK 74 #define LNDMRK 74
#define LIGHTS 75 #define LIGHTS 75
#define LOKBSN 79
#define MORFAC 84 #define MORFAC 84
#define NAVLNE 85 #define NAVLNE 85
#define OBSTRN 86 #define OBSTRN 86
@ -57,9 +56,6 @@
#define PONTON 95 #define PONTON 95
#define PRCARE 96 #define PRCARE 96
#define PYLONS 98 #define PYLONS 98
#define RADSTA 102
#define RTPBCN 103
#define RDOSTA 105
#define RAILWY 106 #define RAILWY 106
#define RCRTCL 108 #define RCRTCL 108
#define RECTRC 109 #define RECTRC 109
@ -87,7 +83,6 @@
#define I_BRIDGE 17011 #define I_BRIDGE 17011
#define I_CBLOHD 17012 #define I_CBLOHD 17012
#define I_FERYRT 17013 #define I_FERYRT 17013
#define I_LOKBSN 17016
#define I_HULKES 17020 #define I_HULKES 17020
#define I_PONTON 17021 #define I_PONTON 17021
#define I_PIPOHD 17024 #define I_PIPOHD 17024

View File

@ -86,26 +86,22 @@ void Style::defaultPolygonStyle()
QPen(QColor("#966118"))); QPen(QColor("#966118")));
_polygons[TYPE(SILTNK)] = Polygon(QBrush("#d98b21"), QPen(QColor("#966118"), _polygons[TYPE(SILTNK)] = Polygon(QBrush("#d98b21"), QPen(QColor("#966118"),
2)); 2));
_polygons[TYPE(LOKBSN)] = Polygon(QBrush(QColor("#333333"),
Qt::Dense7Pattern));
_polygons[TYPE(I_LOKBSN)] = Polygon(QBrush(QColor("#333333"),
Qt::Dense7Pattern));
_drawOrder _drawOrder
<< TYPE(M_COVR) << TYPE(LNDARE) << SUBTYPE(DEPARE, 0) << TYPE(M_COVR) << TYPE(LNDARE) << SUBTYPE(DEPARE, 0)
<< SUBTYPE(DEPARE, 1) << SUBTYPE(DEPARE, 2) << SUBTYPE(DEPARE, 3) << SUBTYPE(DEPARE, 1) << SUBTYPE(DEPARE, 2) << SUBTYPE(DEPARE, 3)
<< TYPE(UNSARE) << SUBTYPE(DEPARE, 4) << SUBTYPE(DEPARE, 5) << TYPE(UNSARE) << SUBTYPE(DEPARE, 4) << SUBTYPE(DEPARE, 5)
<< SUBTYPE(DEPARE, 6) << TYPE(LAKARE) << TYPE(CANALS) << TYPE(DYKCON) << SUBTYPE(DEPARE, 6) << TYPE(LAKARE) << TYPE(CANALS) << TYPE(DYKCON)
<< TYPE(RIVERS) << TYPE(DRGARE) << TYPE(FAIRWY) << TYPE(LOKBSN) << TYPE(RIVERS) << TYPE(DRGARE) << TYPE(FAIRWY) << TYPE(BUAARE)
<< TYPE(I_LOKBSN) << TYPE(BUAARE) << TYPE(BUISGL) << TYPE(SILTNK) << TYPE(BUISGL) << TYPE(SILTNK) << TYPE(AIRARE) << TYPE(BRIDGE)
<< TYPE(AIRARE) << TYPE(BRIDGE) << TYPE(I_BRIDGE) << TYPE(I_TERMNL) << TYPE(I_BRIDGE) << TYPE(I_TERMNL) << TYPE(SLCONS) << TYPE(I_SLCONS)
<< TYPE(SLCONS) << TYPE(I_SLCONS) << TYPE(PONTON) << TYPE(I_PONTON) << TYPE(PONTON) << TYPE(I_PONTON) << TYPE(HULKES) << TYPE(I_HULKES)
<< TYPE(HULKES) << TYPE(I_HULKES) << TYPE(FLODOC) << TYPE(I_FLODOC) << TYPE(FLODOC) << TYPE(I_FLODOC) << TYPE(DRYDOC) << TYPE(DAMCON)
<< TYPE(DRYDOC) << TYPE(DAMCON) << TYPE(PYLONS) << TYPE(MORFAC) << TYPE(PYLONS) << TYPE(MORFAC) << TYPE(GATCON) << TYPE(I_GATCON)
<< TYPE(GATCON) << TYPE(I_GATCON) << TYPE(DMPGRD) << TYPE(TSEZNE) << TYPE(DMPGRD) << TYPE(TSEZNE) << TYPE(OBSTRN) << TYPE(UWTROC)
<< TYPE(OBSTRN) << TYPE(UWTROC) << TYPE(DWRTPT) << SUBTYPE(ACHARE, 1) << TYPE(DWRTPT) << SUBTYPE(ACHARE, 1) << SUBTYPE(I_ACHARE, 1)
<< SUBTYPE(I_ACHARE, 1) << SUBTYPE(RESARE, 9) << SUBTYPE(RESARE, 2) << SUBTYPE(RESARE, 9) << SUBTYPE(RESARE, 2) << SUBTYPE(I_RESARE, 2)
<< SUBTYPE(I_RESARE, 2) << TYPE(PRCARE); << TYPE(PRCARE);
} }
void Style::defaultLineStyle() void Style::defaultLineStyle()
@ -153,7 +149,6 @@ void Style::defaultLineStyle()
_lines[TYPE(CONVYR)] = Line(QImage(":/marine/conveyor-line.png")); _lines[TYPE(CONVYR)] = Line(QImage(":/marine/conveyor-line.png"));
_lines[TYPE(PIPOHD)] = Line(QImage(":/marine/pipeline-overhead.png")); _lines[TYPE(PIPOHD)] = Line(QImage(":/marine/pipeline-overhead.png"));
_lines[TYPE(I_PIPOHD)] = Line(QImage(":/marine/pipeline-overhead.png")); _lines[TYPE(I_PIPOHD)] = Line(QImage(":/marine/pipeline-overhead.png"));
_lines[TYPE(CANALS)] = Line(QPen(QColor("#9fc4e1"), 2));
} }
void Style::defaultPointStyle() void Style::defaultPointStyle()
@ -178,7 +173,6 @@ void Style::defaultPointStyle()
_points[TYPE(BCNSAW)] = Point(QImage(":/marine/beacon.png"), Small); _points[TYPE(BCNSAW)] = Point(QImage(":/marine/beacon.png"), Small);
_points[TYPE(BCNSPP)] = Point(QImage(":/marine/beacon.png"), Small); _points[TYPE(BCNSPP)] = Point(QImage(":/marine/beacon.png"), Small);
_points[SUBTYPE(LNDMRK, 3)] = Point(QImage(":/marine/chimney.png")); _points[SUBTYPE(LNDMRK, 3)] = Point(QImage(":/marine/chimney.png"));
_points[SUBTYPE(LNDMRK, 9)] = Point(QImage(":/marine/monument.png"));
_points[SUBTYPE(LNDMRK, 20)] = Point(QImage(":/marine/church.png")); _points[SUBTYPE(LNDMRK, 20)] = Point(QImage(":/marine/church.png"));
_points[SUBTYPE(LNDMRK, 17)] = Point(QImage(":/marine/tower.png")); _points[SUBTYPE(LNDMRK, 17)] = Point(QImage(":/marine/tower.png"));
_points[TYPE(LNDELV)] = Point(QImage(":/marine/triangulation-point.png")); _points[TYPE(LNDELV)] = Point(QImage(":/marine/triangulation-point.png"));
@ -215,10 +209,6 @@ void Style::defaultPointStyle()
_points[SUBTYPE(I_DISMAR, 1)].setTextColor(QColor("#ffffff")); _points[SUBTYPE(I_DISMAR, 1)].setTextColor(QColor("#ffffff"));
_points[SUBTYPE(I_DISMAR, 1)].setTextFontSize(Small); _points[SUBTYPE(I_DISMAR, 1)].setTextFontSize(Small);
_points[TYPE(CGUSTA)] = Point(QImage(":/marine/coast-guard.png")); _points[TYPE(CGUSTA)] = Point(QImage(":/marine/coast-guard.png"));
_points[TYPE(RDOSTA)] = Point(QImage(":/marine/radio.png"));
_points[TYPE(RADSTA)] = Point(QImage(":/marine/radar.png"));
_points[TYPE(RTPBCN)] = Point(QImage(":/marine/radar-transponder.png"));
_points[TYPE(SILTNK)] = Point(QImage(":/marine/silo.png"));
} }
Style::Style() Style::Style()