Package that will be used to create a new graphics editor The name of the editor must be unique. If an editor with the given name already exists, the creation will fail. Note that the request to the UI must be send manually by providing this object (serialized) as the package.
More...
#include "GraphicsPackage.h"
Package that will be used to create a new graphics editor The name of the editor must be unique. If an editor with the given name already exists, the creation will fail. Note that the request to the UI must be send manually by providing this object (serialized) as the package.
◆ GraphicsNewEditorPackage()
ot::GraphicsNewEditorPackage::GraphicsNewEditorPackage |
( |
const std::string & | _editorName = std::string(), |
|
|
const std::string & | _editorTitle = std::string() ) |
Constructor.
- Parameters
-
_editorName | The unique name for the editor. |
◆ ~GraphicsNewEditorPackage()
ot::GraphicsNewEditorPackage::~GraphicsNewEditorPackage |
( |
| ) |
|
|
virtual |
◆ addToJsonObject()
Add the object contents to the provided JSON object.
- Parameters
-
_document | The JSON document (used to get the allocator) |
_object | The JSON object to add the contents to |
Reimplemented from ot::GraphicsPickerCollectionPackage.
◆ name()
const std::string & ot::GraphicsNewEditorPackage::name |
( |
void | | ) |
const |
|
inline |
◆ setFromJsonObject()
void ot::GraphicsNewEditorPackage::setFromJsonObject |
( |
const ConstJsonObject & | _object | ) |
|
|
overridevirtual |
Will set the object contents from the provided JSON object.
- Parameters
-
_object | The JSON object containing the information |
- Exceptions
-
Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Reimplemented from ot::GraphicsPickerCollectionPackage.
◆ title()
const std::string & ot::GraphicsNewEditorPackage::title |
( |
void | | ) |
const |
|
inline |
The documentation for this class was generated from the following files: