mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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!
27 lines
649 B
Plaintext
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 );
|
|
};
|