krita
KoBirdEyePanel Class Reference
#include <kobirdeyepanel.h>
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.
Public Slots | |
void | setZoomListener (KoZoomAdapter *zoomListener) |
void | setThumbnailProvider (KoThumbnailAdapter *thumbnailProvider) |
void | slotViewTransformationChanged () |
void | cursorPosChanged (Q_INT32 xpos, Q_INT32 ypos) |
void | zoomMinus () |
void | zoomPlus () |
void | slotUpdate (const QRect &r) |
Public Member Functions | |
KoBirdEyePanel (KoZoomAdapter *zoomListener, KoThumbnailAdapter *thumbnailProvider, KoCanvasAdapter *canvas, QWidget *parent, const char *name=0, WFlags f=0) | |
virtual | ~KoBirdEyePanel () |
bool | eventFilter (QObject *, QEvent *) |
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 (QPoint) |
void | handleMouseMoveAction (QPoint) |
void | handleMousePress (QPoint) |
void | fitThumbnailToView () |
void | renderView () |
void | resizeViewEvent (QSize size) |
void | paintViewEvent (QPaintEvent *e) |
void | makeThumbnailRectVisible (const QRect &r) |
enumDragHandle | dragHandleAt (QPoint p) |
QRect | documentToThumbnail (const KoRect &docRect) |
KoRect | thumbnailToDocument (const QRect &thumbnailRect) |
QPoint | viewToThumbnail (const QPoint &viewPoint) |
Constructor & Destructor Documentation
|
Create a new bird eye panel.
Definition at line 52 of file kobirdeyepanel.cpp. |
Member Function Documentation
|
Returns the rectangle in the thumbnail covered by the given document rectangle.
Definition at line 251 of file kobirdeyepanel.cpp. |
|
Set a new thumbnail provider. This will first delete the existing provider. Definition at line 201 of file kobirdeyepanel.cpp. |
|
Connect to this slot if a (rectangular) area of your document is changed.
Definition at line 215 of file kobirdeyepanel.cpp. |
|
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. |
|
Returns the rectangle in the document covered by the given thumbnail rectangle.
Definition at line 268 of file kobirdeyepanel.cpp. |
|
Converts a point in the view to a point in the thumbnail.
Definition at line 285 of file kobirdeyepanel.cpp. |
The documentation for this class was generated from the following files: