QElectroTech  0.8-dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ChangeTemplateInformationsCommand Class Reference

#include <templatecommands.h>

Inherits QUndoCommand.

Collaboration diagram for ChangeTemplateInformationsCommand:
Collaboration graph

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.

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

◆ ~ChangeTemplateInformationsCommand()

ChangeTemplateInformationsCommand::~ChangeTemplateInformationsCommand ( )
override

Destructor

◆ ChangeTemplateInformationsCommand() [2/2]

ChangeTemplateInformationsCommand::ChangeTemplateInformationsCommand ( const ChangeTemplateInformationsCommand )
private

Member Function Documentation

◆ redo()

void ChangeTemplateInformationsCommand::redo ( )
override

Redo the information change

◆ undo()

void ChangeTemplateInformationsCommand::undo ( )
override

Undo the information change

Member Data Documentation

◆ new_information_

QString ChangeTemplateInformationsCommand::new_information_
private

Informations after they were modified.

◆ old_information_

QString ChangeTemplateInformationsCommand::old_information_
private

Informations before they are modified.

◆ tbtemplate_

TitleBlockTemplate* ChangeTemplateInformationsCommand::tbtemplate_
private

Changed title block template.


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