17 #ifndef QGSANNOTATIONLAYER_H
18 #define QGSANNOTATIONLAYER_H
20 #include "qgis_core.h"
32 class QgsAnnotationLayerSpatialIndex;
63 : transformContext( transformContext )
83 SIP_PYOBJECT __repr__();
85 QString
str = QStringLiteral(
"<QgsAnnotationLayer: '%1'>" ).arg( sipCpp->name() );
86 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
116 bool removeItem(
const QString &
id );
126 bool isEmpty()
const;
134 QMap<QString, QgsAnnotationItem *>
items()
const {
return mItems; }
162 Qgis::MapLayerProperties
properties()
const override;
168 bool writeXml( QDomNode &layer_node, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
169 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &, StyleCategories categories = AllStyleCategories ) const override;
170 bool readSymbology( const QDomNode &node, QString &errorMessage,
QgsReadWriteContext &context, StyleCategories categories = AllStyleCategories ) override;
171 bool isEditable() const override;
172 bool supportsEditing() const override;
175 QString htmlMetadata() const override;
201 std::
unique_ptr< QgsAnnotationLayerSpatialIndex > mSpatialIndex;
202 QSet< QString > mNonIndexedItems;
226 QgsDataProvider::ReadFlags flags );
228 QString name()
const override;
229 QString description()
const override;
231 bool isValid()
const override;
237 #endif // QGSANNOTATIONLAYER_H