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.vcsSubversion.SvnUtilities import getConfigPath, getServersPath |
20 from VcsPlugins.vcsSubversion.SvnUtilities import getConfigPath, getServersPath |
125 |
125 |
126 def prepareUninstall(): |
126 def prepareUninstall(): |
127 """ |
127 """ |
128 Module function to prepare for an uninstallation. |
128 Module function to prepare for an uninstallation. |
129 """ |
129 """ |
130 if not e4App().getObject("PluginManager").isPluginLoaded("PluginVcsSubversion"): |
130 if not e5App().getObject("PluginManager").isPluginLoaded("PluginVcsSubversion"): |
131 Preferences.Prefs.settings.remove("Subversion") |
131 Preferences.Prefs.settings.remove("Subversion") |
132 |
132 |
133 class VcsSubversionPlugin(object): |
133 class VcsSubversionPlugin(object): |
134 """ |
134 """ |
135 Class implementing the Subversion version control plugin. |
135 Class implementing the Subversion version control plugin. |
149 } |
149 } |
150 |
150 |
151 from VcsPlugins.vcsSubversion.ProjectHelper import SvnProjectHelper |
151 from VcsPlugins.vcsSubversion.ProjectHelper import SvnProjectHelper |
152 self.__projectHelperObject = SvnProjectHelper(None, None) |
152 self.__projectHelperObject = SvnProjectHelper(None, None) |
153 try: |
153 try: |
154 e4App().registerPluginObject(pluginTypename, self.__projectHelperObject, |
154 e5App().registerPluginObject(pluginTypename, self.__projectHelperObject, |
155 pluginType) |
155 pluginType) |
156 except KeyError: |
156 except KeyError: |
157 pass # ignore duplicate registration |
157 pass # ignore duplicate registration |
158 readShortcuts(pluginName = pluginTypename) |
158 readShortcuts(pluginName = pluginTypename) |
159 |
159 |