38 RestoreDefaults = 1 << 17
50 static std::string
toString(BasicButton _button);
51 static BasicButton stringToButton(
const std::string& _button);
52 static std::list<std::string>
toStringList(
const BasicButtons& _buttons);
53 static BasicButtons stringListToButtons(
const std::list<std::string>& _buttons);
55 static std::string iconToString(BasicIcon _icon);
56 static BasicIcon stringToIcon(
const std::string& _icon);
71 void setText(
const std::string& _text) { m_text = _text; };
72 const std::string&
getText(
void)
const {
return m_text; };
83 BasicButtons m_buttons;
#define OT_ADD_FLAG_FUNCTIONS(___enumName)
Will add the default bitwise operations for the provided private 32/64 bit bitfield....
Definition Flags.h:129
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition DialogCfg.h:22
The Flags class is a wrapper around a enum that allows bitwise operations (flags)....
Definition Flags.h:214
Definition MessageDialogCfg.h:17
void setText(const std::string &_text)
Definition MessageDialogCfg.h:71
void setIcon(BasicIcon _icon)
Definition MessageDialogCfg.h:78
Flags< BasicButton > BasicButtons
Definition MessageDialogCfg.h:40
BasicIcon getIcon(void) const
Definition MessageDialogCfg.h:79
void setButton(BasicButton _button, bool _active=true)
Definition MessageDialogCfg.h:74
const BasicButtons & getButtons(void) const
Definition MessageDialogCfg.h:76
BasicButton
Definition MessageDialogCfg.h:19
const std::string & getText(void) const
Definition MessageDialogCfg.h:72
void setButtons(BasicButtons _buttons)
Definition MessageDialogCfg.h:75
BasicIcon
Definition MessageDialogCfg.h:42
@ Warning
Definition MessageDialogCfg.h:46
@ NoIcon
Definition MessageDialogCfg.h:43
@ Question
Definition MessageDialogCfg.h:45
@ Information
Definition MessageDialogCfg.h:44
OT_GUI_API_EXPORT std::list< std::string > toStringList(const LockTypeFlags &_flags)
Definition GuiTypes.cpp:426
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
OT_GUI_API_EXPORT std::string toString(ColorStyleName _colorStyleName)
Definition ColorStyleTypes.cpp:10
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30