@@ -25,9 +25,7 @@ class QgisInterface : QObject
25
25
/** Virtual destructor */
26
26
virtual ~QgisInterface();
27
27
28
- /** Get pointer to legend interface
29
- \note added in 1.4
30
- */
28
+ /** Get pointer to legend interface */
31
29
virtual QgsLegendInterface* legendInterface() = 0;
32
30
33
31
virtual QgsPluginManagerInterface* pluginManagerInterface() = 0;
@@ -69,7 +67,6 @@ class QgisInterface : QObject
69
67
70
68
//! Set the active layer (layer gets selected in the legend)
71
69
//! returns true if the layer exists, false otherwise
72
- //! added in 1.4
73
70
virtual bool setActiveLayer( QgsMapLayer * ) = 0;
74
71
75
72
//! Add an icon to the plugins toolbar
@@ -99,16 +96,12 @@ class QgisInterface : QObject
99
96
virtual QAction* addRasterToolBarWidget( QWidget* widget ) = 0;
100
97
101
98
//! Add an icon to the Raster toolbar
102
- //! @note added in 2.0
103
99
virtual int addRasterToolBarIcon( QAction *qAction ) = 0;
104
100
105
101
//! Remove an action (icon) from the Raster toolbar
106
- //! @note added in 2.0
107
102
virtual void removeRasterToolBarIcon( QAction *qAction ) = 0;
108
103
109
104
//! Add an icon to the Vector toolbar
110
- //! @note added in 2.0
111
-
112
105
virtual int addVectorToolBarIcon( QAction *qAction ) = 0;
113
106
114
107
/**
@@ -122,11 +115,9 @@ class QgisInterface : QObject
122
115
virtual QAction* addVectorToolBarWidget( QWidget* widget ) = 0;
123
116
124
117
//! Remove an action (icon) from the Vector toolbar
125
- //! @note added in 2.0
126
118
virtual void removeVectorToolBarIcon( QAction *qAction ) = 0;
127
119
128
120
//! Add an icon to the Database toolbar
129
- //! @note added in 2.0
130
121
virtual int addDatabaseToolBarIcon( QAction *qAction ) = 0;
131
122
132
123
/**
@@ -140,11 +131,9 @@ class QgisInterface : QObject
140
131
virtual QAction* addDatabaseToolBarWidget( QWidget* widget ) = 0;
141
132
142
133
//! Remove an action (icon) from the Database toolbar
143
- //! @note added in 2.0
144
134
virtual void removeDatabaseToolBarIcon( QAction *qAction ) = 0;
145
135
146
136
//! Add an icon to the Web toolbar
147
- //! @note added in 2.0
148
137
virtual int addWebToolBarIcon( QAction *qAction ) = 0;
149
138
150
139
/**
@@ -158,7 +147,6 @@ class QgisInterface : QObject
158
147
virtual QAction* addWebToolBarWidget( QWidget* widget ) = 0;
159
148
160
149
//! Remove an action (icon) from the Web toolbar
161
- //! @note added in 2.0
162
150
virtual void removeWebToolBarIcon( QAction *qAction ) = 0;
163
151
164
152
//! Add toolbar with specified name
@@ -183,42 +171,33 @@ class QgisInterface : QObject
183
171
/** Create a new composer
184
172
* @param title window title for new composer (one will be generated if empty)
185
173
* @return pointer to composer's view
186
- * @note new composer window will be shown and activated (added in 1.9)
174
+ * @note new composer window will be shown and activated
187
175
*/
188
176
virtual QgsComposerView* createNewComposer( QString title = QString( "" ) ) = 0;
189
177
190
178
/** Duplicate an existing parent composer from composer view
191
179
* @param composerView pointer to existing composer view
192
180
* @param title window title for duplicated composer (one will be generated if empty)
193
181
* @return pointer to duplicate composer's view
194
- * @note dupicate composer window will be hidden until loaded, then shown and activated (added in 1.9)
182
+ * @note dupicate composer window will be hidden until loaded, then shown and activated
195
183
*/
196
184
virtual QgsComposerView* duplicateComposer( QgsComposerView* composerView, QString title = QString( "" ) ) = 0;
197
185
198
- /** Deletes parent composer of composer view, after closing composer window
199
- * @note (added in 1.9)
200
- */
186
+ /** Deletes parent composer of composer view, after closing composer window */
201
187
virtual void deleteComposer( QgsComposerView* composerView ) = 0;
202
188
203
- /** Return changeable options built from settings and/or defaults
204
- * @note (added in 1.9)
205
- */
189
+ /** Return changeable options built from settings and/or defaults */
206
190
virtual QMap<QString, QVariant> defaultStyleSheetOptions() = 0;
207
191
208
192
/** Generate stylesheet
209
193
* @param opts generated default option values, or a changed copy of them
210
- * @note added in 1.9
211
194
*/
212
195
virtual void buildStyleSheet( const QMap<QString, QVariant>& opts ) = 0;
213
196
214
- /** Save changed default option keys/values to user settings
215
- * @note added in 1.9
216
- */
197
+ /** Save changed default option keys/values to user settings */
217
198
virtual void saveStyleSheetOptions( const QMap<QString, QVariant>& opts ) = 0;
218
199
219
- /** Get reference font for initial qApp (may not be same as QgisApp)
220
- * @note added in 1.9
221
- */
200
+ /** Get reference font for initial qApp (may not be same as QgisApp) */
222
201
virtual QFont defaultStyleSheetFont() = 0;
223
202
224
203
/** Add action to the plugins menu */
@@ -227,72 +206,46 @@ class QgisInterface : QObject
227
206
/** Remove action from the plugins menu */
228
207
virtual void removePluginMenu( QString name, QAction* action ) = 0;
229
208
230
- /** Add "add layer" action to layer menu
231
- * @note added in 1.7
232
- */
209
+ /** Add "add layer" action to layer menu */
233
210
virtual void insertAddLayerAction( QAction *action ) = 0;
234
211
235
- /** Remove "add layer" action from layer menu
236
- * @note added in 1.7
237
- */
212
+ /** Remove "add layer" action from layer menu */
238
213
virtual void removeAddLayerAction( QAction *action ) = 0;
239
214
240
- /** Add action to the Database menu
241
- * @note added in 1.7
242
- */
215
+ /** Add action to the Database menu */
243
216
virtual void addPluginToDatabaseMenu( QString name, QAction* action ) = 0;
244
217
245
- /** Remove action from the Database menu
246
- * @note added in 1.7
247
- */
218
+ /** Remove action from the Database menu */
248
219
virtual void removePluginDatabaseMenu( QString name, QAction* action ) = 0;
249
220
250
- /** Add action to the Raster menu
251
- * @note added in 2.0
252
- */
221
+ /** Add action to the Raster menu */
253
222
virtual void addPluginToRasterMenu( QString name, QAction* action ) = 0;
254
223
255
- /** Remove action from the Raster menu
256
- * @note added in 2.0
257
- */
224
+ /** Remove action from the Raster menu */
258
225
virtual void removePluginRasterMenu( QString name, QAction* action ) = 0;
259
226
260
- /** Add action to the Vector menu
261
- * @note added in 2.0
262
- */
227
+ /** Add action to the Vector menu */
263
228
virtual void addPluginToVectorMenu( QString name, QAction* action ) = 0;
264
229
265
- /** Remove action from the Vector menu
266
- * @note added in 2.0
267
- */
230
+ /** Remove action from the Vector menu */
268
231
virtual void removePluginVectorMenu( QString name, QAction* action ) = 0;
269
232
270
- /** Add action to the Web menu
271
- * @note added in 2.0
272
- */
233
+ /** Add action to the Web menu */
273
234
virtual void addPluginToWebMenu( QString name, QAction* action ) = 0;
274
235
275
- /** Remove action from the Web menu
276
- * @note added in 2.0
277
- */
236
+ /** Remove action from the Web menu */
278
237
virtual void removePluginWebMenu( QString name, QAction* action ) = 0;
279
238
280
239
/** Add a dock widget to the main window */
281
240
virtual void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget ) = 0;
282
241
283
- /** Remove specified dock widget from main window (doesn't delete it).
284
- * @note Added in 1.1
285
- */
242
+ /** Remove specified dock widget from main window (doesn't delete it). */
286
243
virtual void removeDockWidget( QDockWidget * dockwidget ) = 0;
287
244
288
- /** open layer properties dialog
289
- \note added in 1.5
290
- */
245
+ /** open layer properties dialog */
291
246
virtual void showLayerProperties( QgsMapLayer *l ) = 0;
292
247
293
- /** open attribute table dialog
294
- \note added in 1.7
295
- */
248
+ /** open attribute table dialog */
296
249
virtual void showAttributeTable( QgsVectorLayer *l ) = 0;
297
250
298
251
/** Add window to Window menu. The action title is the window title
@@ -304,12 +257,10 @@ class QgisInterface : QObject
304
257
virtual void removeWindow( QAction *action ) = 0;
305
258
306
259
/** Register action to the shortcuts manager so its shortcut can be changed in GUI
307
- \note added in 1.2
308
260
*/
309
261
virtual bool registerMainWindowAction( QAction* action, QString defaultShortcut ) = 0;
310
262
311
263
/** Unregister a previously registered action. (e.g. when plugin is going to be unloaded)
312
- \note added in 1.2
313
264
*/
314
265
virtual bool unregisterMainWindowAction( QAction* action ) = 0;
315
266
@@ -334,23 +285,14 @@ class QgisInterface : QObject
334
285
virtual QMenu *editMenu() = 0;
335
286
virtual QMenu *viewMenu() = 0;
336
287
virtual QMenu *layerMenu() = 0;
337
- /** \note added in 2.0
338
- */
339
288
virtual QMenu *newLayerMenu() = 0;
340
- /** \note added in 2.5
341
- */
289
+ /** @note added in 2.5 */
342
290
virtual QMenu *addLayerMenu() = 0;
343
291
virtual QMenu *settingsMenu() = 0;
344
292
virtual QMenu *pluginMenu() = 0;
345
293
virtual QMenu *rasterMenu() = 0;
346
- /** \note added in 1.7
347
- */
348
294
virtual QMenu *databaseMenu() = 0;
349
- /** \note added in 2.0
350
- */
351
295
virtual QMenu *vectorMenu() = 0;
352
- /** \note added in 2.0
353
- */
354
296
virtual QMenu *webMenu() = 0;
355
297
virtual QMenu *firstRightStandardMenu() = 0;
356
298
virtual QMenu *windowMenu() = 0;
@@ -361,21 +303,13 @@ class QgisInterface : QObject
361
303
virtual QToolBar *layerToolBar() = 0;
362
304
virtual QToolBar *mapNavToolToolBar() = 0;
363
305
virtual QToolBar *digitizeToolBar() = 0;
364
- virtual QToolBar *advancedDigitizeToolBar() = 0; // added in v1.5
306
+ virtual QToolBar *advancedDigitizeToolBar() = 0;
365
307
virtual QToolBar *attributesToolBar() = 0;
366
308
virtual QToolBar *pluginToolBar() = 0;
367
309
virtual QToolBar *helpToolBar() = 0;
368
- /** \note added in 1.7
369
- */
370
310
virtual QToolBar *rasterToolBar() = 0;
371
- /** \note added in 2.0
372
- */
373
311
virtual QToolBar *vectorToolBar() = 0;
374
- /** \note added in 2.0
375
- */
376
312
virtual QToolBar *databaseToolBar() = 0;
377
- /** \note added in 2.0
378
- */
379
313
virtual QToolBar *webToolBar() = 0;
380
314
381
315
// Project menu actions
@@ -461,34 +395,23 @@ class QgisInterface : QObject
461
395
virtual QAction *actionAddRasterLayer() = 0;
462
396
virtual QAction *actionAddPgLayer() = 0;
463
397
virtual QAction *actionAddWmsLayer() = 0;
464
- /** @note added in 1.9 */
465
398
virtual QAction *actionCopyLayerStyle() = 0;
466
- /** @note added in 1.9 */
467
399
virtual QAction *actionPasteLayerStyle() = 0;
468
400
virtual QAction *actionOpenTable() = 0;
469
401
virtual QAction *actionOpenFieldCalculator() = 0;
470
402
virtual QAction *actionToggleEditing() = 0;
471
- /** @note added in 1.9 */
472
403
virtual QAction *actionSaveActiveLayerEdits() = 0;
473
- /** @note added in 1.9 */
474
404
virtual QAction *actionAllEdits() = 0;
475
- /** @note added in 1.9 */
476
405
virtual QAction *actionSaveEdits() = 0;
477
- /** @note added in 1.9 */
478
406
virtual QAction *actionSaveAllEdits() = 0;
479
- /** @note added in 1.9 */
480
407
virtual QAction *actionRollbackEdits() = 0;
481
- /** @note added in 1.9 */
482
408
virtual QAction *actionRollbackAllEdits() = 0;
483
- /** @note added in 1.9 */
484
409
virtual QAction *actionCancelEdits() = 0;
485
- /** @note added in 1.9 */
486
410
virtual QAction *actionCancelAllEdits() = 0;
487
411
virtual QAction *actionLayerSaveAs() = 0;
488
412
/** @deprecated in 2.4 - returns null pointer */
489
413
virtual QAction *actionLayerSelectionSaveAs() = 0 /Deprecated/;
490
414
virtual QAction *actionRemoveLayer() = 0;
491
- /** @note added in 1.9 */
492
415
virtual QAction *actionDuplicateLayer() = 0;
493
416
virtual QAction *actionLayerProperties() = 0;
494
417
virtual QAction *actionAddToOverview() = 0;
@@ -521,7 +444,6 @@ class QgisInterface : QObject
521
444
* @param f feature to show/modify
522
445
* @param updateFeatureOnly only update the feature update (don't change any attributes of the layer) [UNUSED]
523
446
* @param showModal if true, will wait for the dialog to be executed (only shown otherwise)
524
- * @note added in 1.6
525
447
*/
526
448
virtual bool openFeatureForm( QgsVectorLayer *l, QgsFeature &f, bool updateFeatureOnly = false, bool showModal = true ) = 0;
527
449
@@ -559,12 +481,10 @@ class QgisInterface : QObject
559
481
560
482
/** Return vector layers in edit mode
561
483
* @param modified whether to return only layers that have been modified
562
- * @returns list of layers in legend order, or empty list
563
- * @note added in 1.9 */
484
+ * @returns list of layers in legend order, or empty list */
564
485
virtual QList<QgsMapLayer *> editableLayers( bool modified = false ) const = 0;
565
486
566
- /** Get timeout for timed messages: default of 5 seconds
567
- * @note added in 1.9 */
487
+ /** Get timeout for timed messages: default of 5 seconds */
568
488
virtual int messageTimeout() = 0;
569
489
570
490
signals:
@@ -575,27 +495,22 @@ class QgisInterface : QObject
575
495
576
496
/**
577
497
* This signal is emitted when a new composer instance has been created
578
- * @note added in 1.4
579
498
*/
580
499
void composerAdded( QgsComposerView* v );
581
500
582
501
/**
583
502
* This signal is emitted before a new composer instance is going to be removed
584
- * @note added in 1.4
585
503
*/
586
504
void composerWillBeRemoved( QgsComposerView* v );
587
505
/**
588
506
* This signal is emitted when the initialization is complete
589
- * @note added in 1.6
590
507
*/
591
508
void initializationCompleted();
592
509
/** emitted when a project file is successfully read
593
510
@note
594
511
This is useful for plug-ins that store properties with project files. A
595
512
plug-in can connect to this signal. When it is emitted, the plug-in
596
513
knows to then check the project properties for any relevant state.
597
-
598
- Added in 1.6
599
514
*/
600
515
void projectRead();
601
516
/** emitted when starting an entirely new project
@@ -605,8 +520,6 @@ class QgisInterface : QObject
605
520
overloaded to be used in the case of new projects instead. However,
606
521
it's probably more semantically correct to have an entirely separate
607
522
signal for when this happens.
608
-
609
- Added in 1.6
610
523
*/
611
524
void newProjectCreated();
612
525
};
0 commit comments