2017-04-27 18:26:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
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"
|
2018-06-15 19:30:49 +00:00
|
|
|
#include "qt-models/divecomputermodel.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
|
|
|
|
2014-02-28 04:09:57 +00:00
|
|
|
class DiveComputerManagementDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
2013-06-07 14:43:45 +00:00
|
|
|
|
|
|
|
public:
|
2013-10-15 11:37:31 +00:00
|
|
|
static DiveComputerManagementDialog *instance();
|
2013-06-17 22:58:26 +00:00
|
|
|
void init();
|
2013-06-07 18:34:27 +00:00
|
|
|
|
2014-02-28 04:09:57 +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:
|
2014-02-28 04:09:57 +00:00
|
|
|
explicit DiveComputerManagementDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
2013-10-15 11:37:31 +00:00
|
|
|
Ui::DiveComputerManagementDialog ui;
|
2018-06-15 19:30:49 +00:00
|
|
|
QScopedPointer<DiveComputerModel> model;
|
2013-06-07 14:43:45 +00:00
|
|
|
};
|
|
|
|
|
2014-02-11 18:14:46 +00:00
|
|
|
#endif // DIVECOMPUTERMANAGEMENTDIALOG_H
|