summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/globe.h')
-rw-r--r--qt-ui/globe.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/qt-ui/globe.h b/qt-ui/globe.h
new file mode 100644
index 000000000..5f207a502
--- /dev/null
+++ b/qt-ui/globe.h
@@ -0,0 +1,34 @@
+#ifndef GLOBE_H
+#define GLOBE_H
+
+#include <marble/MarbleWidget.h>
+#include <marble/GeoDataCoordinates.h>
+
+#include <QHash>
+
+using namespace Marble;
+struct dive;
+
+class GlobeGPS : public MarbleWidget{
+ Q_OBJECT
+ void prepareForGetDiveCoordinates(struct dive* dive);
+public:
+ using MarbleWidget::centerOn;
+ GlobeGPS(QWidget *parent);
+ void reload();
+ void centerOn(struct dive* dive);
+
+protected:
+ virtual void mousePressEvent(QMouseEvent* event);
+
+private:
+ GeoDataDocument *loadedDives;
+ QStringList diveLocations;
+ struct dive* editingDiveCoords;
+
+public Q_SLOTS:
+ void changeDiveGeoPosition(qreal lon,qreal lat,GeoDataCoordinates::Unit);
+
+};
+
+#endif