![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
this command changes the brush of an item More...
#include <UndoCommands.h>
Public Member Functions | |
ChangeBrushCommand (const QString &name, QGraphicsItem *item, const QBrush &to) | |
constructor | |
ChangeBrushCommand (const QString &name, const QList< QGraphicsItem * > &items, const QList< QBrush > &to) | |
constructor | |
void | redo () |
void | undo () |
this command changes the brush of an item
Definition at line 251 of file UndoCommands.h.
Tinkercell::ChangeBrushCommand::ChangeBrushCommand | ( | const QString & | name, |
QGraphicsItem * | item, | ||
const QBrush & | to | ||
) |
constructor
QString | name of command |
GraphicsScene* | scene where change happened |
QGraphicsItem* | item that is affected |
QBrush | new brush |
Definition at line 1413 of file UndoCommands.cpp.
Tinkercell::ChangeBrushCommand::ChangeBrushCommand | ( | const QString & | name, |
const QList< QGraphicsItem * > & | items, | ||
const QList< QBrush > & | to | ||
) |
constructor
QString | name of command |
GraphicsScene* | scene where change happened |
QList<QGraphicsItem*>& | items that are affected |
QList<QBrush>& | new brushes (one for each item) |
Definition at line 1453 of file UndoCommands.cpp.
void Tinkercell::ChangeBrushCommand::redo | ( | ) |
Definition at line 1491 of file UndoCommands.cpp.
void Tinkercell::ChangeBrushCommand::undo | ( | ) |
Definition at line 1515 of file UndoCommands.cpp.