mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
25 lines
684 B
Plaintext
25 lines
684 B
Plaintext
|
class QgsAnnotationManager : QObject
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <qgsannotationmanager.h>
|
||
|
%End
|
||
|
public:
|
||
|
|
||
|
explicit QgsAnnotationManager( QgsProject* project = nullptr );
|
||
|
~QgsAnnotationManager();
|
||
|
|
||
|
bool addAnnotation( QgsAnnotation* annotation /Transfer/ );
|
||
|
bool removeAnnotation( QgsAnnotation* annotation );
|
||
|
void clear();
|
||
|
QList< QgsAnnotation* > annotations() const;
|
||
|
bool readXml( const QDomElement& element, const QDomDocument& doc );
|
||
|
QDomElement writeXml( QDomDocument& doc ) const;
|
||
|
|
||
|
signals:
|
||
|
|
||
|
void annotationAdded( QgsAnnotation* annotation );
|
||
|
void annotationRemoved();
|
||
|
void annotationAboutToBeRemoved( QgsAnnotation* annotation );
|
||
|
|
||
|
};
|