![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
this command performs a move and allows redo/undo of that move More...
#include <UndoCommands.h>
Public Member Functions | |
MoveCommand (GraphicsScene *scene, QGraphicsItem *item, const QPointF &distance) | |
constructor | |
MoveCommand (GraphicsScene *scene, const QList< QGraphicsItem * > &items, const QPointF &distance) | |
constructor | |
MoveCommand (GraphicsScene *scene, const QList< QGraphicsItem * > &items, const QList< QPointF > &distance) | |
constructor | |
void | redo () |
redo the change | |
void | undo () |
undo the change | |
Static Public Member Functions | |
static void | refreshAllConnectionIn (const QList< QGraphicsItem * > &) |
refresh all connectors that are attached to any of the items in the list |
this command performs a move and allows redo/undo of that move
Definition at line 126 of file UndoCommands.h.
Tinkercell::MoveCommand::MoveCommand | ( | GraphicsScene * | scene, |
QGraphicsItem * | item, | ||
const QPointF & | distance | ||
) |
constructor
GraphicsScene* | scene where change happened |
QGraphicsItem | * items that are affected |
QPointF& | amount to move |
Definition at line 125 of file UndoCommands.cpp.
Tinkercell::MoveCommand::MoveCommand | ( | GraphicsScene * | scene, |
const QList< QGraphicsItem * > & | items, | ||
const QPointF & | distance | ||
) |
constructor
scene | where change happened |
items | that are affected |
QPointF& | amount to move |
Definition at line 80 of file UndoCommands.cpp.
Tinkercell::MoveCommand::MoveCommand | ( | GraphicsScene * | scene, |
const QList< QGraphicsItem * > & | items, | ||
const QList< QPointF > & | distance | ||
) |
constructor
GraphicsScene* | scene where change happened |
QList<QGraphicsItem*>& | items that are affected |
QPointF& | amount to move |
Definition at line 29 of file UndoCommands.cpp.
void Tinkercell::MoveCommand::redo | ( | ) |
redo the change
Definition at line 194 of file UndoCommands.cpp.
void Tinkercell::MoveCommand::refreshAllConnectionIn | ( | const QList< QGraphicsItem * > & | moving | ) | [static] |
refresh all connectors that are attached to any of the items in the list
items | list to check |
Definition at line 171 of file UndoCommands.cpp.
void Tinkercell::MoveCommand::undo | ( | ) |
undo the change
Definition at line 223 of file UndoCommands.cpp.