QElectroTech
0.70
|
#include <editorcommands.h>
Public Member Functions | |
ChangeNamesCommand (ElementScene *, const NamesList &, const NamesList &, QUndoCommand *=nullptr) | |
~ChangeNamesCommand () override | |
Destructeur. More... | |
void | undo () override |
Annule le changement. More... | |
void | redo () override |
Refait le changement. 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 | |
ChangeNamesCommand (const ChangeNamesCommand &) | |
Private Attributes | |
NamesList | names_before |
List of former names. More... | |
NamesList | names_after |
List of new names. 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 the translated names of an electrical element.
Definition at line 175 of file editorcommands.h.
ChangeNamesCommand::ChangeNamesCommand | ( | ElementScene * | element_scene, |
const NamesList & | before, | ||
const NamesList & | after, | ||
QUndoCommand * | parent = nullptr |
||
) |
Constructeur
element_scene | Element edite |
before | Listes des noms avant changement |
after | Listes des noms apres changement |
parent | QUndoCommand parent |
Definition at line 312 of file editorcommands.cpp.
|
override |
Destructeur.
Definition at line 325 of file editorcommands.cpp.
|
private |
|
override |
Refait le changement.
Definition at line 334 of file editorcommands.cpp.
References ElementEditionCommand::m_scene, and names_after.
|
override |
Annule le changement.
Definition at line 329 of file editorcommands.cpp.
References ElementEditionCommand::m_scene, and names_before.
|
private |
|
private |