QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
ChangeBorderCommand Class Reference

The ChangeBorderCommand class This command changes the border properties of a particular diagram. More...

#include <diagramcommands.h>

Inherits QUndoCommand.

Collaboration diagram for ChangeBorderCommand:
Collaboration graph

Public Member Functions

 ChangeBorderCommand (Diagram *, const BorderProperties &, const BorderProperties &, QUndoCommand *=nullptr)
 ChangeBorderCommand::ChangeBorderCommand Constructeur.
 ~ChangeBorderCommand () override
 ChangeBorderCommand::~ChangeBorderCommand Destructeur.
void undo () override
 ChangeBorderCommand::undo Annule les changements apportes au schema.
void redo () override
 ChangeBorderCommand::redo Refait les changements apportes au schema.

Public Attributes

BorderProperties old_properties
 properties before the change
BorderProperties new_properties
 properties after the change

Private Member Functions

 ChangeBorderCommand (const ChangeBorderCommand &)

Private Attributes

Diagramdiagram
 modified diagram

Detailed Description

The ChangeBorderCommand class This command changes the border properties of a particular diagram.

Constructor & Destructor Documentation

◆ ChangeBorderCommand() [1/2]

ChangeBorderCommand::ChangeBorderCommand ( Diagram * dia,
const BorderProperties & old_bp,
const BorderProperties & new_bp,
QUndoCommand * parent = nullptr )

ChangeBorderCommand::ChangeBorderCommand Constructeur.

Parameters
diaSchema modifie
old_bpAnciennes proprietes du cadre du schema
new_bpNouvelles proprietes du cadre du schema
parentQUndoCommand parent
Here is the caller graph for this function:

◆ ~ChangeBorderCommand()

ChangeBorderCommand::~ChangeBorderCommand ( )
override

◆ ChangeBorderCommand() [2/2]

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

Member Function Documentation

◆ redo()

void ChangeBorderCommand::redo ( )
override

ChangeBorderCommand::redo Refait les changements apportes au schema.

◆ undo()

void ChangeBorderCommand::undo ( )
override

ChangeBorderCommand::undo Annule les changements apportes au schema.

Member Data Documentation

◆ diagram

Diagram* ChangeBorderCommand::diagram
private

modified diagram

◆ new_properties

BorderProperties ChangeBorderCommand::new_properties

properties after the change

◆ old_properties

BorderProperties ChangeBorderCommand::old_properties

properties before the change


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