OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::PropertyDialogCfg Class Reference

#include "PropertyDialogCfg.h"

Inheritance diagram for ot::PropertyDialogCfg:
ot::DialogCfg ot::Serializable

Public Member Functions

 PropertyDialogCfg ()
 
 PropertyDialogCfg (const PropertyDialogCfg &_other)
 
virtual ~PropertyDialogCfg ()
 
PropertyDialogCfgoperator= (const PropertyDialogCfg &_other)
 
virtual void addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator) const override
 Add the object contents to the provided JSON object.
 
virtual void setFromJsonObject (const ot::ConstJsonObject &_object) override
 Will set the object contents from the provided JSON object.
 
void setGridConfig (const PropertyGridCfg &_config)
 
const PropertyGridCfggetGridConfig (void) const
 
void setRootGroups (const std::list< PropertyGroup * > &_groups)
 
void addRootGroup (PropertyGroup *_group)
 
const std::list< PropertyGroup * > & getRootGroups (void) const
 
- Public Member Functions inherited from ot::DialogCfg
 DialogCfg (DialogFlags _flags=DialogFlags(NoFlags))
 
 DialogCfg (const std::string &_title, DialogFlags _flags=DialogFlags(NoFlags))
 
 DialogCfg (const DialogCfg &_other)
 
virtual ~DialogCfg ()
 
DialogCfgoperator= (const DialogCfg &_other)
 
void setName (const std::string &_name)
 
const std::string & getName (void) const
 
void setTitle (const std::string &_title)
 
const std::string & getTitle (void) const
 
void setFlag (DialogFlag _flag, bool _active=true)
 
void setFlags (DialogFlags _flags)
 
DialogFlags getFlags (void) const
 
void setMinSize (int _width, int _height)
 
void setMinSize (const ot::Size2D &_size)
 
const ot::Size2DgetMinSize (void) const
 
void setMaxSize (int _width, int _height)
 
void setMaxSize (const ot::Size2D &_size)
 
const ot::Size2DgetMaxSize (void) const
 
- Public Member Functions inherited from ot::Serializable
 Serializable ()
 
virtual ~Serializable ()
 

Additional Inherited Members

- Public Types inherited from ot::DialogCfg
enum  DialogFlag { NoFlags = 0x00 , CancelOnNoChange = 0x01 , MoveGrabAnywhere = 0x02 , RecenterOnF11 = 0x04 }
 
typedef Flags< DialogFlagDialogFlags
 
- Static Public Member Functions inherited from ot::DialogCfg
static std::string toString (DialogFlag _flag)
 
static DialogFlag stringToFlag (const std::string &_flag)
 
static std::list< std::string > toStringList (DialogFlags _flags)
 
static DialogFlags stringListToFlags (const std::list< std::string > &_flags)
 

Constructor & Destructor Documentation

◆ PropertyDialogCfg() [1/2]

ot::PropertyDialogCfg::PropertyDialogCfg ( )

◆ PropertyDialogCfg() [2/2]

ot::PropertyDialogCfg::PropertyDialogCfg ( const PropertyDialogCfg & _other)

◆ ~PropertyDialogCfg()

ot::PropertyDialogCfg::~PropertyDialogCfg ( )
virtual

Member Function Documentation

◆ addRootGroup()

void ot::PropertyDialogCfg::addRootGroup ( PropertyGroup * _group)
inline

◆ addToJsonObject()

void ot::PropertyDialogCfg::addToJsonObject ( ot::JsonValue & _object,
ot::JsonAllocator & _allocator ) const
overridevirtual

Add the object contents to the provided JSON object.

Parameters
_objectJson object reference
_allocatorAllocator

Reimplemented from ot::DialogCfg.

◆ getGridConfig()

const PropertyGridCfg & ot::PropertyDialogCfg::getGridConfig ( void ) const
inline

◆ getRootGroups()

const std::list< PropertyGroup * > & ot::PropertyDialogCfg::getRootGroups ( void ) const
inline

◆ operator=()

ot::PropertyDialogCfg & ot::PropertyDialogCfg::operator= ( const PropertyDialogCfg & _other)

◆ setFromJsonObject()

void ot::PropertyDialogCfg::setFromJsonObject ( const ot::ConstJsonObject & _object)
overridevirtual

Will set the object contents from the provided JSON object.

Parameters
_objectThe JSON object containing the information
Exceptions
Willthrow an exception if the provided object is not valid (members missing or invalid types)

Reimplemented from ot::DialogCfg.

◆ setGridConfig()

void ot::PropertyDialogCfg::setGridConfig ( const PropertyGridCfg & _config)
inline

◆ setRootGroups()

void ot::PropertyDialogCfg::setRootGroups ( const std::list< PropertyGroup * > & _groups)
inline

The documentation for this class was generated from the following files: