#include "OnePropertyDialogCfg.h"
Public Member Functions | |
| OnePropertyDialogCfg (Property *_property=(Property *) nullptr) | |
| OnePropertyDialogCfg (const std::string &_title, Property *_property=(Property *) nullptr) | |
| virtual | ~OnePropertyDialogCfg () |
| 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 | setProperty (Property *_property) |
| Set or replace the property If a property was set before it will be destroyed. | |
| Property * | getProperty (void) const |
| Property * | takeProperty (void) |
| Returns the current property and replaces it with null. | |
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 () |
| DialogCfg & | operator= (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::Size2D & | getMinSize (void) const |
| void | setMaxSize (int _width, int _height) |
| void | setMaxSize (const ot::Size2D &_size) |
| const ot::Size2D & | getMaxSize (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< DialogFlag > | DialogFlags |
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) |
| ot::OnePropertyDialogCfg::OnePropertyDialogCfg | ( | const std::string & | _title, |
| Property * | _property = (Property*)nullptr ) |
|
virtual |
|
overridevirtual |
Add the object contents to the provided JSON object.
| _object | Json object reference |
| _allocator | Allocator |
Reimplemented from ot::DialogCfg.
|
inline |
|
overridevirtual |
Will set the object contents from the provided JSON object.
| _object | The JSON object containing the information |
| Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Reimplemented from ot::DialogCfg.
| void ot::OnePropertyDialogCfg::setProperty | ( | Property * | _property | ) |
Set or replace the property If a property was set before it will be destroyed.
| ot::Property * ot::OnePropertyDialogCfg::takeProperty | ( | void | ) |
Returns the current property and replaces it with null.