kword

FrameResizePolicy Class Reference

#include <KWCanvas.h>

Inheritance diagram for FrameResizePolicy:
InteractionPolicy

Public Member Functions

 FrameResizePolicy (KWCanvas *parent, MouseMeaning meaning, KoPoint &point)
void handleMouseMove (TQt::ButtonState keyState, const KoPoint &point)
KCommand * createCommand ()
void finishInteraction ()
Public Member Functions inherited from InteractionPolicy
void cancelInteraction ()
void hadDragEvents ()
bool gotDragEvents ()

Additional Inherited Members

Static Public Member Functions inherited from InteractionPolicy
static InteractionPolicy * createPolicy (KWCanvas *parent, MouseMeaning meaning, KoPoint &point, TQt::ButtonState buttonState, TQt::ButtonState keyState)
Protected Member Functions inherited from InteractionPolicy
 InteractionPolicy (KWCanvas *parent, bool doInit=true, bool includeInlineFrames=false)
Protected Attributes inherited from InteractionPolicy
TQValueList< FrameIndex > m_indexFrame
KWCanvas * m_parent
TQValueList< KWFrame * > m_frames

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 442 of file KWCanvas.h.

Constructor & Destructor Documentation

◆ FrameResizePolicy()

FrameResizePolicy::FrameResizePolicy ( KWCanvas * parent,
MouseMeaning meaning,
KoPoint & point )

Definition at line 2123 of file KWCanvas.cpp.

Member Function Documentation

◆ createCommand()

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 2289 of file KWCanvas.cpp.

◆ finishInteraction()

void FrameResizePolicy::finishInteraction ( )
virtual

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

Implements InteractionPolicy.

Definition at line 2300 of file KWCanvas.cpp.

◆ handleMouseMove()

void FrameResizePolicy::handleMouseMove ( TQt::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
keyStatethe orred-data of the Shift/Alt/Control buttons being held down during the mousemove.
pointthe new point where the mouse if at. This is in the document (pt-based) coordinate system.

Implements InteractionPolicy.

Definition at line 2161 of file KWCanvas.cpp.


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