1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-31 09:05:14 +01:00

Cosmetics

This commit is contained in:
Martin Tůma 2017-08-10 08:58:21 +02:00
parent dcedfe1e9f
commit c708fa35fd
3 changed files with 12 additions and 12 deletions

View File

@ -15,28 +15,28 @@ public:
int errorLine() const {return 0;} int errorLine() const {return 0;}
private: private:
typedef struct { struct FileHeader {
quint8 headerSize; quint8 headerSize;
quint8 protocolVersion; quint8 protocolVersion;
quint16 profileVersion; quint16 profileVersion;
quint32 dataSize; quint32 dataSize;
quint32 magic; quint32 magic;
} FileHeader; };
typedef struct { struct Field {
quint8 id; quint8 id;
quint8 size; quint8 size;
quint8 type; quint8 type;
} Field; };
typedef struct { struct MessageDefinition {
quint8 endian; quint8 endian;
quint16 globalId; quint16 globalId;
quint8 numFields; quint8 numFields;
Field *fields; Field *fields;
quint8 numDevFields; quint8 numDevFields;
Field *devFields; Field *devFields;
} MessageDefinition; };
void warning(const char *text) const; void warning(const char *text) const;

View File

@ -53,13 +53,13 @@ public:
{return _transform.map(p);} {return _transform.map(p);}
private: private:
typedef struct { struct ReferencePoint {
QPoint xy; QPoint xy;
Coordinates ll; Coordinates ll;
QPointF pp; QPointF pp;
} ReferencePoint; };
typedef struct { struct ProjectionSetup {
double latitudeOrigin; double latitudeOrigin;
double longitudeOrigin; double longitudeOrigin;
double scale; double scale;
@ -68,7 +68,7 @@ private:
double standardParallel1; double standardParallel1;
double standardParallel2; double standardParallel2;
int zone; int zone;
} ProjectionSetup; };
int parse(QIODevice &device, QList<ReferencePoint> &points, int parse(QIODevice &device, QList<ReferencePoint> &points,
QString &projection, ProjectionSetup &setup, QString &datum); QString &projection, ProjectionSetup &setup, QString &datum);

View File

@ -38,11 +38,11 @@ signals:
private: private:
typedef RTree<size_t, qreal, 2> POITree; typedef RTree<size_t, qreal, 2> POITree;
typedef struct { struct FileIndex {
int start; int start;
int end; int end;
bool enabled; bool enabled;
} FileIndex; };
POITree _tree; POITree _tree;
QVector<Waypoint> _data; QVector<Waypoint> _data;