diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-17 16:12:55 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-17 16:12:55 -0300 |
commit | 56dbb7c2ff697a393f5051e2b5363bd4c0f2bb6e (patch) | |
tree | c3135142e4285c68b8b8a1f9b7fe93c51b4e91e9 /qt-ui/globe.h | |
parent | b89265c7f0de93c663435541167518188bcd4b2d (diff) | |
download | subsurface-56dbb7c2ff697a393f5051e2b5363bd4c0f2bb6e.tar.gz |
Added the possibility to change the coordinates of a dive.
Added the possibility to change the coordinates of a dive.
it's too intrusive in the moment, but it was a proof
of concept. so I'll commit as is and try to find a better
way to warn the user what's going on in the future, using
something less terrible than a popup exploding in his face.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/globe.h')
-rw-r--r-- | qt-ui/globe.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/qt-ui/globe.h b/qt-ui/globe.h index e89c9b777..5f207a502 100644 --- a/qt-ui/globe.h +++ b/qt-ui/globe.h @@ -2,23 +2,33 @@ #define GLOBE_H #include <marble/MarbleWidget.h> +#include <marble/GeoDataCoordinates.h> + #include <QHash> -namespace Marble{ - class GeoDataDocument; -} -class GlobeGPS : public Marble::MarbleWidget{ +using namespace Marble; +struct dive; + +class GlobeGPS : public MarbleWidget{ Q_OBJECT + void prepareForGetDiveCoordinates(struct dive* dive); public: - using Marble::MarbleWidget::centerOn; + using MarbleWidget::centerOn; GlobeGPS(QWidget *parent); void reload(); void centerOn(struct dive* dive); +protected: + virtual void mousePressEvent(QMouseEvent* event); + private: - Marble::GeoDataDocument *loadedDives; + GeoDataDocument *loadedDives; QStringList diveLocations; - + struct dive* editingDiveCoords; + +public Q_SLOTS: + void changeDiveGeoPosition(qreal lon,qreal lat,GeoDataCoordinates::Unit); + }; #endif |