summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences/preferencesdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/preferences/preferencesdialog.h')
-rw-r--r--desktop-widgets/preferences/preferencesdialog.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferencesdialog.h b/desktop-widgets/preferences/preferencesdialog.h
new file mode 100644
index 000000000..a1db94b43
--- /dev/null
+++ b/desktop-widgets/preferences/preferencesdialog.h
@@ -0,0 +1,30 @@
+#ifndef PREFERENCES_WIDGET_H
+#define PREFERENCES_WIDGET_H
+
+#include <QDialog>
+#include "pref.h"
+
+class AbstractPreferencesWidget;
+class QListWidget;
+class QStackedWidget;
+class QDialogButtonBox;
+
+class PreferencesDialogV2 : public QDialog {
+ Q_OBJECT
+public:
+ PreferencesDialogV2();
+ virtual ~PreferencesDialogV2();
+ void addPreferencePage(AbstractPreferencesWidget *page);
+ void refreshPages();
+private:
+ void cancelRequested();
+ void applyRequested();
+ void defaultsRequested();
+
+ QList<AbstractPreferencesWidget*> pages;
+ QListWidget *pagesList;
+ QStackedWidget *pagesStack;
+ QDialogButtonBox *buttonBox;
+};
+
+#endif \ No newline at end of file