libs/flake

KoShapeMoveCommand Class Reference

The undo / redo command for shape moving. More...

#include <KoShapeMoveCommand.h>

Inheritance diagram for KoShapeMoveCommand:

List of all members.

Public Member Functions

 KoShapeMoveCommand (const QList< KoShape * > &shapes, QList< QPointF > &previousPositions, QList< QPointF > &newPositions, QUndoCommand *parent=0)
 ~KoShapeMoveCommand ()
void redo ()
void setNewPositions (QList< QPointF > newPositions)
void undo ()

Detailed Description

The undo / redo command for shape moving.

Definition at line 35 of file KoShapeMoveCommand.h.


Constructor & Destructor Documentation

KoShapeMoveCommand::KoShapeMoveCommand ( const QList< KoShape * > &  shapes,
QList< QPointF > &  previousPositions,
QList< QPointF > &  newPositions,
QUndoCommand parent = 0 
)

Constructor.

Parameters:
shapes the set of objects that are moved.
previousPositions the known set of previous positions for each of the objects. this list naturally must have the same amount of items as the shapes set.
newPositions the new positions for the shapes. this list naturally must have the same amount of items as the shapes set.
parent the parent command used for macro commands

Definition at line 32 of file KoShapeMoveCommand.cpp.

KoShapeMoveCommand::~KoShapeMoveCommand (  ) 

Definition at line 45 of file KoShapeMoveCommand.cpp.


Member Function Documentation

void KoShapeMoveCommand::redo (  ) 

redo the command

Reimplemented from QUndoCommand.

Definition at line 50 of file KoShapeMoveCommand.cpp.

void KoShapeMoveCommand::setNewPositions ( QList< QPointF newPositions  ) 

update newPositions list with new postions.

Definition at line 71 of file KoShapeMoveCommand.cpp.

void KoShapeMoveCommand::undo (  ) 

revert the actions done in redo

Reimplemented from QUndoCommand.

Definition at line 60 of file KoShapeMoveCommand.cpp.


The documentation for this class was generated from the following files: