2013-06-07 14:43:45 +00:00
|
|
|
#ifndef DIVECOMPUTERMANAGEMENTDIALOG_H
|
|
|
|
#define DIVECOMPUTERMANAGEMENTDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
|
2013-06-07 18:34:27 +00:00
|
|
|
class QModelIndex;
|
2013-06-07 14:43:45 +00:00
|
|
|
class DiveComputerModel;
|
|
|
|
namespace Ui{
|
|
|
|
class DiveComputerManagementDialog;
|
|
|
|
};
|
|
|
|
|
|
|
|
class DiveComputerManagementDialog : public QDialog{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
static DiveComputerManagementDialog *instance();
|
|
|
|
void update();
|
2013-06-17 22:58:26 +00:00
|
|
|
void init();
|
2013-06-07 18:34:27 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void tryRemove(const QModelIndex& index);
|
2013-06-17 22:58:26 +00:00
|
|
|
void accept();
|
|
|
|
void reject();
|
2013-06-07 18:34:27 +00:00
|
|
|
|
2013-06-07 14:43:45 +00:00
|
|
|
private:
|
|
|
|
explicit DiveComputerManagementDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
|
|
|
|
Ui::DiveComputerManagementDialog *ui;
|
|
|
|
DiveComputerModel *model;
|
|
|
|
};
|
|
|
|
|
2013-06-17 22:58:26 +00:00
|
|
|
#endif
|