diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-01 15:37:41 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-01 16:02:34 -0700 |
commit | f45618f0c7ce5af85e0f69aab49ef20a1663bca1 (patch) | |
tree | 839eab034e60bd663e61810e1d4c84d1ac7b85ca /qt-ui/addweightsystemdialog.h | |
parent | 482bea84c2f218f515b3b16556197379623a8028 (diff) | |
download | subsurface-f45618f0c7ce5af85e0f69aab49ef20a1663bca1.tar.gz |
Create Add Weightsystem dialog
My first attempt to create a Qt dialog and to hook it up with the program.
Unsurprisingly this doesn't quite work as expected (i.e., the values I
enter aren't populated in the model), but it's a start...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/addweightsystemdialog.h')
-rw-r--r-- | qt-ui/addweightsystemdialog.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/qt-ui/addweightsystemdialog.h b/qt-ui/addweightsystemdialog.h new file mode 100644 index 000000000..e99dc08d8 --- /dev/null +++ b/qt-ui/addweightsystemdialog.h @@ -0,0 +1,30 @@ +/* + * addweightsystemdialog.h + * + * header file for the add weightsystem dialog of Subsurface + * + */ +#ifndef ADDWEIGHTSYSTEMDIALOG_H +#define ADDWEIGHTSYSTEMDIALOG_H + +#include <QDialog> +#include "../dive.h" + +namespace Ui{ + class AddWeightsystemDialog; +} + +class AddWeightsystemDialog : public QDialog{ + Q_OBJECT +public: + explicit AddWeightsystemDialog(QWidget* parent = 0); + void setWeightsystem(weightsystem_t *ws); + void updateWeightsystem(); + +private: + Ui::AddWeightsystemDialog *ui; + weightsystem_t *currentWeightsystem; +}; + + +#endif |