![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
this command changes the pen of an item More...
#include <UndoCommands.h>
Public Member Functions | |
ChangeZCommand (const QString &name, QGraphicsScene *scene, QGraphicsItem *item, qreal to) | |
constructor | |
ChangeZCommand (const QString &name, QGraphicsScene *scene, const QList< QGraphicsItem * > &items, const QList< qreal > &to) | |
constructor | |
void | redo () |
void | undo () |
this command changes the pen of an item
Definition at line 332 of file UndoCommands.h.
Tinkercell::ChangeZCommand::ChangeZCommand | ( | const QString & | name, |
QGraphicsScene * | scene, | ||
QGraphicsItem * | item, | ||
qreal | to | ||
) |
constructor
QString | name of command |
GraphicsScene* | scene where change happened |
QGraphicsItem* | item that is affected |
double | new Z value |
Tinkercell::ChangeZCommand::ChangeZCommand | ( | const QString & | name, |
QGraphicsScene * | scene, | ||
const QList< QGraphicsItem * > & | items, | ||
const QList< qreal > & | to | ||
) |
constructor
QString | name of command |
GraphicsScene* | scene where change happened |
QList<QGraphicsItem*>& | item that is affected |
QList<qreal>& | new Z (one for each item) |
void Tinkercell::ChangeZCommand::redo | ( | ) |
Definition at line 1884 of file UndoCommands.cpp.
void Tinkercell::ChangeZCommand::undo | ( | ) |
Definition at line 1895 of file UndoCommands.cpp.