diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-09-25 16:15:37 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-30 10:36:50 -0700 |
commit | 1d2d046c0f80d8884d783aad57340c9b6867985a (patch) | |
tree | 1af74f6bf1fdc91a04078afb6d940fb71c42ecb9 /desktop-widgets/preferences/preferences_defaults.h | |
parent | 7cd9e2b7bb101719ec5c50a10fc889ba4b7bd9c5 (diff) | |
download | subsurface-1d2d046c0f80d8884d783aad57340c9b6867985a.tar.gz |
Preferences: Port the default preferences to the new system
Simple port of the default preferences to the new preferences structure.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences/preferences_defaults.h')
-rw-r--r-- | desktop-widgets/preferences/preferences_defaults.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferences_defaults.h b/desktop-widgets/preferences/preferences_defaults.h new file mode 100644 index 000000000..94de8b28a --- /dev/null +++ b/desktop-widgets/preferences/preferences_defaults.h @@ -0,0 +1,30 @@ +#ifndef PREFERENCES_DEFAULTS_H +#define PREFERENCES_DEFAULTS_H + +#include "abstractpreferenceswidget.h" +#include "subsurface-core/pref.h" + +namespace Ui { + class PreferencesDefaults; +} + +class PreferencesDefaults : public AbstractPreferencesWidget { + Q_OBJECT +public: + PreferencesDefaults(); + virtual ~PreferencesDefaults(); + virtual void refreshSettings(); + virtual void syncSettings(); +public slots: + void on_chooseFile_clicked(); + void on_btnUseDefaultFile_toggled(bool toggled); + void on_noDefaultFile_toggled(bool toggled); + void on_localDefaultFile_toggled(bool toggled); + void on_cloudDefaultFile_toggled(bool toggled); + +private: + Ui::PreferencesDefaults *ui; +}; + + +#endif
\ No newline at end of file |