QElectroTech
0.8-dev
|
#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::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view. More... | |
ElementEditionCommand (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view. More... | |
~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.
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 |
|
override |
Destructeur.
|
private |
|
override |
Refait le changement.
|
override |
Annule le changement.
|
private |
List of new names.
|
private |
List of former names.