Skip to content
Permalink
Browse files

Add missing python bindings

  • Loading branch information
nyalldawson committed Jan 30, 2017
1 parent 7594774 commit 41fe33551c9022d9dbaad7eefd69cdb4c6df27ae
@@ -70,6 +70,7 @@ class QgsAnnotation : QObject

void appearanceChanged();
void moved();
void mapLayerChanged();

protected:

@@ -80,6 +80,7 @@
%Include qgsfilterlineedit.sip
%Include qgsfloatingwidget.sip
%Include qgsfocuswatcher.sip
%Include qgsformannotation.sip
%Include qgsgenericprojectionselector.sip
%Include qgsgeometryrubberband.sip
%Include qgsgradientcolorrampdialog.sip
@@ -0,0 +1,27 @@
class QgsFormAnnotation : QgsAnnotation
{
%TypeHeaderCode
#include <qgsformannotation.h>
%End
public:

QgsFormAnnotation( QObject* parent /TransferThis/ = nullptr );

QSizeF minimumFrameSize() const;
QSizeF preferredFrameSize() const;

void setDesignerForm( const QString& uiFile );
QString designerForm() const;

virtual void writeXml( QDomElement& elem, QDomDocument & doc ) const;
virtual void readXml( const QDomElement& itemElem, const QDomDocument& doc );

void setAssociatedFeature( const QgsFeature& feature );

static QgsFormAnnotation* create() /Factory/;

protected:

void renderAnnotation( QgsRenderContext& context, QSizeF size ) const;

};
@@ -22,7 +22,7 @@


QgsSvgAnnotation::QgsSvgAnnotation( QObject* parent )
: QgsAnnotation( parent )
: QgsAnnotation( parent )
{

}
@@ -19,7 +19,7 @@
#include <QDomDocument>
#include <QPainter>

QgsTextAnnotation::QgsTextAnnotation(QObject* parent)
QgsTextAnnotation::QgsTextAnnotation( QObject* parent )
: QgsAnnotation( parent )
, mDocument( new QTextDocument( QString() ) )
{

0 comments on commit 41fe335

Please sign in to comment.
You can’t perform that action at this time.