summaryrefslogtreecommitdiffstats
path: root/qt-ui/addcylinderdialog.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-04-15 15:04:35 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-15 17:34:44 -0700
commit115ee47bfc0aa8ca2b2bdaca047ccf595bbb7120 (patch)
treec729f128c39fcb71a751b0727ce5bf07a83d2db1 /qt-ui/addcylinderdialog.h
parentdb180bf46e28aea3cc7dad2a695b1e0fa1b20e1e (diff)
downloadsubsurface-115ee47bfc0aa8ca2b2bdaca047ccf595bbb7120.tar.gz
Added the code that will load and populate the Tank Info
Added the code that will load and populate the Tank Info ComboBox that`s used by the user to select the Cylinder description. Code curerntly implements more than the GTK version since the GTK version of it was a plain-list, this one is a table based model that can be used in ListViews ( like we use now in the ComboBox ) but also in TableViews ( if there`s a need in the future to see everything that`s catalogued in the Tank Info struct. ) Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/addcylinderdialog.h')
-rw-r--r--qt-ui/addcylinderdialog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/addcylinderdialog.h b/qt-ui/addcylinderdialog.h
index 652f7b362..fc68faa72 100644
--- a/qt-ui/addcylinderdialog.h
+++ b/qt-ui/addcylinderdialog.h
@@ -14,6 +14,8 @@ namespace Ui{
class AddCylinderDialog;
}
+class TankInfoModel;
+
class AddCylinderDialog : public QDialog{
Q_OBJECT
public:
@@ -24,6 +26,7 @@ public:
private:
Ui::AddCylinderDialog *ui;
cylinder_t *currentCylinder;
+ TankInfoModel *tankInfoModel;
};