diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-10 17:33:46 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-10 17:33:46 -0300 |
commit | b4835badb6addf8385b7800c673b25789089ea84 (patch) | |
tree | f4772d2292522cd44829db41577630cfa93a6753 /qt-ui/profilegraphics.h | |
parent | 1baef83791ce1dd29b4784420dc9c34cd5ff9680 (diff) | |
download | subsurface-b4835badb6addf8385b7800c673b25789089ea84.tar.gz |
Added a 'Plan' mode and a 'Dive' mode on the profile.
Added a 'Plan' mode and a 'Dive' mode on the profile. Those modes
tell the application what can be done: Plan - the dive's dinamyc and
can be changed, 'Dive', the dive is fixed ( most probably downloaded
from a dive computer and it's readonly. ) - now I need to properly
populate stuff.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r-- | qt-ui/profilegraphics.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h index 2e4f0d596..a4d943233 100644 --- a/qt-ui/profilegraphics.h +++ b/qt-ui/profilegraphics.h @@ -68,6 +68,8 @@ class ProfileGraphicsView : public QGraphicsView { Q_OBJECT public: + enum Mode{DIVE, PLAN}; + ProfileGraphicsView(QWidget* parent = 0); void plot(struct dive *d, bool forceRedraw = FALSE); bool eventFilter(QObject* obj, QEvent* event); @@ -117,6 +119,8 @@ private: QGraphicsItem* timeMarkers; QGraphicsItem* depthMarkers; QGraphicsItem* diveComputer; + + enum Mode mode; }; #endif |