1 #ifndef QTMVVM_SETTINGSSETUP_H 2 #define QTMVVM_SETTINGSSETUP_H 4 #include <QtCore/qstringlist.h> 5 #include <QtCore/qvariant.h> 6 #include <QtCore/qurl.h> 7 #include <QtCore/qobject.h> 8 #include <QtCore/qfileselector.h> 9 #include <QtCore/qexception.h> 11 #include "QtMvvmCore/qtmvvmcore_global.h" 16 namespace SettingsElements {
134 #define QtMvvm_ISettingsSetupLoaderIid "de.skycoder42.qtmvvm.settings.core.ISettingsSetupLoader" 139 #endif // QTMVVM_SETTINGSSETUP_H virtual void changeDefaultIcon(const QUrl &defaultIcon)=0
Can be used to overwrite the default icon for categories.
virtual SettingsElements::Setup loadSetup(const QString &filePath, const QString &frontend, const QFileSelector *selector) const =0
Loads the settings setup from the given file.
QString tooltip
A tooltip with more detailed information about the entry.
bool allowSearch
Specifies if the user is allowed to search in the settings.
#define QtMvvm_ISettingsSetupLoaderIid
The Iid of the QtMvvm::ISettingsSetupLoader class.
bool allowRestore
Specifies if the user is allowed to restore the factory defaults.
QString tooltip
A tooltip to describe what the category is about.
QString title
A short title/label of the entry to give it a name.
QUrl icon
An icon for the section.
A top level category to organize sections in.
QString tooltip
A tooltip to describe what the section is about.
QVariantMap properties
Additional properties to be passed on to the edit view.
An entry in the settings to display and edit a value.
QList< Entry > entries
A list of entries the group contains.
QString key
The QSettings key this entry should handle.
QString frontends
[Internal] A logical string describing the allowed frontends
A bigger section for different entries and groups.
QList< Category > categories
A list of categories the setup is build of.
An exception throw in case loading a settings setup went wrong.
QString frontends
[Internal] A logical string describing the allowed frontends
QString frontends
[Internal] A logical string describing the allowed frontends
An interface for a generic settings setup loader.
QList< Group > groups
A list of groups the section contains.
QString title
The categories title.
QString selectors
[Internal] A logical string describing the allowed selectors
QString frontends
[Internal] A logical string describing the allowed frontends
QString tooltip
A tooltip to describe what the group is about.
QList< Section > sections
A list of sections the category contains.
A logical group of settings entries.
The whole settings setup.
QString title
The sections title.
QString selectors
[Internal] A logical string describing the allowed selectors
QString selectors
[Internal] A logical string describing the allowed selectors
QString selectors
[Internal] A logical string describing the allowed selectors
QByteArray type
The input view type (typically the actual data type) to show.
QVariant defaultValue
A default value to display in case no value is in the settings yet.
The primary namespace of the QtMvvm library.
QString title
The groups title.
QUrl icon
An icon for the category.
QStringList searchKeys
A list of keys to find this entry by when searching.