kword

FrameSelectPolicy Class Reference

#include <KWCanvas.h>

Inheritance diagram for FrameSelectPolicy:

InteractionPolicy List of all members.

Detailed Description

A policy to select frames.

Definition at line 476 of file KWCanvas.h.


Public Member Functions

 FrameSelectPolicy (KWCanvas *parent, MouseMeaning meaning, KoPoint &point, Qt::ButtonState state, Qt::ButtonState keyState)
void handleMouseMove (Qt::ButtonState keyState, const KoPoint &point)
KCommand * createCommand ()
void finishInteraction ()
bool isValid ()

Member Function Documentation

KCommand * FrameSelectPolicy::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 2469 of file KWCanvas.cpp.

void FrameSelectPolicy::finishInteraction  )  [virtual]
 

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

Implements InteractionPolicy.

Definition at line 2473 of file KWCanvas.cpp.

void FrameSelectPolicy::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 2464 of file KWCanvas.cpp.


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