File tree 2 files changed +18
-4
lines changed
2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ class QgisInterface : QObject
89
89
/** Add a dock widget to the main window */
90
90
virtual void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget )=0;
91
91
92
- /** Remove specified dock widget from main window (doesn't delete it). Added in QGIS 1.1. */
93
- virtual void removeDockWidget ( QDockWidget * dockwidget )=0;
92
+ /** Remove specified dock widget from main window (doesn't delete it). Added in QGIS 1.1. */
93
+ virtual void removeDockWidget ( QDockWidget * dockwidget )=0;
94
94
95
95
/** refresh legend of a layer */
96
96
virtual void refreshLegend( QgsMapLayer * layer )=0;
@@ -102,6 +102,16 @@ class QgisInterface : QObject
102
102
* windows which are hidden rather than deleted when closed. */
103
103
virtual void removeWindow( QAction *action ) = 0;
104
104
105
+ /** Register action to the shortcuts manager so its shortcut can be changed in GUI
106
+ \note added in 1.2
107
+ */
108
+ virtual bool registerMainWindowAction( QAction* action, QString defaultShortcut ) = 0;
109
+
110
+ /** Unregister a previously registered action. (e.g. when plugin is going to be unloaded)
111
+ \note added in 1.2
112
+ */
113
+ virtual bool unregisterMainWindowAction( QAction* action ) = 0;
114
+
105
115
/** Accessors for inserting items into menus and toolbars.
106
116
* An item can be inserted before any existing action.
107
117
*/
Original file line number Diff line number Diff line change @@ -135,10 +135,14 @@ class GUI_EXPORT QgisInterface : public QObject
135
135
* windows which are hidden rather than deleted when closed. */
136
136
virtual void removeWindow ( QAction *action ) = 0;
137
137
138
- /* * Register action to the shortcuts manager so its shortcut can be changed in GUI */
138
+ /* * Register action to the shortcuts manager so its shortcut can be changed in GUI
139
+ \note added in 1.2
140
+ */
139
141
virtual bool registerMainWindowAction ( QAction* action, QString defaultShortcut ) = 0;
140
142
141
- /* * Unregister a previously registered action. (e.g. when plugin is going to be unloaded */
143
+ /* * Unregister a previously registered action. (e.g. when plugin is going to be unloaded)
144
+ \note added in 1.2
145
+ */
142
146
virtual bool unregisterMainWindowAction ( QAction* action ) = 0;
143
147
144
148
// TODO: is this deprecated in favour of QgsContextHelp?
You can’t perform that action at this time.
0 commit comments