![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
this command changes the parent of a graphics item (not handles) More...
#include <UndoCommands.h>
Public Member Functions | |
ChangeParentCommand (const QString &name, QGraphicsScene *scene, QGraphicsItem *item, QGraphicsItem *newParent) | |
constructor | |
ChangeParentCommand (const QString &name, QGraphicsScene *scene, const QList< QGraphicsItem * > &items, const QList< QGraphicsItem * > &newParents) | |
constructor | |
void | redo () |
void | undo () |
this command changes the parent of a graphics item (not handles)
Definition at line 400 of file UndoCommands.h.
Tinkercell::ChangeParentCommand::ChangeParentCommand | ( | const QString & | name, |
QGraphicsScene * | scene, | ||
QGraphicsItem * | item, | ||
QGraphicsItem * | newParent | ||
) |
constructor
QString | name of command |
GraphicsScene* | scene where change happened |
QGraphicsItem* | item that is affected |
QGraphicsItem* | new parent item |
Definition at line 1906 of file UndoCommands.cpp.
Tinkercell::ChangeParentCommand::ChangeParentCommand | ( | const QString & | name, |
QGraphicsScene * | scene, | ||
const QList< QGraphicsItem * > & | items, | ||
const QList< QGraphicsItem * > & | newParents | ||
) |
constructor
QString | name of command |
GraphicsScene* | scene where change happened |
QList<QGraphicsItem | *>& items that are affected |
QList<QGraphicsItem | *>& new parent items |
Definition at line 1921 of file UndoCommands.cpp.
void Tinkercell::ChangeParentCommand::redo | ( | ) |
Definition at line 1939 of file UndoCommands.cpp.
void Tinkercell::ChangeParentCommand::undo | ( | ) |
Definition at line 1964 of file UndoCommands.cpp.