![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
this command changes the pen and/or brush of an item More...
#include <UndoCommands.h>
Public Member Functions | |
ChangeBrushAndPenCommand (const QString &name, QGraphicsItem *item, const QBrush &brush, const QPen &pen) | |
constructor | |
ChangeBrushAndPenCommand (const QString &name, const QList< QGraphicsItem * > &items, const QList< QBrush > &brushes, const QList< QPen > &pens) | |
constructor | |
~ChangeBrushAndPenCommand () | |
void | redo () |
void | undo () |
this command changes the pen and/or brush of an item
Definition at line 303 of file UndoCommands.h.
Tinkercell::ChangeBrushAndPenCommand::ChangeBrushAndPenCommand | ( | const QString & | name, |
QGraphicsItem * | item, | ||
const QBrush & | brush, | ||
const QPen & | pen | ||
) |
constructor
QString | name of command |
GraphicsScene* | scene where change happened |
QGraphicsItem* | item that is affected |
QBrush | new brushes (one for each item) |
QPen | new pens (one for each item) |
Definition at line 1702 of file UndoCommands.cpp.
Tinkercell::ChangeBrushAndPenCommand::ChangeBrushAndPenCommand | ( | const QString & | name, |
const QList< QGraphicsItem * > & | items, | ||
const QList< QBrush > & | brushes, | ||
const QList< QPen > & | pens | ||
) |
constructor
QString | name of command |
GraphicsScene* | scene where change happened |
QList<QGraphicsItem*>& | items that are affected |
QList<QBrush>& | new brushes (one for each item) |
QList<QPen>& | new pens (one for each item) |
Definition at line 1709 of file UndoCommands.cpp.
Tinkercell::ChangeBrushAndPenCommand::~ChangeBrushAndPenCommand | ( | ) |
Definition at line 1693 of file UndoCommands.cpp.
void Tinkercell::ChangeBrushAndPenCommand::redo | ( | ) |
void Tinkercell::ChangeBrushAndPenCommand::undo | ( | ) |