kword

#include <KWFrameView.h>

Inheritance diagram for FramePolicy:
ImageFramePolicy PartFramePolicy TableFramePolicy TextFramePolicy

Public Member Functions

 FramePolicy (KWFrameView *view)
virtual MouseMeaning mouseMeaning (const KoPoint &point, int keyState)=0
virtual TQPopupMenu * createPopup (const KoPoint &point, KWView *view)=0
virtual void setSelected (MouseMeaning)

Protected Member Functions

virtual MouseMeaning mouseMeaningOnBorder (const KoPoint &point, int keyState)
void addFloatingAction (KWView *view, TQPtrList< TDEAction > &actionList)

Protected Attributes

KWFrameView * m_view
TDEActionSeparator * m_separator

Friends

class KWFrameView

Detailed Description

This base class is an interface for Policies used in the KWFrameView.

Definition at line 36 of file KWFrameView.h.

Constructor & Destructor Documentation

◆ FramePolicy()

FramePolicy::FramePolicy ( KWFrameView * view)

Constructor.

Definition at line 177 of file KWFrameView.cpp.

Member Function Documentation

◆ addFloatingAction()

void FramePolicy::addFloatingAction ( KWView * view,
TQPtrList< TDEAction > & actionList )
protected

Shared method for all policies to add the 'set floating' action to a popup menu.

Parameters
viewthe parent view widget
actionListthe list of actions where the floating action should be added to

Definition at line 181 of file KWFrameView.cpp.

◆ createPopup()

virtual TQPopupMenu * FramePolicy::createPopup ( const KoPoint & point,
KWView * view )
pure virtual

Return a fully initialized popup for the context of frame at point.

Parameters
pointthe point where the mouse is hovering.
viewthe parent view widget

Implemented in ImageFramePolicy, PartFramePolicy, TableFramePolicy, and TextFramePolicy.

◆ mouseMeaning()

virtual MouseMeaning FramePolicy::mouseMeaning ( const KoPoint & point,
int keyState )
pure virtual

Return the MouseMeaning enum value for the parent view.

Parameters
pointthe point where the mouse is hovering.
keyStatethe bitmask of keys that are pressed. Same as Event::state();

Implemented in ImageFramePolicy, PartFramePolicy, TableFramePolicy, and TextFramePolicy.

◆ mouseMeaningOnBorder()

MouseMeaning FramePolicy::mouseMeaningOnBorder ( const KoPoint & point,
int keyState )
protectedvirtual

Shared method for all policies called when the border of the frame is clicked.

Parameters
pointthe point where the mouse is hovering.
keyStatethe bitmask of keys that are pressed. Same as Event::state();

Reimplemented in TableFramePolicy.

Definition at line 193 of file KWFrameView.cpp.

◆ setSelected()

virtual void FramePolicy::setSelected ( MouseMeaning )
inlinevirtual

Override this method to do more than select the parent frame-view.

Reimplemented in TableFramePolicy.

Definition at line 55 of file KWFrameView.h.

◆ KWFrameView

friend class KWFrameView
friend

Definition at line 74 of file KWFrameView.h.

Member Data Documentation

◆ m_separator

TDEActionSeparator* FramePolicy::m_separator
protected

Definition at line 72 of file KWFrameView.h.

◆ m_view

KWFrameView* FramePolicy::m_view
protected

Definition at line 71 of file KWFrameView.h.


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