179 |
179 |
180 @return reference to the project helper object |
180 @return reference to the project helper object |
181 """ |
181 """ |
182 return self.__projectHelperObject |
182 return self.__projectHelperObject |
183 |
183 |
|
184 def initToolbar(self, ui, toolbarManager): |
|
185 """ |
|
186 Public slot to initialize the VCS toolbar. |
|
187 |
|
188 @param ui reference to the main window (UserInterface) |
|
189 @param toolbarManager reference to a toolbar manager object |
|
190 (E5ToolBarManager) |
|
191 """ |
|
192 if self.__projectHelperObject: |
|
193 self.__projectHelperObject.initToolbar(ui, toolbarManager) |
|
194 |
184 def activate(self): |
195 def activate(self): |
185 """ |
196 """ |
186 Public method to activate this plugin. |
197 Public method to activate this plugin. |
187 |
198 |
188 @return tuple of reference to instantiated viewmanager and |
199 @return tuple of reference to instantiated viewmanager and |
263 def prepareUninstall(self): |
274 def prepareUninstall(self): |
264 """ |
275 """ |
265 Public method to prepare for an uninstallation. |
276 Public method to prepare for an uninstallation. |
266 """ |
277 """ |
267 e5App().unregisterPluginObject(pluginTypename) |
278 e5App().unregisterPluginObject(pluginTypename) |
|
279 |
|
280 def prepareUnload(self): |
|
281 """ |
|
282 Public method to prepare for an unload. |
|
283 """ |
|
284 if self.__projectHelperObject: |
|
285 self.__projectHelperObject.removeToolbar( |
|
286 self.__ui, e5App().getObject("ToolbarManager")) |
|
287 e5App().unregisterPluginObject(pluginTypename) |