![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
this command performs an insert and allows redo/undo of that insert More...
#include <UndoCommands.h>
Public Member Functions | |
InsertGraphicsCommand (const QString &name, GraphicsScene *scene, QGraphicsItem *item, bool checkNames=true) | |
constructor | |
InsertGraphicsCommand (const QString &name, GraphicsScene *scene, const QList< QGraphicsItem * > &items, bool checkNames=true) | |
constructor | |
void | redo () |
redo the change | |
void | undo () |
undo the change | |
virtual | ~InsertGraphicsCommand () |
destructor |
this command performs an insert and allows redo/undo of that insert
Definition at line 165 of file UndoCommands.h.
Tinkercell::InsertGraphicsCommand::InsertGraphicsCommand | ( | const QString & | name, |
GraphicsScene * | scene, | ||
QGraphicsItem * | item, | ||
bool | checkNames = true |
||
) |
constructor
QString | name of command |
GraphicsScene* | where change happened |
QGraphicsItem* | item that is inserted |
bool | check for uniqueness of names before inserting (default = true) |
Definition at line 665 of file UndoCommands.cpp.
Tinkercell::InsertGraphicsCommand::InsertGraphicsCommand | ( | const QString & | name, |
GraphicsScene * | scene, | ||
const QList< QGraphicsItem * > & | items, | ||
bool | checkNames = true |
||
) |
constructor
QString | name of command |
GraphicsScene* | where change happened |
QList<QGraphicsItem*>& | items that are inserted |
bool | check for uniqueness of names before inserting (default = true) |
Definition at line 711 of file UndoCommands.cpp.
Tinkercell::InsertGraphicsCommand::~InsertGraphicsCommand | ( | ) | [virtual] |
destructor
Definition at line 944 of file UndoCommands.cpp.
void Tinkercell::InsertGraphicsCommand::redo | ( | ) |
redo the change
Definition at line 754 of file UndoCommands.cpp.
void Tinkercell::InsertGraphicsCommand::undo | ( | ) |
undo the change
Definition at line 863 of file UndoCommands.cpp.