19 #include "qgsconfig.h"
26 #include <QGestureEvent>
38 class QAbstractButton;
54 virtual void canvasMoveEvent( QMouseEvent * e );
57 virtual void canvasDoubleClickEvent( QMouseEvent * e );
60 virtual void canvasPressEvent( QMouseEvent * e );
63 virtual void canvasReleaseEvent( QMouseEvent * e );
67 virtual void wheelEvent( QWheelEvent* e );
70 virtual void keyPressEvent( QKeyEvent* e );
74 virtual void keyReleaseEvent( QKeyEvent* e );
78 virtual bool gestureEvent( QGestureEvent* e );
82 virtual void renderComplete();
89 void setAction( QAction* action );
96 void setButton( QAbstractButton* button );
99 QAbstractButton* button();
102 virtual void setCursor( QCursor cursor );
107 virtual bool isTransient();
112 virtual bool isEditTool();
115 virtual void activate();
118 virtual void deactivate();
129 QgsPoint toMapCoordinates(
const QPoint& point );
144 QPoint toCanvasCoordinates(
const QgsPoint& point );