![]() |
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 | |
ChangePenCommand (const QString &name, QGraphicsItem *item, const QPen &to) | |
constructor | |
ChangePenCommand (const QString &name, const QList< QGraphicsItem * > &items, const QList< QPen > &to) | |
constructor | |
void | redo () |
void | undo () |
this command changes the pen of an item
Definition at line 277 of file UndoCommands.h.
Tinkercell::ChangePenCommand::ChangePenCommand | ( | const QString & | name, |
QGraphicsItem * | item, | ||
const QPen & | to | ||
) |
constructor
QString | name of command |
GraphicsScene* | scene where change happened |
QGraphicsItem* | item that is affected |
QBrush | new pen |
Definition at line 1540 of file UndoCommands.cpp.
Tinkercell::ChangePenCommand::ChangePenCommand | ( | const QString & | name, |
const QList< QGraphicsItem * > & | items, | ||
const QList< QPen > & | to | ||
) |
constructor
QString | name of command |
GraphicsScene* | scene where change happened |
QList<QGraphicsItem*>& | items that are affected |
QList<QPen>& | new pens (one for each item) |
Definition at line 1586 of file UndoCommands.cpp.
void Tinkercell::ChangePenCommand::redo | ( | ) |
Definition at line 1631 of file UndoCommands.cpp.
void Tinkercell::ChangePenCommand::undo | ( | ) |
Definition at line 1662 of file UndoCommands.cpp.