aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-12-02 15:06:19 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-02 09:44:55 -0800
commitd26f109fba9d5f6f3a78b907334affacce4ffaeb (patch)
tree18a184fa64db42e850784e2c9ca2fdc81a0b763d /qt-ui/globe.h
parentbbc022ba181b446011427235ae19a50d743c7cc7 (diff)
downloadsubsurface-d26f109fba9d5f6f3a78b907334affacce4ffaeb.tar.gz
Fixes Setting the dive-location via the map.
This patch adds a context menu to set the dive location via the globe, being the dive with a coordinate or not. It also fixes setting the dive location on edit mode. Fixes: #315 Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.h')
-rw-r--r--qt-ui/globe.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/qt-ui/globe.h b/qt-ui/globe.h
index b9cd398e3..e057895ff 100644
--- a/qt-ui/globe.h
+++ b/qt-ui/globe.h
@@ -19,23 +19,24 @@ public:
void reload();
void repopulateLabels();
void centerOn(struct dive* dive);
- void diveEditMode();
bool eventFilter(QObject*, QEvent*);
protected:
/* reimp */ void resizeEvent(QResizeEvent *event);
/* reimp */ void mousePressEvent(QMouseEvent* event);
+ /* reimp */ void contextMenuEvent(QContextMenuEvent*);
private:
- void prepareForGetDiveCoordinates(struct dive* dive);
GeoDataDocument *loadedDives;
- struct dive* editingDiveCoords;
KMessageWidget* messageWidget;
QTimer *fixZoomTimer;
int currentZoomLevel;
+ bool editingDiveLocation;
public slots:
void changeDiveGeoPosition(qreal lon,qreal lat,GeoDataCoordinates::Unit);
void mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit);
void fixZoom();
+ void prepareForGetDiveCoordinates();
+
};
#endif