summaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-24 15:19:48 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-24 15:19:48 -0300
commitefb7f109e89c3d8c093c238fb7671c7ab2475f25 (patch)
tree362f229bc5f704aac166eec61087d507c5c98fe4 /qt-ui/preferences.h
parent5e0a3cdad8d02eff7ffa7c2abb4ac48c332f144f (diff)
downloadsubsurface-efb7f109e89c3d8c093c238fb7671c7ab2475f25.tar.gz
Added support for a preliminary Preferences Dialog
Dirk asked me to try to make it more modern, so I used as a base, the Firefox preferences. currently it saves / loads the preferences, and also smits a signal 'preferencesChanged' that should be connected to anything that uses preferenes, via the PreferencesDialog::intance() object. In the future, I plan to make it have a signal / slot for each member that changes. I also moved the icons to a new folder this time, because the amount of icons is now more than just two, and it was becoming messy. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/preferences.h')
-rw-r--r--qt-ui/preferences.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/qt-ui/preferences.h b/qt-ui/preferences.h
new file mode 100644
index 000000000..ab5a214ed
--- /dev/null
+++ b/qt-ui/preferences.h
@@ -0,0 +1,26 @@
+#ifndef PREFERENCES_DIALOG_H
+#define PREFERENCES_DIALOG_H
+
+#include <QDialog>
+
+namespace Ui{
+ class PreferencesDialog;
+}
+
+class PreferencesDialog :public QDialog{
+Q_OBJECT
+public:
+ static PreferencesDialog* instance();
+
+signals:
+ void settingsChanged();
+
+public slots:
+ void syncSettings();
+
+private:
+ explicit PreferencesDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
+ Ui::PreferencesDialog* ui;
+};
+
+#endif \ No newline at end of file