18#pragma warning(disable:4251)
26 CancelOnNoChange = 0x01,
27 MoveGrabAnywhere = 0x02,
33 static DialogFlag stringToFlag(
const std::string& _flag);
35 static DialogFlags stringListToFlags(
const std::list<std::string>& _flags);
54 void setName(
const std::string& _name) { m_name = _name; };
55 const std::string&
getName(
void)
const {
return m_name; };
57 void setTitle(
const std::string& _title) { m_title = _title; };
58 const std::string&
getTitle(
void)
const {
return m_title; };
#define OT_ADD_FLAG_FUNCTIONS(___enumName)
Will add the default bitwise operations for the provided private 32/64 bit bitfield....
Definition Flags.h:129
This file contains defines that may be used simplyfy class creation.
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition DialogCfg.h:22
DialogFlags getFlags(void) const
Definition DialogCfg.h:62
const std::string & getTitle(void) const
Definition DialogCfg.h:58
void setMaxSize(const ot::Size2D &_size)
Definition DialogCfg.h:69
DialogFlag
Definition DialogCfg.h:24
void setMinSize(int _width, int _height)
Definition DialogCfg.h:64
void setFlag(DialogFlag _flag, bool _active=true)
Definition DialogCfg.h:60
virtual ~DialogCfg()
Definition DialogCfg.h:40
void setMinSize(const ot::Size2D &_size)
Definition DialogCfg.h:65
void setFlags(DialogFlags _flags)
Definition DialogCfg.h:61
const ot::Size2D & getMaxSize(void) const
Definition DialogCfg.h:70
void setTitle(const std::string &_title)
Definition DialogCfg.h:57
void setName(const std::string &_name)
Definition DialogCfg.h:54
const ot::Size2D & getMinSize(void) const
Definition DialogCfg.h:66
const std::string & getName(void) const
Definition DialogCfg.h:55
void setMaxSize(int _width, int _height)
Definition DialogCfg.h:68
Flags< DialogFlag > DialogFlags
Definition DialogCfg.h:30
The Flags class is a wrapper around a enum that allows bitwise operations (flags)....
Definition Flags.h:214
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
2D Size with integer values
Definition Size2D.h:15
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