open_iA 2025.6
Loading...
Searching...
No Matches
iAQWidgetSettingsMapper.cpp File Reference
#include "iAQWidgetSettingsMapper.h"
#include <iAFileChooserWidget.h>
#include <iALog.h>
#include <QComboBox>
#include <QDoubleSpinBox>
#include <QPushButton>
#include <QSlider>
#include <QSpinBox>

Classes

class  iAInternalSettingsWrapper
 Interface for setting (key, value) pairs in a data collection. More...
 
class  iAQSettingsWrapper
 Wrapper for setting (key, value) pairs in a QSettings object using the iAInternalSettingsWrapper interface. More...
 
class  iASettingsWrapper
 Wrapper for setting (key, value) pairs in a QVariantMap using the iAInternalSettingsWrapper interface. More...
 

Functions

void internalSaveSettings (iAInternalSettingsWrapper &settings, iAQWidgetMap const &settingsWidgetMap)
 
void loadSettings (QVariantMap const &settings, iAQWidgetMap const &settingsWidgetMap)
 Takes values from given settings object and applies them to the respective widget mapped to in the given settings-widget-map.
 
void saveSettings (QSettings &settings, iAQWidgetMap 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.
 
void saveSettings (QVariantMap &settings, iAQWidgetMap 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.
 

Function Documentation

◆ internalSaveSettings()

void internalSaveSettings ( iAInternalSettingsWrapper & settings,
iAQWidgetMap const & settingsWidgetMap )

◆ loadSettings()

void loadSettings ( QVariantMap const & settings,
iAQWidgetMap 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]

void saveSettings ( QSettings & settings,
iAQWidgetMap 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]

void saveSettings ( QVariantMap & settings,
iAQWidgetMap 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.