|
Mantid
|
Namespaces | |
| namespace | Detail |
Functions | |
| template<typename T > | |
| T | getSetting (QSettings const &settings, std::string const &settingGroup, std::string const &settingName) |
| Loads an individual setting from disk. | |
| template<typename T > | |
| T | getSetting (std::string const &settingGroup, std::string const &settingName) |
| template<typename T > | |
| std::map< std::string, T > | getSettingsAsMap (QSettings const &settings, std::string const &settingGroup) |
| Loads a map of settings with the same type. | |
| template<typename T > | |
| std::map< std::string, T > | getSettingsAsMap (std::string const &settingGroup) |
| template<typename T > | |
| void | setSetting (QSettings &settings, std::string const &settingGroup, std::string const &settingName, T const &value) |
| Sets the value of a specified setting. | |
| template<typename T > | |
| void | setSetting (std::string const &settingGroup, std::string const &settingName, T const &value) |
| T MantidQt::MantidWidgets::QSettingsHelper::getSetting | ( | QSettings const & | settings, |
| std::string const & | settingGroup, | ||
| std::string const & | settingName | ||
| ) |
Loads an individual setting from disk.
| settings | The settings store to read from |
| settingGroup | The name of the setting group |
| settingName | The name of the setting |
Definition at line 41 of file QSettingsHelper.h.
References MantidQt::MantidWidgets::QSettingsHelper::Detail::qualifiedName().
| T MantidQt::MantidWidgets::QSettingsHelper::getSetting | ( | std::string const & | settingGroup, |
| std::string const & | settingName | ||
| ) |
Definition at line 45 of file QSettingsHelper.h.
| std::map< std::string, T > MantidQt::MantidWidgets::QSettingsHelper::getSettingsAsMap | ( | QSettings const & | settings, |
| std::string const & | settingGroup | ||
| ) |
Loads a map of settings with the same type.
This comparison is required as QVariant types are not properly encoded in ini files
| settings | The settings store to read from |
| settingGroup | The name of the setting group |
Definition at line 59 of file QSettingsHelper.h.
References name.
| std::map< std::string, T > MantidQt::MantidWidgets::QSettingsHelper::getSettingsAsMap | ( | std::string const & | settingGroup | ) |
Definition at line 79 of file QSettingsHelper.h.
| void MantidQt::MantidWidgets::QSettingsHelper::setSetting | ( | QSettings & | settings, |
| std::string const & | settingGroup, | ||
| std::string const & | settingName, | ||
| T const & | value | ||
| ) |
Sets the value of a specified setting.
| settings | The settings store to write to |
| settingGroup | The name of the setting group |
| settingName | The name of the setting |
| value | The value of the named setting |
Definition at line 92 of file QSettingsHelper.h.
References name, MantidQt::MantidWidgets::QSettingsHelper::Detail::qualifiedName(), MantidQt::MantidWidgets::QSettingsChangeAware::setValue(), and value.
| void MantidQt::MantidWidgets::QSettingsHelper::setSetting | ( | std::string const & | settingGroup, |
| std::string const & | settingName, | ||
| T const & | value | ||
| ) |
Definition at line 99 of file QSettingsHelper.h.
References name, MantidQt::MantidWidgets::QSettingsHelper::Detail::qualifiedName(), MantidQt::MantidWidgets::QSettingsChangeAware::setValue(), and value.