summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-16 12:11:06 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-16 12:11:06 -0300
commitfad55b30471b821950a9439e38daa9ca5b89ed64 (patch)
treee1cf9f3bec53447bfbd00500bfc87dabae494fe1 /qt-ui/diveplanner.h
parentbfe1ea0cb23c0f072caae0ec61b072280fe2b1d7 (diff)
downloadsubsurface-fad55b30471b821950a9439e38daa9ca5b89ed64.tar.gz
Move the creation of the dive plan to the model
The dive plan was bein created on the Profile, this While this worked out, it created a bit of spaggethi code, so now the model will take control of *everything* on the planner. I tested it quite a bit and doesn't seems to have appeared a regression, wich is good. Now that a dive plan is bein created, I can just save it. :) Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 05191ec85..ea528068a 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -51,6 +51,8 @@ public slots:
void createPlan();
void remove(const QModelIndex& index);
void cancelPlan();
+ void createTemporaryPlan();
+ void deleteTemporaryPlan();
signals:
void planCreated();
@@ -60,6 +62,8 @@ private:
explicit DivePlannerPointsModel(QObject* parent = 0);
struct diveplan diveplan;
QVector<divedatapoint> divepoints;
+ struct dive *tempDive;
+ void deleteTemporaryPlan(struct divedatapoint *dp);
};
class Button : public QObject, public QGraphicsRectItem {