189 |
189 |
190 @return reference to the project helper object |
190 @return reference to the project helper object |
191 """ |
191 """ |
192 return self.__projectHelperObject |
192 return self.__projectHelperObject |
193 |
193 |
|
194 def initToolbar(self, ui, toolbarManager): |
|
195 """ |
|
196 Public slot to initialize the VCS toolbar. |
|
197 |
|
198 @param ui reference to the main window (UserInterface) |
|
199 @param toolbarManager reference to a toolbar manager object |
|
200 (E5ToolBarManager) |
|
201 """ |
|
202 if self.__projectHelperObject: |
|
203 self.__projectHelperObject.initToolbar(ui, toolbarManager) |
|
204 |
194 def activate(self): |
205 def activate(self): |
195 """ |
206 """ |
196 Public method to activate this plugin. |
207 Public method to activate this plugin. |
197 |
208 |
198 @return tuple of reference to instantiated viewmanager and |
209 @return tuple of reference to instantiated viewmanager and |
286 def prepareUninstall(self): |
297 def prepareUninstall(self): |
287 """ |
298 """ |
288 Public method to prepare for an uninstallation. |
299 Public method to prepare for an uninstallation. |
289 """ |
300 """ |
290 e5App().unregisterPluginObject(pluginTypename) |
301 e5App().unregisterPluginObject(pluginTypename) |
|
302 |
|
303 def prepareUnload(self): |
|
304 """ |
|
305 Public method to prepare for an unload. |
|
306 """ |
|
307 if self.__projectHelperObject: |
|
308 self.__projectHelperObject.removeToolbar( |
|
309 self.__ui, e5App().getObject("ToolbarManager")) |
|
310 e5App().unregisterPluginObject(pluginTypename) |