#include <kobirdeyepanel.h>
Public Slots | |
| void | setZoomListener (KoZoomAdapter *zoomListener) |
| void | setThumbnailProvider (KoThumbnailAdapter *thumbnailProvider) |
| void | slotViewTransformationChanged () |
| void | cursorPosChanged (TQ_INT32 xpos, TQ_INT32 ypos) |
| void | zoomMinus () |
| void | zoomPlus () |
| void | slotUpdate (const TQRect &r) |
Public Member Functions | |
| KoBirdEyePanel (KoZoomAdapter *zoomListener, KoThumbnailAdapter *thumbnailProvider, KoCanvasAdapter *canvas, TQWidget *parent, const char *name=0, WFlags f=0) | |
| bool | eventFilter (TQObject *, TQEvent *) |
Protected Types | |
| enum | enumDragHandle { DragHandleNone , DragHandleLeft , DragHandleCentre , DragHandleRight , DragHandleTop , DragHandleBottom } |
Protected Slots | |
| void | updateVisibleArea () |
| void | zoomValueChanged (int zoom) |
| void | zoom100 () |
| void | sliderChanged (int) |
Protected Member Functions | |
| void | setZoom (int zoom) |
| void | handleMouseMove (TQPoint) |
| void | handleMouseMoveAction (TQPoint) |
| void | handleMousePress (TQPoint) |
| void | fitThumbnailToView () |
| void | renderView () |
| void | resizeViewEvent (TQSize size) |
| void | paintViewEvent (TQPaintEvent *e) |
| void | makeThumbnailRectVisible (const TQRect &r) |
| enumDragHandle | dragHandleAt (TQPoint p) |
| TQRect | documentToThumbnail (const KoRect &docRect) |
| KoRect | thumbnailToDocument (const TQRect &thumbnailRect) |
| TQPoint | viewToThumbnail (const TQPoint &viewPoint) |
Detailed Description
A complex widget that provides an overview of a document with a red panning rectangle to and a zoom slider and a toolbar with a couple of useful functions.
Definition at line 138 of file kobirdeyepanel.h.
Member Enumeration Documentation
◆ enumDragHandle
|
protected |
Definition at line 213 of file kobirdeyepanel.h.
Constructor & Destructor Documentation
◆ KoBirdEyePanel()
| KoBirdEyePanel::KoBirdEyePanel | ( | KoZoomAdapter * | zoomListener, |
| KoThumbnailAdapter * | thumbnailProvider, | ||
| KoCanvasAdapter * | canvas, | ||
| TQWidget * | parent, | ||
| const char * | name = 0, | ||
| WFlags | f = 0 ) |
Create a new bird eye panel.
- Parameters
-
zoomListener the object that listens to the zoom instructions we give thumbnailProvider the class that creates the small image at the right zoomlevel canvas the place the document is painted. parent the parent widget name the TQObject name of this bird eye widget f the widget flags (
- See also
- TQWidget)
Definition at line 52 of file kobirdeyepanel.cpp.
◆ ~KoBirdEyePanel()
|
virtual |
Definition at line 84 of file kobirdeyepanel.cpp.
Member Function Documentation
◆ cursorPosChanged
|
slot |
Definition at line 195 of file kobirdeyepanel.cpp.
◆ documentToThumbnail()
|
protected |
Returns the rectangle in the thumbnail covered by the given document rectangle.
Definition at line 251 of file kobirdeyepanel.cpp.
◆ dragHandleAt()
|
protected |
Definition at line 358 of file kobirdeyepanel.cpp.
◆ eventFilter()
| bool KoBirdEyePanel::eventFilter | ( | TQObject * | o, |
| TQEvent * | ev ) |
Definition at line 308 of file kobirdeyepanel.cpp.
◆ fitThumbnailToView()
|
protected |
Definition at line 548 of file kobirdeyepanel.cpp.
◆ handleMouseMove()
|
protected |
Definition at line 388 of file kobirdeyepanel.cpp.
◆ handleMouseMoveAction()
|
protected |
Definition at line 417 of file kobirdeyepanel.cpp.
◆ handleMousePress()
|
protected |
Definition at line 458 of file kobirdeyepanel.cpp.
◆ makeThumbnailRectVisible()
|
protected |
Definition at line 485 of file kobirdeyepanel.cpp.
◆ paintViewEvent()
|
protected |
Definition at line 609 of file kobirdeyepanel.cpp.
◆ renderView()
|
protected |
Definition at line 576 of file kobirdeyepanel.cpp.
◆ resizeViewEvent()
|
protected |
Definition at line 541 of file kobirdeyepanel.cpp.
◆ setThumbnailProvider
|
slot |
Set a new thumbnail provider.
This will first delete the existing provider.
Definition at line 201 of file kobirdeyepanel.cpp.
◆ setZoom()
|
protected |
Definition at line 91 of file kobirdeyepanel.cpp.
◆ setZoomListener
|
inlineslot |
Definition at line 169 of file kobirdeyepanel.h.
◆ sliderChanged
|
protectedslot |
Definition at line 155 of file kobirdeyepanel.cpp.
◆ slotUpdate
|
slot |
Connect to this slot if a (rectangular) area of your document is changed.
- Parameters
-
r The rect that has been changed: this is unzoomed.
Definition at line 215 of file kobirdeyepanel.cpp.
◆ slotViewTransformationChanged
|
slot |
Connect to this slot to inform the bird's eye view of changes in the view transformation, i.e.
zoom level or scroll changes.
Definition at line 207 of file kobirdeyepanel.cpp.
◆ thumbnailToDocument()
|
protected |
Returns the rectangle in the document covered by the given thumbnail rectangle.
Definition at line 268 of file kobirdeyepanel.cpp.
◆ updateVisibleArea
|
protectedslot |
Definition at line 302 of file kobirdeyepanel.cpp.
◆ viewToThumbnail()
|
protected |
Converts a point in the view to a point in the thumbnail.
Definition at line 285 of file kobirdeyepanel.cpp.
◆ zoom100
|
protectedslot |
Definition at line 150 of file kobirdeyepanel.cpp.
◆ zoomMinus
|
slot |
Definition at line 294 of file kobirdeyepanel.cpp.
◆ zoomPlus
|
slot |
Definition at line 298 of file kobirdeyepanel.cpp.
◆ zoomValueChanged
|
protectedslot |
Definition at line 142 of file kobirdeyepanel.cpp.
The documentation for this class was generated from the following files:
