![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
this command performs an removal and allows redo/undo of that removal More...
#include <UndoCommands.h>
Public Member Functions | |
RemoveGraphicsCommand (const QString &name, QGraphicsItem *item, bool updataDataFields=true) | |
constructor | |
RemoveGraphicsCommand (const QString &name, const QList< QGraphicsItem * > &items, bool updateDataFields=true) | |
constructor | |
void | redo () |
redo the change | |
void | undo () |
undo the change |
this command performs an removal and allows redo/undo of that removal
Definition at line 208 of file UndoCommands.h.
Tinkercell::RemoveGraphicsCommand::RemoveGraphicsCommand | ( | const QString & | name, |
QGraphicsItem * | item, | ||
bool | updataDataFields = true |
||
) |
constructor
QString | name of command |
GraphicsScene* | where change happened |
QGraphicsItem* | item that is removed |
bool | update data of other items where removed items might occur (default=true) |
Definition at line 1011 of file UndoCommands.cpp.
Tinkercell::RemoveGraphicsCommand::RemoveGraphicsCommand | ( | const QString & | name, |
const QList< QGraphicsItem * > & | items, | ||
bool | updateDataFields = true |
||
) |
constructor
QString | name of command |
GraphicsScene* | where change happened |
QList<QGraphicsItem*>& | items that are removed |
bool | update data of other items where removed items might occur (default=true) |
Definition at line 1023 of file UndoCommands.cpp.
void Tinkercell::RemoveGraphicsCommand::redo | ( | ) |
redo the change
Definition at line 1037 of file UndoCommands.cpp.
void Tinkercell::RemoveGraphicsCommand::undo | ( | ) |
undo the change
Definition at line 1354 of file UndoCommands.cpp.