@@ -18,6 +18,18 @@ Provides a common interface and stable API for layout designer dialogs and widge
18
18
This interface can be used by plugins and scripts to interact with
19
19
open layout designer dialogs.
20
20
21
+ .. note::
22
+
23
+ Layout designer dialogs are transitory. They are created only on demand
24
+ (when a user opens the dialog) and are deleted as soon as the user closes the dialog.
25
+ There can be multiple designer dialogs open at any one time, and each is a separate
26
+ instance of the dialog and QgsLayoutDesignerInterface. Accordingly, plugins must
27
+ take care to react to newly created designer dialogs and apply their customizations
28
+ to all newly created dialogs. This can be done by listening for the QgisInterface.layoutDesignerOpened
29
+ signal. Plugins must also listen for the QgisInterface.layoutDesignerWillBeClosed
30
+ signal and gracefully cleanup any customisations before the designer dialog is
31
+ deleted.
32
+
21
33
.. versionadded:: 3.0
22
34
%End
23
35
@@ -95,6 +107,10 @@ shown and raised to the top of the interface.
95
107
%Docstring
96
108
Returns a reference to the designer's "Layout" menu.
97
109
110
+ .. note::
111
+
112
+ See class documentation for notes regarding handling customisation of designer dialogs.
113
+
98
114
.. seealso:: :py:func:`editMenu`
99
115
100
116
.. seealso:: :py:func:`viewMenu`
@@ -107,13 +123,18 @@ Returns a reference to the designer's "Layout" menu.
107
123
108
124
.. seealso:: :py:func:`settingsMenu`
109
125
126
+
110
127
.. versionadded:: 3.4
111
128
%End
112
129
113
130
virtual QMenu *editMenu() = 0;
114
131
%Docstring
115
132
Returns a reference to the designer's "Edit" menu.
116
133
134
+ .. note::
135
+
136
+ See class documentation for notes regarding handling customisation of designer dialogs.
137
+
117
138
.. seealso:: :py:func:`layoutMenu`
118
139
119
140
.. seealso:: :py:func:`viewMenu`
@@ -126,13 +147,18 @@ Returns a reference to the designer's "Edit" menu.
126
147
127
148
.. seealso:: :py:func:`settingsMenu`
128
149
150
+
129
151
.. versionadded:: 3.4
130
152
%End
131
153
132
154
virtual QMenu *viewMenu() = 0;
133
155
%Docstring
134
156
Returns a reference to the designer's "View" menu.
135
157
158
+ .. note::
159
+
160
+ See class documentation for notes regarding handling customisation of designer dialogs.
161
+
136
162
.. seealso:: :py:func:`layoutMenu`
137
163
138
164
.. seealso:: :py:func:`editMenu`
@@ -145,13 +171,18 @@ Returns a reference to the designer's "View" menu.
145
171
146
172
.. seealso:: :py:func:`settingsMenu`
147
173
174
+
148
175
.. versionadded:: 3.4
149
176
%End
150
177
151
178
virtual QMenu *itemsMenu() = 0;
152
179
%Docstring
153
180
Returns a reference to the designer's "Items" menu.
154
181
182
+ .. note::
183
+
184
+ See class documentation for notes regarding handling customisation of designer dialogs.
185
+
155
186
.. seealso:: :py:func:`layoutMenu`
156
187
157
188
.. seealso:: :py:func:`editMenu`
@@ -164,6 +195,7 @@ Returns a reference to the designer's "Items" menu.
164
195
165
196
.. seealso:: :py:func:`settingsMenu`
166
197
198
+
167
199
.. versionadded:: 3.4
168
200
%End
169
201
@@ -173,6 +205,10 @@ Returns a reference to the designer's "Atlas" menu.
173
205
174
206
Note that this may not exist or may be hidden if the designer is in report mode.
175
207
208
+ .. note::
209
+
210
+ See class documentation for notes regarding handling customisation of designer dialogs.
211
+
176
212
.. seealso:: :py:func:`layoutMenu`
177
213
178
214
.. seealso:: :py:func:`editMenu`
@@ -185,6 +221,7 @@ Note that this may not exist or may be hidden if the designer is in report mode.
185
221
186
222
.. seealso:: :py:func:`settingsMenu`
187
223
224
+
188
225
.. versionadded:: 3.4
189
226
%End
190
227
@@ -194,6 +231,10 @@ Returns a reference to the designer's "Report" menu.
194
231
195
232
Note that this may not exist or may be hidden if the designer is not in report mode.
196
233
234
+ .. note::
235
+
236
+ See class documentation for notes regarding handling customisation of designer dialogs.
237
+
197
238
.. seealso:: :py:func:`layoutMenu`
198
239
199
240
.. seealso:: :py:func:`editMenu`
@@ -206,13 +247,18 @@ Note that this may not exist or may be hidden if the designer is not in report m
206
247
207
248
.. seealso:: :py:func:`settingsMenu`
208
249
250
+
209
251
.. versionadded:: 3.4
210
252
%End
211
253
212
254
virtual QMenu *settingsMenu() = 0;
213
255
%Docstring
214
256
Returns a reference to the designer's "Settings" menu.
215
257
258
+ .. note::
259
+
260
+ See class documentation for notes regarding handling customisation of designer dialogs.
261
+
216
262
.. seealso:: :py:func:`layoutMenu`
217
263
218
264
.. seealso:: :py:func:`editMenu`
@@ -225,45 +271,61 @@ Returns a reference to the designer's "Settings" menu.
225
271
226
272
.. seealso:: :py:func:`reportMenu`
227
273
274
+
228
275
.. versionadded:: 3.4
229
276
%End
230
277
231
278
virtual QToolBar *layoutToolbar() = 0;
232
279
%Docstring
233
280
Returns a reference to the designer's "Layout" toolbar.
234
281
282
+ .. note::
283
+
284
+ See class documentation for notes regarding handling customisation of designer dialogs.
285
+
235
286
.. seealso:: :py:func:`navigationToolbar`
236
287
237
288
.. seealso:: :py:func:`actionsToolbar`
238
289
239
290
.. seealso:: :py:func:`atlasToolbar`
240
291
292
+
241
293
.. versionadded:: 3.4
242
294
%End
243
295
244
296
virtual QToolBar *navigationToolbar() = 0;
245
297
%Docstring
246
298
Returns a reference to the designer's "Navigation" toolbar.
247
299
300
+ .. note::
301
+
302
+ See class documentation for notes regarding handling customisation of designer dialogs.
303
+
248
304
.. seealso:: :py:func:`layoutToolbar`
249
305
250
306
.. seealso:: :py:func:`actionsToolbar`
251
307
252
308
.. seealso:: :py:func:`atlasToolbar`
253
309
310
+
254
311
.. versionadded:: 3.4
255
312
%End
256
313
257
314
virtual QToolBar *actionsToolbar() = 0;
258
315
%Docstring
259
316
Returns a reference to the designer's "Actions" toolbar.
260
317
318
+ .. note::
319
+
320
+ See class documentation for notes regarding handling customisation of designer dialogs.
321
+
261
322
.. seealso:: :py:func:`layoutToolbar`
262
323
263
324
.. seealso:: :py:func:`navigationToolbar`
264
325
265
326
.. seealso:: :py:func:`atlasToolbar`
266
327
328
+
267
329
.. versionadded:: 3.4
268
330
%End
269
331
@@ -274,30 +336,45 @@ Returns a reference to the designer's "Atlas" toolbar.
274
336
Note that this toolbar may not exist or may be hidden if the
275
337
designer is in report mode.
276
338
339
+ .. note::
340
+
341
+ See class documentation for notes regarding handling customisation of designer dialogs.
342
+
277
343
.. seealso:: :py:func:`layoutToolbar`
278
344
279
345
.. seealso:: :py:func:`navigationToolbar`
280
346
281
347
.. seealso:: :py:func:`actionsToolbar`
282
348
349
+
283
350
.. versionadded:: 3.4
284
351
%End
285
352
286
353
virtual void addDockWidget( Qt::DockWidgetArea area, QDockWidget *dock ) = 0;
287
354
%Docstring
288
355
Adds a ``dock`` widget to the layout designer, in the specified dock ``area``.
289
356
357
+ .. note::
358
+
359
+ See class documentation for notes regarding handling customisation of designer dialogs.
360
+
290
361
.. seealso:: :py:func:`removeDockWidget`
291
362
363
+
292
364
.. versionadded:: 3.4
293
365
%End
294
366
295
367
virtual void removeDockWidget( QDockWidget *dock ) = 0;
296
368
%Docstring
297
369
Removes the specified ``dock`` widget from layout designer (without deleting it).
298
370
371
+ .. note::
372
+
373
+ See class documentation for notes regarding handling customisation of designer dialogs.
374
+
299
375
.. seealso:: :py:func:`addDockWidget`
300
376
377
+
301
378
.. versionadded:: 3.4
302
379
%End
303
380
0 commit comments