QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
QgsAbstractAnnotationItemEditOperation Class Referenceabstract

Abstract base class for annotation item edit operations. More...

#include <qgsannotationitemeditoperation.h>

Inheritance diagram for QgsAbstractAnnotationItemEditOperation:
Inheritance graph
[legend]

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.
 
virtual ~QgsAbstractAnnotationItemEditOperation ()
 
QString itemId () const
 Returns the associated item ID.
 
virtual Type type () const =0
 Returns the operation type.
 

Protected Attributes

QString mItemId
 

Detailed Description

Abstract base class for annotation item edit operations.

Since
QGIS 3.22

Definition at line 79 of file qgsannotationitemeditoperation.h.

Member Enumeration Documentation

◆ Type

Operation type.

Enumerator
MoveNode 

Move a node.

DeleteNode 

Delete a node.

AddNode 

Add a node.

TranslateItem 

Translate (move) an item.

Definition at line 86 of file qgsannotationitemeditoperation.h.

Constructor & Destructor Documentation

◆ QgsAbstractAnnotationItemEditOperation()

QgsAbstractAnnotationItemEditOperation::QgsAbstractAnnotationItemEditOperation ( const QString &  itemId)

Constructor for QgsAbstractAnnotationItemEditOperation, for the specified item id.

Definition at line 47 of file qgsannotationitemeditoperation.cpp.

◆ ~QgsAbstractAnnotationItemEditOperation()

QgsAbstractAnnotationItemEditOperation::~QgsAbstractAnnotationItemEditOperation ( )
virtualdefault

Member Function Documentation

◆ itemId()

QString QgsAbstractAnnotationItemEditOperation::itemId ( ) const
inline

Returns the associated item ID.

Definition at line 109 of file qgsannotationitemeditoperation.h.

◆ type()

virtual Type QgsAbstractAnnotationItemEditOperation::type ( ) const
pure virtual

Member Data Documentation

◆ mItemId

QString QgsAbstractAnnotationItemEditOperation::mItemId
protected

Definition at line 113 of file qgsannotationitemeditoperation.h.


The documentation for this class was generated from the following files: