libs/flake

KoParameterHandleMoveCommand Class Reference

The undo / redo command for changing a parameter. More...

#include <KoParameterHandleMoveCommand.h>

Inheritance diagram for KoParameterHandleMoveCommand:

List of all members.

Public Member Functions

 KoParameterHandleMoveCommand (KoParameterShape *shape, int handleId, const QPointF &startPoint, const QPointF &endPoint, Qt::KeyboardModifiers keyModifiers, QUndoCommand *parent=0)
virtual ~KoParameterHandleMoveCommand ()
void redo ()
void undo ()

Detailed Description

The undo / redo command for changing a parameter.

Definition at line 32 of file KoParameterHandleMoveCommand.h.


Constructor & Destructor Documentation

KoParameterHandleMoveCommand::KoParameterHandleMoveCommand ( KoParameterShape shape,
int  handleId,
const QPointF startPoint,
const QPointF endPoint,
Qt::KeyboardModifiers  keyModifiers,
QUndoCommand parent = 0 
)

Constructor.

Parameters:
shape the shape this command works on
handleId the ID under which the parameterShape knows the handle in KoParameterShape::moveHandle()
startPoint The old position
endPoint The new position
keyModifiers the key modifiers used while moving.
parent the parent command if this is a compound undo command.

Definition at line 26 of file KoParameterHandleMoveCommand.cpp.

KoParameterHandleMoveCommand::~KoParameterHandleMoveCommand (  )  [virtual]

Definition at line 37 of file KoParameterHandleMoveCommand.cpp.


Member Function Documentation

void KoParameterHandleMoveCommand::redo (  ) 

redo the command

Reimplemented from QUndoCommand.

Definition at line 42 of file KoParameterHandleMoveCommand.cpp.

void KoParameterHandleMoveCommand::undo (  ) 

revert the actions done in redo

Reimplemented from QUndoCommand.

Definition at line 51 of file KoParameterHandleMoveCommand.cpp.


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