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

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

#include <UndoCommands.h>

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

List of all members.

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

Detailed Description

this command changes the pen of an item

Definition at line 277 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::ChangePenCommand::ChangePenCommand ( const QString &  name,
QGraphicsItem *  item,
const QPen &  to 
)

constructor

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

Definition at line 1540 of file UndoCommands.cpp.

Here is the call graph for this function:

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

constructor

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

Here is the call graph for this function:


Member Function Documentation

void Tinkercell::ChangePenCommand::redo ( )

Definition at line 1631 of file UndoCommands.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Tinkercell::ChangePenCommand::undo ( )

Definition at line 1662 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