15#pragma warning(disable:4251)
18 class GraphicsItemCfg;
37 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
39 void setName(
const std::string& _name) { m_name = _name; };
40 const std::string&
getName(
void)
const {
return m_name; };
42 void setTitle(
const std::string& _title) { m_title = _title; };
43 const std::string&
getTitle(
void)
const {
return m_title; };
46 const std::list<GraphicsPickerCollectionCfg*>&
getChildCollections(
void)
const {
return m_collections; };
48 void addItem(
const std::string& _itemName,
const std::string& _itemTitle,
const std::string& _previewIconPath);
50 const std::list<GraphicsPickerItemInformation>&
getItems(
void)
const {
return m_items; };
59 std::list<GraphicsPickerCollectionCfg*> m_collections;
60 std::list<GraphicsPickerItemInformation> m_items;
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition GraphicsPickerCollectionCfg.h:20
const std::string & getName(void) const
Definition GraphicsPickerCollectionCfg.h:40
const std::list< GraphicsPickerItemInformation > & getItems(void) const
Definition GraphicsPickerCollectionCfg.h:50
void setName(const std::string &_name)
Definition GraphicsPickerCollectionCfg.h:39
void setTitle(const std::string &_title)
Definition GraphicsPickerCollectionCfg.h:42
const std::list< GraphicsPickerCollectionCfg * > & getChildCollections(void) const
Definition GraphicsPickerCollectionCfg.h:46
const std::string & getTitle(void) const
Definition GraphicsPickerCollectionCfg.h:43
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
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
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30