mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 11:31:29 +00:00
111a153295
This way the menu state matches the actual verification state again. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
30 lines
702 B
C++
30 lines
702 B
C++
#ifndef ABSTRACTPREFERENCESWIDGET_H
|
|
#define ABSTRACTPREFERENCESWIDGET_H
|
|
|
|
#include <QIcon>
|
|
#include <QWidget>
|
|
|
|
class AbstractPreferencesWidget : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
AbstractPreferencesWidget(const QString& name, const QIcon& icon, float positionHeight);
|
|
QIcon icon() const;
|
|
QString name() const;
|
|
float positionHeight() const;
|
|
|
|
/* gets the values from the preferences and should set the correct values in
|
|
* the interface */
|
|
virtual void refreshSettings() = 0;
|
|
|
|
/* gets the values from the interface and set in the preferences object. */
|
|
virtual void syncSettings() = 0;
|
|
|
|
signals:
|
|
void settingsChanged();
|
|
|
|
private:
|
|
QIcon _icon;
|
|
QString _name;
|
|
float _positionHeight;
|
|
};
|
|
#endif
|