@@ -296,53 +296,16 @@ class QgisInterface : QObject
296
296
* windows which are hidden rather than deleted when closed. */
297
297
virtual void removeWindow( QAction *action ) = 0;
298
298
299
- /** Register action to the shortcuts manager so its shortcut can be changed in GUI */
300
- virtual bool registerMainWindowAction( QAction* action, const QString& defaultShortcut ) = 0;
301
-
302
- /** Unregister a previously registered action. (e.g. when plugin is going to be unloaded) */
303
- virtual bool unregisterMainWindowAction( QAction* action ) = 0;
304
-
305
- /** Register a new tab in the vector layer properties dialog.
306
- * @note added in QGIS 2.16
307
- * @note Ownership of the factory is not transferred, and the factory must
308
- * be unregistered when plugin is unloaded.
309
- * @see unregisterMapLayerPropertiesFactory() */
310
- virtual void registerMapLayerConfigWidgetFactory( QgsMapLayerConfigWidgetFactory* factory ) = 0;
311
-
312
- /** Unregister a previously registered tab in the vector layer properties dialog.
313
- * @note added in QGIS 2.16
314
- * @see registerMapLayerPropertiesFactory()
315
- */
316
- virtual void unregisterMapLayerConfigWidgetFactory( QgsMapLayerConfigWidgetFactory* factory ) = 0;
317
-
318
- /** Register a new custom drop handler.
319
- * @note added in QGIS 3.0
320
- * @note Ownership of the factory is not transferred, and the factory must
321
- * be unregistered when plugin is unloaded.
322
- * @see unregisterCustomDropHandler() */
323
- virtual void registerCustomDropHandler( QgsCustomDropHandler* handler ) = 0;
324
-
325
- /** Unregister a previously registered custom drop handler.
326
- * @note added in QGIS 3.0
327
- * @see registerCustomDropHandler() */
328
- virtual void unregisterCustomDropHandler( QgsCustomDropHandler* handler ) = 0;
329
-
330
- // @todo is this deprecated in favour of QgsContextHelp?
331
- /** Open a url in the users browser. By default the QGIS doc directory is used
332
- * as the base for the URL. To open a URL that is not relative to the installed
333
- * QGIS documentation, set useQgisDocDirectory to false.
334
- * @param url URL to open
335
- * @param useQgisDocDirectory If true, the URL will be formed by concatenating
336
- * url to the QGIS documentation directory path (prefix/share/doc)
337
- * @deprecated
338
- */
339
- virtual void openURL( const QString& url, bool useQgisDocDirectory = true ) = 0 /Deprecated/;
340
-
341
- /** Accessors for inserting items into menus and toolbars.
342
- * An item can be inserted before any existing action.
343
- */
299
+ virtual bool registerMainWindowAction( QAction *action, const QString &defaultShortcut ) = 0;
300
+ virtual bool unregisterMainWindowAction( QAction *action ) = 0;
301
+ virtual void registerMapLayerConfigWidgetFactory( QgsMapLayerConfigWidgetFactory *factory ) = 0;
302
+ virtual void unregisterMapLayerConfigWidgetFactory( QgsMapLayerConfigWidgetFactory *factory ) = 0;
303
+ virtual void registerOptionsWidgetFactory( QgsOptionsWidgetFactory *factory ) = 0;
304
+ virtual void unregisterOptionsWidgetFactory( QgsOptionsWidgetFactory *factory ) = 0;
305
+ virtual void registerCustomDropHandler( QgsCustomDropHandler *handler ) = 0;
306
+ virtual void unregisterCustomDropHandler( QgsCustomDropHandler *handler ) = 0;
307
+ virtual void openURL( const QString &url, bool useQgisDocDirectory = true ) = 0 /Deprecated/;
344
308
345
- // Menus
346
309
virtual QMenu *projectMenu() = 0;
347
310
virtual QMenu *editMenu() = 0;
348
311
virtual QMenu *viewMenu() = 0;
0 commit comments