kword
FramePolicy Class Reference
#include <KWFrameView.h>
Inheritance diagram for FramePolicy:

Detailed Description
This base class is an interface for Policies used in the KWFrameView.
Definition at line 36 of file KWFrameView.h.
Public Member Functions | |
FramePolicy (KWFrameView *view) | |
virtual MouseMeaning | mouseMeaning (const KoPoint &point, int keyState)=0 |
virtual QPopupMenu * | 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, QPtrList< KAction > &actionList) |
Protected Attributes | |
KWFrameView * | m_view |
KActionSeparator * | m_separator |
Friends | |
class | KWFrameView |
Constructor & Destructor Documentation
FramePolicy::FramePolicy | ( | KWFrameView * | view | ) |
Member Function Documentation
virtual MouseMeaning FramePolicy::mouseMeaning | ( | const KoPoint & | point, | |
int | keyState | |||
) | [pure virtual] |
Return the MouseMeaning enum value for the parent view.
- Parameters:
-
point the point where the mouse is hovering. keyState the bitmask of keys that are pressed. Same as Event::state();
Implemented in TableFramePolicy, PartFramePolicy, TextFramePolicy, and ImageFramePolicy.
virtual QPopupMenu* FramePolicy::createPopup | ( | const KoPoint & | point, | |
KWView * | view | |||
) | [pure virtual] |
Return a fully initialized popup for the context of frame at point
.
- Parameters:
-
point the point where the mouse is hovering. view the parent view widget
Implemented in TableFramePolicy, PartFramePolicy, TextFramePolicy, and ImageFramePolicy.
virtual void FramePolicy::setSelected | ( | MouseMeaning | ) | [inline, virtual] |
Override this method to do more than select the parent frame-view.
Reimplemented in TableFramePolicy.
Definition at line 55 of file KWFrameView.h.
MouseMeaning FramePolicy::mouseMeaningOnBorder | ( | const KoPoint & | point, | |
int | keyState | |||
) | [protected, virtual] |
Shared method for all policies called when the border of the frame is clicked.
- Parameters:
-
point the point where the mouse is hovering. keyState the bitmask of keys that are pressed. Same as Event::state();
Reimplemented in TableFramePolicy.
Definition at line 193 of file KWFrameView.cpp.
void FramePolicy::addFloatingAction | ( | KWView * | view, | |
QPtrList< KAction > & | actionList | |||
) | [protected] |
Shared method for all policies to add the 'set floating' action to a popup menu.
- Parameters:
-
view the parent view widget actionList the list of actions where the floating action should be added to
Definition at line 181 of file KWFrameView.cpp.
The documentation for this class was generated from the following files: