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

this command changes the pen and/or brush of an item More...

#include <UndoCommands.h>

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

List of all members.

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

Detailed Description

this command changes the pen and/or brush of an item

Definition at line 303 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::ChangeBrushAndPenCommand::ChangeBrushAndPenCommand ( const QString &  name,
QGraphicsItem *  item,
const QBrush &  brush,
const QPen &  pen 
)

constructor

Parameters:
QStringname of command
GraphicsScene*scene where change happened
QGraphicsItem*item that is affected
QBrushnew brushes (one for each item)
QPennew 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

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


Member Function Documentation

void Tinkercell::ChangeBrushAndPenCommand::redo ( )

Definition at line 1716 of file UndoCommands.cpp.

Here is the call graph for this function:

void Tinkercell::ChangeBrushAndPenCommand::undo ( )

Definition at line 1725 of file UndoCommands.cpp.

Here is the call 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