QElectroTech
0.8-dev
|
#include <editorcommands.h>
Public Member Functions | |
DeletePartsCommand (ElementScene *, const QList< QGraphicsItem * > &, QUndoCommand *=nullptr) | |
~DeletePartsCommand () override | |
Destructeur : detruit egalement les parties supprimees. More... | |
void | undo () override |
Restaure les parties supprimees. More... | |
void | redo () override |
Supprime les parties. 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 | |
DeletePartsCommand (const DeletePartsCommand &) | |
Private Attributes | |
QList< QGraphicsItem * > | deleted_parts |
Deleted primitives. 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 deletes one or several primitives/parts when editing an electrical element.
DeletePartsCommand::DeletePartsCommand | ( | ElementScene * | scene, |
const QList< QGraphicsItem * > & | parts, | ||
QUndoCommand * | parent = nullptr |
||
) |
Constructeur
scene | ElementScene concernee |
parts | Liste des parties supprimees |
parent | QUndoCommand parent |
|
override |
Destructeur : detruit egalement les parties supprimees.
|
private |
|
override |
Supprime les parties.
|
override |
Restaure les parties supprimees.
|
private |
Deleted primitives.