2013-05-17 11:14:10 +00:00
|
|
|
#ifndef GLOBE_H
|
|
|
|
#define GLOBE_H
|
|
|
|
|
|
|
|
#include <marble/MarbleWidget.h>
|
2013-05-17 19:12:55 +00:00
|
|
|
#include <marble/GeoDataCoordinates.h>
|
2013-05-30 00:52:31 +00:00
|
|
|
#include <marble/GeoDataDocument.h>
|
2013-05-17 19:12:55 +00:00
|
|
|
|
2013-05-17 17:09:10 +00:00
|
|
|
#include <QHash>
|
2013-05-17 11:14:10 +00:00
|
|
|
|
2013-05-18 00:58:49 +00:00
|
|
|
class KMessageWidget;
|
2013-05-17 19:12:55 +00:00
|
|
|
using namespace Marble;
|
|
|
|
struct dive;
|
|
|
|
|
|
|
|
class GlobeGPS : public MarbleWidget{
|
2013-05-17 11:14:10 +00:00
|
|
|
Q_OBJECT
|
2013-05-23 04:25:05 +00:00
|
|
|
void prepareForGetDiveCoordinates(struct dive* dive);
|
2013-05-17 11:14:10 +00:00
|
|
|
public:
|
2013-05-17 19:12:55 +00:00
|
|
|
using MarbleWidget::centerOn;
|
2013-05-17 11:14:10 +00:00
|
|
|
GlobeGPS(QWidget *parent);
|
2013-05-17 16:28:02 +00:00
|
|
|
void reload();
|
|
|
|
void centerOn(struct dive* dive);
|
2013-05-24 19:15:49 +00:00
|
|
|
void resizeEvent(QResizeEvent *event);
|
2013-05-17 16:30:47 +00:00
|
|
|
|
2013-05-17 19:12:55 +00:00
|
|
|
protected:
|
2013-05-23 04:25:05 +00:00
|
|
|
virtual void mousePressEvent(QMouseEvent* event);
|
2013-05-17 19:12:55 +00:00
|
|
|
|
2013-05-17 16:28:02 +00:00
|
|
|
private:
|
2013-05-17 19:12:55 +00:00
|
|
|
GeoDataDocument *loadedDives;
|
2013-05-23 04:25:05 +00:00
|
|
|
struct dive* editingDiveCoords;
|
2013-05-18 00:58:49 +00:00
|
|
|
KMessageWidget* messageWidget;
|
2013-05-17 19:12:55 +00:00
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
void changeDiveGeoPosition(qreal lon,qreal lat,GeoDataCoordinates::Unit);
|
2013-06-05 05:44:12 +00:00
|
|
|
void mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit);
|
2013-05-17 11:14:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|