|
QElectroTech
0.70
|
The ChangeElementInformationCommand class This class manage undo/redo to change the element information. More...
#include <changeelementinformationcommand.h>
Public Member Functions | |
| ChangeElementInformationCommand (Element *elmt, DiagramContext &old_info, DiagramContext &new_info, QUndoCommand *parent=nullptr) | |
| ChangeElementInformationCommand::ChangeElementInformationCommand Default constructor. More... | |
| int | id () const override |
| bool | mergeWith (const QUndoCommand *other) override |
| void | undo () override |
| ChangeElementInformationCommand::undo. More... | |
| void | redo () override |
| ChangeElementInformationCommand::redo. More... | |
Private Attributes | |
| Element * | m_element |
| DiagramContext | m_old_info |
| DiagramContext | m_new_info |
The ChangeElementInformationCommand class This class manage undo/redo to change the element information.
Definition at line 30 of file changeelementinformationcommand.h.
| ChangeElementInformationCommand::ChangeElementInformationCommand | ( | Element * | elmt, |
| DiagramContext & | old_info, | ||
| DiagramContext & | new_info, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
ChangeElementInformationCommand::ChangeElementInformationCommand Default constructor.
| elmt | : element to change information |
| old_info | : old info of element |
| new_info | : new info of element |
Definition at line 29 of file changeelementinformationcommand.cpp.
References QET::Icons::tr.
|
inlineoverride |
Definition at line 35 of file changeelementinformationcommand.h.
|
override |
Definition at line 38 of file changeelementinformationcommand.cpp.
References m_element, m_new_info, and undo().
|
override |
ChangeElementInformationCommand::redo.
Definition at line 57 of file changeelementinformationcommand.cpp.
References m_element, and m_new_info.
|
override |
ChangeElementInformationCommand::undo.
Definition at line 50 of file changeelementinformationcommand.cpp.
References m_element, and m_old_info.
Referenced by mergeWith().
|
private |
Definition at line 41 of file changeelementinformationcommand.h.
Referenced by mergeWith(), redo(), and undo().
|
private |
Definition at line 42 of file changeelementinformationcommand.h.
Referenced by mergeWith(), and redo().
|
private |
Definition at line 42 of file changeelementinformationcommand.h.
Referenced by undo().
1.8.15