QGIS/python/gui/qgsmaptoolemitpoint.sip
Nyall Dawson 00502620c0 [FEATURE] Allow web map style shift-drag zoom
When certain map tools are active, you can hold down shift
and drag a rectangle on the map to zoom to that area. This
is enabled for the map tools which are not selection tools
(since they use shift for adding to selection), and edit
tools.

Gracias a Girona!
2016-05-30 19:39:57 +10:00

27 lines
649 B
Plaintext

class QgsMapToolEmitPoint : QgsMapTool
{
%TypeHeaderCode
#include <qgsmaptoolemitpoint.h>
%End
public:
//! constructor
QgsMapToolEmitPoint( QgsMapCanvas* canvas );
virtual Flags flags() const;
//! Overridden mouse move event
virtual void canvasMoveEvent( QgsMapMouseEvent * e );
//! Overridden mouse press event - emits the signal
virtual void canvasPressEvent( QgsMapMouseEvent * e );
//! Overridden mouse release event
virtual void canvasReleaseEvent( QgsMapMouseEvent * e );
signals:
//! signal emitted on canvas click
void canvasClicked( const QgsPoint& point, Qt::MouseButton button );
};