libs/flake

KoPathControlPointMoveStrategy Class Reference

/internal More...

#include <KoPathControlPointMoveStrategy.h>

Inheritance diagram for KoPathControlPointMoveStrategy:

List of all members.

Public Member Functions

 KoPathControlPointMoveStrategy (KoPathTool *tool, KoCanvasBase *canvas, const KoPathPointData &point, KoPathPoint::KoPointType type, const QPointF &pos)
virtual ~KoPathControlPointMoveStrategy ()
virtual QUndoCommandcreateCommand ()
virtual void finishInteraction (Qt::KeyboardModifiers modifiers)
virtual void handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers)

Detailed Description

/internal

Strategy for moving points of a path shape.

Definition at line 36 of file KoPathControlPointMoveStrategy.h.


Constructor & Destructor Documentation

KoPathControlPointMoveStrategy::KoPathControlPointMoveStrategy ( KoPathTool tool,
KoCanvasBase canvas,
const KoPathPointData point,
KoPathPoint::KoPointType  type,
const QPointF pos 
)

Definition at line 28 of file KoPathControlPointMoveStrategy.cpp.

KoPathControlPointMoveStrategy::~KoPathControlPointMoveStrategy (  )  [virtual]

Definition at line 38 of file KoPathControlPointMoveStrategy.cpp.


Member Function Documentation

QUndoCommand * KoPathControlPointMoveStrategy::createCommand (  )  [virtual]

For interactions that are undo-able this method should be implemented to return such a command.

Implementations should return 0 otherwise.

Returns:
a command, or 0.

Implements KoInteractionStrategy.

Definition at line 61 of file KoPathControlPointMoveStrategy.cpp.

void KoPathControlPointMoveStrategy::finishInteraction ( Qt::KeyboardModifiers  modifiers  )  [virtual]

Override to make final changes to the data on the end of an interaction.

Implements KoInteractionStrategy.

Definition at line 56 of file KoPathControlPointMoveStrategy.cpp.

void KoPathControlPointMoveStrategy::handleMouseMove ( const QPointF mouseLocation,
Qt::KeyboardModifiers  modifiers 
) [virtual]

Extending classes should implement this method to update the selectedShapes based on the new mouse position.

Parameters:
mouseLocation the new location in pt
modifiers OR-ed set of keys pressed.

Implements KoInteractionStrategy.

Definition at line 42 of file KoPathControlPointMoveStrategy.cpp.


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