File tree 1 file changed +24
-2
lines changed
1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change 1
- /** An annotation item can be either placed either on screen corrdinates or on map coordinates.
2
- It may reference a feature and displays that associatiation with a balloon like appearance*/
1
+ /** An annotation item can be either placed either on screen coordinates or on map coordinates.
2
+ It may reference a feature and displays that association with a balloon like appearance*/
3
+
4
+ %ModuleCode
5
+ #include "qgsformannotationitem.h"
6
+ #include "qgshtmlannotationitem.h"
7
+ #include "qgssvgannotationitem.h"
8
+ #include "qgstextannotationitem.h"
9
+ %End
10
+
3
11
class QgsAnnotationItem: QgsMapCanvasItem
4
12
{
5
13
%TypeHeaderCode
6
14
#include <qgsannotationitem.h>
7
15
%End
8
16
17
+ %ConvertToSubClassCode
18
+ if (dynamic_cast<QgsFormAnnotationItem*>(sipCpp) )
19
+ sipType = sipType_QgsFormAnnotationItem;
20
+ else if (dynamic_cast<QgsHtmlAnnotationItem*>(sipCpp) )
21
+ sipType = sipType_QgsHtmlAnnotationItem;
22
+ else if (dynamic_cast<QgsSvgAnnotationItem*>(sipCpp) )
23
+ sipType = sipType_QgsSvgAnnotationItem;
24
+ else if (dynamic_cast<QgsTextAnnotationItem*>(sipCpp) )
25
+ sipType = sipType_QgsTextAnnotationItem;
26
+ else
27
+ sipType = 0;
28
+ %End
29
+
30
+
9
31
public:
10
32
enum MouseMoveAction
11
33
{
You can’t perform that action at this time.
0 commit comments