mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
7cd9e2b7bb
commit
1d2d046c0f
8 changed files with 402 additions and 361 deletions
30
desktop-widgets/preferences/preferences_defaults.h
Normal file
30
desktop-widgets/preferences/preferences_defaults.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue