QElectroTech  0.8-dev
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
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. More...
 
 ~ChangeBorderCommand () override
 ChangeBorderCommand::~ChangeBorderCommand Destructeur. More...
 
void undo () override
 ChangeBorderCommand::undo Annule les changements apportes au schema. More...
 
void redo () override
 ChangeBorderCommand::redo Refait les changements apportes au schema. More...
 

Public Attributes

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

Private Member Functions

 ChangeBorderCommand (const ChangeBorderCommand &)
 

Private Attributes

Diagramdiagram
 modified diagram More...
 

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

◆ ~ChangeBorderCommand()

ChangeBorderCommand::~ChangeBorderCommand ( )
override

◆ ChangeBorderCommand() [2/2]

ChangeBorderCommand::ChangeBorderCommand ( const ChangeBorderCommand )
private

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: