QElectroTech
0.70
|
#include <editorcommands.h>
Public Member Functions | |
ChangePropertiesCommand (ElementScene *scene, const QString &type, const DiagramContext &info, const DiagramContext &elmt_info, QUndoCommand *parent=nullptr) | |
ChangePropertiesCommand::ChangePropertiesCommand Change the properties of the drawed element. More... | |
~ChangePropertiesCommand () override | |
void | undo () override |
void | redo () override |
Public Member Functions inherited from ElementEditionCommand | |
ElementEditionCommand (ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
ElementEditionCommand (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
~ElementEditionCommand () override | |
ElementScene * | elementScene () const |
void | setElementScene (ElementScene *) |
ElementView * | elementView () const |
void | setElementView (ElementView *) |
Private Attributes | |
QList< QString > | m_type |
QList< DiagramContext > | m_kind_info |
QList< DiagramContext > | m_elmt_info |
Additional Inherited Members | |
Protected Attributes inherited from ElementEditionCommand | |
ElementScene * | m_scene |
Element editor/view/scene the command should take place on. More... | |
ElementView * | m_view |
Definition at line 291 of file editorcommands.h.
ChangePropertiesCommand::ChangePropertiesCommand | ( | ElementScene * | scene, |
const QString & | type, | ||
const DiagramContext & | info, | ||
const DiagramContext & | elmt_info, | ||
QUndoCommand * | parent = nullptr |
||
) |
ChangePropertiesCommand::ChangePropertiesCommand Change the properties of the drawed element.
scene | scene to belong the property |
type | new type of element. |
context | new info about type. |
parent | parent undo |
Definition at line 596 of file editorcommands.cpp.
References m_elmt_info, ElementScene::m_elmt_information, ElementScene::m_elmt_kindInfo, ElementScene::m_elmt_type, m_kind_info, m_type, and QET::Icons::tr.
|
override |
Definition at line 605 of file editorcommands.cpp.
|
override |
Definition at line 614 of file editorcommands.cpp.
References m_elmt_info, ElementScene::m_elmt_kindInfo, ElementScene::m_elmt_type, m_kind_info, ElementEditionCommand::m_scene, m_type, and ElementScene::setElementInfo().
|
override |
Definition at line 607 of file editorcommands.cpp.
References m_elmt_info, ElementScene::m_elmt_kindInfo, ElementScene::m_elmt_type, m_kind_info, ElementEditionCommand::m_scene, m_type, and ElementScene::setElementInfo().
|
private |
Definition at line 302 of file editorcommands.h.
Referenced by ChangePropertiesCommand(), redo(), and undo().
|
private |
Definition at line 301 of file editorcommands.h.
Referenced by ChangePropertiesCommand(), redo(), and undo().
|
private |
Definition at line 300 of file editorcommands.h.
Referenced by ChangePropertiesCommand(), redo(), and undo().