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

#include <diagramcommands.h>

Public Member Functions

 ChangeBorderCommand (Diagram *, const BorderProperties &, const BorderProperties &, QUndoCommand *=nullptr)
 
 ~ChangeBorderCommand () override
 Destructeur. More...
 
void undo () override
 Annule les changements apportes au schema. More...
 
void redo () override
 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

This command changes the border properties of a particular diagram.

Definition at line 280 of file diagramcommands.h.

Constructor & Destructor Documentation

◆ ChangeBorderCommand() [1/2]

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

Constructeur

Parameters
diaSchema modifie
old_bpAnciennes proprietes du cadre du schema
new_bpNouvelles proprietes du cadre du schema
parentQUndoCommand parent

Definition at line 535 of file diagramcommands.cpp.

◆ ~ChangeBorderCommand()

ChangeBorderCommand::~ChangeBorderCommand ( )
override

Destructeur.

Definition at line 544 of file diagramcommands.cpp.

◆ ChangeBorderCommand() [2/2]

ChangeBorderCommand::ChangeBorderCommand ( const ChangeBorderCommand )
private

Member Function Documentation

◆ redo()

void ChangeBorderCommand::redo ( )
override

Refait les changements apportes au schema.

Definition at line 554 of file diagramcommands.cpp.

References diagram, and new_properties.

◆ undo()

void ChangeBorderCommand::undo ( )
override

Annule les changements apportes au schema.

Definition at line 548 of file diagramcommands.cpp.

References diagram, and old_properties.

Member Data Documentation

◆ diagram

Diagram* ChangeBorderCommand::diagram
private

modified diagram

Definition at line 296 of file diagramcommands.h.

Referenced by redo(), and undo().

◆ new_properties

BorderProperties ChangeBorderCommand::new_properties

properties after the change

Definition at line 301 of file diagramcommands.h.

Referenced by redo().

◆ old_properties

BorderProperties ChangeBorderCommand::old_properties

properties before the change

Definition at line 299 of file diagramcommands.h.

Referenced by undo().


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