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

this command changes the parent of a graphics item (not handles) More...

#include <UndoCommands.h>

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

List of all members.

Public Member Functions

 ChangeParentCommand (const QString &name, QGraphicsScene *scene, QGraphicsItem *item, QGraphicsItem *newParent)
 constructor
 ChangeParentCommand (const QString &name, QGraphicsScene *scene, const QList< QGraphicsItem * > &items, const QList< QGraphicsItem * > &newParents)
 constructor
void redo ()
void undo ()

Detailed Description

this command changes the parent of a graphics item (not handles)

Definition at line 400 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::ChangeParentCommand::ChangeParentCommand ( const QString &  name,
QGraphicsScene *  scene,
QGraphicsItem *  item,
QGraphicsItem *  newParent 
)

constructor

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

Definition at line 1906 of file UndoCommands.cpp.

Tinkercell::ChangeParentCommand::ChangeParentCommand ( const QString &  name,
QGraphicsScene *  scene,
const QList< QGraphicsItem * > &  items,
const QList< QGraphicsItem * > &  newParents 
)

constructor

Parameters:
QStringname of command
GraphicsScene*scene where change happened
QList<QGraphicsItem*>& items that are affected
QList<QGraphicsItem*>& new parent items

Definition at line 1921 of file UndoCommands.cpp.


Member Function Documentation

void Tinkercell::ChangeParentCommand::redo ( )

Definition at line 1939 of file UndoCommands.cpp.

void Tinkercell::ChangeParentCommand::undo ( )

Definition at line 1964 of file UndoCommands.cpp.


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