mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
This should make the read/write methods more flexible if we need to give them extra context.
30 lines
796 B
Plaintext
30 lines
796 B
Plaintext
class QgsFormAnnotation : QgsAnnotation
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsformannotation.h>
|
|
%End
|
|
public:
|
|
|
|
QgsFormAnnotation( QObject *parent /TransferThis/ = 0 );
|
|
|
|
virtual QgsFormAnnotation *clone() const /Factory/;
|
|
|
|
QSizeF minimumFrameSize() const;
|
|
QSizeF preferredFrameSize() const;
|
|
|
|
void setDesignerForm( const QString &uiFile );
|
|
QString designerForm() const;
|
|
|
|
virtual void writeXml( QDomElement& elem, QDomDocument & doc, const QgsReadWriteContext &context ) const;
|
|
virtual void readXml( const QDomElement& itemElem, const QgsReadWriteContext &context );
|
|
|
|
void setAssociatedFeature( const QgsFeature &feature );
|
|
|
|
static QgsFormAnnotation *create() /Factory/;
|
|
|
|
protected:
|
|
|
|
void renderAnnotation( QgsRenderContext &context, QSizeF size ) const;
|
|
|
|
};
|