OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PropertyDialogCfg.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
10#include "OTGui/DialogCfg.h"
11
12// std header
13#include <list>
14#include <string>
15
16#pragma warning(disable:4251)
17
18namespace ot {
19
21 public:
24 virtual ~PropertyDialogCfg();
25
26 PropertyDialogCfg& operator = (const PropertyDialogCfg& _other);
27
31 virtual void addToJsonObject(ot::JsonValue& _object, ot::JsonAllocator& _allocator) const override;
32
36 virtual void setFromJsonObject(const ot::ConstJsonObject& _object) override;
37
38 void setGridConfig(const PropertyGridCfg& _config) { m_gridConfig = _config; };
39 const PropertyGridCfg& getGridConfig(void) const { return m_gridConfig; };
40
41 void setRootGroups(const std::list<PropertyGroup*>& _groups) { m_gridConfig.setRootGroups(_groups); };
42 void addRootGroup(PropertyGroup* _group) { m_gridConfig.addRootGroup(_group); };
43 const std::list<PropertyGroup*>& getRootGroups(void) const { return m_gridConfig.getRootGroups(); };
44
45 private:
46 PropertyGridCfg m_gridConfig;
47 };
48
49}
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition DialogCfg.h:22
Definition PropertyDialogCfg.h:20
const PropertyGridCfg & getGridConfig(void) const
Definition PropertyDialogCfg.h:39
void addRootGroup(PropertyGroup *_group)
Definition PropertyDialogCfg.h:42
void setGridConfig(const PropertyGridCfg &_config)
Definition PropertyDialogCfg.h:38
const std::list< PropertyGroup * > & getRootGroups(void) const
Definition PropertyDialogCfg.h:43
void setRootGroups(const std::list< PropertyGroup * > &_groups)
Definition PropertyDialogCfg.h:41
Definition PropertyGridCfg.h:21
Definition PropertyGroup.h:23
Definition Connector.h:8
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