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

this command performs an insert and allows redo/undo of that insert More...

#include <UndoCommands.h>

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

List of all members.

Public Member Functions

 InsertGraphicsCommand (const QString &name, GraphicsScene *scene, QGraphicsItem *item, bool checkNames=true)
 constructor
 InsertGraphicsCommand (const QString &name, GraphicsScene *scene, const QList< QGraphicsItem * > &items, bool checkNames=true)
 constructor
void redo ()
 redo the change
void undo ()
 undo the change
virtual ~InsertGraphicsCommand ()
 destructor

Detailed Description

this command performs an insert and allows redo/undo of that insert

Definition at line 165 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::InsertGraphicsCommand::InsertGraphicsCommand ( const QString &  name,
GraphicsScene scene,
QGraphicsItem *  item,
bool  checkNames = true 
)

constructor

Parameters:
QStringname of command
GraphicsScene*where change happened
QGraphicsItem*item that is inserted
boolcheck for uniqueness of names before inserting (default = true)

Definition at line 665 of file UndoCommands.cpp.

Here is the call graph for this function:

Tinkercell::InsertGraphicsCommand::InsertGraphicsCommand ( const QString &  name,
GraphicsScene scene,
const QList< QGraphicsItem * > &  items,
bool  checkNames = true 
)

constructor

Parameters:
QStringname of command
GraphicsScene*where change happened
QList<QGraphicsItem*>&items that are inserted
boolcheck for uniqueness of names before inserting (default = true)

Definition at line 711 of file UndoCommands.cpp.

Here is the call graph for this function:

Tinkercell::InsertGraphicsCommand::~InsertGraphicsCommand ( ) [virtual]

destructor

Definition at line 944 of file UndoCommands.cpp.

Here is the call graph for this function:


Member Function Documentation

void Tinkercell::InsertGraphicsCommand::redo ( )

redo the change

Definition at line 754 of file UndoCommands.cpp.

Here is the call graph for this function:

void Tinkercell::InsertGraphicsCommand::undo ( )

undo the change

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