open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Classes | Functions
iAWidgetSettingsMapper.cpp File Reference
#include "iAWidgetSettingsMapper.h"
#include <iALog.h>
#include <io/iAFileChooserWidget.h>
#include <QComboBox>
#include <QDoubleSpinBox>
#include <QPushButton>
#include <QSlider>
#include <QSpinBox>

Classes

class  iAInternalSettingsWrapper
 
class  iAQSettingsWrapper
 
class  iASettingsWrapper
 

Functions

void internalSaveSettings (iAInternalSettingsWrapper &settings, iAWidgetMap const &settingsWidgetMap)
 
void loadSettings (iASettings 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. More...
 
void saveSettings (iASettings &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. More...
 
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. More...
 

Function Documentation

◆ internalSaveSettings()

void internalSaveSettings ( iAInternalSettingsWrapper settings,
iAWidgetMap const &  settingsWidgetMap 
)

◆ loadSettings()

void loadSettings ( iASettings 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]

void saveSettings ( iASettings 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.

◆ saveSettings() [2/2]

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.