Plugins/VcsPlugins/vcsPySvn/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.svnRepoInfoAct = E4Action(self.trUtf8('Show repository info'), 221 self.svnRepoInfoAct = E5Action(self.trUtf8('Show repository info'),
222 UI.PixmapCache.getIcon("vcsRepo.png"), 222 UI.PixmapCache.getIcon("vcsRepo.png"),
223 self.trUtf8('Show repository info'), 223 self.trUtf8('Show repository info'),
224 0, 0, self, 'subversion_repoinfo') 224 0, 0, self, 'subversion_repoinfo')
225 self.svnRepoInfoAct.setStatusTip(self.trUtf8( 225 self.svnRepoInfoAct.setStatusTip(self.trUtf8(
226 'Show some repository related information for the local project' 226 'Show some repository related information for the local project'
231 """ the local project.</p>""" 231 """ the local project.</p>"""
232 )) 232 ))
233 self.connect(self.svnRepoInfoAct, SIGNAL('triggered()'), self.__svnInfo) 233 self.connect(self.svnRepoInfoAct, SIGNAL('triggered()'), self.__svnInfo)
234 self.actions.append(self.svnRepoInfoAct) 234 self.actions.append(self.svnRepoInfoAct)
235 235
236 self.vcsTagAct = E4Action(self.trUtf8('Tag in repository'), 236 self.vcsTagAct = E5Action(self.trUtf8('Tag in repository'),
237 UI.PixmapCache.getIcon("vcsTag.png"), 237 UI.PixmapCache.getIcon("vcsTag.png"),
238 self.trUtf8('&Tag in repository...'), 238 self.trUtf8('&Tag in repository...'),
239 0, 0, self, 'subversion_tag') 239 0, 0, self, 'subversion_tag')
240 self.vcsTagAct.setStatusTip(self.trUtf8( 240 self.vcsTagAct.setStatusTip(self.trUtf8(
241 'Tag the local project in the repository' 241 'Tag the local project in the repository'
245 """<p>This tags the local project in the repository.</p>""" 245 """<p>This tags the local project in the repository.</p>"""
246 )) 246 ))
247 self.connect(self.vcsTagAct, SIGNAL('triggered()'), self._vcsTag) 247 self.connect(self.vcsTagAct, SIGNAL('triggered()'), self._vcsTag)
248 self.actions.append(self.vcsTagAct) 248 self.actions.append(self.vcsTagAct)
249 249
250 self.vcsExportAct = E4Action(self.trUtf8('Export from repository'), 250 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'),
251 UI.PixmapCache.getIcon("vcsExport.png"), 251 UI.PixmapCache.getIcon("vcsExport.png"),
252 self.trUtf8('&Export from repository...'), 252 self.trUtf8('&Export from repository...'),
253 0, 0, self, 'subversion_export') 253 0, 0, self, 'subversion_export')
254 self.vcsExportAct.setStatusTip(self.trUtf8( 254 self.vcsExportAct.setStatusTip(self.trUtf8(
255 'Export a project from the repository' 255 'Export a project from the repository'
259 """<p>This exports a project from the repository.</p>""" 259 """<p>This exports a project from the repository.</p>"""
260 )) 260 ))
261 self.connect(self.vcsExportAct, SIGNAL('triggered()'), self._vcsExport) 261 self.connect(self.vcsExportAct, SIGNAL('triggered()'), self._vcsExport)
262 self.actions.append(self.vcsExportAct) 262 self.actions.append(self.vcsExportAct)
263 263
264 self.vcsPropsAct = E4Action(self.trUtf8('Command options'), 264 self.vcsPropsAct = E5Action(self.trUtf8('Command options'),
265 self.trUtf8('Command &options...'),0,0,self, 265 self.trUtf8('Command &options...'),0,0,self,
266 'subversion_options') 266 'subversion_options')
267 self.vcsPropsAct.setStatusTip(self.trUtf8('Show the VCS command options')) 267 self.vcsPropsAct.setStatusTip(self.trUtf8('Show the VCS command options'))
268 self.vcsPropsAct.setWhatsThis(self.trUtf8( 268 self.vcsPropsAct.setWhatsThis(self.trUtf8(
269 """<b>Command options...</b>""" 269 """<b>Command options...</b>"""
270 """<p>This shows a dialog to edit the VCS command options.</p>""" 270 """<p>This shows a dialog to edit the VCS command options.</p>"""
271 )) 271 ))
272 self.connect(self.vcsPropsAct, SIGNAL('triggered()'), self._vcsCommandOptions) 272 self.connect(self.vcsPropsAct, SIGNAL('triggered()'), self._vcsCommandOptions)
273 self.actions.append(self.vcsPropsAct) 273 self.actions.append(self.vcsPropsAct)
274 274
275 self.vcsRevertAct = E4Action(self.trUtf8('Revert changes'), 275 self.vcsRevertAct = E5Action(self.trUtf8('Revert changes'),
276 UI.PixmapCache.getIcon("vcsRevert.png"), 276 UI.PixmapCache.getIcon("vcsRevert.png"),
277 self.trUtf8('Re&vert changes'), 277 self.trUtf8('Re&vert changes'),
278 0, 0, self, 'subversion_revert') 278 0, 0, self, 'subversion_revert')
279 self.vcsRevertAct.setStatusTip(self.trUtf8( 279 self.vcsRevertAct.setStatusTip(self.trUtf8(
280 'Revert all changes made to the local project' 280 'Revert all changes made to the local project'
284 """<p>This reverts all changes made to the local project.</p>""" 284 """<p>This reverts all changes made to the local project.</p>"""
285 )) 285 ))
286 self.connect(self.vcsRevertAct, SIGNAL('triggered()'), self._vcsRevert) 286 self.connect(self.vcsRevertAct, SIGNAL('triggered()'), self._vcsRevert)
287 self.actions.append(self.vcsRevertAct) 287 self.actions.append(self.vcsRevertAct)
288 288
289 self.vcsMergeAct = E4Action(self.trUtf8('Merge'), 289 self.vcsMergeAct = E5Action(self.trUtf8('Merge'),
290 UI.PixmapCache.getIcon("vcsMerge.png"), 290 UI.PixmapCache.getIcon("vcsMerge.png"),
291 self.trUtf8('Mer&ge changes...'), 291 self.trUtf8('Mer&ge changes...'),
292 0, 0, self, 'subversion_merge') 292 0, 0, self, 'subversion_merge')
293 self.vcsMergeAct.setStatusTip(self.trUtf8( 293 self.vcsMergeAct.setStatusTip(self.trUtf8(
294 'Merge changes of a tag/revision into the local project' 294 'Merge changes of a tag/revision into the local project'
298 """<p>This merges changes of a tag/revision into the local project.</p>""" 298 """<p>This merges changes of a tag/revision into the local project.</p>"""
299 )) 299 ))
300 self.connect(self.vcsMergeAct, SIGNAL('triggered()'), self._vcsMerge) 300 self.connect(self.vcsMergeAct, SIGNAL('triggered()'), self._vcsMerge)
301 self.actions.append(self.vcsMergeAct) 301 self.actions.append(self.vcsMergeAct)
302 302
303 self.vcsSwitchAct = E4Action(self.trUtf8('Switch'), 303 self.vcsSwitchAct = E5Action(self.trUtf8('Switch'),
304 UI.PixmapCache.getIcon("vcsSwitch.png"), 304 UI.PixmapCache.getIcon("vcsSwitch.png"),
305 self.trUtf8('S&witch...'), 305 self.trUtf8('S&witch...'),
306 0, 0, self, 'subversion_switch') 306 0, 0, self, 'subversion_switch')
307 self.vcsSwitchAct.setStatusTip(self.trUtf8( 307 self.vcsSwitchAct.setStatusTip(self.trUtf8(
308 'Switch the local copy to another tag/branch' 308 'Switch the local copy to another tag/branch'
312 """<p>This switches the local copy to another tag/branch.</p>""" 312 """<p>This switches the local copy to another tag/branch.</p>"""
313 )) 313 ))
314 self.connect(self.vcsSwitchAct, SIGNAL('triggered()'), self._vcsSwitch) 314 self.connect(self.vcsSwitchAct, SIGNAL('triggered()'), self._vcsSwitch)
315 self.actions.append(self.vcsSwitchAct) 315 self.actions.append(self.vcsSwitchAct)
316 316
317 self.vcsResolveAct = E4Action(self.trUtf8('Resolve conflicts'), 317 self.vcsResolveAct = E5Action(self.trUtf8('Resolve conflicts'),
318 self.trUtf8('Resolve con&flicts'), 318 self.trUtf8('Resolve con&flicts'),
319 0, 0, self, 'subversion_resolve') 319 0, 0, self, 'subversion_resolve')
320 self.vcsResolveAct.setStatusTip(self.trUtf8( 320 self.vcsResolveAct.setStatusTip(self.trUtf8(
321 'Resolve all conflicts of the local project' 321 'Resolve all conflicts of the local project'
322 )) 322 ))
325 """<p>This resolves all conflicts of the local project.</p>""" 325 """<p>This resolves all conflicts of the local project.</p>"""
326 )) 326 ))
327 self.connect(self.vcsResolveAct, SIGNAL('triggered()'), self.__svnResolve) 327 self.connect(self.vcsResolveAct, SIGNAL('triggered()'), self.__svnResolve)
328 self.actions.append(self.vcsResolveAct) 328 self.actions.append(self.vcsResolveAct)
329 329
330 self.vcsCleanupAct = E4Action(self.trUtf8('Cleanup'), 330 self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'),
331 self.trUtf8('Cleanu&p'), 331 self.trUtf8('Cleanu&p'),
332 0, 0, self, 'subversion_cleanup') 332 0, 0, self, 'subversion_cleanup')
333 self.vcsCleanupAct.setStatusTip(self.trUtf8( 333 self.vcsCleanupAct.setStatusTip(self.trUtf8(
334 'Cleanup the local project' 334 'Cleanup the local project'
335 )) 335 ))
338 """<p>This performs a cleanup of the local project.</p>""" 338 """<p>This performs a cleanup of the local project.</p>"""
339 )) 339 ))
340 self.connect(self.vcsCleanupAct, SIGNAL('triggered()'), self._vcsCleanup) 340 self.connect(self.vcsCleanupAct, SIGNAL('triggered()'), self._vcsCleanup)
341 self.actions.append(self.vcsCleanupAct) 341 self.actions.append(self.vcsCleanupAct)
342 342
343 self.vcsCommandAct = E4Action(self.trUtf8('Execute command'), 343 self.vcsCommandAct = E5Action(self.trUtf8('Execute command'),
344 self.trUtf8('E&xecute command...'), 344 self.trUtf8('E&xecute command...'),
345 0, 0, self, 'subversion_command') 345 0, 0, self, 'subversion_command')
346 self.vcsCommandAct.setStatusTip(self.trUtf8( 346 self.vcsCommandAct.setStatusTip(self.trUtf8(
347 'Execute an arbitrary VCS command' 347 'Execute an arbitrary VCS command'
348 )) 348 ))
351 """<p>This opens a dialog to enter an arbitrary VCS command.</p>""" 351 """<p>This opens a dialog to enter an arbitrary VCS command.</p>"""
352 )) 352 ))
353 self.connect(self.vcsCommandAct, SIGNAL('triggered()'), self._vcsCommand) 353 self.connect(self.vcsCommandAct, SIGNAL('triggered()'), self._vcsCommand)
354 self.actions.append(self.vcsCommandAct) 354 self.actions.append(self.vcsCommandAct)
355 355
356 self.svnTagListAct = E4Action(self.trUtf8('List tags'), 356 self.svnTagListAct = E5Action(self.trUtf8('List tags'),
357 self.trUtf8('List tags...'), 357 self.trUtf8('List tags...'),
358 0, 0, self, 'subversion_list_tags') 358 0, 0, self, 'subversion_list_tags')
359 self.svnTagListAct.setStatusTip(self.trUtf8( 359 self.svnTagListAct.setStatusTip(self.trUtf8(
360 'List tags of the project' 360 'List tags of the project'
361 )) 361 ))
364 """<p>This lists the tags of the project.</p>""" 364 """<p>This lists the tags of the project.</p>"""
365 )) 365 ))
366 self.connect(self.svnTagListAct, SIGNAL('triggered()'), self.__svnTagList) 366 self.connect(self.svnTagListAct, SIGNAL('triggered()'), self.__svnTagList)
367 self.actions.append(self.svnTagListAct) 367 self.actions.append(self.svnTagListAct)
368 368
369 self.svnBranchListAct = E4Action(self.trUtf8('List branches'), 369 self.svnBranchListAct = E5Action(self.trUtf8('List branches'),
370 self.trUtf8('List branches...'), 370 self.trUtf8('List branches...'),
371 0, 0, self, 'subversion_list_branches') 371 0, 0, self, 'subversion_list_branches')
372 self.svnBranchListAct.setStatusTip(self.trUtf8( 372 self.svnBranchListAct.setStatusTip(self.trUtf8(
373 'List branches of the project' 373 'List branches of the project'
374 )) 374 ))
377 """<p>This lists the branches of the project.</p>""" 377 """<p>This lists the branches of the project.</p>"""
378 )) 378 ))
379 self.connect(self.svnBranchListAct, SIGNAL('triggered()'), self.__svnBranchList) 379 self.connect(self.svnBranchListAct, SIGNAL('triggered()'), self.__svnBranchList)
380 self.actions.append(self.svnBranchListAct) 380 self.actions.append(self.svnBranchListAct)
381 381
382 self.svnListAct = E4Action(self.trUtf8('List repository contents'), 382 self.svnListAct = E5Action(self.trUtf8('List repository contents'),
383 self.trUtf8('List repository contents...'), 383 self.trUtf8('List repository contents...'),
384 0, 0, self, 'subversion_contents') 384 0, 0, self, 'subversion_contents')
385 self.svnListAct.setStatusTip(self.trUtf8( 385 self.svnListAct.setStatusTip(self.trUtf8(
386 'Lists the contents of the repository' 386 'Lists the contents of the repository'
387 )) 387 ))
390 """<p>This lists the contents of the repository.</p>""" 390 """<p>This lists the contents of the repository.</p>"""
391 )) 391 ))
392 self.connect(self.svnListAct, SIGNAL('triggered()'), self.__svnTagList) 392 self.connect(self.svnListAct, SIGNAL('triggered()'), self.__svnTagList)
393 self.actions.append(self.svnListAct) 393 self.actions.append(self.svnListAct)
394 394
395 self.svnPropSetAct = E4Action(self.trUtf8('Set Property'), 395 self.svnPropSetAct = E5Action(self.trUtf8('Set Property'),
396 self.trUtf8('Set Property...'), 396 self.trUtf8('Set Property...'),
397 0, 0, self, 'subversion_property_set') 397 0, 0, self, 'subversion_property_set')
398 self.svnPropSetAct.setStatusTip(self.trUtf8( 398 self.svnPropSetAct.setStatusTip(self.trUtf8(
399 'Set a property for the project files' 399 'Set a property for the project files'
400 )) 400 ))
403 """<p>This sets a property for the project files.</p>""" 403 """<p>This sets a property for the project files.</p>"""
404 )) 404 ))
405 self.connect(self.svnPropSetAct, SIGNAL('triggered()'), self.__svnPropSet) 405 self.connect(self.svnPropSetAct, SIGNAL('triggered()'), self.__svnPropSet)
406 self.actions.append(self.svnPropSetAct) 406 self.actions.append(self.svnPropSetAct)
407 407
408 self.svnPropListAct = E4Action(self.trUtf8('List Properties'), 408 self.svnPropListAct = E5Action(self.trUtf8('List Properties'),
409 self.trUtf8('List Properties...'), 409 self.trUtf8('List Properties...'),
410 0, 0, self, 'subversion_property_list') 410 0, 0, self, 'subversion_property_list')
411 self.svnPropListAct.setStatusTip(self.trUtf8( 411 self.svnPropListAct.setStatusTip(self.trUtf8(
412 'List properties of the project files' 412 'List properties of the project files'
413 )) 413 ))
416 """<p>This lists the properties of the project files.</p>""" 416 """<p>This lists the properties of the project files.</p>"""
417 )) 417 ))
418 self.connect(self.svnPropListAct, SIGNAL('triggered()'), self.__svnPropList) 418 self.connect(self.svnPropListAct, SIGNAL('triggered()'), self.__svnPropList)
419 self.actions.append(self.svnPropListAct) 419 self.actions.append(self.svnPropListAct)
420 420
421 self.svnPropDelAct = E4Action(self.trUtf8('Delete Property'), 421 self.svnPropDelAct = E5Action(self.trUtf8('Delete Property'),
422 self.trUtf8('Delete Property...'), 422 self.trUtf8('Delete Property...'),
423 0, 0, self, 'subversion_property_delete') 423 0, 0, self, 'subversion_property_delete')
424 self.svnPropDelAct.setStatusTip(self.trUtf8( 424 self.svnPropDelAct.setStatusTip(self.trUtf8(
425 'Delete a property for the project files' 425 'Delete a property for the project files'
426 )) 426 ))
429 """<p>This deletes a property for the project files.</p>""" 429 """<p>This deletes a property for the project files.</p>"""
430 )) 430 ))
431 self.connect(self.svnPropDelAct, SIGNAL('triggered()'), self.__svnPropDel) 431 self.connect(self.svnPropDelAct, SIGNAL('triggered()'), self.__svnPropDel)
432 self.actions.append(self.svnPropDelAct) 432 self.actions.append(self.svnPropDelAct)
433 433
434 self.svnRelocateAct = E4Action(self.trUtf8('Relocate'), 434 self.svnRelocateAct = E5Action(self.trUtf8('Relocate'),
435 UI.PixmapCache.getIcon("vcsSwitch.png"), 435 UI.PixmapCache.getIcon("vcsSwitch.png"),
436 self.trUtf8('Relocate...'), 436 self.trUtf8('Relocate...'),
437 0, 0, self, 'subversion_relocate') 437 0, 0, self, 'subversion_relocate')
438 self.svnRelocateAct.setStatusTip(self.trUtf8( 438 self.svnRelocateAct.setStatusTip(self.trUtf8(
439 'Relocate the working copy to a new repository URL' 439 'Relocate the working copy to a new repository URL'
443 """<p>This relocates the working copy to a new repository URL.</p>""" 443 """<p>This relocates the working copy to a new repository URL.</p>"""
444 )) 444 ))
445 self.connect(self.svnRelocateAct, SIGNAL('triggered()'), self.__svnRelocate) 445 self.connect(self.svnRelocateAct, SIGNAL('triggered()'), self.__svnRelocate)
446 self.actions.append(self.svnRelocateAct) 446 self.actions.append(self.svnRelocateAct)
447 447
448 self.svnRepoBrowserAct = E4Action(self.trUtf8('Repository Browser'), 448 self.svnRepoBrowserAct = E5Action(self.trUtf8('Repository Browser'),
449 UI.PixmapCache.getIcon("vcsRepoBrowser.png"), 449 UI.PixmapCache.getIcon("vcsRepoBrowser.png"),
450 self.trUtf8('Repository Browser...'), 450 self.trUtf8('Repository Browser...'),
451 0, 0, self, 'subversion_repo_browser') 451 0, 0, self, 'subversion_repo_browser')
452 self.svnRepoBrowserAct.setStatusTip(self.trUtf8( 452 self.svnRepoBrowserAct.setStatusTip(self.trUtf8(
453 'Show the Repository Browser dialog' 453 'Show the Repository Browser dialog'
457 """<p>This shows the Repository Browser dialog.</p>""" 457 """<p>This shows the Repository Browser dialog.</p>"""
458 )) 458 ))
459 self.connect(self.svnRepoBrowserAct, SIGNAL('triggered()'), self.__svnRepoBrowser) 459 self.connect(self.svnRepoBrowserAct, SIGNAL('triggered()'), self.__svnRepoBrowser)
460 self.actions.append(self.svnRepoBrowserAct) 460 self.actions.append(self.svnRepoBrowserAct)
461 461
462 self.svnConfigAct = E4Action(self.trUtf8('Configure'), 462 self.svnConfigAct = E5Action(self.trUtf8('Configure'),
463 self.trUtf8('Configure...'), 463 self.trUtf8('Configure...'),
464 0, 0, self, 'subversion_configure') 464 0, 0, self, 'subversion_configure')
465 self.svnConfigAct.setStatusTip(self.trUtf8( 465 self.svnConfigAct.setStatusTip(self.trUtf8(
466 'Show the configuration dialog with the Subversion page selected' 466 'Show the configuration dialog with the Subversion page selected'
467 )) 467 ))

eric ide

mercurial