QElectroTech 0.100.0-dev
|
#include <editorcommands.h>
Public Member Functions | |
MovePartsCommand (const QPointF &, ElementScene *, const QList< QGraphicsItem * > &, QUndoCommand *=nullptr) | |
~MovePartsCommand () override | |
Destructeur. | |
void | undo () override |
Annule le deplacement. | |
void | redo () override |
Refait le deplacement. | |
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. | |
ElementEditionCommand (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view. | |
~ElementEditionCommand () override | |
ElementScene * | elementScene () const |
void | setElementScene (ElementScene *) |
ElementView * | elementView () const |
void | setElementView (ElementView *) |
Private Member Functions | |
MovePartsCommand (const MovePartsCommand &) | |
Private Attributes | |
QList< QGraphicsItem * > | moved_parts |
List of moved primitives. | |
QPointF | movement |
applied movement | |
bool | first_redo |
Prevent the first call to redo() | |
Additional Inherited Members | |
Protected Attributes inherited from ElementEditionCommand | |
ElementScene * | m_scene |
Element editor/view/scene the command should take place on. | |
ElementView * | m_view |
This command moves primitives when editing an electrical element.
MovePartsCommand::MovePartsCommand | ( | const QPointF & | m, |
ElementScene * | scene, | ||
const QList< QGraphicsItem * > & | parts, | ||
QUndoCommand * | parent = nullptr |
||
) |
Constructeur
m | Mouvement sous forme de QPointF |
scene | ElementScene concernee |
parts | Liste des parties deplacees |
parent | QUndoCommand parent |
|
override |
Destructeur.
|
private |
|
override |
Refait le deplacement.
|
override |
Annule le deplacement.
|
private |
Prevent the first call to redo()
|
private |
List of moved primitives.
|
private |
applied movement