File tree Expand file tree Collapse file tree 5 files changed +31
-2
lines changed Expand file tree Collapse file tree 5 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ class QgsAnnotation : QObject
70
70
71
71
void appearanceChanged();
72
72
void moved();
73
+ void mapLayerChanged();
73
74
74
75
protected:
75
76
Original file line number Diff line number Diff line change 80
80
%Include qgsfilterlineedit.sip
81
81
%Include qgsfloatingwidget.sip
82
82
%Include qgsfocuswatcher.sip
83
+ %Include qgsformannotation.sip
83
84
%Include qgsgenericprojectionselector.sip
84
85
%Include qgsgeometryrubberband.sip
85
86
%Include qgsgradientcolorrampdialog.sip
Original file line number Diff line number Diff line change
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
+ };
Original file line number Diff line number Diff line change 22
22
23
23
24
24
QgsSvgAnnotation::QgsSvgAnnotation ( QObject* parent )
25
- : QgsAnnotation( parent )
25
+ : QgsAnnotation( parent )
26
26
{
27
27
28
28
}
Original file line number Diff line number Diff line change 19
19
#include < QDomDocument>
20
20
#include < QPainter>
21
21
22
- QgsTextAnnotation::QgsTextAnnotation (QObject* parent)
22
+ QgsTextAnnotation::QgsTextAnnotation ( QObject* parent )
23
23
: QgsAnnotation( parent )
24
24
, mDocument( new QTextDocument( QString() ) )
25
25
{
You can’t perform that action at this time.
0 commit comments