QElectroTech 0.100.0-dev
|
#include <editorcommands.h>
Public Member Functions | |
ChangeInformationsCommand (ElementScene *, const QString &, const QString &, QUndoCommand *=nullptr) | |
~ChangeInformationsCommand () override | |
Destructeur. | |
void | undo () override |
Annule le changement d'autorisation pour les connexions internes. | |
void | redo () override |
Refait le changement d'autorisation pour les connexions internes. | |
Public Member Functions inherited from ElementEditionCommand | |
ElementEditionCommand (ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view. | |
ElementEditionCommand (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view. | |
~ElementEditionCommand () override | |
ElementScene * | elementScene () const |
void | setElementScene (ElementScene *) |
ElementView * | elementView () const |
void | setElementView (ElementView *) |
Private Member Functions | |
ChangeInformationsCommand (const ChangeInformationsCommand &) | |
Private Attributes | |
QString | old_informations_ |
Former information. | |
QString | new_informations_ |
New information. | |
Additional Inherited Members | |
Protected Attributes inherited from ElementEditionCommand | |
ElementScene * | m_scene |
Element editor/view/scene the command should take place on. | |
ElementView * | m_view |
This command changes extra information carried by an electrical element.
ChangeInformationsCommand::ChangeInformationsCommand | ( | ElementScene * | elmt, |
const QString & | old_infos, | ||
const QString & | new_infos, | ||
QUndoCommand * | parent = nullptr |
||
) |
Constructeur
elmt | ElementScene concernee |
old_infos | Informations complementaires precedentes |
new_infos | Nouvelles informations complementaires |
parent | QUndoCommand parent |
|
override |
Destructeur.
|
private |
|
override |
Refait le changement d'autorisation pour les connexions internes.
|
override |
Annule le changement d'autorisation pour les connexions internes.
|
private |
New information.
|
private |
Former information.