2013-05-24 18:19:48 +00:00
|
|
|
#ifndef PREFERENCES_DIALOG_H
|
|
|
|
#define PREFERENCES_DIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2013-05-28 18:21:27 +00:00
|
|
|
#include "../dive.h"
|
|
|
|
#include "../pref.h"
|
2013-05-24 18:19:48 +00:00
|
|
|
|
|
|
|
namespace Ui{
|
|
|
|
class PreferencesDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class PreferencesDialog :public QDialog{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
static PreferencesDialog* instance();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void settingsChanged();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void syncSettings();
|
2013-05-28 18:21:27 +00:00
|
|
|
void resetSettings();
|
|
|
|
|
2013-05-24 18:19:48 +00:00
|
|
|
private:
|
|
|
|
explicit PreferencesDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
|
2013-05-28 18:21:27 +00:00
|
|
|
Ui::PreferencesDialog* ui;
|
|
|
|
struct preferences oldPrefs;
|
2013-05-24 18:19:48 +00:00
|
|
|
};
|
|
|
|
|
2013-05-28 18:21:27 +00:00
|
|
|
#endif
|