Plugins/VcsPlugins/vcsSubversion/ProjectHelper.py

changeset 55
b5c84934de9c
parent 53
c3eb7cc1ff8b
child 453
a81097a85889
child 792
a13346916170
equal deleted inserted replaced
54:31463df17fd5 55:b5c84934de9c
10 import os 10 import os
11 11
12 from PyQt4.QtCore import * 12 from PyQt4.QtCore import *
13 from PyQt4.QtGui import * 13 from PyQt4.QtGui import *
14 14
15 from E4Gui.E4Application import e5App 15 from E5Gui.E5Application import e5App
16 16
17 from VCS.ProjectHelper import VcsProjectHelper 17 from VCS.ProjectHelper import VcsProjectHelper
18 18
19 from E4Gui.E4Action import E4Action 19 from E5Gui.E5Action import E5Action
20 20
21 import UI.PixmapCache 21 import UI.PixmapCache
22 22
23 class SvnProjectHelper(VcsProjectHelper): 23 class SvnProjectHelper(VcsProjectHelper):
24 """ 24 """
37 37
38 def getActions(self): 38 def getActions(self):
39 """ 39 """
40 Public method to get a list of all actions. 40 Public method to get a list of all actions.
41 41
42 @return list of all actions (list of E4Action) 42 @return list of all actions (list of E5Action)
43 """ 43 """
44 return self.actions[:] 44 return self.actions[:]
45 45
46 def initActions(self): 46 def initActions(self):
47 """ 47 """
48 Public method to generate the action objects. 48 Public method to generate the action objects.
49 """ 49 """
50 self.vcsNewAct = E4Action(self.trUtf8('New from repository'), 50 self.vcsNewAct = E5Action(self.trUtf8('New from repository'),
51 UI.PixmapCache.getIcon("vcsCheckout.png"), 51 UI.PixmapCache.getIcon("vcsCheckout.png"),
52 self.trUtf8('&New from repository...'), 0, 0, self, 'subversion_new') 52 self.trUtf8('&New from repository...'), 0, 0, self, 'subversion_new')
53 self.vcsNewAct.setStatusTip(self.trUtf8( 53 self.vcsNewAct.setStatusTip(self.trUtf8(
54 'Create a new project from the VCS repository' 54 'Create a new project from the VCS repository'
55 )) 55 ))
58 """<p>This creates a new local project from the VCS repository.</p>""" 58 """<p>This creates a new local project from the VCS repository.</p>"""
59 )) 59 ))
60 self.connect(self.vcsNewAct, SIGNAL('triggered()'), self._vcsCheckout) 60 self.connect(self.vcsNewAct, SIGNAL('triggered()'), self._vcsCheckout)
61 self.actions.append(self.vcsNewAct) 61 self.actions.append(self.vcsNewAct)
62 62
63 self.vcsUpdateAct = E4Action(self.trUtf8('Update from repository'), 63 self.vcsUpdateAct = E5Action(self.trUtf8('Update from repository'),
64 UI.PixmapCache.getIcon("vcsUpdate.png"), 64 UI.PixmapCache.getIcon("vcsUpdate.png"),
65 self.trUtf8('&Update from repository'), 0, 0, self, 65 self.trUtf8('&Update from repository'), 0, 0, self,
66 'subversion_update') 66 'subversion_update')
67 self.vcsUpdateAct.setStatusTip(self.trUtf8( 67 self.vcsUpdateAct.setStatusTip(self.trUtf8(
68 'Update the local project from the VCS repository' 68 'Update the local project from the VCS repository'
72 """<p>This updates the local project from the VCS repository.</p>""" 72 """<p>This updates the local project from the VCS repository.</p>"""
73 )) 73 ))
74 self.connect(self.vcsUpdateAct, SIGNAL('triggered()'), self._vcsUpdate) 74 self.connect(self.vcsUpdateAct, SIGNAL('triggered()'), self._vcsUpdate)
75 self.actions.append(self.vcsUpdateAct) 75 self.actions.append(self.vcsUpdateAct)
76 76
77 self.vcsCommitAct = E4Action(self.trUtf8('Commit changes to repository'), 77 self.vcsCommitAct = E5Action(self.trUtf8('Commit changes to repository'),
78 UI.PixmapCache.getIcon("vcsCommit.png"), 78 UI.PixmapCache.getIcon("vcsCommit.png"),
79 self.trUtf8('&Commit changes to repository...'), 0, 0, self, 79 self.trUtf8('&Commit changes to repository...'), 0, 0, self,
80 'subversion_commit') 80 'subversion_commit')
81 self.vcsCommitAct.setStatusTip(self.trUtf8( 81 self.vcsCommitAct.setStatusTip(self.trUtf8(
82 'Commit changes to the local project to the VCS repository' 82 'Commit changes to the local project to the VCS repository'
86 """<p>This commits changes to the local project to the VCS repository.</p>""" 86 """<p>This commits changes to the local project to the VCS repository.</p>"""
87 )) 87 ))
88 self.connect(self.vcsCommitAct, SIGNAL('triggered()'), self._vcsCommit) 88 self.connect(self.vcsCommitAct, SIGNAL('triggered()'), self._vcsCommit)
89 self.actions.append(self.vcsCommitAct) 89 self.actions.append(self.vcsCommitAct)
90 90
91 self.vcsAddAct = E4Action(self.trUtf8('Add to repository'), 91 self.vcsAddAct = E5Action(self.trUtf8('Add to repository'),
92 UI.PixmapCache.getIcon("vcsAdd.png"), 92 UI.PixmapCache.getIcon("vcsAdd.png"),
93 self.trUtf8('&Add to repository...'), 0, 0, self, 'subversion_add') 93 self.trUtf8('&Add to repository...'), 0, 0, self, 'subversion_add')
94 self.vcsAddAct.setStatusTip(self.trUtf8( 94 self.vcsAddAct.setStatusTip(self.trUtf8(
95 'Add the local project to the VCS repository' 95 'Add the local project to the VCS repository'
96 )) 96 ))
99 """<p>This adds (imports) the local project to the VCS repository.</p>""" 99 """<p>This adds (imports) the local project to the VCS repository.</p>"""
100 )) 100 ))
101 self.connect(self.vcsAddAct, SIGNAL('triggered()'), self._vcsImport) 101 self.connect(self.vcsAddAct, SIGNAL('triggered()'), self._vcsImport)
102 self.actions.append(self.vcsAddAct) 102 self.actions.append(self.vcsAddAct)
103 103
104 self.vcsRemoveAct = E4Action(self.trUtf8('Remove from repository (and disk)'), 104 self.vcsRemoveAct = E5Action(self.trUtf8('Remove from repository (and disk)'),
105 UI.PixmapCache.getIcon("vcsRemove.png"), 105 UI.PixmapCache.getIcon("vcsRemove.png"),
106 self.trUtf8('&Remove from repository (and disk)'), 106 self.trUtf8('&Remove from repository (and disk)'),
107 0, 0, self, 'subversion_remove') 107 0, 0, self, 'subversion_remove')
108 self.vcsRemoveAct.setStatusTip(self.trUtf8( 108 self.vcsRemoveAct.setStatusTip(self.trUtf8(
109 'Remove the local project from the VCS repository (and disk)' 109 'Remove the local project from the VCS repository (and disk)'
114 """ (and disk).</p>""" 114 """ (and disk).</p>"""
115 )) 115 ))
116 self.connect(self.vcsRemoveAct, SIGNAL('triggered()'), self._vcsRemove) 116 self.connect(self.vcsRemoveAct, SIGNAL('triggered()'), self._vcsRemove)
117 self.actions.append(self.vcsRemoveAct) 117 self.actions.append(self.vcsRemoveAct)
118 118
119 self.vcsLogAct = E4Action(self.trUtf8('Show log'), 119 self.vcsLogAct = E5Action(self.trUtf8('Show log'),
120 UI.PixmapCache.getIcon("vcsLog.png"), 120 UI.PixmapCache.getIcon("vcsLog.png"),
121 self.trUtf8('Show &log'), 121 self.trUtf8('Show &log'),
122 0, 0, self, 'subversion_log') 122 0, 0, self, 'subversion_log')
123 self.vcsLogAct.setStatusTip(self.trUtf8( 123 self.vcsLogAct.setStatusTip(self.trUtf8(
124 'Show the log of the local project' 124 'Show the log of the local project'
128 """<p>This shows the log of the local project.</p>""" 128 """<p>This shows the log of the local project.</p>"""
129 )) 129 ))
130 self.connect(self.vcsLogAct, SIGNAL('triggered()'), self._vcsLog) 130 self.connect(self.vcsLogAct, SIGNAL('triggered()'), self._vcsLog)
131 self.actions.append(self.vcsLogAct) 131 self.actions.append(self.vcsLogAct)
132 132
133 self.svnLogLimitedAct = E4Action(self.trUtf8('Show limited log'), 133 self.svnLogLimitedAct = E5Action(self.trUtf8('Show limited log'),
134 UI.PixmapCache.getIcon("vcsLog.png"), 134 UI.PixmapCache.getIcon("vcsLog.png"),
135 self.trUtf8('Show limited log'), 135 self.trUtf8('Show limited log'),
136 0, 0, self, 'subversion_log_limited') 136 0, 0, self, 'subversion_log_limited')
137 self.svnLogLimitedAct.setStatusTip(self.trUtf8( 137 self.svnLogLimitedAct.setStatusTip(self.trUtf8(
138 'Show a limited log of the local project' 138 'Show a limited log of the local project'
143 """ number of entries.</p>""" 143 """ number of entries.</p>"""
144 )) 144 ))
145 self.connect(self.svnLogLimitedAct, SIGNAL('triggered()'), self.__svnLogLimited) 145 self.connect(self.svnLogLimitedAct, SIGNAL('triggered()'), self.__svnLogLimited)
146 self.actions.append(self.svnLogLimitedAct) 146 self.actions.append(self.svnLogLimitedAct)
147 147
148 self.svnLogBrowserAct = E4Action(self.trUtf8('Show log browser'), 148 self.svnLogBrowserAct = E5Action(self.trUtf8('Show log browser'),
149 UI.PixmapCache.getIcon("vcsLog.png"), 149 UI.PixmapCache.getIcon("vcsLog.png"),
150 self.trUtf8('Show log browser'), 150 self.trUtf8('Show log browser'),
151 0, 0, self, 'subversion_log_browser') 151 0, 0, self, 'subversion_log_browser')
152 self.svnLogBrowserAct.setStatusTip(self.trUtf8( 152 self.svnLogBrowserAct.setStatusTip(self.trUtf8(
153 'Show a dialog to browse the log of the local project' 153 'Show a dialog to browse the log of the local project'
159 """ retrieved later on.</p>""" 159 """ retrieved later on.</p>"""
160 )) 160 ))
161 self.connect(self.svnLogBrowserAct, SIGNAL('triggered()'), self.__svnLogBrowser) 161 self.connect(self.svnLogBrowserAct, SIGNAL('triggered()'), self.__svnLogBrowser)
162 self.actions.append(self.svnLogBrowserAct) 162 self.actions.append(self.svnLogBrowserAct)
163 163
164 self.vcsDiffAct = E4Action(self.trUtf8('Show difference'), 164 self.vcsDiffAct = E5Action(self.trUtf8('Show difference'),
165 UI.PixmapCache.getIcon("vcsDiff.png"), 165 UI.PixmapCache.getIcon("vcsDiff.png"),
166 self.trUtf8('Show &difference'), 166 self.trUtf8('Show &difference'),
167 0, 0, self, 'subversion_diff') 167 0, 0, self, 'subversion_diff')
168 self.vcsDiffAct.setStatusTip(self.trUtf8( 168 self.vcsDiffAct.setStatusTip(self.trUtf8(
169 'Show the difference of the local project to the repository' 169 'Show the difference of the local project to the repository'
173 """<p>This shows the difference of the local project to the repository.</p>""" 173 """<p>This shows the difference of the local project to the repository.</p>"""
174 )) 174 ))
175 self.connect(self.vcsDiffAct, SIGNAL('triggered()'), self._vcsDiff) 175 self.connect(self.vcsDiffAct, SIGNAL('triggered()'), self._vcsDiff)
176 self.actions.append(self.vcsDiffAct) 176 self.actions.append(self.vcsDiffAct)
177 177
178 self.svnExtDiffAct = E4Action(self.trUtf8('Show difference (extended)'), 178 self.svnExtDiffAct = E5Action(self.trUtf8('Show difference (extended)'),
179 UI.PixmapCache.getIcon("vcsDiff.png"), 179 UI.PixmapCache.getIcon("vcsDiff.png"),
180 self.trUtf8('Show difference (extended)'), 180 self.trUtf8('Show difference (extended)'),
181 0, 0, self, 'subversion_extendeddiff') 181 0, 0, self, 'subversion_extendeddiff')
182 self.svnExtDiffAct.setStatusTip(self.trUtf8( 182 self.svnExtDiffAct.setStatusTip(self.trUtf8(
183 'Show the difference of revisions of the project to the repository' 183 'Show the difference of revisions of the project to the repository'
187 """<p>This shows the difference of selectable revisions of the project.</p>""" 187 """<p>This shows the difference of selectable revisions of the project.</p>"""
188 )) 188 ))
189 self.connect(self.svnExtDiffAct, SIGNAL('triggered()'), self.__svnExtendedDiff) 189 self.connect(self.svnExtDiffAct, SIGNAL('triggered()'), self.__svnExtendedDiff)
190 self.actions.append(self.svnExtDiffAct) 190 self.actions.append(self.svnExtDiffAct)
191 191
192 self.svnUrlDiffAct = E4Action(self.trUtf8('Show difference (URLs)'), 192 self.svnUrlDiffAct = E5Action(self.trUtf8('Show difference (URLs)'),
193 UI.PixmapCache.getIcon("vcsDiff.png"), 193 UI.PixmapCache.getIcon("vcsDiff.png"),
194 self.trUtf8('Show difference (URLs)'), 194 self.trUtf8('Show difference (URLs)'),
195 0, 0, self, 'subversion_urldiff') 195 0, 0, self, 'subversion_urldiff')
196 self.svnUrlDiffAct.setStatusTip(self.trUtf8( 196 self.svnUrlDiffAct.setStatusTip(self.trUtf8(
197 'Show the difference of the project between two repository URLs' 197 'Show the difference of the project between two repository URLs'
202 """ two repository URLs.</p>""" 202 """ two repository URLs.</p>"""
203 )) 203 ))
204 self.connect(self.svnUrlDiffAct, SIGNAL('triggered()'), self.__svnUrlDiff) 204 self.connect(self.svnUrlDiffAct, SIGNAL('triggered()'), self.__svnUrlDiff)
205 self.actions.append(self.svnUrlDiffAct) 205 self.actions.append(self.svnUrlDiffAct)
206 206
207 self.vcsStatusAct = E4Action(self.trUtf8('Show status'), 207 self.vcsStatusAct = E5Action(self.trUtf8('Show status'),
208 UI.PixmapCache.getIcon("vcsStatus.png"), 208 UI.PixmapCache.getIcon("vcsStatus.png"),
209 self.trUtf8('Show &status'), 209 self.trUtf8('Show &status'),
210 0, 0, self, 'subversion_status') 210 0, 0, self, 'subversion_status')
211 self.vcsStatusAct.setStatusTip(self.trUtf8( 211 self.vcsStatusAct.setStatusTip(self.trUtf8(
212 'Show the status of the local project' 212 'Show the status of the local project'
216 """<p>This shows the status of the local project.</p>""" 216 """<p>This shows the status of the local project.</p>"""
217 )) 217 ))
218 self.connect(self.vcsStatusAct, SIGNAL('triggered()'), self._vcsStatus) 218 self.connect(self.vcsStatusAct, SIGNAL('triggered()'), self._vcsStatus)
219 self.actions.append(self.vcsStatusAct) 219 self.actions.append(self.vcsStatusAct)
220 220
221 self.vcsTagAct = E4Action(self.trUtf8('Tag in repository'), 221 self.vcsTagAct = E5Action(self.trUtf8('Tag in repository'),
222 UI.PixmapCache.getIcon("vcsTag.png"), 222 UI.PixmapCache.getIcon("vcsTag.png"),
223 self.trUtf8('&Tag in repository...'), 223 self.trUtf8('&Tag in repository...'),
224 0, 0, self, 'subversion_tag') 224 0, 0, self, 'subversion_tag')
225 self.vcsTagAct.setStatusTip(self.trUtf8( 225 self.vcsTagAct.setStatusTip(self.trUtf8(
226 'Tag the local project in the repository' 226 'Tag the local project in the repository'
230 """<p>This tags the local project in the repository.</p>""" 230 """<p>This tags the local project in the repository.</p>"""
231 )) 231 ))
232 self.connect(self.vcsTagAct, SIGNAL('triggered()'), self._vcsTag) 232 self.connect(self.vcsTagAct, SIGNAL('triggered()'), self._vcsTag)
233 self.actions.append(self.vcsTagAct) 233 self.actions.append(self.vcsTagAct)
234 234
235 self.vcsExportAct = E4Action(self.trUtf8('Export from repository'), 235 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'),
236 UI.PixmapCache.getIcon("vcsExport.png"), 236 UI.PixmapCache.getIcon("vcsExport.png"),
237 self.trUtf8('&Export from repository...'), 237 self.trUtf8('&Export from repository...'),
238 0, 0, self, 'subversion_export') 238 0, 0, self, 'subversion_export')
239 self.vcsExportAct.setStatusTip(self.trUtf8( 239 self.vcsExportAct.setStatusTip(self.trUtf8(
240 'Export a project from the repository' 240 'Export a project from the repository'
244 """<p>This exports a project from the repository.</p>""" 244 """<p>This exports a project from the repository.</p>"""
245 )) 245 ))
246 self.connect(self.vcsExportAct, SIGNAL('triggered()'), self._vcsExport) 246 self.connect(self.vcsExportAct, SIGNAL('triggered()'), self._vcsExport)
247 self.actions.append(self.vcsExportAct) 247 self.actions.append(self.vcsExportAct)
248 248
249 self.vcsPropsAct = E4Action(self.trUtf8('Command options'), 249 self.vcsPropsAct = E5Action(self.trUtf8('Command options'),
250 self.trUtf8('Command &options...'),0,0,self, 250 self.trUtf8('Command &options...'),0,0,self,
251 'subversion_options') 251 'subversion_options')
252 self.vcsPropsAct.setStatusTip(self.trUtf8('Show the VCS command options')) 252 self.vcsPropsAct.setStatusTip(self.trUtf8('Show the VCS command options'))
253 self.vcsPropsAct.setWhatsThis(self.trUtf8( 253 self.vcsPropsAct.setWhatsThis(self.trUtf8(
254 """<b>Command options...</b>""" 254 """<b>Command options...</b>"""
255 """<p>This shows a dialog to edit the VCS command options.</p>""" 255 """<p>This shows a dialog to edit the VCS command options.</p>"""
256 )) 256 ))
257 self.connect(self.vcsPropsAct, SIGNAL('triggered()'), self._vcsCommandOptions) 257 self.connect(self.vcsPropsAct, SIGNAL('triggered()'), self._vcsCommandOptions)
258 self.actions.append(self.vcsPropsAct) 258 self.actions.append(self.vcsPropsAct)
259 259
260 self.vcsRevertAct = E4Action(self.trUtf8('Revert changes'), 260 self.vcsRevertAct = E5Action(self.trUtf8('Revert changes'),
261 UI.PixmapCache.getIcon("vcsRevert.png"), 261 UI.PixmapCache.getIcon("vcsRevert.png"),
262 self.trUtf8('Re&vert changes'), 262 self.trUtf8('Re&vert changes'),
263 0, 0, self, 'subversion_revert') 263 0, 0, self, 'subversion_revert')
264 self.vcsRevertAct.setStatusTip(self.trUtf8( 264 self.vcsRevertAct.setStatusTip(self.trUtf8(
265 'Revert all changes made to the local project' 265 'Revert all changes made to the local project'
269 """<p>This reverts all changes made to the local project.</p>""" 269 """<p>This reverts all changes made to the local project.</p>"""
270 )) 270 ))
271 self.connect(self.vcsRevertAct, SIGNAL('triggered()'), self._vcsRevert) 271 self.connect(self.vcsRevertAct, SIGNAL('triggered()'), self._vcsRevert)
272 self.actions.append(self.vcsRevertAct) 272 self.actions.append(self.vcsRevertAct)
273 273
274 self.vcsMergeAct = E4Action(self.trUtf8('Merge'), 274 self.vcsMergeAct = E5Action(self.trUtf8('Merge'),
275 UI.PixmapCache.getIcon("vcsMerge.png"), 275 UI.PixmapCache.getIcon("vcsMerge.png"),
276 self.trUtf8('Mer&ge changes...'), 276 self.trUtf8('Mer&ge changes...'),
277 0, 0, self, 'subversion_merge') 277 0, 0, self, 'subversion_merge')
278 self.vcsMergeAct.setStatusTip(self.trUtf8( 278 self.vcsMergeAct.setStatusTip(self.trUtf8(
279 'Merge changes of a tag/revision into the local project' 279 'Merge changes of a tag/revision into the local project'
283 """<p>This merges changes of a tag/revision into the local project.</p>""" 283 """<p>This merges changes of a tag/revision into the local project.</p>"""
284 )) 284 ))
285 self.connect(self.vcsMergeAct, SIGNAL('triggered()'), self._vcsMerge) 285 self.connect(self.vcsMergeAct, SIGNAL('triggered()'), self._vcsMerge)
286 self.actions.append(self.vcsMergeAct) 286 self.actions.append(self.vcsMergeAct)
287 287
288 self.vcsSwitchAct = E4Action(self.trUtf8('Switch'), 288 self.vcsSwitchAct = E5Action(self.trUtf8('Switch'),
289 UI.PixmapCache.getIcon("vcsSwitch.png"), 289 UI.PixmapCache.getIcon("vcsSwitch.png"),
290 self.trUtf8('S&witch...'), 290 self.trUtf8('S&witch...'),
291 0, 0, self, 'subversion_switch') 291 0, 0, self, 'subversion_switch')
292 self.vcsSwitchAct.setStatusTip(self.trUtf8( 292 self.vcsSwitchAct.setStatusTip(self.trUtf8(
293 'Switch the local copy to another tag/branch' 293 'Switch the local copy to another tag/branch'
297 """<p>This switches the local copy to another tag/branch.</p>""" 297 """<p>This switches the local copy to another tag/branch.</p>"""
298 )) 298 ))
299 self.connect(self.vcsSwitchAct, SIGNAL('triggered()'), self._vcsSwitch) 299 self.connect(self.vcsSwitchAct, SIGNAL('triggered()'), self._vcsSwitch)
300 self.actions.append(self.vcsSwitchAct) 300 self.actions.append(self.vcsSwitchAct)
301 301
302 self.vcsResolveAct = E4Action(self.trUtf8('Resolve conflicts'), 302 self.vcsResolveAct = E5Action(self.trUtf8('Resolve conflicts'),
303 self.trUtf8('Resolve con&flicts'), 303 self.trUtf8('Resolve con&flicts'),
304 0, 0, self, 'subversion_resolve') 304 0, 0, self, 'subversion_resolve')
305 self.vcsResolveAct.setStatusTip(self.trUtf8( 305 self.vcsResolveAct.setStatusTip(self.trUtf8(
306 'Resolve all conflicts of the local project' 306 'Resolve all conflicts of the local project'
307 )) 307 ))
310 """<p>This resolves all conflicts of the local project.</p>""" 310 """<p>This resolves all conflicts of the local project.</p>"""
311 )) 311 ))
312 self.connect(self.vcsResolveAct, SIGNAL('triggered()'), self.__svnResolve) 312 self.connect(self.vcsResolveAct, SIGNAL('triggered()'), self.__svnResolve)
313 self.actions.append(self.vcsResolveAct) 313 self.actions.append(self.vcsResolveAct)
314 314
315 self.vcsCleanupAct = E4Action(self.trUtf8('Cleanup'), 315 self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'),
316 self.trUtf8('Cleanu&p'), 316 self.trUtf8('Cleanu&p'),
317 0, 0, self, 'subversion_cleanup') 317 0, 0, self, 'subversion_cleanup')
318 self.vcsCleanupAct.setStatusTip(self.trUtf8( 318 self.vcsCleanupAct.setStatusTip(self.trUtf8(
319 'Cleanup the local project' 319 'Cleanup the local project'
320 )) 320 ))
323 """<p>This performs a cleanup of the local project.</p>""" 323 """<p>This performs a cleanup of the local project.</p>"""
324 )) 324 ))
325 self.connect(self.vcsCleanupAct, SIGNAL('triggered()'), self._vcsCleanup) 325 self.connect(self.vcsCleanupAct, SIGNAL('triggered()'), self._vcsCleanup)
326 self.actions.append(self.vcsCleanupAct) 326 self.actions.append(self.vcsCleanupAct)
327 327
328 self.vcsCommandAct = E4Action(self.trUtf8('Execute command'), 328 self.vcsCommandAct = E5Action(self.trUtf8('Execute command'),
329 self.trUtf8('E&xecute command...'), 329 self.trUtf8('E&xecute command...'),
330 0, 0, self, 'subversion_command') 330 0, 0, self, 'subversion_command')
331 self.vcsCommandAct.setStatusTip(self.trUtf8( 331 self.vcsCommandAct.setStatusTip(self.trUtf8(
332 'Execute an arbitrary VCS command' 332 'Execute an arbitrary VCS command'
333 )) 333 ))
336 """<p>This opens a dialog to enter an arbitrary VCS command.</p>""" 336 """<p>This opens a dialog to enter an arbitrary VCS command.</p>"""
337 )) 337 ))
338 self.connect(self.vcsCommandAct, SIGNAL('triggered()'), self._vcsCommand) 338 self.connect(self.vcsCommandAct, SIGNAL('triggered()'), self._vcsCommand)
339 self.actions.append(self.vcsCommandAct) 339 self.actions.append(self.vcsCommandAct)
340 340
341 self.svnTagListAct = E4Action(self.trUtf8('List tags'), 341 self.svnTagListAct = E5Action(self.trUtf8('List tags'),
342 self.trUtf8('List tags...'), 342 self.trUtf8('List tags...'),
343 0, 0, self, 'subversion_list_tags') 343 0, 0, self, 'subversion_list_tags')
344 self.svnTagListAct.setStatusTip(self.trUtf8( 344 self.svnTagListAct.setStatusTip(self.trUtf8(
345 'List tags of the project' 345 'List tags of the project'
346 )) 346 ))
349 """<p>This lists the tags of the project.</p>""" 349 """<p>This lists the tags of the project.</p>"""
350 )) 350 ))
351 self.connect(self.svnTagListAct, SIGNAL('triggered()'), self.__svnTagList) 351 self.connect(self.svnTagListAct, SIGNAL('triggered()'), self.__svnTagList)
352 self.actions.append(self.svnTagListAct) 352 self.actions.append(self.svnTagListAct)
353 353
354 self.svnBranchListAct = E4Action(self.trUtf8('List branches'), 354 self.svnBranchListAct = E5Action(self.trUtf8('List branches'),
355 self.trUtf8('List branches...'), 355 self.trUtf8('List branches...'),
356 0, 0, self, 'subversion_list_branches') 356 0, 0, self, 'subversion_list_branches')
357 self.svnBranchListAct.setStatusTip(self.trUtf8( 357 self.svnBranchListAct.setStatusTip(self.trUtf8(
358 'List branches of the project' 358 'List branches of the project'
359 )) 359 ))
362 """<p>This lists the branches of the project.</p>""" 362 """<p>This lists the branches of the project.</p>"""
363 )) 363 ))
364 self.connect(self.svnBranchListAct, SIGNAL('triggered()'), self.__svnBranchList) 364 self.connect(self.svnBranchListAct, SIGNAL('triggered()'), self.__svnBranchList)
365 self.actions.append(self.svnBranchListAct) 365 self.actions.append(self.svnBranchListAct)
366 366
367 self.svnListAct = E4Action(self.trUtf8('List repository contents'), 367 self.svnListAct = E5Action(self.trUtf8('List repository contents'),
368 self.trUtf8('List repository contents...'), 368 self.trUtf8('List repository contents...'),
369 0, 0, self, 'subversion_contents') 369 0, 0, self, 'subversion_contents')
370 self.svnListAct.setStatusTip(self.trUtf8( 370 self.svnListAct.setStatusTip(self.trUtf8(
371 'Lists the contents of the repository' 371 'Lists the contents of the repository'
372 )) 372 ))
375 """<p>This lists the contents of the repository.</p>""" 375 """<p>This lists the contents of the repository.</p>"""
376 )) 376 ))
377 self.connect(self.svnListAct, SIGNAL('triggered()'), self.__svnTagList) 377 self.connect(self.svnListAct, SIGNAL('triggered()'), self.__svnTagList)
378 self.actions.append(self.svnListAct) 378 self.actions.append(self.svnListAct)
379 379
380 self.svnPropSetAct = E4Action(self.trUtf8('Set Property'), 380 self.svnPropSetAct = E5Action(self.trUtf8('Set Property'),
381 self.trUtf8('Set Property...'), 381 self.trUtf8('Set Property...'),
382 0, 0, self, 'subversion_property_set') 382 0, 0, self, 'subversion_property_set')
383 self.svnPropSetAct.setStatusTip(self.trUtf8( 383 self.svnPropSetAct.setStatusTip(self.trUtf8(
384 'Set a property for the project files' 384 'Set a property for the project files'
385 )) 385 ))
388 """<p>This sets a property for the project files.</p>""" 388 """<p>This sets a property for the project files.</p>"""
389 )) 389 ))
390 self.connect(self.svnPropSetAct, SIGNAL('triggered()'), self.__svnPropSet) 390 self.connect(self.svnPropSetAct, SIGNAL('triggered()'), self.__svnPropSet)
391 self.actions.append(self.svnPropSetAct) 391 self.actions.append(self.svnPropSetAct)
392 392
393 self.svnPropListAct = E4Action(self.trUtf8('List Properties'), 393 self.svnPropListAct = E5Action(self.trUtf8('List Properties'),
394 self.trUtf8('List Properties...'), 394 self.trUtf8('List Properties...'),
395 0, 0, self, 'subversion_property_list') 395 0, 0, self, 'subversion_property_list')
396 self.svnPropListAct.setStatusTip(self.trUtf8( 396 self.svnPropListAct.setStatusTip(self.trUtf8(
397 'List properties of the project files' 397 'List properties of the project files'
398 )) 398 ))
401 """<p>This lists the properties of the project files.</p>""" 401 """<p>This lists the properties of the project files.</p>"""
402 )) 402 ))
403 self.connect(self.svnPropListAct, SIGNAL('triggered()'), self.__svnPropList) 403 self.connect(self.svnPropListAct, SIGNAL('triggered()'), self.__svnPropList)
404 self.actions.append(self.svnPropListAct) 404 self.actions.append(self.svnPropListAct)
405 405
406 self.svnPropDelAct = E4Action(self.trUtf8('Delete Property'), 406 self.svnPropDelAct = E5Action(self.trUtf8('Delete Property'),
407 self.trUtf8('Delete Property...'), 407 self.trUtf8('Delete Property...'),
408 0, 0, self, 'subversion_property_delete') 408 0, 0, self, 'subversion_property_delete')
409 self.svnPropDelAct.setStatusTip(self.trUtf8( 409 self.svnPropDelAct.setStatusTip(self.trUtf8(
410 'Delete a property for the project files' 410 'Delete a property for the project files'
411 )) 411 ))
414 """<p>This deletes a property for the project files.</p>""" 414 """<p>This deletes a property for the project files.</p>"""
415 )) 415 ))
416 self.connect(self.svnPropDelAct, SIGNAL('triggered()'), self.__svnPropDel) 416 self.connect(self.svnPropDelAct, SIGNAL('triggered()'), self.__svnPropDel)
417 self.actions.append(self.svnPropDelAct) 417 self.actions.append(self.svnPropDelAct)
418 418
419 self.svnRelocateAct = E4Action(self.trUtf8('Relocate'), 419 self.svnRelocateAct = E5Action(self.trUtf8('Relocate'),
420 UI.PixmapCache.getIcon("vcsSwitch.png"), 420 UI.PixmapCache.getIcon("vcsSwitch.png"),
421 self.trUtf8('Relocate...'), 421 self.trUtf8('Relocate...'),
422 0, 0, self, 'subversion_relocate') 422 0, 0, self, 'subversion_relocate')
423 self.svnRelocateAct.setStatusTip(self.trUtf8( 423 self.svnRelocateAct.setStatusTip(self.trUtf8(
424 'Relocate the working copy to a new repository URL' 424 'Relocate the working copy to a new repository URL'
428 """<p>This relocates the working copy to a new repository URL.</p>""" 428 """<p>This relocates the working copy to a new repository URL.</p>"""
429 )) 429 ))
430 self.connect(self.svnRelocateAct, SIGNAL('triggered()'), self.__svnRelocate) 430 self.connect(self.svnRelocateAct, SIGNAL('triggered()'), self.__svnRelocate)
431 self.actions.append(self.svnRelocateAct) 431 self.actions.append(self.svnRelocateAct)
432 432
433 self.svnRepoBrowserAct = E4Action(self.trUtf8('Repository Browser'), 433 self.svnRepoBrowserAct = E5Action(self.trUtf8('Repository Browser'),
434 UI.PixmapCache.getIcon("vcsRepoBrowser.png"), 434 UI.PixmapCache.getIcon("vcsRepoBrowser.png"),
435 self.trUtf8('Repository Browser...'), 435 self.trUtf8('Repository Browser...'),
436 0, 0, self, 'subversion_repo_browser') 436 0, 0, self, 'subversion_repo_browser')
437 self.svnRepoBrowserAct.setStatusTip(self.trUtf8( 437 self.svnRepoBrowserAct.setStatusTip(self.trUtf8(
438 'Show the Repository Browser dialog' 438 'Show the Repository Browser dialog'
442 """<p>This shows the Repository Browser dialog.</p>""" 442 """<p>This shows the Repository Browser dialog.</p>"""
443 )) 443 ))
444 self.connect(self.svnRepoBrowserAct, SIGNAL('triggered()'), self.__svnRepoBrowser) 444 self.connect(self.svnRepoBrowserAct, SIGNAL('triggered()'), self.__svnRepoBrowser)
445 self.actions.append(self.svnRepoBrowserAct) 445 self.actions.append(self.svnRepoBrowserAct)
446 446
447 self.svnConfigAct = E4Action(self.trUtf8('Configure'), 447 self.svnConfigAct = E5Action(self.trUtf8('Configure'),
448 self.trUtf8('Configure...'), 448 self.trUtf8('Configure...'),
449 0, 0, self, 'subversion_configure') 449 0, 0, self, 'subversion_configure')
450 self.svnConfigAct.setStatusTip(self.trUtf8( 450 self.svnConfigAct.setStatusTip(self.trUtf8(
451 'Show the configuration dialog with the Subversion page selected' 451 'Show the configuration dialog with the Subversion page selected'
452 )) 452 ))

eric ide

mercurial