26#include <QGestureEvent>
75 sipType = sipType_QgsMapToolZoom;
77 sipType = sipType_QgsMapToolPan;
79 sipType = sipType_QgsMapToolEmitPoint;
81 sipType = sipType_QgsMapToolExtent;
83 sipType = sipType_QgsMapToolIdentifyFeature;
85 sipType = sipType_QgsMapToolIdentify;
87 sipType = sipType_QgsMapToolDigitizeFeature;
89 sipType = sipType_QgsMapToolCapture;
91 sipType = sipType_QgsMapToolAdvancedDigitizing;
93 sipType = sipType_QgsMapToolEdit;
94 else if ( sipCpp->inherits(
"QgsMapTool" ) )
95 sipType = sipType_QgsMapTool;
111 AllowZoomRect = 1 << 3,
112 ShowContextMenu = 1 << 4,
136 virtual void wheelEvent( QWheelEvent *e );
139 virtual void keyPressEvent( QKeyEvent *e );
142 virtual void keyReleaseEvent( QKeyEvent *e );
145 virtual bool gestureEvent( QGestureEvent *e );
152 virtual bool canvasToolTipEvent( QHelpEvent *e );
160 void setAction( QAction *action );
169 bool isActive()
const;
175 void setButton( QAbstractButton *button );
178 QAbstractButton *button();
181 virtual void setCursor(
const QCursor &cursor );
184 virtual void activate();
187 virtual void deactivate();
195 virtual void reactivate();
198 virtual void clean();
214 static double searchRadiusMM();
242 virtual void populateContextMenu( QMenu *menu );
262 virtual bool populateContextMenuWithEvent( QMenu *menu,
QgsMapMouseEvent *event );
285 void actionDestroyed();
316 QPoint toCanvasCoordinates(
const QgsPointXY &point )
const;
335 void setToolName(
const QString &name );
347 QAction *mAction =
nullptr;
353 QAbstractButton *mButton =
nullptr;
359 friend class TestQgsMapToolEdit;
MessageLevel
Level for messages This will be used both for message log and message bar in application.
@ Info
Information message.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas.
A class to represent a 2D point.
Point geometry type, with support for z-dimension and m-values.
A rectangle specified with double values.
Contains information about the context of a rendering operation.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
#define SIP_ENUM_BASETYPE(type)
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsTextRendererUtils::CurvedTextFlags)