diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-11 17:09:19 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-11 17:09:19 +0900 |
commit | 0a8892379d20c0ee81dd4339019b5d4b1468194e (patch) | |
tree | 03729a25cb5b14593e70e1784c43bcc8b439ed29 /qt-ui/diveplanner.h | |
parent | 9ead871d6456f8f19f6f0fe2413513ef4449253d (diff) | |
download | subsurface-0a8892379d20c0ee81dd4339019b5d4b1468194e.tar.gz |
Connect cylinders entered in planner with the gases available
Now the gases for which we have cylinders are offered in the gas selection
list and correctly recognized and added for the plan.
Still tons of work to be done to make this work the way it is designed,
but we are getting closer.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index ce89d1df1..8a3d6635f 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -14,7 +14,7 @@ class QStringListModel; class QModelIndex; // Return a Model containing the air types. -QStringListModel *airTypes(); +QStringListModel *gasSelectionModel(); class DivePlannerPointsModel : public QAbstractTableModel{ Q_OBJECT @@ -41,6 +41,7 @@ public: divedatapoint at(int row); int size(); struct diveplan getDiveplan(); + QStringList &getGasList(); public slots: int addStop(int meters = 0, int minutes = 0, int o2 = 0, int he = 0, int ccpoint = 0 ); void addCylinder_clicked(); |