eric7/Plugins/VcsPlugins/vcsPySvn/ProjectHelper.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
11 11
12 from PyQt6.QtWidgets import QToolBar 12 from PyQt6.QtWidgets import QToolBar
13 13
14 from VCS.ProjectHelper import VcsProjectHelper 14 from VCS.ProjectHelper import VcsProjectHelper
15 15
16 from E5Gui.E5Action import E5Action 16 from E5Gui.EricAction import EricAction
17 from E5Gui.E5Application import e5App 17 from E5Gui.EricApplication import ericApp
18 18
19 import UI.PixmapCache 19 import UI.PixmapCache
20 20
21 21
22 class PySvnProjectHelper(VcsProjectHelper): 22 class PySvnProjectHelper(VcsProjectHelper):
36 36
37 def getActions(self): 37 def getActions(self):
38 """ 38 """
39 Public method to get a list of all actions. 39 Public method to get a list of all actions.
40 40
41 @return list of all actions (list of E5Action) 41 @return list of all actions (list of EricAction)
42 """ 42 """
43 return self.actions[:] 43 return self.actions[:]
44 44
45 def initActions(self): 45 def initActions(self):
46 """ 46 """
47 Public method to generate the action objects. 47 Public method to generate the action objects.
48 """ 48 """
49 self.vcsNewAct = E5Action( 49 self.vcsNewAct = EricAction(
50 self.tr('New from repository'), 50 self.tr('New from repository'),
51 UI.PixmapCache.getIcon("vcsCheckout"), 51 UI.PixmapCache.getIcon("vcsCheckout"),
52 self.tr('&New from repository...'), 0, 0, self, 52 self.tr('&New from repository...'), 0, 0, self,
53 'pysvn_new') 53 'pysvn_new')
54 self.vcsNewAct.setStatusTip(self.tr( 54 self.vcsNewAct.setStatusTip(self.tr(
60 """ repository.</p>""" 60 """ repository.</p>"""
61 )) 61 ))
62 self.vcsNewAct.triggered.connect(self._vcsCheckout) 62 self.vcsNewAct.triggered.connect(self._vcsCheckout)
63 self.actions.append(self.vcsNewAct) 63 self.actions.append(self.vcsNewAct)
64 64
65 self.vcsUpdateAct = E5Action( 65 self.vcsUpdateAct = EricAction(
66 self.tr('Update from repository'), 66 self.tr('Update from repository'),
67 UI.PixmapCache.getIcon("vcsUpdate"), 67 UI.PixmapCache.getIcon("vcsUpdate"),
68 self.tr('&Update from repository'), 0, 0, self, 68 self.tr('&Update from repository'), 0, 0, self,
69 'pysvn_update') 69 'pysvn_update')
70 self.vcsUpdateAct.setStatusTip(self.tr( 70 self.vcsUpdateAct.setStatusTip(self.tr(
76 """ repository.</p>""" 76 """ repository.</p>"""
77 )) 77 ))
78 self.vcsUpdateAct.triggered.connect(self._vcsUpdate) 78 self.vcsUpdateAct.triggered.connect(self._vcsUpdate)
79 self.actions.append(self.vcsUpdateAct) 79 self.actions.append(self.vcsUpdateAct)
80 80
81 self.vcsCommitAct = E5Action( 81 self.vcsCommitAct = EricAction(
82 self.tr('Commit changes to repository'), 82 self.tr('Commit changes to repository'),
83 UI.PixmapCache.getIcon("vcsCommit"), 83 UI.PixmapCache.getIcon("vcsCommit"),
84 self.tr('&Commit changes to repository...'), 0, 0, self, 84 self.tr('&Commit changes to repository...'), 0, 0, self,
85 'pysvn_commit') 85 'pysvn_commit')
86 self.vcsCommitAct.setStatusTip(self.tr( 86 self.vcsCommitAct.setStatusTip(self.tr(
92 """ repository.</p>""" 92 """ repository.</p>"""
93 )) 93 ))
94 self.vcsCommitAct.triggered.connect(self._vcsCommit) 94 self.vcsCommitAct.triggered.connect(self._vcsCommit)
95 self.actions.append(self.vcsCommitAct) 95 self.actions.append(self.vcsCommitAct)
96 96
97 self.svnLogBrowserAct = E5Action( 97 self.svnLogBrowserAct = EricAction(
98 self.tr('Show log browser'), 98 self.tr('Show log browser'),
99 UI.PixmapCache.getIcon("vcsLog"), 99 UI.PixmapCache.getIcon("vcsLog"),
100 self.tr('Show log browser'), 100 self.tr('Show log browser'),
101 0, 0, self, 'pysvn_log_browser') 101 0, 0, self, 'pysvn_log_browser')
102 self.svnLogBrowserAct.setStatusTip(self.tr( 102 self.svnLogBrowserAct.setStatusTip(self.tr(
109 """ can be retrieved later on.</p>""" 109 """ can be retrieved later on.</p>"""
110 )) 110 ))
111 self.svnLogBrowserAct.triggered.connect(self._vcsLogBrowser) 111 self.svnLogBrowserAct.triggered.connect(self._vcsLogBrowser)
112 self.actions.append(self.svnLogBrowserAct) 112 self.actions.append(self.svnLogBrowserAct)
113 113
114 self.vcsDiffAct = E5Action( 114 self.vcsDiffAct = EricAction(
115 self.tr('Show differences'), 115 self.tr('Show differences'),
116 UI.PixmapCache.getIcon("vcsDiff"), 116 UI.PixmapCache.getIcon("vcsDiff"),
117 self.tr('Show &difference'), 117 self.tr('Show &difference'),
118 0, 0, self, 'pysvn_diff') 118 0, 0, self, 'pysvn_diff')
119 self.vcsDiffAct.setStatusTip(self.tr( 119 self.vcsDiffAct.setStatusTip(self.tr(
125 """ repository.</p>""" 125 """ repository.</p>"""
126 )) 126 ))
127 self.vcsDiffAct.triggered.connect(self._vcsDiff) 127 self.vcsDiffAct.triggered.connect(self._vcsDiff)
128 self.actions.append(self.vcsDiffAct) 128 self.actions.append(self.vcsDiffAct)
129 129
130 self.svnExtDiffAct = E5Action( 130 self.svnExtDiffAct = EricAction(
131 self.tr('Show differences (extended)'), 131 self.tr('Show differences (extended)'),
132 UI.PixmapCache.getIcon("vcsDiff"), 132 UI.PixmapCache.getIcon("vcsDiff"),
133 self.tr('Show differences (extended)'), 133 self.tr('Show differences (extended)'),
134 0, 0, self, 'pysvn_extendeddiff') 134 0, 0, self, 'pysvn_extendeddiff')
135 self.svnExtDiffAct.setStatusTip(self.tr( 135 self.svnExtDiffAct.setStatusTip(self.tr(
141 """ the project.</p>""" 141 """ the project.</p>"""
142 )) 142 ))
143 self.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff) 143 self.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff)
144 self.actions.append(self.svnExtDiffAct) 144 self.actions.append(self.svnExtDiffAct)
145 145
146 self.svnUrlDiffAct = E5Action( 146 self.svnUrlDiffAct = EricAction(
147 self.tr('Show differences (URLs)'), 147 self.tr('Show differences (URLs)'),
148 UI.PixmapCache.getIcon("vcsDiff"), 148 UI.PixmapCache.getIcon("vcsDiff"),
149 self.tr('Show differences (URLs)'), 149 self.tr('Show differences (URLs)'),
150 0, 0, self, 'pysvn_urldiff') 150 0, 0, self, 'pysvn_urldiff')
151 self.svnUrlDiffAct.setStatusTip(self.tr( 151 self.svnUrlDiffAct.setStatusTip(self.tr(
157 """ two repository URLs.</p>""" 157 """ two repository URLs.</p>"""
158 )) 158 ))
159 self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff) 159 self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff)
160 self.actions.append(self.svnUrlDiffAct) 160 self.actions.append(self.svnUrlDiffAct)
161 161
162 self.vcsStatusAct = E5Action( 162 self.vcsStatusAct = EricAction(
163 self.tr('Show status'), 163 self.tr('Show status'),
164 UI.PixmapCache.getIcon("vcsStatus"), 164 UI.PixmapCache.getIcon("vcsStatus"),
165 self.tr('Show &status'), 165 self.tr('Show &status'),
166 0, 0, self, 'pysvn_status') 166 0, 0, self, 'pysvn_status')
167 self.vcsStatusAct.setStatusTip(self.tr( 167 self.vcsStatusAct.setStatusTip(self.tr(
172 """<p>This shows the status of the local project.</p>""" 172 """<p>This shows the status of the local project.</p>"""
173 )) 173 ))
174 self.vcsStatusAct.triggered.connect(self._vcsStatus) 174 self.vcsStatusAct.triggered.connect(self._vcsStatus)
175 self.actions.append(self.vcsStatusAct) 175 self.actions.append(self.vcsStatusAct)
176 176
177 self.svnChangeListsAct = E5Action( 177 self.svnChangeListsAct = EricAction(
178 self.tr('Show change lists'), 178 self.tr('Show change lists'),
179 UI.PixmapCache.getIcon("vcsChangeLists"), 179 UI.PixmapCache.getIcon("vcsChangeLists"),
180 self.tr('Show change lists'), 180 self.tr('Show change lists'),
181 0, 0, self, 'pysvn_changelists') 181 0, 0, self, 'pysvn_changelists')
182 self.svnChangeListsAct.setStatusTip(self.tr( 182 self.svnChangeListsAct.setStatusTip(self.tr(
188 """ local project.</p>""" 188 """ local project.</p>"""
189 )) 189 ))
190 self.svnChangeListsAct.triggered.connect(self.__svnChangeLists) 190 self.svnChangeListsAct.triggered.connect(self.__svnChangeLists)
191 self.actions.append(self.svnChangeListsAct) 191 self.actions.append(self.svnChangeListsAct)
192 192
193 self.svnRepoInfoAct = E5Action( 193 self.svnRepoInfoAct = EricAction(
194 self.tr('Show repository info'), 194 self.tr('Show repository info'),
195 UI.PixmapCache.getIcon("vcsRepo"), 195 UI.PixmapCache.getIcon("vcsRepo"),
196 self.tr('Show repository info'), 196 self.tr('Show repository info'),
197 0, 0, self, 'pysvn_repoinfo') 197 0, 0, self, 'pysvn_repoinfo')
198 self.svnRepoInfoAct.setStatusTip(self.tr( 198 self.svnRepoInfoAct.setStatusTip(self.tr(
204 """ the local project.</p>""" 204 """ the local project.</p>"""
205 )) 205 ))
206 self.svnRepoInfoAct.triggered.connect(self.__svnInfo) 206 self.svnRepoInfoAct.triggered.connect(self.__svnInfo)
207 self.actions.append(self.svnRepoInfoAct) 207 self.actions.append(self.svnRepoInfoAct)
208 208
209 self.vcsTagAct = E5Action( 209 self.vcsTagAct = EricAction(
210 self.tr('Tag in repository'), 210 self.tr('Tag in repository'),
211 UI.PixmapCache.getIcon("vcsTag"), 211 UI.PixmapCache.getIcon("vcsTag"),
212 self.tr('&Tag in repository...'), 212 self.tr('&Tag in repository...'),
213 0, 0, self, 'pysvn_tag') 213 0, 0, self, 'pysvn_tag')
214 self.vcsTagAct.setStatusTip(self.tr( 214 self.vcsTagAct.setStatusTip(self.tr(
219 """<p>This tags the local project in the repository.</p>""" 219 """<p>This tags the local project in the repository.</p>"""
220 )) 220 ))
221 self.vcsTagAct.triggered.connect(self._vcsTag) 221 self.vcsTagAct.triggered.connect(self._vcsTag)
222 self.actions.append(self.vcsTagAct) 222 self.actions.append(self.vcsTagAct)
223 223
224 self.vcsExportAct = E5Action( 224 self.vcsExportAct = EricAction(
225 self.tr('Export from repository'), 225 self.tr('Export from repository'),
226 UI.PixmapCache.getIcon("vcsExport"), 226 UI.PixmapCache.getIcon("vcsExport"),
227 self.tr('&Export from repository...'), 227 self.tr('&Export from repository...'),
228 0, 0, self, 'pysvn_export') 228 0, 0, self, 'pysvn_export')
229 self.vcsExportAct.setStatusTip(self.tr( 229 self.vcsExportAct.setStatusTip(self.tr(
234 """<p>This exports a project from the repository.</p>""" 234 """<p>This exports a project from the repository.</p>"""
235 )) 235 ))
236 self.vcsExportAct.triggered.connect(self._vcsExport) 236 self.vcsExportAct.triggered.connect(self._vcsExport)
237 self.actions.append(self.vcsExportAct) 237 self.actions.append(self.vcsExportAct)
238 238
239 self.vcsPropsAct = E5Action( 239 self.vcsPropsAct = EricAction(
240 self.tr('Command options'), 240 self.tr('Command options'),
241 self.tr('Command &options...'), 0, 0, self, 241 self.tr('Command &options...'), 0, 0, self,
242 'pysvn_options') 242 'pysvn_options')
243 self.vcsPropsAct.setStatusTip(self.tr( 243 self.vcsPropsAct.setStatusTip(self.tr(
244 'Show the VCS command options')) 244 'Show the VCS command options'))
247 """<p>This shows a dialog to edit the VCS command options.</p>""" 247 """<p>This shows a dialog to edit the VCS command options.</p>"""
248 )) 248 ))
249 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions) 249 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions)
250 self.actions.append(self.vcsPropsAct) 250 self.actions.append(self.vcsPropsAct)
251 251
252 self.vcsRevertAct = E5Action( 252 self.vcsRevertAct = EricAction(
253 self.tr('Revert changes'), 253 self.tr('Revert changes'),
254 UI.PixmapCache.getIcon("vcsRevert"), 254 UI.PixmapCache.getIcon("vcsRevert"),
255 self.tr('Re&vert changes'), 255 self.tr('Re&vert changes'),
256 0, 0, self, 'pysvn_revert') 256 0, 0, self, 'pysvn_revert')
257 self.vcsRevertAct.setStatusTip(self.tr( 257 self.vcsRevertAct.setStatusTip(self.tr(
262 """<p>This reverts all changes made to the local project.</p>""" 262 """<p>This reverts all changes made to the local project.</p>"""
263 )) 263 ))
264 self.vcsRevertAct.triggered.connect(self._vcsRevert) 264 self.vcsRevertAct.triggered.connect(self._vcsRevert)
265 self.actions.append(self.vcsRevertAct) 265 self.actions.append(self.vcsRevertAct)
266 266
267 self.vcsMergeAct = E5Action( 267 self.vcsMergeAct = EricAction(
268 self.tr('Merge'), 268 self.tr('Merge'),
269 UI.PixmapCache.getIcon("vcsMerge"), 269 UI.PixmapCache.getIcon("vcsMerge"),
270 self.tr('Mer&ge changes...'), 270 self.tr('Mer&ge changes...'),
271 0, 0, self, 'pysvn_merge') 271 0, 0, self, 'pysvn_merge')
272 self.vcsMergeAct.setStatusTip(self.tr( 272 self.vcsMergeAct.setStatusTip(self.tr(
278 """ project.</p>""" 278 """ project.</p>"""
279 )) 279 ))
280 self.vcsMergeAct.triggered.connect(self._vcsMerge) 280 self.vcsMergeAct.triggered.connect(self._vcsMerge)
281 self.actions.append(self.vcsMergeAct) 281 self.actions.append(self.vcsMergeAct)
282 282
283 self.vcsSwitchAct = E5Action( 283 self.vcsSwitchAct = EricAction(
284 self.tr('Switch'), 284 self.tr('Switch'),
285 UI.PixmapCache.getIcon("vcsSwitch"), 285 UI.PixmapCache.getIcon("vcsSwitch"),
286 self.tr('S&witch...'), 286 self.tr('S&witch...'),
287 0, 0, self, 'pysvn_switch') 287 0, 0, self, 'pysvn_switch')
288 self.vcsSwitchAct.setStatusTip(self.tr( 288 self.vcsSwitchAct.setStatusTip(self.tr(
293 """<p>This switches the local copy to another tag/branch.</p>""" 293 """<p>This switches the local copy to another tag/branch.</p>"""
294 )) 294 ))
295 self.vcsSwitchAct.triggered.connect(self._vcsSwitch) 295 self.vcsSwitchAct.triggered.connect(self._vcsSwitch)
296 self.actions.append(self.vcsSwitchAct) 296 self.actions.append(self.vcsSwitchAct)
297 297
298 self.vcsResolveAct = E5Action( 298 self.vcsResolveAct = EricAction(
299 self.tr('Conflicts resolved'), 299 self.tr('Conflicts resolved'),
300 self.tr('Con&flicts resolved'), 300 self.tr('Con&flicts resolved'),
301 0, 0, self, 'pysvn_resolve') 301 0, 0, self, 'pysvn_resolve')
302 self.vcsResolveAct.setStatusTip(self.tr( 302 self.vcsResolveAct.setStatusTip(self.tr(
303 'Mark all conflicts of the local project as resolved' 303 'Mark all conflicts of the local project as resolved'
308 """ resolved.</p>""" 308 """ resolved.</p>"""
309 )) 309 ))
310 self.vcsResolveAct.triggered.connect(self.__svnResolve) 310 self.vcsResolveAct.triggered.connect(self.__svnResolve)
311 self.actions.append(self.vcsResolveAct) 311 self.actions.append(self.vcsResolveAct)
312 312
313 self.vcsCleanupAct = E5Action( 313 self.vcsCleanupAct = EricAction(
314 self.tr('Cleanup'), 314 self.tr('Cleanup'),
315 self.tr('Cleanu&p'), 315 self.tr('Cleanu&p'),
316 0, 0, self, 'pysvn_cleanup') 316 0, 0, self, 'pysvn_cleanup')
317 self.vcsCleanupAct.setStatusTip(self.tr( 317 self.vcsCleanupAct.setStatusTip(self.tr(
318 'Cleanup the local project' 318 'Cleanup the local project'
322 """<p>This performs a cleanup of the local project.</p>""" 322 """<p>This performs a cleanup of the local project.</p>"""
323 )) 323 ))
324 self.vcsCleanupAct.triggered.connect(self._vcsCleanup) 324 self.vcsCleanupAct.triggered.connect(self._vcsCleanup)
325 self.actions.append(self.vcsCleanupAct) 325 self.actions.append(self.vcsCleanupAct)
326 326
327 self.vcsCommandAct = E5Action( 327 self.vcsCommandAct = EricAction(
328 self.tr('Execute command'), 328 self.tr('Execute command'),
329 self.tr('E&xecute command...'), 329 self.tr('E&xecute command...'),
330 0, 0, self, 'pysvn_command') 330 0, 0, self, 'pysvn_command')
331 self.vcsCommandAct.setStatusTip(self.tr( 331 self.vcsCommandAct.setStatusTip(self.tr(
332 'Execute an arbitrary VCS command' 332 'Execute an arbitrary VCS command'
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.vcsCommandAct.triggered.connect(self._vcsCommand) 338 self.vcsCommandAct.triggered.connect(self._vcsCommand)
339 self.actions.append(self.vcsCommandAct) 339 self.actions.append(self.vcsCommandAct)
340 340
341 self.svnTagListAct = E5Action( 341 self.svnTagListAct = EricAction(
342 self.tr('List tags'), 342 self.tr('List tags'),
343 self.tr('List tags...'), 343 self.tr('List tags...'),
344 0, 0, self, 'pysvn_list_tags') 344 0, 0, self, 'pysvn_list_tags')
345 self.svnTagListAct.setStatusTip(self.tr( 345 self.svnTagListAct.setStatusTip(self.tr(
346 'List tags of the project' 346 'List tags of the project'
350 """<p>This lists the tags of the project.</p>""" 350 """<p>This lists the tags of the project.</p>"""
351 )) 351 ))
352 self.svnTagListAct.triggered.connect(self.__svnTagList) 352 self.svnTagListAct.triggered.connect(self.__svnTagList)
353 self.actions.append(self.svnTagListAct) 353 self.actions.append(self.svnTagListAct)
354 354
355 self.svnBranchListAct = E5Action( 355 self.svnBranchListAct = EricAction(
356 self.tr('List branches'), 356 self.tr('List branches'),
357 self.tr('List branches...'), 357 self.tr('List branches...'),
358 0, 0, self, 'pysvn_list_branches') 358 0, 0, self, 'pysvn_list_branches')
359 self.svnBranchListAct.setStatusTip(self.tr( 359 self.svnBranchListAct.setStatusTip(self.tr(
360 'List branches of the project' 360 'List branches of the project'
364 """<p>This lists the branches of the project.</p>""" 364 """<p>This lists the branches of the project.</p>"""
365 )) 365 ))
366 self.svnBranchListAct.triggered.connect(self.__svnBranchList) 366 self.svnBranchListAct.triggered.connect(self.__svnBranchList)
367 self.actions.append(self.svnBranchListAct) 367 self.actions.append(self.svnBranchListAct)
368 368
369 self.svnListAct = E5Action( 369 self.svnListAct = EricAction(
370 self.tr('List repository contents'), 370 self.tr('List repository contents'),
371 self.tr('List repository contents...'), 371 self.tr('List repository contents...'),
372 0, 0, self, 'pysvn_contents') 372 0, 0, self, 'pysvn_contents')
373 self.svnListAct.setStatusTip(self.tr( 373 self.svnListAct.setStatusTip(self.tr(
374 'Lists the contents of the repository' 374 'Lists the contents of the repository'
378 """<p>This lists the contents of the repository.</p>""" 378 """<p>This lists the contents of the repository.</p>"""
379 )) 379 ))
380 self.svnListAct.triggered.connect(self.__svnTagList) 380 self.svnListAct.triggered.connect(self.__svnTagList)
381 self.actions.append(self.svnListAct) 381 self.actions.append(self.svnListAct)
382 382
383 self.svnPropSetAct = E5Action( 383 self.svnPropSetAct = EricAction(
384 self.tr('Set Property'), 384 self.tr('Set Property'),
385 self.tr('Set Property...'), 385 self.tr('Set Property...'),
386 0, 0, self, 'pysvn_property_set') 386 0, 0, self, 'pysvn_property_set')
387 self.svnPropSetAct.setStatusTip(self.tr( 387 self.svnPropSetAct.setStatusTip(self.tr(
388 'Set a property for the project files' 388 'Set a property for the project files'
392 """<p>This sets a property for the project files.</p>""" 392 """<p>This sets a property for the project files.</p>"""
393 )) 393 ))
394 self.svnPropSetAct.triggered.connect(self.__svnPropSet) 394 self.svnPropSetAct.triggered.connect(self.__svnPropSet)
395 self.actions.append(self.svnPropSetAct) 395 self.actions.append(self.svnPropSetAct)
396 396
397 self.svnPropListAct = E5Action( 397 self.svnPropListAct = EricAction(
398 self.tr('List Properties'), 398 self.tr('List Properties'),
399 self.tr('List Properties...'), 399 self.tr('List Properties...'),
400 0, 0, self, 'pysvn_property_list') 400 0, 0, self, 'pysvn_property_list')
401 self.svnPropListAct.setStatusTip(self.tr( 401 self.svnPropListAct.setStatusTip(self.tr(
402 'List properties of the project files' 402 'List properties of the project files'
406 """<p>This lists the properties of the project files.</p>""" 406 """<p>This lists the properties of the project files.</p>"""
407 )) 407 ))
408 self.svnPropListAct.triggered.connect(self.__svnPropList) 408 self.svnPropListAct.triggered.connect(self.__svnPropList)
409 self.actions.append(self.svnPropListAct) 409 self.actions.append(self.svnPropListAct)
410 410
411 self.svnPropDelAct = E5Action( 411 self.svnPropDelAct = EricAction(
412 self.tr('Delete Property'), 412 self.tr('Delete Property'),
413 self.tr('Delete Property...'), 413 self.tr('Delete Property...'),
414 0, 0, self, 'pysvn_property_delete') 414 0, 0, self, 'pysvn_property_delete')
415 self.svnPropDelAct.setStatusTip(self.tr( 415 self.svnPropDelAct.setStatusTip(self.tr(
416 'Delete a property for the project files' 416 'Delete a property for the project files'
420 """<p>This deletes a property for the project files.</p>""" 420 """<p>This deletes a property for the project files.</p>"""
421 )) 421 ))
422 self.svnPropDelAct.triggered.connect(self.__svnPropDel) 422 self.svnPropDelAct.triggered.connect(self.__svnPropDel)
423 self.actions.append(self.svnPropDelAct) 423 self.actions.append(self.svnPropDelAct)
424 424
425 self.svnRelocateAct = E5Action( 425 self.svnRelocateAct = EricAction(
426 self.tr('Relocate'), 426 self.tr('Relocate'),
427 UI.PixmapCache.getIcon("vcsSwitch"), 427 UI.PixmapCache.getIcon("vcsSwitch"),
428 self.tr('Relocate...'), 428 self.tr('Relocate...'),
429 0, 0, self, 'pysvn_relocate') 429 0, 0, self, 'pysvn_relocate')
430 self.svnRelocateAct.setStatusTip(self.tr( 430 self.svnRelocateAct.setStatusTip(self.tr(
436 """ URL.</p>""" 436 """ URL.</p>"""
437 )) 437 ))
438 self.svnRelocateAct.triggered.connect(self.__svnRelocate) 438 self.svnRelocateAct.triggered.connect(self.__svnRelocate)
439 self.actions.append(self.svnRelocateAct) 439 self.actions.append(self.svnRelocateAct)
440 440
441 self.svnRepoBrowserAct = E5Action( 441 self.svnRepoBrowserAct = EricAction(
442 self.tr('Repository Browser'), 442 self.tr('Repository Browser'),
443 UI.PixmapCache.getIcon("vcsRepoBrowser"), 443 UI.PixmapCache.getIcon("vcsRepoBrowser"),
444 self.tr('Repository Browser...'), 444 self.tr('Repository Browser...'),
445 0, 0, self, 'pysvn_repo_browser') 445 0, 0, self, 'pysvn_repo_browser')
446 self.svnRepoBrowserAct.setStatusTip(self.tr( 446 self.svnRepoBrowserAct.setStatusTip(self.tr(
451 """<p>This shows the Repository Browser dialog.</p>""" 451 """<p>This shows the Repository Browser dialog.</p>"""
452 )) 452 ))
453 self.svnRepoBrowserAct.triggered.connect(self.__svnRepoBrowser) 453 self.svnRepoBrowserAct.triggered.connect(self.__svnRepoBrowser)
454 self.actions.append(self.svnRepoBrowserAct) 454 self.actions.append(self.svnRepoBrowserAct)
455 455
456 self.svnConfigAct = E5Action( 456 self.svnConfigAct = EricAction(
457 self.tr('Configure'), 457 self.tr('Configure'),
458 self.tr('Configure...'), 458 self.tr('Configure...'),
459 0, 0, self, 'pysvn_configure') 459 0, 0, self, 'pysvn_configure')
460 self.svnConfigAct.setStatusTip(self.tr( 460 self.svnConfigAct.setStatusTip(self.tr(
461 'Show the configuration dialog with the Subversion page selected' 461 'Show the configuration dialog with the Subversion page selected'
466 """ selected.</p>""" 466 """ selected.</p>"""
467 )) 467 ))
468 self.svnConfigAct.triggered.connect(self.__svnConfigure) 468 self.svnConfigAct.triggered.connect(self.__svnConfigure)
469 self.actions.append(self.svnConfigAct) 469 self.actions.append(self.svnConfigAct)
470 470
471 self.svnUpgradeAct = E5Action( 471 self.svnUpgradeAct = EricAction(
472 self.tr('Upgrade'), 472 self.tr('Upgrade'),
473 self.tr('Upgrade...'), 473 self.tr('Upgrade...'),
474 0, 0, self, 'pysvn_upgrade') 474 0, 0, self, 'pysvn_upgrade')
475 self.svnUpgradeAct.setStatusTip(self.tr( 475 self.svnUpgradeAct.setStatusTip(self.tr(
476 'Upgrade the working copy to the current format' 476 'Upgrade the working copy to the current format'
547 """ 547 """
548 Public slot to initialize the VCS toolbar. 548 Public slot to initialize the VCS toolbar.
549 549
550 @param ui reference to the main window (UserInterface) 550 @param ui reference to the main window (UserInterface)
551 @param toolbarManager reference to a toolbar manager object 551 @param toolbarManager reference to a toolbar manager object
552 (E5ToolBarManager) 552 (EricToolBarManager)
553 """ 553 """
554 self.__toolbar = QToolBar(self.tr("Subversion (pysvn)"), ui) 554 self.__toolbar = QToolBar(self.tr("Subversion (pysvn)"), ui)
555 self.__toolbar.setIconSize(UI.Config.ToolBarIconSize) 555 self.__toolbar.setIconSize(UI.Config.ToolBarIconSize)
556 self.__toolbar.setObjectName("PySvnToolbar") 556 self.__toolbar.setObjectName("PySvnToolbar")
557 self.__toolbar.setToolTip(self.tr('Subversion (pysvn)')) 557 self.__toolbar.setToolTip(self.tr('Subversion (pysvn)'))
591 """ 591 """
592 Public method to remove a toolbar created by initToolbar(). 592 Public method to remove a toolbar created by initToolbar().
593 593
594 @param ui reference to the main window (UserInterface) 594 @param ui reference to the main window (UserInterface)
595 @param toolbarManager reference to a toolbar manager object 595 @param toolbarManager reference to a toolbar manager object
596 (E5ToolBarManager) 596 (EricToolBarManager)
597 """ 597 """
598 ui.removeToolBar(self.__toolbar) 598 ui.removeToolBar(self.__toolbar)
599 ui.unregisterToolbar("pysvn") 599 ui.unregisterToolbar("pysvn")
600 600
601 title = self.__toolbar.windowTitle() 601 title = self.__toolbar.windowTitle()
675 675
676 def __svnConfigure(self): 676 def __svnConfigure(self):
677 """ 677 """
678 Private slot to open the configuration dialog. 678 Private slot to open the configuration dialog.
679 """ 679 """
680 e5App().getObject("UserInterface").showPreferences( 680 ericApp().getObject("UserInterface").showPreferences(
681 "zzz_subversionPage") 681 "zzz_subversionPage")
682 682
683 def __svnChangeLists(self): 683 def __svnChangeLists(self):
684 """ 684 """
685 Private slot used to show a list of change lists. 685 Private slot used to show a list of change lists.

eric ide

mercurial