summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-13 21:45:54 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-13 21:56:22 +0900
commitd7fb6853a30d430d73df9d1b076ea194ddeacac2 (patch)
treea2f33260f6d8bff8c30a8c5cdc7944682aa1fdce /qt-ui/diveplanner.h
parentaa76d3592361ec7b07a8fc15fd466bcd392629ec (diff)
downloadsubsurface-d7fb6853a30d430d73df9d1b076ea194ddeacac2.tar.gz
Connect changes in the tanks with the dive that is being added
- you can no longer delete a tank when its gas is in use - therefore you can no longer delete the last tank - when you change the gas mix of a tank, the corresponding segments in the dive change as well - when changing gas for a segment the correct available gases are offered Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index f22112d85..fcb679f89 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -34,6 +34,9 @@ public:
void createSimpleDive();
void clear();
Mode currentMode() const;
+ void tanksUpdated();
+ void rememberTanks();
+ bool tankInUse(int o2, int he);
/**
* @return the row number.
*/
@@ -42,6 +45,8 @@ public:
int size();
struct diveplan getDiveplan();
QStringList &getGasList();
+ QList<QPair<int, int> > collectGases(dive *d);
+
public slots:
int addStop(int meters = 0, int minutes = 0, int o2 = 0, int he = 0, int ccpoint = 0 );
void addCylinder_clicked();
@@ -73,6 +78,7 @@ private:
void deleteTemporaryPlan(struct divedatapoint *dp);
QVector<sample> backupSamples; // For editing added dives.
struct dive *stagingDive;
+ QList<QPair<int, int> > oldGases;
};
class Button : public QObject, public QGraphicsRectItem {