chalk

#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

enum KoBirdEyePanel::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
zoomListenerthe object that listens to the zoom instructions we give
thumbnailProviderthe class that creates the small image at the right zoomlevel
canvasthe place the document is painted.
parentthe parent widget
namethe TQObject name of this bird eye widget
fthe widget flags (
See also
TQWidget)

Definition at line 52 of file kobirdeyepanel.cpp.

◆ ~KoBirdEyePanel()

KoBirdEyePanel::~KoBirdEyePanel ( )
virtual

Definition at line 84 of file kobirdeyepanel.cpp.

Member Function Documentation

◆ cursorPosChanged

void KoBirdEyePanel::cursorPosChanged ( TQ_INT32 xpos,
TQ_INT32 ypos )
slot

Definition at line 195 of file kobirdeyepanel.cpp.

◆ documentToThumbnail()

TQRect 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.

◆ dragHandleAt()

KoBirdEyePanel::enumDragHandle KoBirdEyePanel::dragHandleAt ( TQPoint p)
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()

void KoBirdEyePanel::fitThumbnailToView ( )
protected

Definition at line 548 of file kobirdeyepanel.cpp.

◆ handleMouseMove()

void KoBirdEyePanel::handleMouseMove ( TQPoint p)
protected

Definition at line 388 of file kobirdeyepanel.cpp.

◆ handleMouseMoveAction()

void KoBirdEyePanel::handleMouseMoveAction ( TQPoint p)
protected

Definition at line 417 of file kobirdeyepanel.cpp.

◆ handleMousePress()

void KoBirdEyePanel::handleMousePress ( TQPoint p)
protected

Definition at line 458 of file kobirdeyepanel.cpp.

◆ makeThumbnailRectVisible()

void KoBirdEyePanel::makeThumbnailRectVisible ( const TQRect & r)
protected

Definition at line 485 of file kobirdeyepanel.cpp.

◆ paintViewEvent()

void KoBirdEyePanel::paintViewEvent ( TQPaintEvent * e)
protected

Definition at line 609 of file kobirdeyepanel.cpp.

◆ renderView()

void KoBirdEyePanel::renderView ( )
protected

Definition at line 576 of file kobirdeyepanel.cpp.

◆ resizeViewEvent()

void KoBirdEyePanel::resizeViewEvent ( TQSize size)
protected

Definition at line 541 of file kobirdeyepanel.cpp.

◆ setThumbnailProvider

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.

◆ setZoom()

void KoBirdEyePanel::setZoom ( int zoom)
protected

Definition at line 91 of file kobirdeyepanel.cpp.

◆ setZoomListener

void KoBirdEyePanel::setZoomListener ( KoZoomAdapter * zoomListener)
inlineslot

Definition at line 169 of file kobirdeyepanel.h.

◆ sliderChanged

void KoBirdEyePanel::sliderChanged ( int v)
protectedslot

Definition at line 155 of file kobirdeyepanel.cpp.

◆ slotUpdate

void KoBirdEyePanel::slotUpdate ( const TQRect & r)
slot

Connect to this slot if a (rectangular) area of your document is changed.

Parameters
rThe rect that has been changed: this is unzoomed.

Definition at line 215 of file kobirdeyepanel.cpp.

◆ slotViewTransformationChanged

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.

◆ thumbnailToDocument()

KoRect KoBirdEyePanel::thumbnailToDocument ( const TQRect & thumbnailRect)
protected

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

Definition at line 268 of file kobirdeyepanel.cpp.

◆ updateVisibleArea

void KoBirdEyePanel::updateVisibleArea ( )
protectedslot

Definition at line 302 of file kobirdeyepanel.cpp.

◆ viewToThumbnail()

TQPoint KoBirdEyePanel::viewToThumbnail ( const TQPoint & viewPoint)
protected

Converts a point in the view to a point in the thumbnail.

Definition at line 285 of file kobirdeyepanel.cpp.

◆ zoom100

void KoBirdEyePanel::zoom100 ( )
protectedslot

Definition at line 150 of file kobirdeyepanel.cpp.

◆ zoomMinus

void KoBirdEyePanel::zoomMinus ( )
slot

Definition at line 294 of file kobirdeyepanel.cpp.

◆ zoomPlus

void KoBirdEyePanel::zoomPlus ( )
slot

Definition at line 298 of file kobirdeyepanel.cpp.

◆ zoomValueChanged

void KoBirdEyePanel::zoomValueChanged ( int zoom)
protectedslot

Definition at line 142 of file kobirdeyepanel.cpp.


The documentation for this class was generated from the following files: