kword

FrameResizePolicy Class Reference

#include <KWCanvas.h>

Inheritance diagram for FrameResizePolicy:

InteractionPolicy List of all members.

Detailed Description

A policy that handles resizes of any number of frames.

Includes support for undo/redo and support for scale from center plus various other usability features.

Definition at line 441 of file KWCanvas.h.


Public Member Functions

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

Member Function Documentation

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

void FrameResizePolicy::finishInteraction  )  [virtual]
 

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

Implements InteractionPolicy.

Definition at line 2283 of file KWCanvas.cpp.

void FrameResizePolicy::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 2144 of file KWCanvas.cpp.


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