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

this command performs a move and allows redo/undo of that move More...

#include <UndoCommands.h>

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

List of all members.

Public Member Functions

 MoveCommand (GraphicsScene *scene, QGraphicsItem *item, const QPointF &distance)
 constructor
 MoveCommand (GraphicsScene *scene, const QList< QGraphicsItem * > &items, const QPointF &distance)
 constructor
 MoveCommand (GraphicsScene *scene, const QList< QGraphicsItem * > &items, const QList< QPointF > &distance)
 constructor
void redo ()
 redo the change
void undo ()
 undo the change

Static Public Member Functions

static void refreshAllConnectionIn (const QList< QGraphicsItem * > &)
 refresh all connectors that are attached to any of the items in the list

Detailed Description

this command performs a move and allows redo/undo of that move

Definition at line 126 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::MoveCommand::MoveCommand ( GraphicsScene scene,
QGraphicsItem *  item,
const QPointF &  distance 
)

constructor

Parameters:
GraphicsScene*scene where change happened
QGraphicsItem* items that are affected
QPointF&amount to move

Definition at line 125 of file UndoCommands.cpp.

Here is the call graph for this function:

Tinkercell::MoveCommand::MoveCommand ( GraphicsScene scene,
const QList< QGraphicsItem * > &  items,
const QPointF &  distance 
)

constructor

Parameters:
scenewhere change happened
itemsthat are affected
QPointF&amount to move

Definition at line 80 of file UndoCommands.cpp.

Here is the call graph for this function:

Tinkercell::MoveCommand::MoveCommand ( GraphicsScene scene,
const QList< QGraphicsItem * > &  items,
const QList< QPointF > &  distance 
)

constructor

Parameters:
GraphicsScene*scene where change happened
QList<QGraphicsItem*>&items that are affected
QPointF&amount to move

Definition at line 29 of file UndoCommands.cpp.

Here is the call graph for this function:


Member Function Documentation

void Tinkercell::MoveCommand::redo ( )

redo the change

Definition at line 194 of file UndoCommands.cpp.

Here is the call graph for this function:

void Tinkercell::MoveCommand::refreshAllConnectionIn ( const QList< QGraphicsItem * > &  moving) [static]

refresh all connectors that are attached to any of the items in the list

Parameters:
itemslist to check

Definition at line 171 of file UndoCommands.cpp.

Here is the caller graph for this function:

void Tinkercell::MoveCommand::undo ( )

undo the change

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