QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
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.
 ~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
Here is the caller graph for this function:

◆ ~ChangeTitleBlockCommand()

ChangeTitleBlockCommand::~ChangeTitleBlockCommand ( )
override

◆ ChangeTitleBlockCommand() [2/2]

ChangeTitleBlockCommand::ChangeTitleBlockCommand ( const ChangeTitleBlockCommand & )
private
Here is the call graph for this function:

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: