Skip to content

Commit 41fe335

Browse files
committedJan 30, 2017
Add missing python bindings
1 parent 7594774 commit 41fe335

File tree

5 files changed

+31
-2
lines changed

5 files changed

+31
-2
lines changed
 

‎python/core/annotations/qgsannotation.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class QgsAnnotation : QObject
7070

7171
void appearanceChanged();
7272
void moved();
73+
void mapLayerChanged();
7374

7475
protected:
7576

‎python/gui/gui.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
%Include qgsfilterlineedit.sip
8181
%Include qgsfloatingwidget.sip
8282
%Include qgsfocuswatcher.sip
83+
%Include qgsformannotation.sip
8384
%Include qgsgenericprojectionselector.sip
8485
%Include qgsgeometryrubberband.sip
8586
%Include qgsgradientcolorrampdialog.sip

‎python/gui/qgsformannotation.sip

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
class QgsFormAnnotation : QgsAnnotation
2+
{
3+
%TypeHeaderCode
4+
#include <qgsformannotation.h>
5+
%End
6+
public:
7+
8+
QgsFormAnnotation( QObject* parent /TransferThis/ = nullptr );
9+
10+
QSizeF minimumFrameSize() const;
11+
QSizeF preferredFrameSize() const;
12+
13+
void setDesignerForm( const QString& uiFile );
14+
QString designerForm() const;
15+
16+
virtual void writeXml( QDomElement& elem, QDomDocument & doc ) const;
17+
virtual void readXml( const QDomElement& itemElem, const QDomDocument& doc );
18+
19+
void setAssociatedFeature( const QgsFeature& feature );
20+
21+
static QgsFormAnnotation* create() /Factory/;
22+
23+
protected:
24+
25+
void renderAnnotation( QgsRenderContext& context, QSizeF size ) const;
26+
27+
};

‎src/core/annotations/qgssvgannotation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424
QgsSvgAnnotation::QgsSvgAnnotation( QObject* parent )
25-
: QgsAnnotation( parent )
25+
: QgsAnnotation( parent )
2626
{
2727

2828
}

‎src/core/annotations/qgstextannotation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <QDomDocument>
2020
#include <QPainter>
2121

22-
QgsTextAnnotation::QgsTextAnnotation(QObject* parent)
22+
QgsTextAnnotation::QgsTextAnnotation( QObject* parent )
2323
: QgsAnnotation( parent )
2424
, mDocument( new QTextDocument( QString() ) )
2525
{

0 commit comments

Comments
 (0)
Please sign in to comment.