2013-05-17 08:14:10 -03:00
|
|
|
#ifndef GLOBE_H
|
|
|
|
#define GLOBE_H
|
|
|
|
|
|
|
|
#include <marble/MarbleWidget.h>
|
2013-05-17 16:12:55 -03:00
|
|
|
#include <marble/GeoDataCoordinates.h>
|
|
|
|
|
2013-05-17 14:09:10 -03:00
|
|
|
#include <QHash>
|
2013-05-17 08:14:10 -03:00
|
|
|
|
2013-05-17 21:58:49 -03:00
|
|
|
class KMessageWidget;
|
2013-05-17 16:12:55 -03:00
|
|
|
using namespace Marble;
|
|
|
|
struct dive;
|
|
|
|
|
|
|
|
class GlobeGPS : public MarbleWidget{
|
2013-05-17 08:14:10 -03:00
|
|
|
Q_OBJECT
|
2013-05-17 16:12:55 -03:00
|
|
|
void prepareForGetDiveCoordinates(struct dive* dive);
|
2013-05-17 08:14:10 -03:00
|
|
|
public:
|
2013-05-17 16:12:55 -03:00
|
|
|
using MarbleWidget::centerOn;
|
2013-05-17 08:14:10 -03:00
|
|
|
GlobeGPS(QWidget *parent);
|
2013-05-17 13:28:02 -03:00
|
|
|
void reload();
|
|
|
|
void centerOn(struct dive* dive);
|
2013-05-17 13:30:47 -03:00
|
|
|
|
2013-05-17 16:12:55 -03:00
|
|
|
protected:
|
|
|
|
virtual void mousePressEvent(QMouseEvent* event);
|
|
|
|
|
2013-05-17 13:28:02 -03:00
|
|
|
private:
|
2013-05-17 16:12:55 -03:00
|
|
|
GeoDataDocument *loadedDives;
|
2013-05-17 14:09:10 -03:00
|
|
|
QStringList diveLocations;
|
2013-05-17 16:12:55 -03:00
|
|
|
struct dive* editingDiveCoords;
|
2013-05-17 21:58:49 -03:00
|
|
|
KMessageWidget* messageWidget;
|
2013-05-17 16:12:55 -03:00
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
void changeDiveGeoPosition(qreal lon,qreal lat,GeoDataCoordinates::Unit);
|
2013-05-17 21:58:49 -03:00
|
|
|
void setMessageWidget(KMessageWidget* globeMessage);
|
2013-05-17 16:12:55 -03:00
|
|
|
|
2013-05-17 08:14:10 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|