Référence de la classe KoPathControlPointMoveStrategy

Strategy for moving points of a path shape. Plus de détails...

#include <KoPathControlPointMoveStrategy.h>

Graphe d'héritage de KoPathControlPointMoveStrategy:

[légende]
Graphe de collaboration de KoPathControlPointMoveStrategy:
[légende]
Liste de tous les membres

Fonctions membres publiques

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

Attributs privés

QPointF m_lastPosition
 the last mouse position
QPointF m_move
 the accumulated point move amount
KoPathToolm_tool
KoPathPointm_point
KoPathPoint::KoPointType m_pointType

Description détaillée

Strategy for moving points of a path shape.

Définition à la ligne 34 du fichier KoPathControlPointMoveStrategy.h.


Documentation des contructeurs et destructeur

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

Définition à la ligne 26 du fichier KoPathControlPointMoveStrategy.cpp.

KoPathControlPointMoveStrategy::~KoPathControlPointMoveStrategy (  )  [virtual]

Définition à la ligne 36 du fichier KoPathControlPointMoveStrategy.cpp.


Documentation des fonctions membres

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.

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

Implémente KoInteractionStrategy.

Définition à la ligne 40 du fichier KoPathControlPointMoveStrategy.cpp.

Références KoControlPointMoveCommand::execute(), m_lastPosition, m_move, m_point, m_pointType, m_tool, et KoPathTool::snapToGrid().

Voici le graphe d'appel pour cette fonction :

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

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

Implémente KoInteractionStrategy.

Définition à la ligne 54 du fichier KoPathControlPointMoveStrategy.cpp.

KCommand * KoPathControlPointMoveStrategy::createCommand (  )  [virtual]

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

Renvoie:
a command, or 0.

Implémente KoInteractionStrategy.

Définition à la ligne 59 du fichier KoPathControlPointMoveStrategy.cpp.

Références m_move, m_point, et m_pointType.


Documentation des données membres

QPointF KoPathControlPointMoveStrategy::m_lastPosition [private]

the last mouse position

Définition à la ligne 45 du fichier KoPathControlPointMoveStrategy.h.

Référencé par handleMouseMove().

QPointF KoPathControlPointMoveStrategy::m_move [private]

the accumulated point move amount

Définition à la ligne 47 du fichier KoPathControlPointMoveStrategy.h.

Référencé par createCommand(), et handleMouseMove().

KoPathTool* KoPathControlPointMoveStrategy::m_tool [private]

Définition à la ligne 49 du fichier KoPathControlPointMoveStrategy.h.

Référencé par handleMouseMove().

KoPathPoint* KoPathControlPointMoveStrategy::m_point [private]

Définition à la ligne 50 du fichier KoPathControlPointMoveStrategy.h.

Référencé par createCommand(), et handleMouseMove().

KoPathPoint::KoPointType KoPathControlPointMoveStrategy::m_pointType [private]

Définition à la ligne 51 du fichier KoPathControlPointMoveStrategy.h.

Référencé par createCommand(), et handleMouseMove().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:47:37 2006 pour KPlato par  doxygen 1.5.1-p1