mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
115ee47bfc
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>
33 lines
542 B
C++
33 lines
542 B
C++
/*
|
|
* addcylinderdialog.h
|
|
*
|
|
* header file for the add cylinder dialog of Subsurface
|
|
*
|
|
*/
|
|
#ifndef ADDCYLINDERDIALOG_H
|
|
#define ADDCYLINDERDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include "../dive.h"
|
|
|
|
namespace Ui{
|
|
class AddCylinderDialog;
|
|
}
|
|
|
|
class TankInfoModel;
|
|
|
|
class AddCylinderDialog : public QDialog{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AddCylinderDialog(QWidget* parent = 0);
|
|
void setCylinder(cylinder_t *cylinder);
|
|
void updateCylinder();
|
|
|
|
private:
|
|
Ui::AddCylinderDialog *ui;
|
|
cylinder_t *currentCylinder;
|
|
TankInfoModel *tankInfoModel;
|
|
};
|
|
|
|
|
|
#endif
|