QElectroTech
0.8-dev
|
#include <editorcommands.h>
Public Member Functions | |
AddPartCommand (const QString &, ElementScene *, QGraphicsItem *, QUndoCommand *=nullptr) | |
~AddPartCommand () override | |
Destructeur. More... | |
void | undo () override |
Annule l'ajout. More... | |
void | redo () override |
Refait l'ajout. 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 | |
AddPartCommand (const AddPartCommand &) | |
Private Attributes | |
QGraphicsItem * | part |
Added primitive. More... | |
bool | first_redo |
Prevent the first call to redo() 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 adds a primitive when editing an electrical element.
AddPartCommand::AddPartCommand | ( | const QString & | name, |
ElementScene * | scene, | ||
QGraphicsItem * | p, | ||
QUndoCommand * | parent = nullptr |
||
) |
Constructeur
name | Nom de la partie ajoutee |
scene | ElementScene concernee |
p | partie ajoutee |
parent | QUndoCommand parent |
|
override |
Destructeur.
|
private |
|
override |
Refait l'ajout.
|
override |
Annule l'ajout.
|
private |
Prevent the first call to redo()
|
private |
Added primitive.