8
8
9
9
10
10
11
+
11
12
class QgsLayoutItemAbstractMetadata
12
13
{
13
14
%Docstring
14
15
Stores metadata about one layout item class.
16
+
17
+ A companion class, QgsLayoutItemAbstractGuiMetadata, handles the
18
+ GUI behavior of QgsLayoutItems.
19
+
15
20
.. note::
16
21
17
- In C++ you can use QgsSymbolLayerMetadata convenience class.
22
+ In C++ you can use QgsLayoutItemMetadata convenience class.
18
23
.. versionadded:: 3.0
19
24
%End
20
25
@@ -55,12 +60,6 @@ class QgsLayoutItemAbstractMetadata
55
60
:rtype: QgsLayoutItem
56
61
%End
57
62
58
- virtual QWidget *createItemWidget() /Factory/;
59
- %Docstring
60
- Creates a configuration widget for layout items of this type. Can return None if no configuration GUI is required.
61
- :rtype: QWidget
62
- %End
63
-
64
63
virtual void resolvePaths( QVariantMap &properties, const QgsPathResolver &pathResolver, bool saving );
65
64
%Docstring
66
65
Resolve paths in the item's ``properties`` (if there are any paths).
@@ -77,7 +76,6 @@ class QgsLayoutItemAbstractMetadata
77
76
78
77
79
78
80
-
81
79
class QgsLayoutItemRegistry : QObject
82
80
{
83
81
%Docstring
@@ -86,6 +84,9 @@ class QgsLayoutItemRegistry : QObject
86
84
QgsLayoutItemRegistry is not usually directly created, but rather accessed through
87
85
QgsApplication.layoutItemRegistry().
88
86
87
+ A companion class, QgsLayoutItemGuiRegistry, handles the GUI behavior
88
+ of layout items.
89
+
89
90
.. versionadded:: 3.0
90
91
%End
91
92
@@ -107,14 +108,23 @@ class QgsLayoutItemRegistry : QObject
107
108
108
109
QgsLayoutItemRegistry( QObject *parent = 0 );
109
110
%Docstring
110
- Creates a registry and populates it with standard item types .
111
+ Creates a new empty item registry .
111
112
112
113
QgsLayoutItemRegistry is not usually directly created, but rather accessed through
113
114
QgsApplication.layoutItemRegistry().
115
+
116
+ .. seealso:: populate()
114
117
%End
115
118
116
119
~QgsLayoutItemRegistry();
117
120
121
+ bool populate();
122
+ %Docstring
123
+ Populates the registry with standard item types. If called on a non-empty registry
124
+ then this will have no effect and will return false.
125
+ :rtype: bool
126
+ %End
127
+
118
128
119
129
QgsLayoutItemAbstractMetadata *itemMetadata( int type ) const;
120
130
%Docstring
@@ -135,12 +145,6 @@ class QgsLayoutItemRegistry : QObject
135
145
:rtype: QgsLayoutItem
136
146
%End
137
147
138
- QWidget *createItemWidget( int type ) const /Factory/;
139
- %Docstring
140
- Creates a new instance of a layout item configuration widget for the specified item ``type``.
141
- :rtype: QWidget
142
- %End
143
-
144
148
void resolvePaths( int type, QVariantMap &properties, const QgsPathResolver &pathResolver, bool saving ) const;
145
149
%Docstring
146
150
Resolve paths in properties of a particular symbol layer.
@@ -169,6 +173,7 @@ class QgsLayoutItemRegistry : QObject
169
173
170
174
171
175
176
+
172
177
/************************************************************************
173
178
* This file has been generated automatically from *
174
179
* *
0 commit comments