2017-06-07 16:16:21 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsmaptoolemitpoint.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-06-09 10:54:46 +00:00
|
|
|
|
|
|
|
class QgsMapToolEmitPoint : QgsMapTool
|
|
|
|
{
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A map tool that simply emits a point when clicking on the map.
|
|
|
|
Connecting a slot to its canvasClicked() signal will
|
|
|
|
let you implement custom behavior for the passed in point.
|
2007-06-09 10:54:46 +00:00
|
|
|
%End
|
2013-01-12 23:48:58 +01:00
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmaptoolemitpoint.h"
|
|
|
|
%End
|
2007-06-09 10:54:46 +00:00
|
|
|
public:
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsMapToolEmitPoint( QgsMapCanvas *canvas );
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
constructor
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-05-30 06:19:34 +10:00
|
|
|
virtual Flags flags() const;
|
2017-05-03 07:45:22 +02:00
|
|
|
virtual void canvasMoveEvent( QgsMapMouseEvent *e );
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
virtual void canvasPressEvent( QgsMapMouseEvent *e );
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
virtual void canvasReleaseEvent( QgsMapMouseEvent *e );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2007-06-09 10:54:46 +00:00
|
|
|
signals:
|
2017-06-01 12:18:43 +02:00
|
|
|
void canvasClicked( const QgsPointXY &point, Qt::MouseButton button );
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
signal emitted on canvas click
|
|
|
|
%End
|
2007-06-09 10:54:46 +00:00
|
|
|
};
|
2017-06-07 16:16:21 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsmaptoolemitpoint.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|