|
QElectroTech
0.70
|
#include <templatecommands.h>
Public Member Functions | |
| ChangeTemplateInformationsCommand (TitleBlockTemplate *, const QString &, const QString &, QUndoCommand *=nullptr) | |
| ~ChangeTemplateInformationsCommand () override | |
| void | undo () override |
| void | redo () override |
Private Member Functions | |
| ChangeTemplateInformationsCommand (const ChangeTemplateInformationsCommand &) | |
Private Attributes | |
| TitleBlockTemplate * | tbtemplate_ |
| Changed title block template. More... | |
| QString | old_information_ |
| Informations before they are modified. More... | |
| QString | new_information_ |
| Informations after they were modified. More... | |
This class represents the action of changing extra information of a title block template.
Definition at line 239 of file templatecommands.h.
| ChangeTemplateInformationsCommand::ChangeTemplateInformationsCommand | ( | TitleBlockTemplate * | tbt, |
| const QString & | old_info, | ||
| const QString & | new_info, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
Constructor
| tbt | Changed title block template |
| old_info | Former information |
| new_info | New information |
| parent | Parent QUndoCommand |
Definition at line 854 of file templatecommands.cpp.
|
override |
Destructor
Definition at line 865 of file templatecommands.cpp.
|
private |
|
override |
Redo the information change
Definition at line 879 of file templatecommands.cpp.
References new_information_, and tbtemplate_.
|
override |
Undo the information change
Definition at line 871 of file templatecommands.cpp.
References old_information_, and tbtemplate_.
|
private |
Informations after they were modified.
Definition at line 259 of file templatecommands.h.
Referenced by redo().
|
private |
Informations before they are modified.
Definition at line 257 of file templatecommands.h.
Referenced by undo().
|
private |
Changed title block template.
Definition at line 255 of file templatecommands.h.
1.8.15