2015-09-17 20:16:40 +00:00
|
|
|
#ifndef PREFERENCES_WIDGET_H
|
|
|
|
#define PREFERENCES_WIDGET_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include "pref.h"
|
|
|
|
|
|
|
|
class AbstractPreferencesWidget;
|
|
|
|
class QListWidget;
|
|
|
|
class QStackedWidget;
|
|
|
|
class QDialogButtonBox;
|
2015-09-17 20:53:39 +00:00
|
|
|
class QAbstractButton;
|
2015-09-17 20:16:40 +00:00
|
|
|
|
|
|
|
class PreferencesDialogV2 : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
PreferencesDialogV2();
|
|
|
|
virtual ~PreferencesDialogV2();
|
|
|
|
void addPreferencePage(AbstractPreferencesWidget *page);
|
|
|
|
void refreshPages();
|
|
|
|
private:
|
|
|
|
void cancelRequested();
|
|
|
|
void applyRequested();
|
|
|
|
void defaultsRequested();
|
2015-09-17 20:53:39 +00:00
|
|
|
void buttonClicked(QAbstractButton *btn);
|
2015-09-17 20:16:40 +00:00
|
|
|
QList<AbstractPreferencesWidget*> pages;
|
|
|
|
QListWidget *pagesList;
|
|
|
|
QStackedWidget *pagesStack;
|
|
|
|
QDialogButtonBox *buttonBox;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|