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 <QPainter>
#include "common/rectc.h"
#include "offlinemap.h"
#include "tar.h"
#include "atlas.h"

View File

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

View File

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

View File

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

View File

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

View File

@ -5,9 +5,9 @@
#include <QString>
#include <QRectF>
#include <QColor>
#include "common/coordinates.h"
class QPainter;
class Coordinates;
class RectC;
class Map : public QObject
@ -15,7 +15,7 @@ class Map : public QObject
Q_OBJECT
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;

View File

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

View File

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

View File

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

View File

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