![]() |
QElectroTech 0.100.0-dev
|
#include <templatecommands.h>
Inherits QUndoCommand.

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. | |
| QString | old_information_ |
| Informations before they are modified. | |
| QString | new_information_ |
| Informations after they were modified. | |
This class represents the action of changing extra information of a title block template.
| 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 |
|
override |
Destructor
|
private |
|
override |
Redo the information change
|
override |
Undo the information change
|
private |
Informations after they were modified.
|
private |
Informations before they are modified.
|
private |
Changed title block template.