1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Compare commits

..

No commits in common. "2234245e81987db5e78fedf6d2feca1d38331464" and "c5e46957a845d807fde64177f4addc2f2e562677" have entirely different histories.

8 changed files with 4 additions and 59 deletions

View File

@ -1,4 +1,4 @@
version: 10.6.{build}
version: 10.5.{build}
configuration:
- Release

View File

@ -3,7 +3,7 @@ unix:!macx {
} else {
TARGET = GPXSee
}
VERSION = 10.6
VERSION = 10.5
QT += core \
gui \

View File

@ -155,7 +155,6 @@
<file alias="church.png">icons/IMG/marine/church.png</file>
<file alias="triangulation-point.png">icons/IMG/marine/triangulation-point.png</file>
<file alias="yacht-harbor.png">icons/IMG/marine/yacht-harbor.png</file>
<file alias="pile.png">icons/IMG/marine/pile.png</file>
</qresource>
<!-- Mapsforge rendertheme -->

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

View File

@ -37,7 +37,7 @@ Unicode true
; The name of the installer
Name "GPXSee"
; Program version
!define VERSION "10.6"
!define VERSION "10.5"
; The file to write
OutFile "GPXSee-${VERSION}_x64.exe"

View File

@ -27,11 +27,6 @@ static quint64 pointId(const QPoint &pos, quint32 type, quint32 labelPtr)
return id;
}
static double d2m(quint32 val, quint32 flags)
{
return (flags & 1) ? val / 10.0 : val;
}
RGNFile::~RGNFile()
{
delete _huffmanTable;
@ -86,48 +81,7 @@ bool RGNFile::readClassFields(Handle &hdl, SegmentType segmentType,
bottom)));
}
if (point && Style::isDepthPoint(point->type)) {
quint32 depth = 0;
quint32 units = (flags >> 3) & 3;
if (rs == 0) {
depth = flags & 0x3f;
units = (flags >> 5) & 2;
} else if (rs == 1) {
quint32 val;
if (!readUInt8(hdl, val))
return false;
depth = val | ((quint32)flags & 7) << 8;
} else if (rs < 4) {
quint32 val;
Q_ASSERT(!(flags & 4));
if (!readVUInt32(hdl, rs, val))
return false;
depth = val | ((quint32)flags & 3) << (rs * 8);
}
if (depth)
point->label = QString::number(d2m(depth, units));
}
if (point && Style::isObstructionPoint(point->type) && rs) {
quint32 val, rb = rs;
quint32 units = (flags >> 3) & 3;
if ((flags & 7) == 7) {
if (!readUInt8(hdl, val))
return false;
rb--;
}
if (!readVUInt32(hdl, rb, val))
return false;
point->label = QString::number(d2m(val, units));
}
if (point && !Style::isMarinePoint(point->type) && (flags & 1) && lbl) {
if (point && (flags & 1) && lbl) {
point->label = lbl->label(lblHdl, this, hdl, rs);
point->classLabel = true;
}

View File

@ -519,7 +519,6 @@ void Style::defaultPointStyle()
_points[0x10215] = Point(QImage(":/IMG/beacon.png"));
_points[0x10306] = Point(QImage(":/IMG/church.png"));
_points[0x1030a] = Point(QImage(":/IMG/triangulation-point.png"));
_points[0x10400] = Point(QImage(":/IMG/obstruction.png"));
_points[0x10401] = Point(QImage(":/IMG/obstruction.png"));
_points[0x10402] = Point(QImage(":/IMG/wreck.png"));
_points[0x10403] = Point(QImage(":/IMG/wreck-exposed.png"));
@ -528,7 +527,6 @@ void Style::defaultPointStyle()
_points[0x1040c] = Point(QImage(":/IMG/rock-exposed.png"));
_points[0x10701] = Point(QImage(":/IMG/anchorage.png"));
_points[0x10703] = Point(QImage(":/IMG/yacht-harbor.png"));
_points[0x10704] = Point(QImage(":/IMG/pile.png"));
_points[0x10705] = Point(QImage(":/IMG/anchoring-prohibited.png"));
}

View File

@ -119,12 +119,6 @@ public:
{return (type == TYPE(0x1e));}
static bool isRaster(quint32 type)
{return (type == 0x10613);}
static bool isDepthPoint(quint32 type)
{return (type == 0x10301);}
static bool isObstructionPoint(quint32 type)
{return (type >= 0x10400 && type <= 0x10401);}
static bool isMarinePoint(quint32 type)
{return type >= 0x10100 && type < 0x10a00;}
private:
struct Section {