summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-17 13:28:02 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-17 13:28:02 -0300
commit9038b3aa6e89a1015d8dd50d772c995b2997fd1a (patch)
treee466d93be42e038f2829ef20f4eb8402fb139590 /qt-ui/globe.h
parent4098922b553c8a412b457a3b6fabbbd936317a65 (diff)
downloadsubsurface-9038b3aa6e89a1015d8dd50d772c995b2997fd1a.tar.gz
Added real support for the marble widget
The marble widget now shows the dive locations and also will center on the dive that the user clicked in the dive list. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/globe.h')
-rw-r--r--qt-ui/globe.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/qt-ui/globe.h b/qt-ui/globe.h
index bdf40fb1a..8e8b9bec1 100644
--- a/qt-ui/globe.h
+++ b/qt-ui/globe.h
@@ -3,11 +3,19 @@
#include <marble/MarbleWidget.h>
+namespace Marble{
+ class GeoDataDocument;
+}
class GlobeGPS : public Marble::MarbleWidget{
Q_OBJECT
public:
+ using Marble::MarbleWidget::centerOn;
GlobeGPS(QWidget *parent);
-
+ void reload();
+ void centerOn(struct dive* dive);
+
+private:
+ Marble::GeoDataDocument *loadedDives;
};
#endif