TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Public Member Functions
Tinkercell::ChangeBrushCommand Class Reference

this command changes the brush of an item More...

#include <UndoCommands.h>

Inheritance diagram for Tinkercell::ChangeBrushCommand:
Inheritance graph
[legend]
Collaboration diagram for Tinkercell::ChangeBrushCommand:
Collaboration graph
[legend]

List of all members.

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 ()

Detailed Description

this command changes the brush of an item

Definition at line 251 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::ChangeBrushCommand::ChangeBrushCommand ( const QString &  name,
QGraphicsItem *  item,
const QBrush &  to 
)

constructor

Parameters:
QStringname of command
GraphicsScene*scene where change happened
QGraphicsItem*item that is affected
QBrushnew brush

Definition at line 1413 of file UndoCommands.cpp.

Here is the call graph for this function:

Tinkercell::ChangeBrushCommand::ChangeBrushCommand ( const QString &  name,
const QList< QGraphicsItem * > &  items,
const QList< QBrush > &  to 
)

constructor

Parameters:
QStringname 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.

Here is the call graph for this function:


Member Function Documentation

void Tinkercell::ChangeBrushCommand::redo ( )

Definition at line 1491 of file UndoCommands.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Tinkercell::ChangeBrushCommand::undo ( )

Definition at line 1515 of file UndoCommands.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines