mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
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.
79 lines
2.2 KiB
Plaintext
79 lines
2.2 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsmaptoolpan.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsMapToolPan : QgsMapTool
|
|
{
|
|
%Docstring
|
|
A map tool for panning the map.
|
|
|
|
.. seealso:: :py:class:`QgsMapTool`
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsmaptoolpan.h"
|
|
%End
|
|
public:
|
|
QgsMapToolPan( QgsMapCanvas *canvas );
|
|
%Docstring
|
|
constructor
|
|
%End
|
|
~QgsMapToolPan();
|
|
|
|
virtual void activate();
|
|
|
|
virtual void deactivate();
|
|
|
|
|
|
virtual Flags flags() const;
|
|
|
|
virtual void canvasPressEvent( QgsMapMouseEvent *e );
|
|
|
|
virtual void canvasMoveEvent( QgsMapMouseEvent *e );
|
|
|
|
virtual void canvasReleaseEvent( QgsMapMouseEvent *e );
|
|
|
|
virtual void canvasDoubleClickEvent( QgsMapMouseEvent *e );
|
|
|
|
virtual bool gestureEvent( QGestureEvent *e );
|
|
|
|
|
|
bool isDragging() const;
|
|
%Docstring
|
|
Returns ``True`` if a drag operation is in progress.
|
|
|
|
.. versionadded:: 3.12
|
|
%End
|
|
|
|
signals:
|
|
|
|
void panDistanceBearingChanged( double distance, QgsUnitTypes::DistanceUnit unit, double bearing );
|
|
%Docstring
|
|
Emitted whenever the distance or bearing of an in-progress panning
|
|
operation is changed.
|
|
|
|
This signal will be emitted during a pan operation as the user moves the map,
|
|
giving the total distance and bearing between the map position at the
|
|
start of the pan and the current pan position.
|
|
|
|
.. versionadded:: 3.12
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsmaptoolpan.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|