mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed build with some Qt versions
+ ENC style enhancements
This commit is contained in:
parent
f8d856b7ee
commit
e8f3d028dd
@ -132,6 +132,7 @@ private:
|
||||
};
|
||||
|
||||
struct Sounding {
|
||||
Sounding() : depth(NAN) {}
|
||||
Sounding(const Coordinates &c, double depth) : c(c), depth(depth) {}
|
||||
|
||||
Coordinates c;
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef ENC_OBJECTS_H
|
||||
#define ENC_OBJECTS_H
|
||||
|
||||
#define AIRARE 2
|
||||
#define ACHBRT 3
|
||||
#define ACHARE 4
|
||||
#define BCNCAR 5
|
||||
#define BCNISD 6
|
||||
|
@ -31,14 +31,15 @@ void Style::defaultPolygonStyle()
|
||||
_polygons[TYPE(LAKARE)] = Polygon(QBrush("#9fc4e1"),
|
||||
QPen(QColor("#000000"), 1));
|
||||
_polygons[TYPE(RIVERS)] = Polygon(QBrush("#9fc4e1"));
|
||||
_polygons[TYPE(AIRARE)] = Polygon(QBrush("#aaaaaa"));
|
||||
|
||||
_drawOrder
|
||||
<< TYPE(M_COVR) << TYPE(LNDARE) << TYPE(BUISGL) << SUBTYPE(DEPARE, 0)
|
||||
<< SUBTYPE(DEPARE, 1) << SUBTYPE(DEPARE, 2) << SUBTYPE(DEPARE, 3)
|
||||
<< SUBTYPE(DEPARE, 4) << SUBTYPE(DEPARE, 5) << SUBTYPE(DEPARE, 6)
|
||||
<< TYPE(LAKARE) << TYPE(RIVERS) << TYPE(FAIRWY) << TYPE(BRIDGE)
|
||||
<< TYPE(SLCONS) << TYPE(PONTON) << TYPE(DMPGRD) << TYPE(OBSTRN)
|
||||
<< TYPE(ACHARE);
|
||||
<< TYPE(LAKARE) << TYPE(RIVERS) << TYPE(FAIRWY) << TYPE(AIRARE)
|
||||
<< TYPE(BRIDGE) << TYPE(SLCONS) << TYPE(PONTON) << TYPE(DMPGRD)
|
||||
<< TYPE(OBSTRN) << TYPE(ACHARE);
|
||||
}
|
||||
|
||||
void Style::defaultLineStyle()
|
||||
@ -89,6 +90,7 @@ void Style::defaultPointStyle()
|
||||
_points[TYPE(UWTROC)] = Point(QImage(":/IMG/rock-dangerous.png"), Small);
|
||||
_points[SUBTYPE(HRBFAC, 5)] = Point(QImage(":/IMG/yacht-harbor.png"));
|
||||
_points[TYPE(PILPNT)] = Point(QImage(":/IMG/pile.png"), Small);
|
||||
_points[TYPE(ACHBRT)] = Point(QImage(":/IMG/anchorage.png"));
|
||||
}
|
||||
|
||||
Style::Style()
|
||||
|
Loading…
Reference in New Issue
Block a user