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>
This commit is contained in:
Tomaz Canabrava 2015-09-25 16:15:37 -03:00 committed by Dirk Hohndel
parent 7cd9e2b7bb
commit 1d2d046c0f
8 changed files with 402 additions and 361 deletions

View file

@ -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