#include <KWCanvas.h>
Public Member Functions | |
| FrameMovePolicy (KWCanvas *parent, 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 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 461 of file KWCanvas.h.
Constructor & Destructor Documentation
◆ FrameMovePolicy()
| FrameMovePolicy::FrameMovePolicy | ( | KWCanvas * | parent, |
| KoPoint & | point | ||
| ) |
Definition at line 2311 of file KWCanvas.cpp.
Member Function Documentation
◆ 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.
◆ 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.
◆ handleMouseMove()
|
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.
The documentation for this class was generated from the following files:

Public Member Functions inherited from