summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-22 11:01:18 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-22 11:01:18 -0700
commit9ba7b12767b580ed339231ee3469f35a3588a37a (patch)
treef98449036ff145a196c7431e64a0a9d8c60c7241 /qt-ui/diveplanner.h
parent799b56a1f39fa09b3b6160465199e5dd1780df31 (diff)
downloadsubsurface-9ba7b12767b580ed339231ee3469f35a3588a37a.tar.gz
Prevent nodes in planner / dive add profile edit to run past each other
I always disliked the fact that when you moved the handlers around you could just 'run over' the neighbors. This also (as a somewhat intended side effect) prevents vertical descents and ascents). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 81825c765..e9fe2051a 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -42,6 +42,7 @@ public:
*/
void editStop(int row, divedatapoint newData );
divedatapoint at(int row);
+ int size();
struct diveplan getDiveplan();
public slots:
int addStop(int meters = 0, int minutes = 0,const QString& gas = QString(), int ccpoint = 0 );