QGIS/python/gui/auto_generated/qgsmaptoolzoom.sip.in
Nyall Dawson ea326827ae Move 'coordinate capture' functionality to map canvas
Instead of requiring users to enable the core c++ plugin 'Coordinate Capture'
in order to copy coordinates for a map point, instead add this functionality
to a map canvas right click context menu.

Now, when compatible map tools are activated (pan, zoom, select by rect), right clicking
on the canvas shows a context menu with a "Copy Coordinate" submenu. The
submenu shows options for copying the coordinate in the map CRS, WGS84 or
a custom preset CRS.

Also adds API to allow 3rd party QgsMapTool subclasses to implement their own
context menus which include this Copy Coordinate action.
2020-05-26 13:51:41 +10:00

60 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
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 *
************************************************************************/