2020-08-25 17:07:38 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2006-11-21 06:02:05 +00:00
|
|
|
|
|
|
|
#ifndef SETTINGSPAGEBASE_H
|
|
|
|
#define SETTINGSPAGEBASE_H
|
|
|
|
|
2011-02-04 14:43:21 +00:00
|
|
|
#include <QWidget>
|
2006-11-21 06:02:05 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Base class for the settings pages of the Dolphin settings dialog.
|
|
|
|
*/
|
|
|
|
class SettingsPageBase : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-11-21 09:52:14 +00:00
|
|
|
explicit SettingsPageBase(QWidget* parent = nullptr);
|
2017-11-20 22:25:06 +00:00
|
|
|
~SettingsPageBase() override;
|
2006-11-21 06:02:05 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Must be implemented by a derived class to
|
|
|
|
* persistently store the settings.
|
|
|
|
*/
|
|
|
|
virtual void applySettings() = 0;
|
2007-05-26 09:16:56 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Must be implemented by a derived class to
|
|
|
|
* restored the settings to default values.
|
|
|
|
*/
|
|
|
|
virtual void restoreDefaults() = 0;
|
2008-03-23 15:54:07 +00:00
|
|
|
|
2021-02-08 22:09:59 +00:00
|
|
|
Q_SIGNALS:
|
2008-03-23 15:54:07 +00:00
|
|
|
/** Is emitted if a setting has been changed. */
|
|
|
|
void changed();
|
2006-11-21 06:02:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|