Plugins/VcsPlugins/vcsPySvn/ProjectHelper.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3024
17c01303a239
child 3142
55030c09e142
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
61 """ repository.</p>""" 61 """ repository.</p>"""
62 )) 62 ))
63 self.vcsNewAct.triggered[()].connect(self._vcsCheckout) 63 self.vcsNewAct.triggered[()].connect(self._vcsCheckout)
64 self.actions.append(self.vcsNewAct) 64 self.actions.append(self.vcsNewAct)
65 65
66 self.vcsUpdateAct = E5Action(self.trUtf8('Update from repository'), 66 self.vcsUpdateAct = E5Action(
67 UI.PixmapCache.getIcon("vcsUpdate.png"), 67 self.trUtf8('Update from repository'),
68 self.trUtf8('&Update from repository'), 0, 0, self, 68 UI.PixmapCache.getIcon("vcsUpdate.png"),
69 'subversion_update') 69 self.trUtf8('&Update from repository'), 0, 0, self,
70 'subversion_update')
70 self.vcsUpdateAct.setStatusTip(self.trUtf8( 71 self.vcsUpdateAct.setStatusTip(self.trUtf8(
71 'Update the local project from the VCS repository' 72 'Update the local project from the VCS repository'
72 )) 73 ))
73 self.vcsUpdateAct.setWhatsThis(self.trUtf8( 74 self.vcsUpdateAct.setWhatsThis(self.trUtf8(
74 """<b>Update from repository</b>""" 75 """<b>Update from repository</b>"""
92 """ repository.</p>""" 93 """ repository.</p>"""
93 )) 94 ))
94 self.vcsCommitAct.triggered[()].connect(self._vcsCommit) 95 self.vcsCommitAct.triggered[()].connect(self._vcsCommit)
95 self.actions.append(self.vcsCommitAct) 96 self.actions.append(self.vcsCommitAct)
96 97
97 self.vcsLogAct = E5Action(self.trUtf8('Show log'), 98 self.vcsLogAct = E5Action(
98 UI.PixmapCache.getIcon("vcsLog.png"), 99 self.trUtf8('Show log'),
99 self.trUtf8('Show &log'), 100 UI.PixmapCache.getIcon("vcsLog.png"),
100 0, 0, self, 'subversion_log') 101 self.trUtf8('Show &log'),
102 0, 0, self, 'subversion_log')
101 self.vcsLogAct.setStatusTip(self.trUtf8( 103 self.vcsLogAct.setStatusTip(self.trUtf8(
102 'Show the log of the local project' 104 'Show the log of the local project'
103 )) 105 ))
104 self.vcsLogAct.setWhatsThis(self.trUtf8( 106 self.vcsLogAct.setWhatsThis(self.trUtf8(
105 """<b>Show log</b>""" 107 """<b>Show log</b>"""
106 """<p>This shows the log of the local project.</p>""" 108 """<p>This shows the log of the local project.</p>"""
107 )) 109 ))
108 self.vcsLogAct.triggered[()].connect(self._vcsLog) 110 self.vcsLogAct.triggered[()].connect(self._vcsLog)
109 self.actions.append(self.vcsLogAct) 111 self.actions.append(self.vcsLogAct)
110 112
111 self.svnLogBrowserAct = E5Action(self.trUtf8('Show log browser'), 113 self.svnLogBrowserAct = E5Action(
112 UI.PixmapCache.getIcon("vcsLog.png"), 114 self.trUtf8('Show log browser'),
113 self.trUtf8('Show log browser'), 115 UI.PixmapCache.getIcon("vcsLog.png"),
114 0, 0, self, 'subversion_log_browser') 116 self.trUtf8('Show log browser'),
117 0, 0, self, 'subversion_log_browser')
115 self.svnLogBrowserAct.setStatusTip(self.trUtf8( 118 self.svnLogBrowserAct.setStatusTip(self.trUtf8(
116 'Show a dialog to browse the log of the local project' 119 'Show a dialog to browse the log of the local project'
117 )) 120 ))
118 self.svnLogBrowserAct.setWhatsThis(self.trUtf8( 121 self.svnLogBrowserAct.setWhatsThis(self.trUtf8(
119 """<b>Show log browser</b>""" 122 """<b>Show log browser</b>"""
122 """ can be retrieved later on.</p>""" 125 """ can be retrieved later on.</p>"""
123 )) 126 ))
124 self.svnLogBrowserAct.triggered[()].connect(self.__svnLogBrowser) 127 self.svnLogBrowserAct.triggered[()].connect(self.__svnLogBrowser)
125 self.actions.append(self.svnLogBrowserAct) 128 self.actions.append(self.svnLogBrowserAct)
126 129
127 self.vcsDiffAct = E5Action(self.trUtf8('Show difference'), 130 self.vcsDiffAct = E5Action(
128 UI.PixmapCache.getIcon("vcsDiff.png"), 131 self.trUtf8('Show difference'),
129 self.trUtf8('Show &difference'), 132 UI.PixmapCache.getIcon("vcsDiff.png"),
130 0, 0, self, 'subversion_diff') 133 self.trUtf8('Show &difference'),
134 0, 0, self, 'subversion_diff')
131 self.vcsDiffAct.setStatusTip(self.trUtf8( 135 self.vcsDiffAct.setStatusTip(self.trUtf8(
132 'Show the difference of the local project to the repository' 136 'Show the difference of the local project to the repository'
133 )) 137 ))
134 self.vcsDiffAct.setWhatsThis(self.trUtf8( 138 self.vcsDiffAct.setWhatsThis(self.trUtf8(
135 """<b>Show difference</b>""" 139 """<b>Show difference</b>"""
153 """ the project.</p>""" 157 """ the project.</p>"""
154 )) 158 ))
155 self.svnExtDiffAct.triggered[()].connect(self.__svnExtendedDiff) 159 self.svnExtDiffAct.triggered[()].connect(self.__svnExtendedDiff)
156 self.actions.append(self.svnExtDiffAct) 160 self.actions.append(self.svnExtDiffAct)
157 161
158 self.svnUrlDiffAct = E5Action(self.trUtf8('Show difference (URLs)'), 162 self.svnUrlDiffAct = E5Action(
159 UI.PixmapCache.getIcon("vcsDiff.png"), 163 self.trUtf8('Show difference (URLs)'),
160 self.trUtf8('Show difference (URLs)'), 164 UI.PixmapCache.getIcon("vcsDiff.png"),
161 0, 0, self, 'subversion_urldiff') 165 self.trUtf8('Show difference (URLs)'),
166 0, 0, self, 'subversion_urldiff')
162 self.svnUrlDiffAct.setStatusTip(self.trUtf8( 167 self.svnUrlDiffAct.setStatusTip(self.trUtf8(
163 'Show the difference of the project between two repository URLs' 168 'Show the difference of the project between two repository URLs'
164 )) 169 ))
165 self.svnUrlDiffAct.setWhatsThis(self.trUtf8( 170 self.svnUrlDiffAct.setWhatsThis(self.trUtf8(
166 """<b>Show difference (URLs)</b>""" 171 """<b>Show difference (URLs)</b>"""
168 """ two repository URLs.</p>""" 173 """ two repository URLs.</p>"""
169 )) 174 ))
170 self.svnUrlDiffAct.triggered[()].connect(self.__svnUrlDiff) 175 self.svnUrlDiffAct.triggered[()].connect(self.__svnUrlDiff)
171 self.actions.append(self.svnUrlDiffAct) 176 self.actions.append(self.svnUrlDiffAct)
172 177
173 self.vcsStatusAct = E5Action(self.trUtf8('Show status'), 178 self.vcsStatusAct = E5Action(
174 UI.PixmapCache.getIcon("vcsStatus.png"), 179 self.trUtf8('Show status'),
175 self.trUtf8('Show &status'), 180 UI.PixmapCache.getIcon("vcsStatus.png"),
176 0, 0, self, 'subversion_status') 181 self.trUtf8('Show &status'),
182 0, 0, self, 'subversion_status')
177 self.vcsStatusAct.setStatusTip(self.trUtf8( 183 self.vcsStatusAct.setStatusTip(self.trUtf8(
178 'Show the status of the local project' 184 'Show the status of the local project'
179 )) 185 ))
180 self.vcsStatusAct.setWhatsThis(self.trUtf8( 186 self.vcsStatusAct.setWhatsThis(self.trUtf8(
181 """<b>Show status</b>""" 187 """<b>Show status</b>"""
182 """<p>This shows the status of the local project.</p>""" 188 """<p>This shows the status of the local project.</p>"""
183 )) 189 ))
184 self.vcsStatusAct.triggered[()].connect(self._vcsStatus) 190 self.vcsStatusAct.triggered[()].connect(self._vcsStatus)
185 self.actions.append(self.vcsStatusAct) 191 self.actions.append(self.vcsStatusAct)
186 192
187 self.svnChangeListsAct = E5Action(self.trUtf8('Show change lists'), 193 self.svnChangeListsAct = E5Action(
188 UI.PixmapCache.getIcon("vcsChangeLists.png"), 194 self.trUtf8('Show change lists'),
189 self.trUtf8('Show change lists'), 195 UI.PixmapCache.getIcon("vcsChangeLists.png"),
190 0, 0, self, 'subversion_changelists') 196 self.trUtf8('Show change lists'),
197 0, 0, self, 'subversion_changelists')
191 self.svnChangeListsAct.setStatusTip(self.trUtf8( 198 self.svnChangeListsAct.setStatusTip(self.trUtf8(
192 'Show the change lists and associated files of the local project' 199 'Show the change lists and associated files of the local project'
193 )) 200 ))
194 self.svnChangeListsAct.setWhatsThis(self.trUtf8( 201 self.svnChangeListsAct.setWhatsThis(self.trUtf8(
195 """<b>Show change lists</b>""" 202 """<b>Show change lists</b>"""
197 """ local project.</p>""" 204 """ local project.</p>"""
198 )) 205 ))
199 self.svnChangeListsAct.triggered[()].connect(self.__svnChangeLists) 206 self.svnChangeListsAct.triggered[()].connect(self.__svnChangeLists)
200 self.actions.append(self.svnChangeListsAct) 207 self.actions.append(self.svnChangeListsAct)
201 208
202 self.svnRepoInfoAct = E5Action(self.trUtf8('Show repository info'), 209 self.svnRepoInfoAct = E5Action(
203 UI.PixmapCache.getIcon("vcsRepo.png"), 210 self.trUtf8('Show repository info'),
204 self.trUtf8('Show repository info'), 211 UI.PixmapCache.getIcon("vcsRepo.png"),
205 0, 0, self, 'subversion_repoinfo') 212 self.trUtf8('Show repository info'),
213 0, 0, self, 'subversion_repoinfo')
206 self.svnRepoInfoAct.setStatusTip(self.trUtf8( 214 self.svnRepoInfoAct.setStatusTip(self.trUtf8(
207 'Show some repository related information for the local project' 215 'Show some repository related information for the local project'
208 )) 216 ))
209 self.svnRepoInfoAct.setWhatsThis(self.trUtf8( 217 self.svnRepoInfoAct.setWhatsThis(self.trUtf8(
210 """<b>Show repository info</b>""" 218 """<b>Show repository info</b>"""
212 """ the local project.</p>""" 220 """ the local project.</p>"""
213 )) 221 ))
214 self.svnRepoInfoAct.triggered[()].connect(self.__svnInfo) 222 self.svnRepoInfoAct.triggered[()].connect(self.__svnInfo)
215 self.actions.append(self.svnRepoInfoAct) 223 self.actions.append(self.svnRepoInfoAct)
216 224
217 self.vcsTagAct = E5Action(self.trUtf8('Tag in repository'), 225 self.vcsTagAct = E5Action(
218 UI.PixmapCache.getIcon("vcsTag.png"), 226 self.trUtf8('Tag in repository'),
219 self.trUtf8('&Tag in repository...'), 227 UI.PixmapCache.getIcon("vcsTag.png"),
220 0, 0, self, 'subversion_tag') 228 self.trUtf8('&Tag in repository...'),
229 0, 0, self, 'subversion_tag')
221 self.vcsTagAct.setStatusTip(self.trUtf8( 230 self.vcsTagAct.setStatusTip(self.trUtf8(
222 'Tag the local project in the repository' 231 'Tag the local project in the repository'
223 )) 232 ))
224 self.vcsTagAct.setWhatsThis(self.trUtf8( 233 self.vcsTagAct.setWhatsThis(self.trUtf8(
225 """<b>Tag in repository</b>""" 234 """<b>Tag in repository</b>"""
226 """<p>This tags the local project in the repository.</p>""" 235 """<p>This tags the local project in the repository.</p>"""
227 )) 236 ))
228 self.vcsTagAct.triggered[()].connect(self._vcsTag) 237 self.vcsTagAct.triggered[()].connect(self._vcsTag)
229 self.actions.append(self.vcsTagAct) 238 self.actions.append(self.vcsTagAct)
230 239
231 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'), 240 self.vcsExportAct = E5Action(
232 UI.PixmapCache.getIcon("vcsExport.png"), 241 self.trUtf8('Export from repository'),
233 self.trUtf8('&Export from repository...'), 242 UI.PixmapCache.getIcon("vcsExport.png"),
234 0, 0, self, 'subversion_export') 243 self.trUtf8('&Export from repository...'),
244 0, 0, self, 'subversion_export')
235 self.vcsExportAct.setStatusTip(self.trUtf8( 245 self.vcsExportAct.setStatusTip(self.trUtf8(
236 'Export a project from the repository' 246 'Export a project from the repository'
237 )) 247 ))
238 self.vcsExportAct.setWhatsThis(self.trUtf8( 248 self.vcsExportAct.setWhatsThis(self.trUtf8(
239 """<b>Export from repository</b>""" 249 """<b>Export from repository</b>"""
240 """<p>This exports a project from the repository.</p>""" 250 """<p>This exports a project from the repository.</p>"""
241 )) 251 ))
242 self.vcsExportAct.triggered[()].connect(self._vcsExport) 252 self.vcsExportAct.triggered[()].connect(self._vcsExport)
243 self.actions.append(self.vcsExportAct) 253 self.actions.append(self.vcsExportAct)
244 254
245 self.vcsPropsAct = E5Action(self.trUtf8('Command options'), 255 self.vcsPropsAct = E5Action(
246 self.trUtf8('Command &options...'), 0, 0, self, 256 self.trUtf8('Command options'),
247 'subversion_options') 257 self.trUtf8('Command &options...'), 0, 0, self,
258 'subversion_options')
248 self.vcsPropsAct.setStatusTip(self.trUtf8( 259 self.vcsPropsAct.setStatusTip(self.trUtf8(
249 'Show the VCS command options')) 260 'Show the VCS command options'))
250 self.vcsPropsAct.setWhatsThis(self.trUtf8( 261 self.vcsPropsAct.setWhatsThis(self.trUtf8(
251 """<b>Command options...</b>""" 262 """<b>Command options...</b>"""
252 """<p>This shows a dialog to edit the VCS command options.</p>""" 263 """<p>This shows a dialog to edit the VCS command options.</p>"""
253 )) 264 ))
254 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) 265 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions)
255 self.actions.append(self.vcsPropsAct) 266 self.actions.append(self.vcsPropsAct)
256 267
257 self.vcsRevertAct = E5Action(self.trUtf8('Revert changes'), 268 self.vcsRevertAct = E5Action(
258 UI.PixmapCache.getIcon("vcsRevert.png"), 269 self.trUtf8('Revert changes'),
259 self.trUtf8('Re&vert changes'), 270 UI.PixmapCache.getIcon("vcsRevert.png"),
260 0, 0, self, 'subversion_revert') 271 self.trUtf8('Re&vert changes'),
272 0, 0, self, 'subversion_revert')
261 self.vcsRevertAct.setStatusTip(self.trUtf8( 273 self.vcsRevertAct.setStatusTip(self.trUtf8(
262 'Revert all changes made to the local project' 274 'Revert all changes made to the local project'
263 )) 275 ))
264 self.vcsRevertAct.setWhatsThis(self.trUtf8( 276 self.vcsRevertAct.setWhatsThis(self.trUtf8(
265 """<b>Revert changes</b>""" 277 """<b>Revert changes</b>"""
266 """<p>This reverts all changes made to the local project.</p>""" 278 """<p>This reverts all changes made to the local project.</p>"""
267 )) 279 ))
268 self.vcsRevertAct.triggered[()].connect(self._vcsRevert) 280 self.vcsRevertAct.triggered[()].connect(self._vcsRevert)
269 self.actions.append(self.vcsRevertAct) 281 self.actions.append(self.vcsRevertAct)
270 282
271 self.vcsMergeAct = E5Action(self.trUtf8('Merge'), 283 self.vcsMergeAct = E5Action(
272 UI.PixmapCache.getIcon("vcsMerge.png"), 284 self.trUtf8('Merge'),
273 self.trUtf8('Mer&ge changes...'), 285 UI.PixmapCache.getIcon("vcsMerge.png"),
274 0, 0, self, 'subversion_merge') 286 self.trUtf8('Mer&ge changes...'),
287 0, 0, self, 'subversion_merge')
275 self.vcsMergeAct.setStatusTip(self.trUtf8( 288 self.vcsMergeAct.setStatusTip(self.trUtf8(
276 'Merge changes of a tag/revision into the local project' 289 'Merge changes of a tag/revision into the local project'
277 )) 290 ))
278 self.vcsMergeAct.setWhatsThis(self.trUtf8( 291 self.vcsMergeAct.setWhatsThis(self.trUtf8(
279 """<b>Merge</b>""" 292 """<b>Merge</b>"""
281 """ project.</p>""" 294 """ project.</p>"""
282 )) 295 ))
283 self.vcsMergeAct.triggered[()].connect(self._vcsMerge) 296 self.vcsMergeAct.triggered[()].connect(self._vcsMerge)
284 self.actions.append(self.vcsMergeAct) 297 self.actions.append(self.vcsMergeAct)
285 298
286 self.vcsSwitchAct = E5Action(self.trUtf8('Switch'), 299 self.vcsSwitchAct = E5Action(
287 UI.PixmapCache.getIcon("vcsSwitch.png"), 300 self.trUtf8('Switch'),
288 self.trUtf8('S&witch...'), 301 UI.PixmapCache.getIcon("vcsSwitch.png"),
289 0, 0, self, 'subversion_switch') 302 self.trUtf8('S&witch...'),
303 0, 0, self, 'subversion_switch')
290 self.vcsSwitchAct.setStatusTip(self.trUtf8( 304 self.vcsSwitchAct.setStatusTip(self.trUtf8(
291 'Switch the local copy to another tag/branch' 305 'Switch the local copy to another tag/branch'
292 )) 306 ))
293 self.vcsSwitchAct.setWhatsThis(self.trUtf8( 307 self.vcsSwitchAct.setWhatsThis(self.trUtf8(
294 """<b>Switch</b>""" 308 """<b>Switch</b>"""
295 """<p>This switches the local copy to another tag/branch.</p>""" 309 """<p>This switches the local copy to another tag/branch.</p>"""
296 )) 310 ))
297 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) 311 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch)
298 self.actions.append(self.vcsSwitchAct) 312 self.actions.append(self.vcsSwitchAct)
299 313
300 self.vcsResolveAct = E5Action(self.trUtf8('Conflicts resolved'), 314 self.vcsResolveAct = E5Action(
301 self.trUtf8('Con&flicts resolved'), 315 self.trUtf8('Conflicts resolved'),
302 0, 0, self, 'subversion_resolve') 316 self.trUtf8('Con&flicts resolved'),
317 0, 0, self, 'subversion_resolve')
303 self.vcsResolveAct.setStatusTip(self.trUtf8( 318 self.vcsResolveAct.setStatusTip(self.trUtf8(
304 'Mark all conflicts of the local project as resolved' 319 'Mark all conflicts of the local project as resolved'
305 )) 320 ))
306 self.vcsResolveAct.setWhatsThis(self.trUtf8( 321 self.vcsResolveAct.setWhatsThis(self.trUtf8(
307 """<b>Conflicts resolved</b>""" 322 """<b>Conflicts resolved</b>"""
309 """ resolved.</p>""" 324 """ resolved.</p>"""
310 )) 325 ))
311 self.vcsResolveAct.triggered[()].connect(self.__svnResolve) 326 self.vcsResolveAct.triggered[()].connect(self.__svnResolve)
312 self.actions.append(self.vcsResolveAct) 327 self.actions.append(self.vcsResolveAct)
313 328
314 self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'), 329 self.vcsCleanupAct = E5Action(
315 self.trUtf8('Cleanu&p'), 330 self.trUtf8('Cleanup'),
316 0, 0, self, 'subversion_cleanup') 331 self.trUtf8('Cleanu&p'),
332 0, 0, self, 'subversion_cleanup')
317 self.vcsCleanupAct.setStatusTip(self.trUtf8( 333 self.vcsCleanupAct.setStatusTip(self.trUtf8(
318 'Cleanup the local project' 334 'Cleanup the local project'
319 )) 335 ))
320 self.vcsCleanupAct.setWhatsThis(self.trUtf8( 336 self.vcsCleanupAct.setWhatsThis(self.trUtf8(
321 """<b>Cleanup</b>""" 337 """<b>Cleanup</b>"""
322 """<p>This performs a cleanup of the local project.</p>""" 338 """<p>This performs a cleanup of the local project.</p>"""
323 )) 339 ))
324 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) 340 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup)
325 self.actions.append(self.vcsCleanupAct) 341 self.actions.append(self.vcsCleanupAct)
326 342
327 self.vcsCommandAct = E5Action(self.trUtf8('Execute command'), 343 self.vcsCommandAct = E5Action(
328 self.trUtf8('E&xecute command...'), 344 self.trUtf8('Execute command'),
329 0, 0, self, 'subversion_command') 345 self.trUtf8('E&xecute command...'),
346 0, 0, self, 'subversion_command')
330 self.vcsCommandAct.setStatusTip(self.trUtf8( 347 self.vcsCommandAct.setStatusTip(self.trUtf8(
331 'Execute an arbitrary VCS command' 348 'Execute an arbitrary VCS command'
332 )) 349 ))
333 self.vcsCommandAct.setWhatsThis(self.trUtf8( 350 self.vcsCommandAct.setWhatsThis(self.trUtf8(
334 """<b>Execute command</b>""" 351 """<b>Execute command</b>"""
335 """<p>This opens a dialog to enter an arbitrary VCS command.</p>""" 352 """<p>This opens a dialog to enter an arbitrary VCS command.</p>"""
336 )) 353 ))
337 self.vcsCommandAct.triggered[()].connect(self._vcsCommand) 354 self.vcsCommandAct.triggered[()].connect(self._vcsCommand)
338 self.actions.append(self.vcsCommandAct) 355 self.actions.append(self.vcsCommandAct)
339 356
340 self.svnTagListAct = E5Action(self.trUtf8('List tags'), 357 self.svnTagListAct = E5Action(
341 self.trUtf8('List tags...'), 358 self.trUtf8('List tags'),
342 0, 0, self, 'subversion_list_tags') 359 self.trUtf8('List tags...'),
360 0, 0, self, 'subversion_list_tags')
343 self.svnTagListAct.setStatusTip(self.trUtf8( 361 self.svnTagListAct.setStatusTip(self.trUtf8(
344 'List tags of the project' 362 'List tags of the project'
345 )) 363 ))
346 self.svnTagListAct.setWhatsThis(self.trUtf8( 364 self.svnTagListAct.setWhatsThis(self.trUtf8(
347 """<b>List tags</b>""" 365 """<b>List tags</b>"""
348 """<p>This lists the tags of the project.</p>""" 366 """<p>This lists the tags of the project.</p>"""
349 )) 367 ))
350 self.svnTagListAct.triggered[()].connect(self.__svnTagList) 368 self.svnTagListAct.triggered[()].connect(self.__svnTagList)
351 self.actions.append(self.svnTagListAct) 369 self.actions.append(self.svnTagListAct)
352 370
353 self.svnBranchListAct = E5Action(self.trUtf8('List branches'), 371 self.svnBranchListAct = E5Action(
354 self.trUtf8('List branches...'), 372 self.trUtf8('List branches'),
355 0, 0, self, 'subversion_list_branches') 373 self.trUtf8('List branches...'),
374 0, 0, self, 'subversion_list_branches')
356 self.svnBranchListAct.setStatusTip(self.trUtf8( 375 self.svnBranchListAct.setStatusTip(self.trUtf8(
357 'List branches of the project' 376 'List branches of the project'
358 )) 377 ))
359 self.svnBranchListAct.setWhatsThis(self.trUtf8( 378 self.svnBranchListAct.setWhatsThis(self.trUtf8(
360 """<b>List branches</b>""" 379 """<b>List branches</b>"""
361 """<p>This lists the branches of the project.</p>""" 380 """<p>This lists the branches of the project.</p>"""
362 )) 381 ))
363 self.svnBranchListAct.triggered[()].connect(self.__svnBranchList) 382 self.svnBranchListAct.triggered[()].connect(self.__svnBranchList)
364 self.actions.append(self.svnBranchListAct) 383 self.actions.append(self.svnBranchListAct)
365 384
366 self.svnListAct = E5Action(self.trUtf8('List repository contents'), 385 self.svnListAct = E5Action(
367 self.trUtf8('List repository contents...'), 386 self.trUtf8('List repository contents'),
368 0, 0, self, 'subversion_contents') 387 self.trUtf8('List repository contents...'),
388 0, 0, self, 'subversion_contents')
369 self.svnListAct.setStatusTip(self.trUtf8( 389 self.svnListAct.setStatusTip(self.trUtf8(
370 'Lists the contents of the repository' 390 'Lists the contents of the repository'
371 )) 391 ))
372 self.svnListAct.setWhatsThis(self.trUtf8( 392 self.svnListAct.setWhatsThis(self.trUtf8(
373 """<b>List repository contents</b>""" 393 """<b>List repository contents</b>"""
374 """<p>This lists the contents of the repository.</p>""" 394 """<p>This lists the contents of the repository.</p>"""
375 )) 395 ))
376 self.svnListAct.triggered[()].connect(self.__svnTagList) 396 self.svnListAct.triggered[()].connect(self.__svnTagList)
377 self.actions.append(self.svnListAct) 397 self.actions.append(self.svnListAct)
378 398
379 self.svnPropSetAct = E5Action(self.trUtf8('Set Property'), 399 self.svnPropSetAct = E5Action(
380 self.trUtf8('Set Property...'), 400 self.trUtf8('Set Property'),
381 0, 0, self, 'subversion_property_set') 401 self.trUtf8('Set Property...'),
402 0, 0, self, 'subversion_property_set')
382 self.svnPropSetAct.setStatusTip(self.trUtf8( 403 self.svnPropSetAct.setStatusTip(self.trUtf8(
383 'Set a property for the project files' 404 'Set a property for the project files'
384 )) 405 ))
385 self.svnPropSetAct.setWhatsThis(self.trUtf8( 406 self.svnPropSetAct.setWhatsThis(self.trUtf8(
386 """<b>Set Property</b>""" 407 """<b>Set Property</b>"""
387 """<p>This sets a property for the project files.</p>""" 408 """<p>This sets a property for the project files.</p>"""
388 )) 409 ))
389 self.svnPropSetAct.triggered[()].connect(self.__svnPropSet) 410 self.svnPropSetAct.triggered[()].connect(self.__svnPropSet)
390 self.actions.append(self.svnPropSetAct) 411 self.actions.append(self.svnPropSetAct)
391 412
392 self.svnPropListAct = E5Action(self.trUtf8('List Properties'), 413 self.svnPropListAct = E5Action(
393 self.trUtf8('List Properties...'), 414 self.trUtf8('List Properties'),
394 0, 0, self, 'subversion_property_list') 415 self.trUtf8('List Properties...'),
416 0, 0, self, 'subversion_property_list')
395 self.svnPropListAct.setStatusTip(self.trUtf8( 417 self.svnPropListAct.setStatusTip(self.trUtf8(
396 'List properties of the project files' 418 'List properties of the project files'
397 )) 419 ))
398 self.svnPropListAct.setWhatsThis(self.trUtf8( 420 self.svnPropListAct.setWhatsThis(self.trUtf8(
399 """<b>List Properties</b>""" 421 """<b>List Properties</b>"""
400 """<p>This lists the properties of the project files.</p>""" 422 """<p>This lists the properties of the project files.</p>"""
401 )) 423 ))
402 self.svnPropListAct.triggered[()].connect(self.__svnPropList) 424 self.svnPropListAct.triggered[()].connect(self.__svnPropList)
403 self.actions.append(self.svnPropListAct) 425 self.actions.append(self.svnPropListAct)
404 426
405 self.svnPropDelAct = E5Action(self.trUtf8('Delete Property'), 427 self.svnPropDelAct = E5Action(
406 self.trUtf8('Delete Property...'), 428 self.trUtf8('Delete Property'),
407 0, 0, self, 'subversion_property_delete') 429 self.trUtf8('Delete Property...'),
430 0, 0, self, 'subversion_property_delete')
408 self.svnPropDelAct.setStatusTip(self.trUtf8( 431 self.svnPropDelAct.setStatusTip(self.trUtf8(
409 'Delete a property for the project files' 432 'Delete a property for the project files'
410 )) 433 ))
411 self.svnPropDelAct.setWhatsThis(self.trUtf8( 434 self.svnPropDelAct.setWhatsThis(self.trUtf8(
412 """<b>Delete Property</b>""" 435 """<b>Delete Property</b>"""
413 """<p>This deletes a property for the project files.</p>""" 436 """<p>This deletes a property for the project files.</p>"""
414 )) 437 ))
415 self.svnPropDelAct.triggered[()].connect(self.__svnPropDel) 438 self.svnPropDelAct.triggered[()].connect(self.__svnPropDel)
416 self.actions.append(self.svnPropDelAct) 439 self.actions.append(self.svnPropDelAct)
417 440
418 self.svnRelocateAct = E5Action(self.trUtf8('Relocate'), 441 self.svnRelocateAct = E5Action(
419 UI.PixmapCache.getIcon("vcsSwitch.png"), 442 self.trUtf8('Relocate'),
420 self.trUtf8('Relocate...'), 443 UI.PixmapCache.getIcon("vcsSwitch.png"),
421 0, 0, self, 'subversion_relocate') 444 self.trUtf8('Relocate...'),
445 0, 0, self, 'subversion_relocate')
422 self.svnRelocateAct.setStatusTip(self.trUtf8( 446 self.svnRelocateAct.setStatusTip(self.trUtf8(
423 'Relocate the working copy to a new repository URL' 447 'Relocate the working copy to a new repository URL'
424 )) 448 ))
425 self.svnRelocateAct.setWhatsThis(self.trUtf8( 449 self.svnRelocateAct.setWhatsThis(self.trUtf8(
426 """<b>Relocate</b>""" 450 """<b>Relocate</b>"""
428 """ URL.</p>""" 452 """ URL.</p>"""
429 )) 453 ))
430 self.svnRelocateAct.triggered[()].connect(self.__svnRelocate) 454 self.svnRelocateAct.triggered[()].connect(self.__svnRelocate)
431 self.actions.append(self.svnRelocateAct) 455 self.actions.append(self.svnRelocateAct)
432 456
433 self.svnRepoBrowserAct = E5Action(self.trUtf8('Repository Browser'), 457 self.svnRepoBrowserAct = E5Action(
434 UI.PixmapCache.getIcon("vcsRepoBrowser.png"), 458 self.trUtf8('Repository Browser'),
435 self.trUtf8('Repository Browser...'), 459 UI.PixmapCache.getIcon("vcsRepoBrowser.png"),
436 0, 0, self, 'subversion_repo_browser') 460 self.trUtf8('Repository Browser...'),
461 0, 0, self, 'subversion_repo_browser')
437 self.svnRepoBrowserAct.setStatusTip(self.trUtf8( 462 self.svnRepoBrowserAct.setStatusTip(self.trUtf8(
438 'Show the Repository Browser dialog' 463 'Show the Repository Browser dialog'
439 )) 464 ))
440 self.svnRepoBrowserAct.setWhatsThis(self.trUtf8( 465 self.svnRepoBrowserAct.setWhatsThis(self.trUtf8(
441 """<b>Repository Browser</b>""" 466 """<b>Repository Browser</b>"""
442 """<p>This shows the Repository Browser dialog.</p>""" 467 """<p>This shows the Repository Browser dialog.</p>"""
443 )) 468 ))
444 self.svnRepoBrowserAct.triggered[()].connect(self.__svnRepoBrowser) 469 self.svnRepoBrowserAct.triggered[()].connect(self.__svnRepoBrowser)
445 self.actions.append(self.svnRepoBrowserAct) 470 self.actions.append(self.svnRepoBrowserAct)
446 471
447 self.svnConfigAct = E5Action(self.trUtf8('Configure'), 472 self.svnConfigAct = E5Action(
448 self.trUtf8('Configure...'), 473 self.trUtf8('Configure'),
449 0, 0, self, 'subversion_configure') 474 self.trUtf8('Configure...'),
475 0, 0, self, 'subversion_configure')
450 self.svnConfigAct.setStatusTip(self.trUtf8( 476 self.svnConfigAct.setStatusTip(self.trUtf8(
451 'Show the configuration dialog with the Subversion page selected' 477 'Show the configuration dialog with the Subversion page selected'
452 )) 478 ))
453 self.svnConfigAct.setWhatsThis(self.trUtf8( 479 self.svnConfigAct.setWhatsThis(self.trUtf8(
454 """<b>Configure</b>""" 480 """<b>Configure</b>"""

eric ide

mercurial