173 |
173 |
174 @return reference to the project helper object |
174 @return reference to the project helper object |
175 """ |
175 """ |
176 return self.__projectHelperObject |
176 return self.__projectHelperObject |
177 |
177 |
|
178 def initToolbar(self, ui, toolbarManager): |
|
179 """ |
|
180 Public slot to initialize the VCS toolbar. |
|
181 |
|
182 @param ui reference to the main window (UserInterface) |
|
183 @param toolbarManager reference to a toolbar manager object |
|
184 (E5ToolBarManager) |
|
185 """ |
|
186 if self.__projectHelperObject: |
|
187 self.__projectHelperObject.initToolbar(ui, toolbarManager) |
|
188 |
178 def activate(self): |
189 def activate(self): |
179 """ |
190 """ |
180 Public method to activate this plugin. |
191 Public method to activate this plugin. |
181 |
192 |
182 @return tuple of reference to instantiated viewmanager and |
193 @return tuple of reference to instantiated viewmanager and |
257 def prepareUninstall(self): |
268 def prepareUninstall(self): |
258 """ |
269 """ |
259 Public method to prepare for an uninstallation. |
270 Public method to prepare for an uninstallation. |
260 """ |
271 """ |
261 e5App().unregisterPluginObject(pluginTypename) |
272 e5App().unregisterPluginObject(pluginTypename) |
|
273 |
|
274 def prepareUnload(self): |
|
275 """ |
|
276 Public method to prepare for an unload. |
|
277 """ |
|
278 if self.__projectHelperObject: |
|
279 self.__projectHelperObject.removeToolbar( |
|
280 self.__ui, e5App().getObject("ToolbarManager")) |
|
281 e5App().unregisterPluginObject(pluginTypename) |