QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
An interface for map tools which create annotation items. More...
#include <qgscreateannotationitemmaptool.h>
Public Member Functions | |
virtual | ~QgsCreateAnnotationItemMapToolInterface ()=default |
virtual QgsCreateAnnotationItemMapToolHandler * | handler () const =0 |
Returns the handler object for the map tool. | |
virtual QgsMapTool * | mapTool ()=0 |
Returns a reference to the associated map tool. | |
Static Public Attributes | |
static QgsSettingsTreeNode * | sTreeAnnotationTools = QgsSettingsTree::sTreeGui->createChildNode( QStringLiteral( "annotation-items" ) ) |
An interface for map tools which create annotation items.
Clients should connect to the map tool's itemCreated() signal, and call the takeCreatedItem() implementation to take ownership of the newly created item whenever this signal is emitted.
Definition at line 103 of file qgscreateannotationitemmaptool.h.
|
virtualdefault |
|
pure virtual |
Returns the handler object for the map tool.
Implemented in QgsMapToolCaptureAnnotationItem, QgsCreatePointTextItemMapTool, QgsCreateRectangleTextItemMapTool, and QgsCreatePictureItemMapTool.
|
pure virtual |
Returns a reference to the associated map tool.
Implemented in QgsMapToolCaptureAnnotationItem, QgsCreatePointTextItemMapTool, QgsCreateRectangleTextItemMapTool, and QgsCreatePictureItemMapTool.
|
inlinestatic |
Definition at line 108 of file qgscreateannotationitemmaptool.h.