|
QElectroTech
0.70
|
#include <editorcommands.h>
Public Member Functions | |
| ChangeInformationsCommand (ElementScene *, const QString &, const QString &, QUndoCommand *=nullptr) | |
| ~ChangeInformationsCommand () override | |
| Destructeur. More... | |
| void | undo () override |
| Annule le changement d'autorisation pour les connexions internes. More... | |
| void | redo () override |
| Refait le changement d'autorisation pour les connexions internes. More... | |
Public Member Functions inherited from ElementEditionCommand | |
| ElementEditionCommand (ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
| ElementEditionCommand (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
| ~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. More... | |
| QString | new_informations_ |
| New information. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ElementEditionCommand | |
| ElementScene * | m_scene |
| Element editor/view/scene the command should take place on. More... | |
| ElementView * | m_view |
This command changes extra information carried by an electrical element.
Definition at line 233 of file editorcommands.h.
| 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 |
Definition at line 468 of file editorcommands.cpp.
|
override |
Destructeur.
Definition at line 476 of file editorcommands.cpp.
|
private |
|
override |
Refait le changement d'autorisation pour les connexions internes.
Definition at line 485 of file editorcommands.cpp.
References ElementEditionCommand::m_scene, and new_informations_.
|
override |
Annule le changement d'autorisation pour les connexions internes.
Definition at line 480 of file editorcommands.cpp.
References ElementEditionCommand::m_scene, and old_informations_.
|
private |
|
private |
1.8.15