19#pragma warning(disable:4251)
34 HasMultipleValues = 0x0008,
35 HasInputError = 0x0010,
37 AllowCustomValues = 0x1000,
38 AllowMultiselection = 0x2000
49 static PropertyFlag stringToFlag(
const std::string& _flag);
55 static PropertyFlags stringListToFlags(
const std::list<std::string>& _flags);
104 const std::string&
getPropertyTitle(
void)
const {
return (m_title.empty() ? m_name : m_title); };
121 std::string getAdditionalPropertyData(
const std::string& _key)
const;
127 std::string m_specialType;
128 std::map<std::string, std::string> m_data;
129 PropertyFlags m_flags;
#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
The Flags class is a wrapper around a enum that allows bitwise operations (flags)....
Definition Flags.h:214
The PropertyBase class is used to hold general Property information.
Definition PropertyBase.h:25
void addAdditionalPropertyData(const std::string &_key, const std::string &_data)
Definition PropertyBase.h:118
virtual ~PropertyBase()
Destructor.
Definition PropertyBase.h:71
void setPropertyTip(const std::string &_tip)
Definition PropertyBase.h:106
const std::map< std::string, std::string > & getAllAdditionalPropertyData(void) const
Definition PropertyBase.h:120
std::string & getPropertyTip(void)
Definition PropertyBase.h:107
void setPropertyTitle(const std::string &_title)
Set the property title If no title set the name will be used as title.
Definition PropertyBase.h:100
PropertyFlag
The PropertyFlag enum contains different settings for properties.
Definition PropertyBase.h:29
void setPropertyFlags(PropertyFlags _flags)
Definition PropertyBase.h:111
const std::string & getPropertyTip(void) const
Definition PropertyBase.h:108
const std::string & getPropertyTitle(void) const
Property title If no title set the name will be used as title.
Definition PropertyBase.h:104
void setPropertyName(const std::string &_name)
Definition PropertyBase.h:95
const std::string & getSpecialType(void) const
Definition PropertyBase.h:116
void setPropertyFlag(PropertyFlag _flag, bool _active=true)
Definition PropertyBase.h:110
void setSpecialType(const std::string &_type)
Definition PropertyBase.h:115
Flags< PropertyFlag > PropertyFlags
The PropertyFlag enum contains different settings for properties.
Definition PropertyBase.h:43
void setAdditionalPropertyData(const std::map< std::string, std::string > &_data)
Definition PropertyBase.h:119
const std::string & getPropertyName(void) const
Definition PropertyBase.h:96
PropertyFlags & getPropertyFlags(void)
Definition PropertyBase.h:112
const PropertyFlags & getPropertyFlags(void) const
Definition PropertyBase.h:113
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
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