diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-20 18:25:03 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-20 18:25:03 -0300 |
commit | 8fcd465a65546efd6dd90c6e4d29ff4e93d7dbe8 (patch) | |
tree | befcc9980eaf63efdf8454b1b0a5ce06e820edda /qt-ui/diveplanner.h | |
parent | 0539a5fab67a83da223425e6fcbf2d8775be90e3 (diff) | |
download | subsurface-8fcd465a65546efd6dd90c6e4d29ff4e93d7dbe8.tar.gz |
Make skeleton of 'create_deco_stop'.
This is a skeleton of 'create_deco_stop' plus a bit of
code cleanup. I'v commented the create_deco_stop so that
the other developers can help me a bit here - since I don't
know too well the internals of subsurface. In the original
GTK code - a new dive was created every time a user changed
something on the dive, I don't know if this will be needed,
I jusst need two things: the correct time of dive calculated
by the app, and the points to put the decompression lines.
The usability of the widget right now is 'ok', nothing to
be proud of, it's ugly as hell too, and the Rules are in
the wrong position ( they are 'inside' the area where
the lines are being drawn, but htis is easily fixable. )
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 0e7f6f4b2..ac0d7ebd9 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -7,12 +7,8 @@ class DiveHandler : public QGraphicsEllipseItem{ public: DiveHandler(); - void setTime(qreal t); - void setDepth(qreal d); - QGraphicsLineItem *from; QGraphicsLineItem *to; -private: qreal time; qreal depth; }; @@ -26,6 +22,7 @@ public: void setOrientation(Qt::Orientation orientation); void updateTicks(); qreal valueAt(const QPointF& p); + qreal posAtValue(qreal value); private: Qt::Orientation orientation; |