libs/flake

KoPanTool Class Reference

This is the tool that allows you to move the canvas by dragging it and 'panning' around. More...

#include <KoPanTool.h>

Inheritance diagram for KoPanTool:

List of all members.

Public Member Functions

 KoPanTool (KoCanvasBase *canvas)
virtual void activate (bool temporary=false)
virtual void customMoveEvent (KoPointerEvent *event)
virtual void keyPressEvent (QKeyEvent *event)
virtual void mouseMoveEvent (KoPointerEvent *event)
virtual void mousePressEvent (KoPointerEvent *event)
virtual void mouseReleaseEvent (KoPointerEvent *event)
virtual void paint (QPainter &, const KoViewConverter &)
void setCanvasController (KoCanvasController *controller)
virtual bool wantsAutoScroll ()

Detailed Description

This is the tool that allows you to move the canvas by dragging it and 'panning' around.

Definition at line 34 of file KoPanTool.h.


Constructor & Destructor Documentation

KoPanTool::KoPanTool ( KoCanvasBase canvas  )  [explicit]

Constructor.

Parameters:
canvas the canvas this tool works on.

Definition at line 31 of file KoPanTool.cpp.


Member Function Documentation

void KoPanTool::activate ( bool  temporary = false  )  [virtual]

reimplemented from superclass

Reimplemented from KoTool.

Definition at line 91 of file KoPanTool.cpp.

void KoPanTool::customMoveEvent ( KoPointerEvent event  )  [virtual]

reimplemented method

Reimplemented from KoTool.

Definition at line 99 of file KoPanTool.cpp.

void KoPanTool::keyPressEvent ( QKeyEvent event  )  [virtual]

reimplemented from superclass

Reimplemented from KoTool.

Definition at line 72 of file KoPanTool.cpp.

void KoPanTool::mouseMoveEvent ( KoPointerEvent event  )  [virtual]

reimplemented from superclass

Implements KoTool.

Definition at line 50 of file KoPanTool.cpp.

void KoPanTool::mousePressEvent ( KoPointerEvent event  )  [virtual]

reimplemented from superclass

Implements KoTool.

Definition at line 43 of file KoPanTool.cpp.

void KoPanTool::mouseReleaseEvent ( KoPointerEvent event  )  [virtual]

reimplemented from superclass

Implements KoTool.

Definition at line 64 of file KoPanTool.cpp.

virtual void KoPanTool::paint ( QPainter ,
const KoViewConverter  
) [inline, virtual]

reimplemented from superclass

Implements KoTool.

Definition at line 54 of file KoPanTool.h.

void KoPanTool::setCanvasController ( KoCanvasController controller  )  [inline]

set the canvasController this tool works on.

Definition at line 61 of file KoPanTool.h.

bool KoPanTool::wantsAutoScroll (  )  [virtual]

reimplemented from superclass

Reimplemented from KoTool.

Definition at line 38 of file KoPanTool.cpp.


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