QElectroTech  0.8-dev
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>

Inherits QUndoCommand.

Collaboration diagram for ChangeTitleBlockCommand:
Collaboration graph

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.

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

◆ ~ChangeTitleBlockCommand()

ChangeTitleBlockCommand::~ChangeTitleBlockCommand ( )
override

◆ ChangeTitleBlockCommand() [2/2]

ChangeTitleBlockCommand::ChangeTitleBlockCommand ( const ChangeTitleBlockCommand )
private

Member Function Documentation

◆ redo()

void ChangeTitleBlockCommand::redo ( )
override

◆ undo()

void ChangeTitleBlockCommand::undo ( )
override

Member Data Documentation

◆ diagram

Diagram* ChangeTitleBlockCommand::diagram
private

◆ new_titleblock

TitleBlockProperties ChangeTitleBlockCommand::new_titleblock
private

◆ old_titleblock

TitleBlockProperties ChangeTitleBlockCommand::old_titleblock
private

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