mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-25 12:15:54 +01:00
Martin Tůma
97e12d809f
Including several map providers refactoring/rewrite especial KML, JNX and TrekBuddy atlases.
36 lines
661 B
C++
36 lines
661 B
C++
#ifndef EMPTYMAP_H
|
|
#define EMPTYMAP_H
|
|
|
|
#include "osm.h"
|
|
#include "map.h"
|
|
|
|
class EmptyMap : public Map
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
EmptyMap(QObject *parent = 0);
|
|
|
|
QString name() const {return QString();}
|
|
|
|
QRectF bounds();
|
|
RectC llBounds(const Projection &) {return OSM::BOUNDS;}
|
|
qreal resolution(const QRectF &rect);
|
|
|
|
int zoom() const {return _zoom;}
|
|
void setZoom(int zoom) {_zoom = zoom;}
|
|
int zoomFit(const QSize &size, const RectC &rect);
|
|
int zoomIn();
|
|
int zoomOut();
|
|
|
|
QPointF ll2xy(const Coordinates &c);
|
|
Coordinates xy2ll(const QPointF &p);
|
|
|
|
void draw(QPainter *painter, const QRectF &rect, Flags flags);
|
|
|
|
private:
|
|
int _zoom;
|
|
};
|
|
|
|
#endif // EMPTYMAP_H
|