QGIS API Documentation
3.24.2-Tisler (13c1a02865)
|
Abstract base class for annotation item edit operations. More...
#include <qgsannotationitemeditoperation.h>
Public Types | |
enum class | Type : int { MoveNode , DeleteNode , AddNode , TranslateItem } |
Operation type. More... | |
Public Member Functions | |
QgsAbstractAnnotationItemEditOperation (const QString &itemId) | |
Constructor for QgsAbstractAnnotationItemEditOperation, for the specified item id. More... | |
virtual | ~QgsAbstractAnnotationItemEditOperation () |
QString | itemId () const |
Returns the associated item ID. More... | |
virtual Type | type () const =0 |
Returns the operation type. More... | |
Protected Attributes | |
QString | mItemId |
Abstract base class for annotation item edit operations.
Definition at line 32 of file qgsannotationitemeditoperation.h.
|
strong |
Operation type.
Enumerator | |
---|---|
MoveNode | Move a node. |
DeleteNode | Delete a node. |
AddNode | Add a node. |
TranslateItem | Translate (move) an item. |
Definition at line 39 of file qgsannotationitemeditoperation.h.
QgsAbstractAnnotationItemEditOperation::QgsAbstractAnnotationItemEditOperation | ( | const QString & | itemId | ) |
Constructor for QgsAbstractAnnotationItemEditOperation, for the specified item id.
Definition at line 22 of file qgsannotationitemeditoperation.cpp.
|
virtualdefault |
|
inline |
Returns the associated item ID.
Definition at line 62 of file qgsannotationitemeditoperation.h.
|
pure virtual |
Returns the operation type.
Implemented in QgsAnnotationItemEditOperationTranslateItem, QgsAnnotationItemEditOperationAddNode, QgsAnnotationItemEditOperationDeleteNode, and QgsAnnotationItemEditOperationMoveNode.
|
protected |
Definition at line 66 of file qgsannotationitemeditoperation.h.