#include <qgsmaptoolpan.h>
Inheritance diagram for QgsMapToolPan:


Definition at line 28 of file qgsmaptoolpan.h.
Public Member Functions | |
| QgsMapToolPan (QgsMapCanvas *canvas) | |
| constructor | |
| virtual void | canvasMoveEvent (QMouseEvent *e) |
| Overridden mouse move event. | |
| virtual void | canvasPressEvent (QMouseEvent *e) |
| Overridden mouse press event. | |
| virtual void | canvasReleaseEvent (QMouseEvent *e) |
| Overridden mouse release event. | |
| virtual bool | isTransient () |
| Check whether this MapTool performs a zoom or pan operation. | |
Private Attributes | |
| bool | mDragging |
| Flag to indicate a map canvas drag operation is taking place. | |
| QgsMapToolPan::QgsMapToolPan | ( | QgsMapCanvas * | canvas | ) |
constructor
Definition at line 25 of file qgsmaptoolpan.cpp.
References QgsMapTool::mCursor, pan_bits, and pan_mask_bits.
| void QgsMapToolPan::canvasMoveEvent | ( | QMouseEvent * | e | ) | [virtual] |
Overridden mouse move event.
Reimplemented from QgsMapTool.
Definition at line 35 of file qgsmaptoolpan.cpp.
References QgsMapTool::mCanvas, mDragging, and QgsMapCanvas::panAction().
| void QgsMapToolPan::canvasPressEvent | ( | QMouseEvent * | e | ) | [virtual] |
Overridden mouse press event.
Reimplemented from QgsMapTool.
Definition at line 45 of file qgsmaptoolpan.cpp.
References mDragging.
| void QgsMapToolPan::canvasReleaseEvent | ( | QMouseEvent * | e | ) | [virtual] |
Overridden mouse release event.
Reimplemented from QgsMapTool.
Definition at line 54 of file qgsmaptoolpan.cpp.
References QgsMapTool::mCanvas, mDragging, and QgsMapCanvas::panActionEnd().
| virtual bool QgsMapToolPan::isTransient | ( | ) | [inline, virtual] |
Check whether this MapTool performs a zoom or pan operation.
If it does, we will be able to perform the zoom and then resume operations with the original / previously used tool.
Reimplemented from QgsMapTool.
Definition at line 43 of file qgsmaptoolpan.h.
bool QgsMapToolPan::mDragging [private] |
Flag to indicate a map canvas drag operation is taking place.
Definition at line 48 of file qgsmaptoolpan.h.
Referenced by canvasMoveEvent(), canvasPressEvent(), and canvasReleaseEvent().
1.5.1