Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing python bindings
  • Loading branch information
nyalldawson committed Jan 30, 2017
1 parent 7594774 commit 41fe335
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 2 deletions.
1 change: 1 addition & 0 deletions python/core/annotations/qgsannotation.sip
Expand Up @@ -70,6 +70,7 @@ class QgsAnnotation : QObject

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

protected:

Expand Down
1 change: 1 addition & 0 deletions python/gui/gui.sip
Expand Up @@ -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
Expand Down
27 changes: 27 additions & 0 deletions python/gui/qgsformannotation.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;

};
2 changes: 1 addition & 1 deletion src/core/annotations/qgssvgannotation.cpp
Expand Up @@ -22,7 +22,7 @@


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

}
Expand Down
2 changes: 1 addition & 1 deletion src/core/annotations/qgstextannotation.cpp
Expand Up @@ -19,7 +19,7 @@
#include <QDomDocument>
#include <QPainter>

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

0 comments on commit 41fe335

Please sign in to comment.