QElectroTech 0.100.0-dev
|
The ChangeBorderCommand class This command changes the border properties of a particular diagram. More...
#include <diagramcommands.h>
Inherits QUndoCommand.
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 | |
Diagram * | diagram |
modified diagram | |
The ChangeBorderCommand class This command changes the border properties of a particular diagram.
ChangeBorderCommand::ChangeBorderCommand | ( | Diagram * | dia, |
const BorderProperties & | old_bp, | ||
const BorderProperties & | new_bp, | ||
QUndoCommand * | parent = nullptr |
||
) |
ChangeBorderCommand::ChangeBorderCommand Constructeur.
dia | Schema modifie |
old_bp | Anciennes proprietes du cadre du schema |
new_bp | Nouvelles proprietes du cadre du schema |
parent | QUndoCommand parent |
|
override |
ChangeBorderCommand::~ChangeBorderCommand Destructeur.
|
private |
|
override |
ChangeBorderCommand::redo Refait les changements apportes au schema.
|
override |
ChangeBorderCommand::undo Annule les changements apportes au schema.
|
private |
modified diagram
BorderProperties ChangeBorderCommand::new_properties |
properties after the change
BorderProperties ChangeBorderCommand::old_properties |
properties before the change