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

The ChangeTitleBlockCommand class This command changes the title block properties for a particular diagram. More...

#include <changetitleblockcommand.h>

Public Member Functions

 ChangeTitleBlockCommand (Diagram *, const TitleBlockProperties &, const TitleBlockProperties &, QUndoCommand *=nullptr)
 ChangeTitleBlockCommand::ChangeTitleBlockCommand. More...
 
 ~ChangeTitleBlockCommand () override
 
void undo () override
 
void redo () override
 

Private Member Functions

 ChangeTitleBlockCommand (const ChangeTitleBlockCommand &)
 

Private Attributes

Diagramdiagram
 
TitleBlockProperties old_titleblock
 
TitleBlockProperties new_titleblock
 

Detailed Description

The ChangeTitleBlockCommand class This command changes the title block properties for a particular diagram.

Definition at line 30 of file changetitleblockcommand.h.

Constructor & Destructor Documentation

◆ ChangeTitleBlockCommand() [1/2]

ChangeTitleBlockCommand::ChangeTitleBlockCommand ( Diagram d,
const TitleBlockProperties old_ip,
const TitleBlockProperties new_ip,
QUndoCommand *  parent = nullptr 
)

ChangeTitleBlockCommand::ChangeTitleBlockCommand.

Parameters
d
old_ip
new_ip
parent

Definition at line 29 of file changetitleblockcommand.cpp.

◆ ~ChangeTitleBlockCommand()

ChangeTitleBlockCommand::~ChangeTitleBlockCommand ( )
override

Definition at line 41 of file changetitleblockcommand.cpp.

◆ ChangeTitleBlockCommand() [2/2]

ChangeTitleBlockCommand::ChangeTitleBlockCommand ( const ChangeTitleBlockCommand )
private

Member Function Documentation

◆ redo()

void ChangeTitleBlockCommand::redo ( )
override

Definition at line 50 of file changetitleblockcommand.cpp.

References diagram, and new_titleblock.

◆ undo()

void ChangeTitleBlockCommand::undo ( )
override

Definition at line 43 of file changetitleblockcommand.cpp.

References diagram, and old_titleblock.

Member Data Documentation

◆ diagram

Diagram* ChangeTitleBlockCommand::diagram
private

Definition at line 43 of file changetitleblockcommand.h.

Referenced by redo(), and undo().

◆ new_titleblock

TitleBlockProperties ChangeTitleBlockCommand::new_titleblock
private

Definition at line 45 of file changetitleblockcommand.h.

Referenced by redo().

◆ old_titleblock

TitleBlockProperties ChangeTitleBlockCommand::old_titleblock
private

Definition at line 44 of file changetitleblockcommand.h.

Referenced by undo().


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