QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
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 102 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 107 of file qgscreateannotationitemmaptool.h.