1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-19 04:02:09 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2018-03-06 19:28:07 +01:00
parent e4d8af2040
commit d6746bc444
10 changed files with 12 additions and 18 deletions

View File

@ -2,6 +2,7 @@
#include <QtAlgorithms> #include <QtAlgorithms>
#include <QPainter> #include <QPainter>
#include "common/rectc.h" #include "common/rectc.h"
#include "offlinemap.h"
#include "tar.h" #include "tar.h"
#include "atlas.h" #include "atlas.h"

View File

@ -1,10 +1,9 @@
#ifndef ATLAS_H #ifndef ATLAS_H
#define ATLAS_H #define ATLAS_H
#include <QFileInfoList>
#include "map.h" #include "map.h"
#include "offlinemap.h"
class OfflineMap;
class Atlas : public Map class Atlas : public Map
{ {

View File

@ -1,7 +1,6 @@
#ifndef EMPTYMAP_H #ifndef EMPTYMAP_H
#define EMPTYMAP_H #define EMPTYMAP_H
#include "common/coordinates.h"
#include "map.h" #include "map.h"
class EmptyMap : public Map class EmptyMap : public Map

View File

@ -1,7 +1,7 @@
#include <QFileInfo> #include <QFileInfo>
#include <QtEndian> #include <QtEndian>
#include "pcs.h" #include "pcs.h"
#include "latlon.h" #include "tifffile.h"
#include "geotiff.h" #include "geotiff.h"

View File

@ -1,14 +1,14 @@
#ifndef GEOTIFF_H #ifndef GEOTIFF_H
#define GEOTIFF_H #define GEOTIFF_H
#include <QTransform>
#include <QFile>
#include <QMap> #include <QMap>
#include "gcs.h" #include <QList>
#include "projection.h" #include <QTransform>
#include "tifffile.h"
#include "transform.h" #include "transform.h"
#include "linearunits.h" #include "projection.h"
class TIFFFile;
class GCS;
class GeoTIFF class GeoTIFF
{ {

View File

@ -5,9 +5,9 @@
#include <QString> #include <QString>
#include <QRectF> #include <QRectF>
#include <QColor> #include <QColor>
#include "common/coordinates.h"
class QPainter; class QPainter;
class Coordinates;
class RectC; class RectC;
class Map : public QObject class Map : public QObject
@ -15,7 +15,7 @@ class Map : public QObject
Q_OBJECT Q_OBJECT
public: public:
Map(QObject *parent = 0) : QObject(parent) {_backgroundColor = Qt::white;} Map(QObject *parent = 0) : QObject(parent), _backgroundColor(Qt::white) {}
virtual const QString &name() const = 0; virtual const QString &name() const = 0;

View File

@ -3,13 +3,10 @@
#include <QTransform> #include <QTransform>
#include "projection.h" #include "projection.h"
#include "transform.h"
#include "linearunits.h"
#include "map.h" #include "map.h"
#include "tar.h" #include "tar.h"
#include "ozf.h" #include "ozf.h"
class QIODevice;
class QImage; class QImage;
class OfflineMap : public Map class OfflineMap : public Map

View File

@ -1,7 +1,6 @@
#ifndef ONLINEMAP_H #ifndef ONLINEMAP_H
#define ONLINEMAP_H #define ONLINEMAP_H
#include "common/coordinates.h"
#include "common/range.h" #include "common/range.h"
#include "common/rectc.h" #include "common/rectc.h"
#include "map.h" #include "map.h"

View File

@ -40,7 +40,6 @@ private:
LinearUnits _units; LinearUnits _units;
static QList<Entry> _pcss; static QList<Entry> _pcss;
static GCS _nullGCS;
}; };
#ifndef QT_NO_DEBUG #ifndef QT_NO_DEBUG

View File

@ -7,7 +7,7 @@
class TIFFFile : public QFile class TIFFFile : public QFile
{ {
public: public:
TIFFFile() : QFile(), _be(false) {} TIFFFile() : _be(false) {}
TIFFFile(const QString &path) : QFile(path), _be(false) {} TIFFFile(const QString &path) : QFile(path), _be(false) {}
bool readHeader(quint32 &ifd); bool readHeader(quint32 &ifd);