1 #ifndef CSM_PREFS_ENUMSETTING_H
2 #define CSM_PREFS_ENUMSETTING_H
15 EnumValue (
const std::string& value,
const std::string& tooltip =
"");
28 EnumValues&
add (
const std::string& value,
const std::string& tooltip);
42 QMutex *mutex,
const std::string& key,
const std::string& label,
EnumValue mDefault
Definition: enumsetting.hpp:36
std::string mTooltip
Definition: enumsetting.hpp:35
EnumValues mValues
Definition: enumsetting.hpp:37
std::string mTooltip
Definition: enumsetting.hpp:13
virtual std::pair< QWidget *, QWidget * > makeWidgets(QWidget *parent)
Return label, input widget.
Definition: enumsetting.cpp:71
std::string mValue
Definition: enumsetting.hpp:12
Definition: category.hpp:12
Definition: enumsetting.hpp:20
Definition: enumsetting.hpp:10
EnumSetting & addValues(const EnumValues &values)
Definition: enumsetting.cpp:53
Definition: setting.hpp:22
void valueChanged(int value)
Definition: enumsetting.cpp:104
EnumSetting(Category *parent, Settings::Manager *values, QMutex *mutex, const std::string &key, const std::string &label, const EnumValue &default_)
Definition: enumsetting.cpp:42
EnumSetting & setTooltip(const std::string &tooltip)
Definition: enumsetting.cpp:47
Definition: enumsetting.hpp:31
EnumSetting & addValue(const EnumValue &value)
Definition: enumsetting.cpp:59
Settings management (can change during runtime)
Definition: settings.hpp:17
std::vector< EnumValue > mValues
Definition: enumsetting.hpp:22
EnumValues & add(const EnumValues &values)
Definition: enumsetting.cpp:23
EnumValue(const std::string &value, const std::string &tooltip="")
Definition: enumsetting.cpp:14