The ElementEditionCommand class ElementEditionCommand is the base class for all commands classes involved in the edition of an electrical element. It provides commonly required methods and attributes, such as accessors to the modified scene and view.
More...
#include <editorcommands.h>
The ElementEditionCommand class ElementEditionCommand is the base class for all commands classes involved in the edition of an electrical element. It provides commonly required methods and attributes, such as accessors to the modified scene and view.
◆ ElementEditionCommand() [1/3]
ElementEditionCommand::ElementEditionCommand |
( |
ElementScene * |
scene = nullptr , |
|
|
ElementView * |
view = nullptr , |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
◆ ElementEditionCommand() [2/3]
ElementEditionCommand::ElementEditionCommand |
( |
const QString & |
text, |
|
|
ElementScene * |
scene = nullptr , |
|
|
ElementView * |
view = nullptr , |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
◆ ~ElementEditionCommand()
ElementEditionCommand::~ElementEditionCommand |
( |
| ) |
|
|
override |
◆ ElementEditionCommand() [3/3]
◆ elementScene()
ElementScene * ElementEditionCommand::elementScene |
( |
| ) |
const |
- Returns
- the element editor/scene the command should take place on
◆ elementView()
ElementView * ElementEditionCommand::elementView |
( |
| ) |
const |
- Returns
- the view the effect of the command should be rendered on
◆ setElementScene()
void ElementEditionCommand::setElementScene |
( |
ElementScene * |
scene | ) |
|
Define scene as the element editor/scene the command should take place
◆ setElementView()
void ElementEditionCommand::setElementView |
( |
ElementView * |
view | ) |
|
Define view as the view the effect of the command should be rendered on
◆ m_scene
Element editor/view/scene the command should take place on.
◆ m_view
The documentation for this class was generated from the following files: