kword

FrameSelectPolicy Class Reference

#include <KWCanvas.h>

Inheritance diagram for FrameSelectPolicy:
InteractionPolicy

Public Member Functions

 FrameSelectPolicy (KWCanvas *parent, MouseMeaning meaning, KoPoint &point, TQt::ButtonState state, TQt::ButtonState keyState)
 
void handleMouseMove (TQt::ButtonState keyState, const KoPoint &point)
 
KCommand * createCommand ()
 
void finishInteraction ()
 
bool isValid ()
 
- 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 to select frames.

Definition at line 477 of file KWCanvas.h.

Constructor & Destructor Documentation

◆ FrameSelectPolicy()

FrameSelectPolicy::FrameSelectPolicy ( KWCanvas *  parent,
MouseMeaning  meaning,
KoPoint &  point,
TQt::ButtonState  state,
TQt::ButtonState  keyState 
)

Definition at line 2445 of file KWCanvas.cpp.

Member Function Documentation

◆ createCommand()

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

◆ finishInteraction()

void FrameSelectPolicy::finishInteraction ( )
virtual

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

Implements InteractionPolicy.

Definition at line 2490 of file KWCanvas.cpp.

◆ handleMouseMove()

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

◆ isValid()

bool FrameSelectPolicy::isValid ( )
inline

Definition at line 483 of file KWCanvas.h.


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