diff options
Diffstat (limited to 'desktop-widgets/preferences/preferencesdialog.h')
-rw-r--r-- | desktop-widgets/preferences/preferencesdialog.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferencesdialog.h b/desktop-widgets/preferences/preferencesdialog.h new file mode 100644 index 000000000..5f7f5f979 --- /dev/null +++ b/desktop-widgets/preferences/preferencesdialog.h @@ -0,0 +1,35 @@ +#ifndef PREFERENCES_WIDGET_H +#define PREFERENCES_WIDGET_H + +#include <QDialog> +#include "pref.h" + +class AbstractPreferencesWidget; +class QListWidget; +class QStackedWidget; +class QDialogButtonBox; +class QAbstractButton; + +class PreferencesDialog : public QDialog { + Q_OBJECT +public: + static PreferencesDialog* instance(); + virtual ~PreferencesDialog(); + void addPreferencePage(AbstractPreferencesWidget *page); + void refreshPages(); + void emitSettingsChanged(); +signals: + void settingsChanged(); +private: + PreferencesDialog(); + void cancelRequested(); + void applyRequested(bool closeIt); + void defaultsRequested(); + void buttonClicked(QAbstractButton *btn); + QList<AbstractPreferencesWidget*> pages; + QListWidget *pagesList; + QStackedWidget *pagesStack; + QDialogButtonBox *buttonBox; +}; + +#endif |