QElectroTech  0.70
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ChangeTemplateInformationsCommand Class Reference

#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

TitleBlockTemplatetbtemplate_
 Changed title block template. More...
 
QString old_information_
 Informations before they are modified. More...
 
QString new_information_
 Informations after they were modified. More...
 

Detailed Description

This class represents the action of changing extra information of a title block template.

Definition at line 239 of file templatecommands.h.

Constructor & Destructor Documentation

◆ ChangeTemplateInformationsCommand() [1/2]

ChangeTemplateInformationsCommand::ChangeTemplateInformationsCommand ( TitleBlockTemplate tbt,
const QString &  old_info,
const QString &  new_info,
QUndoCommand *  parent = nullptr 
)

Constructor

Parameters
tbtChanged title block template
old_infoFormer information
new_infoNew information
parentParent QUndoCommand

Definition at line 854 of file templatecommands.cpp.

◆ ~ChangeTemplateInformationsCommand()

ChangeTemplateInformationsCommand::~ChangeTemplateInformationsCommand ( )
override

Destructor

Definition at line 865 of file templatecommands.cpp.

◆ ChangeTemplateInformationsCommand() [2/2]

ChangeTemplateInformationsCommand::ChangeTemplateInformationsCommand ( const ChangeTemplateInformationsCommand )
private

Member Function Documentation

◆ redo()

void ChangeTemplateInformationsCommand::redo ( )
override

Redo the information change

Definition at line 879 of file templatecommands.cpp.

References new_information_, and tbtemplate_.

◆ undo()

void ChangeTemplateInformationsCommand::undo ( )
override

Undo the information change

Definition at line 871 of file templatecommands.cpp.

References old_information_, and tbtemplate_.

Member Data Documentation

◆ new_information_

QString ChangeTemplateInformationsCommand::new_information_
private

Informations after they were modified.

Definition at line 259 of file templatecommands.h.

Referenced by redo().

◆ old_information_

QString ChangeTemplateInformationsCommand::old_information_
private

Informations before they are modified.

Definition at line 257 of file templatecommands.h.

Referenced by undo().

◆ tbtemplate_

TitleBlockTemplate* ChangeTemplateInformationsCommand::tbtemplate_
private

Changed title block template.

Definition at line 255 of file templatecommands.h.

Referenced by redo(), and undo().


The documentation for this class was generated from the following files: