27 #include "../canvas/MapDisplay.h"
31 #include <QtGui/QMouseEvent>
34 :
Zoom(display, zoomFactor, type, parent)
45 if(e->button() != Qt::LeftButton)
48 applyZoom(m_display->transform(e->posF()));
ZoomClick(MapDisplay *display, const QCursor &cursor, const double &zoomFactor=2.0, const ZoomType &type=In, QObject *parent=0)
It constructs a zoom click tool associated with the given map display.
bool mousePressEvent(QMouseEvent *e)
virtual void setCursor(const QCursor &cursor)
A widget to control the display of a set of layers.
This is a utility class to geographic zoom operation.
ZoomType
Defines the zoom type.
This class implements a concrete tool to geographic zoom operation using the mouse click...