krita

KoBirdEyePanel Class Reference

#include <kobirdeyepanel.h>

List of all members.


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

KoBirdEyePanel::KoBirdEyePanel ( KoZoomAdapter zoomListener,
KoThumbnailAdapter thumbnailProvider,
KoCanvasAdapter canvas,
QWidget *  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 QObject name of this bird eye widget
f the widget flags (
See also:
QWidget)

Definition at line 52 of file kobirdeyepanel.cpp.


Member Function Documentation

void KoBirdEyePanel::setThumbnailProvider ( KoThumbnailAdapter thumbnailProvider  )  [slot]

Set a new thumbnail provider.

This will first delete the existing provider.

Definition at line 201 of file kobirdeyepanel.cpp.

void KoBirdEyePanel::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.

void KoBirdEyePanel::slotUpdate ( const QRect &  r  )  [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.

QRect KoBirdEyePanel::documentToThumbnail ( const KoRect &  docRect  )  [protected]

Returns the rectangle in the thumbnail covered by the given document rectangle.

Definition at line 251 of file kobirdeyepanel.cpp.

KoRect KoBirdEyePanel::thumbnailToDocument ( const QRect &  thumbnailRect  )  [protected]

Returns the rectangle in the document covered by the given thumbnail rectangle.

Definition at line 268 of file kobirdeyepanel.cpp.

QPoint KoBirdEyePanel::viewToThumbnail ( const QPoint &  viewPoint  )  [protected]

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:
KDE Home | KDE Accessibility Home | Description of Access Keys