Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
PluginSettingsModel.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: PluginSettingsWidget.h
3//-----------------------------------------------------------------------------
4// Project: Kactus 2
5// Author: Joni-Matti Maatta
6// Date: 20.02.2013
7//
8// Description:
9// Base interface for plugin settings model.
10//-----------------------------------------------------------------------------
11
12#ifndef PLUGINSETTINGSMODEL_H
13#define PLUGINSETTINGSMODEL_H
14
15#include <QSettings>
16
17//-----------------------------------------------------------------------------
19//-----------------------------------------------------------------------------
21{
22public:
27
32
38 virtual void loadSettings(QSettings& /*settings*/) {/* By default, do nothing. */}
39
45 virtual void saveSettings(QSettings& /*settings*/) {/* By default, do nothing. */ }
46
50 virtual bool validateSettings() const {return true;}
51};
52
53//-----------------------------------------------------------------------------
54
55#endif // PLUGINSETTINGSMODEL_H
virtual void loadSettings(QSettings &)
virtual void saveSettings(QSettings &)
virtual bool validateSettings() const