kword
KWFrameViewManager Class Reference
#include <KWFrameViewManager.h>
Detailed Description
Class that knows about all the (visible) frames in the document and will act as a manager between the GUI code and the data objects to couple any GUI action to the right frame.There is one KWFrameViewManager per view (stored in KWCanvas).
All coordinates used in this object are point (pt) based, i.e. the same as in KWFrame. Any coordinates in pixels should first be converted in the KoZoomHandler (in KWord that's the KWDocument)
Definition at line 51 of file KWFrameViewManager.h.
Public Types | |
enum | SelectionType { selected, unselected, nextUnselected, frameOnTop } |
Public Slots | |
void | slotFrameSetAdded (KWFrameSet *fs) |
void | slotFrameSetRemoved (KWFrameSet *fs) |
void | slotFrameAdded (KWFrame *f) |
void | slotFrameRemoved (KWFrame *f) |
void | slotFrameMoved (KWFrame *f, double previousYPosition) |
void | slotFrameResized (KWFrame *f) |
void | slotFrameSelectionChanged () |
void | slotFrameSetRenamed (KWFrameSet *fs) |
Signals | |
void | sigFrameSelectionChanged () |
void | sigFrameSetRenamed () |
void | sigFrameResized (const QValueList< KWFrame * > &) |
void | sigFrameMoved (const QValueList< KWFrame * > &) |
Public Member Functions | |
KWFrameViewManager () | |
KWFrameViewManager (KWDocument *doc) | |
virtual | ~KWFrameViewManager () |
KWFrameView * | view (const KoPoint &point, SelectionType select, bool borderOnly=false) const |
KWFrameView * | view (const KWFrame *frame) const |
QValueList< KWFrameView * > | selectedFrames () const |
KWFrameView * | selectedFrame () const |
const QValueList< KWFrameView * > | frameViewsIterator () const |
MouseMeaning | mouseMeaning (const KoPoint &point, int keyState) const |
QCursor | mouseCursor (const KoPoint &point, int keyState) const |
void | showPopup (const KoPoint &point, KWView *view, int keyState, const QPoint &popupPoint) const |
void | addKWFramesListener (KWFramesListener *listener) |
void | removeKWFramesListener (KWFramesListener *listener) |
void | selectFrames (const KoPoint &point, int keyState, bool leftClick) |
Protected Slots | |
void | fireEvents () |
Protected Member Functions | |
virtual void | requestFireEvents () |
Member Enumeration Documentation
|
Used to change the behavior of view().
Definition at line 76 of file KWFrameViewManager.h. |
Constructor & Destructor Documentation
|
Constructor that takes the already existing frames and framesets from doc and adds them.
Definition at line 37 of file KWFrameViewManager.cpp. |
Member Function Documentation
|
This method will propagate all the events saved up to the listeners. You don't normally want to call this method; call requestFireEvents() instead which will eventually call this method for you. Definition at line 151 of file KWFrameViewManager.cpp. |
|
Similar to mouseMeaning(), but instead of returning the meaning this will return a mouse cursor to represent the action.
Definition at line 271 of file KWFrameViewManager.cpp. |
|
Return the MouseMeaning of what a click of the mouse would do at the All the frames that have a presence at the point are considered and depending on what kind of frame and where in the frame the mouse is the meaning is calculated.
Definition at line 342 of file KWFrameViewManager.cpp. |
|
prepare or update the singleshot timer to fire events.
Definition at line 144 of file KWFrameViewManager.cpp. |
|
Returns the first selected frame. Is the same as selectedFrames()[0] Definition at line 366 of file KWFrameViewManager.cpp. |
|
Return all currently selected frames.
Definition at line 356 of file KWFrameViewManager.cpp. |
|
Select frames based on a mouse click at Handles the click of a mouse and searches for frames at the location selecting and / or unselecting any frames based on this information.
Definition at line 396 of file KWFrameViewManager.cpp. |
|
Show a context-sensitive popup menu based on the location of 'point'.
Definition at line 374 of file KWFrameViewManager.cpp. |
|
emitted after frames were moved
|
|
emitted after frames were resized
|
|
emitted after one or more incoming slotFrameSelectionChanged events.
|
|
emitted after a frameset that had at least one selected frame was renamed.
|
|
notify this slot if a Frame has been created and should become visible.
Definition at line 94 of file KWFrameViewManager.cpp. |
|
notify this slot if a Frame has been moved
Definition at line 117 of file KWFrameViewManager.cpp. |
|
notify this slot if a Frame has been removed
Definition at line 100 of file KWFrameViewManager.cpp. |
|
notify this slot if a Frame has been resized
Definition at line 125 of file KWFrameViewManager.cpp. |
|
notify this slot if one or more frames have been selected or unselected.
Definition at line 131 of file KWFrameViewManager.cpp. |
|
notify this slot if a FrameSet has been created and should become visible.
Definition at line 66 of file KWFrameViewManager.cpp. |
|
notify this slot if a FrameSet has been removed
Definition at line 80 of file KWFrameViewManager.cpp. |
|
notify this slot if a frameset was renamed
Definition at line 138 of file KWFrameViewManager.cpp. |
|
Returns a frameView representing
Definition at line 256 of file KWFrameViewManager.cpp. |
|
Returns a frameView representing a frame positioned at
Definition at line 216 of file KWFrameViewManager.cpp. |
The documentation for this class was generated from the following files: