QGIS/python/gui/auto_generated/qgsmaptoolzoom.sip.in
Eric Daigle af147706a5 [feature] allow cancelling the zoom function with ESC
As described in #49804, there is currently no way to cancel a zoom operation once
the user has begun dragging. This commit makes the ESC key cancel an in-progress
zoom operation, leaving the canvas unchanged.

Closes #49804
2022-10-22 08:53:06 +10:00

61 lines
1.7 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmaptoolzoom.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsMapToolZoom : QgsMapTool
{
%Docstring(signature="appended")
A map tool for zooming into the map.
.. seealso:: :py:class:`QgsMapTool`
%End
%TypeHeaderCode
#include "qgsmaptoolzoom.h"
%End
public:
QgsMapToolZoom( QgsMapCanvas *canvas, bool zoomOut );
%Docstring
constructor
%End
~QgsMapToolZoom();
virtual Flags flags() const;
virtual void canvasMoveEvent( QgsMapMouseEvent *e );
virtual void canvasPressEvent( QgsMapMouseEvent *e );
virtual void canvasReleaseEvent( QgsMapMouseEvent *e );
virtual void keyPressEvent( QKeyEvent *e );
virtual void keyReleaseEvent( QKeyEvent *e );
virtual void deactivate();
protected:
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmaptoolzoom.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/