10 import os |
10 import os |
11 import sys |
11 import sys |
12 |
12 |
13 from PyQt4.QtGui import QApplication |
13 from PyQt4.QtGui import QApplication |
14 |
14 |
15 from E4Gui.E4Application import e4App |
15 from E4Gui.E4Application import e5App |
16 |
16 |
17 import Preferences |
17 import Preferences |
18 from Preferences.Shortcuts import readShortcuts |
18 from Preferences.Shortcuts import readShortcuts |
19 |
19 |
20 from VcsPlugins.vcsPySvn.SvnUtilities import getConfigPath, getServersPath |
20 from VcsPlugins.vcsPySvn.SvnUtilities import getConfigPath, getServersPath |
123 |
123 |
124 def prepareUninstall(): |
124 def prepareUninstall(): |
125 """ |
125 """ |
126 Module function to prepare for an uninstallation. |
126 Module function to prepare for an uninstallation. |
127 """ |
127 """ |
128 if not e4App().getObject("PluginManager").isPluginLoaded("PluginVcsSubversion"): |
128 if not e5App().getObject("PluginManager").isPluginLoaded("PluginVcsSubversion"): |
129 Preferences.Prefs.settings.remove("Subversion") |
129 Preferences.Prefs.settings.remove("Subversion") |
130 |
130 |
131 class VcsPySvnPlugin(object): |
131 class VcsPySvnPlugin(object): |
132 """ |
132 """ |
133 Class implementing the PySvn version control plugin. |
133 Class implementing the PySvn version control plugin. |
147 } |
147 } |
148 |
148 |
149 from VcsPlugins.vcsPySvn.ProjectHelper import SvnProjectHelper |
149 from VcsPlugins.vcsPySvn.ProjectHelper import SvnProjectHelper |
150 self.__projectHelperObject = SvnProjectHelper(None, None) |
150 self.__projectHelperObject = SvnProjectHelper(None, None) |
151 try: |
151 try: |
152 e4App().registerPluginObject(pluginTypename, self.__projectHelperObject, |
152 e5App().registerPluginObject(pluginTypename, self.__projectHelperObject, |
153 pluginType) |
153 pluginType) |
154 except KeyError: |
154 except KeyError: |
155 pass # ignore duplicate registration |
155 pass # ignore duplicate registration |
156 readShortcuts(pluginName = pluginTypename) |
156 readShortcuts(pluginName = pluginTypename) |
157 |
157 |