open_iA 2024.7
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
iAWidgetSettingsMapper.h File Reference
#include "iaguibase_export.h"
#include <QCheckBox>
#include <QLineEdit>
#include <QRadioButton>
#include <QSettings>

Classes

class  iAQCheckBoxVector
 Helper class to be able to put non-QObject class QVector<QCheckBox> in a iAWidgetMap. More...
 
class  iAQLineEditVector
 Helper class to be able to put non-QObject class QVector<QLineEdit> in a iAWidgetMap. More...
 
class  iAQRadioButtonVector
 Helper class to be able to put non-QObject class QVector<QRadioButton> in a iAWidgetMap. More...
 

Typedefs

using iAWidgetMap = QMap<QString, QObject*>
 

Functions

iAguibase_API void loadSettings (QVariantMap const &settings, iAWidgetMap const &settingsWidgetMap)
 Takes values from given settings object and applies them to the respective widget mapped to in the given settings-widget-map.
 
iAguibase_API void saveSettings (QSettings &settings, iAWidgetMap const &settingsWidgetMap)
 Looks at the current value of the GUI elements given in the settings-widget-map, and stores it under the respective keys in the settings object.
 
iAguibase_API void saveSettings (QVariantMap &settings, iAWidgetMap const &settingsWidgetMap)
 Looks at the current value of the GUI elements given in the settings-widget-map, and stores it under the respective keys in the settings object.
 

Typedef Documentation

◆ iAWidgetMap

using iAWidgetMap = QMap<QString, QObject*>

Function Documentation

◆ loadSettings()

iAguibase_API void loadSettings ( QVariantMap const & settings,
iAWidgetMap const & settingsWidgetMap )

Takes values from given settings object and applies them to the respective widget mapped to in the given settings-widget-map.

Parameters
settingsa hash map containing one key-value pair per setting stored in it
settingsWidgetMapmaps from a settings key to the widget which represents this setting in the GUI

◆ saveSettings() [1/2]

iAguibase_API void saveSettings ( QSettings & settings,
iAWidgetMap const & settingsWidgetMap )

Looks at the current value of the GUI elements given in the settings-widget-map, and stores it under the respective keys in the settings object.

Parameters
settingsa QSettings object for storing the values from the GUI.
settingsWidgetMapmaps from a settings key to the widget which represents this setting in the GUI.

◆ saveSettings() [2/2]

iAguibase_API void saveSettings ( QVariantMap & settings,
iAWidgetMap const & settingsWidgetMap )

Looks at the current value of the GUI elements given in the settings-widget-map, and stores it under the respective keys in the settings object.

Parameters
settingsa hash map for storing the values from the GUI.
settingsWidgetMapmaps from a settings key to the widget which represents this setting in the GUI.