2013-04-14 03:44:02 +00:00
|
|
|
/*
|
|
|
|
* maintab.h
|
|
|
|
*
|
|
|
|
* header file for the main tab of Subsurface
|
|
|
|
*
|
|
|
|
*/
|
2013-04-07 22:20:43 +00:00
|
|
|
#ifndef MAINTAB_H
|
|
|
|
#define MAINTAB_H
|
|
|
|
|
|
|
|
#include <QTabWidget>
|
2013-04-13 13:17:59 +00:00
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
#include "models.h"
|
2013-04-07 22:20:43 +00:00
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class MainTab;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainTab : public QTabWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
MainTab(QWidget *parent);
|
2013-04-13 13:17:59 +00:00
|
|
|
void clearStats();
|
|
|
|
void clearInfo();
|
|
|
|
void clearEquipment();
|
|
|
|
void reload();
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
void on_addCylinder_clicked();
|
|
|
|
void on_editCylinder_clicked();
|
|
|
|
void on_delCylinder_clicked();
|
|
|
|
|
2013-04-07 22:20:43 +00:00
|
|
|
private:
|
|
|
|
Ui::MainTab *ui;
|
2013-04-13 13:17:59 +00:00
|
|
|
WeightModel *weightModel;
|
|
|
|
CylindersModel *cylindersModel;
|
2013-04-07 22:20:43 +00:00
|
|
|
};
|
|
|
|
|
2013-04-13 13:17:59 +00:00
|
|
|
#endif
|