kword

FrameMovePolicy Class Reference

#include <KWCanvas.h>

Inheritance diagram for FrameMovePolicy:

InteractionPolicy List of all members.

Detailed Description

A policy that handles frame moves of any number of frames.

Includes support for undo/redo and linear moves (moves constrained to one axis) plus various other usability features.

Definition at line 460 of file KWCanvas.h.


Public Member Functions

 FrameMovePolicy (KWCanvas *parent, KoPoint &point)
void handleMouseMove (Qt::ButtonState keyState, const KoPoint &point)
KCommand * createCommand ()
void finishInteraction ()

Member Function Documentation

void FrameMovePolicy::handleMouseMove ( Qt::ButtonState  keyState,
const KoPoint &  point 
) [virtual]

Extending classes should implement this method to alter the frames or other data based on the new mouse position.

Parameters:
keyState the orred-data of the Shift/Alt/Control buttons being held down during the mousemove.
point the new point where the mouse if at. This is in the document (pt-based) coordinate system.

Implements InteractionPolicy.

Definition at line 2326 of file KWCanvas.cpp.

KCommand * FrameMovePolicy::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 InteractionPolicy.

Definition at line 2425 of file KWCanvas.cpp.

void FrameMovePolicy::finishInteraction (  )  [virtual]

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

Implements InteractionPolicy.

Definition at line 2435 of file KWCanvas.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys