2013-06-07 14:43:45 +00:00
|
|
|
#ifndef DIVECOMPUTERMANAGEMENTDIALOG_H
|
|
|
|
#define DIVECOMPUTERMANAGEMENTDIALOG_H
|
|
|
|
#include <QDialog>
|
2013-10-03 18:54:24 +00:00
|
|
|
#include "ui_divecomputermanagementdialog.h"
|
2013-06-07 14:43:45 +00:00
|
|
|
|
2013-06-07 18:34:27 +00:00
|
|
|
class QModelIndex;
|
2013-06-07 14:43:45 +00:00
|
|
|
class DiveComputerModel;
|
|
|
|
|
|
|
|
class DiveComputerManagementDialog : public QDialog{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2013-10-15 11:37:31 +00:00
|
|
|
static DiveComputerManagementDialog *instance();
|
2013-06-07 14:43:45 +00:00
|
|
|
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:
|
2013-10-15 11:37:31 +00:00
|
|
|
explicit DiveComputerManagementDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
|
|
|
|
Ui::DiveComputerManagementDialog ui;
|
2013-06-07 14:43:45 +00:00
|
|
|
DiveComputerModel *model;
|
|
|
|
};
|
|
|
|
|
2014-02-11 18:14:46 +00:00
|
|
|
#endif // DIVECOMPUTERMANAGEMENTDIALOG_H
|