Plugins/VcsPlugins/vcsPySvn/ProjectHelper.py

changeset 453
a81097a85889
parent 55
b5c84934de9c
child 454
d28d558f7484
equal deleted inserted replaced
452:0bc58cbb64b2 453:a81097a85889
55 )) 55 ))
56 self.vcsNewAct.setWhatsThis(self.trUtf8( 56 self.vcsNewAct.setWhatsThis(self.trUtf8(
57 """<b>New from repository</b>""" 57 """<b>New from repository</b>"""
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.vcsNewAct.triggered.connect(self._vcsCheckout)
61 self.actions.append(self.vcsNewAct) 61 self.actions.append(self.vcsNewAct)
62 62
63 self.vcsUpdateAct = E5Action(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,
69 )) 69 ))
70 self.vcsUpdateAct.setWhatsThis(self.trUtf8( 70 self.vcsUpdateAct.setWhatsThis(self.trUtf8(
71 """<b>Update from repository</b>""" 71 """<b>Update from repository</b>"""
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.vcsUpdateAct.triggered.connect(self._vcsUpdate)
75 self.actions.append(self.vcsUpdateAct) 75 self.actions.append(self.vcsUpdateAct)
76 76
77 self.vcsCommitAct = E5Action(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,
83 )) 83 ))
84 self.vcsCommitAct.setWhatsThis(self.trUtf8( 84 self.vcsCommitAct.setWhatsThis(self.trUtf8(
85 """<b>Commit changes to repository</b>""" 85 """<b>Commit changes to repository</b>"""
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.vcsCommitAct.triggered.connect(self._vcsCommit)
89 self.actions.append(self.vcsCommitAct) 89 self.actions.append(self.vcsCommitAct)
90 90
91 self.vcsAddAct = E5Action(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')
96 )) 96 ))
97 self.vcsAddAct.setWhatsThis(self.trUtf8( 97 self.vcsAddAct.setWhatsThis(self.trUtf8(
98 """<b>Add to repository</b>""" 98 """<b>Add to repository</b>"""
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.vcsAddAct.triggered.connect(self._vcsImport)
102 self.actions.append(self.vcsAddAct) 102 self.actions.append(self.vcsAddAct)
103 103
104 self.vcsRemoveAct = E5Action(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)'),
111 self.vcsRemoveAct.setWhatsThis(self.trUtf8( 111 self.vcsRemoveAct.setWhatsThis(self.trUtf8(
112 """<b>Remove from repository</b>""" 112 """<b>Remove from repository</b>"""
113 """<p>This removes the local project from the VCS repository""" 113 """<p>This removes the local project from the VCS repository"""
114 """ (and disk).</p>""" 114 """ (and disk).</p>"""
115 )) 115 ))
116 self.connect(self.vcsRemoveAct, SIGNAL('triggered()'), self._vcsRemove) 116 self.vcsRemoveAct.triggered.connect(self._vcsRemove)
117 self.actions.append(self.vcsRemoveAct) 117 self.actions.append(self.vcsRemoveAct)
118 118
119 self.vcsLogAct = E5Action(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'),
125 )) 125 ))
126 self.vcsLogAct.setWhatsThis(self.trUtf8( 126 self.vcsLogAct.setWhatsThis(self.trUtf8(
127 """<b>Show log</b>""" 127 """<b>Show log</b>"""
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.vcsLogAct.triggered.connect(self._vcsLog)
131 self.actions.append(self.vcsLogAct) 131 self.actions.append(self.vcsLogAct)
132 132
133 self.svnLogLimitedAct = E5Action(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'),
140 self.svnLogLimitedAct.setWhatsThis(self.trUtf8( 140 self.svnLogLimitedAct.setWhatsThis(self.trUtf8(
141 """<b>Show limited log</b>""" 141 """<b>Show limited log</b>"""
142 """<p>This shows the log of the local project limited to a selectable""" 142 """<p>This shows the log of the local project limited to a selectable"""
143 """ number of entries.</p>""" 143 """ number of entries.</p>"""
144 )) 144 ))
145 self.connect(self.svnLogLimitedAct, SIGNAL('triggered()'), self.__svnLogLimited) 145 self.svnLogLimitedAct.triggered.connect(self.__svnLogLimited)
146 self.actions.append(self.svnLogLimitedAct) 146 self.actions.append(self.svnLogLimitedAct)
147 147
148 self.svnLogBrowserAct = E5Action(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'),
156 """<b>Show log browser</b>""" 156 """<b>Show log browser</b>"""
157 """<p>This shows a dialog to browse the log of the local project.""" 157 """<p>This shows a dialog to browse the log of the local project."""
158 """ A limited number of entries is shown first. More can be""" 158 """ A limited number of entries is shown first. More can be"""
159 """ retrieved later on.</p>""" 159 """ retrieved later on.</p>"""
160 )) 160 ))
161 self.connect(self.svnLogBrowserAct, SIGNAL('triggered()'), self.__svnLogBrowser) 161 self.svnLogBrowserAct.triggered.connect(self.__svnLogBrowser)
162 self.actions.append(self.svnLogBrowserAct) 162 self.actions.append(self.svnLogBrowserAct)
163 163
164 self.vcsDiffAct = E5Action(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'),
170 )) 170 ))
171 self.vcsDiffAct.setWhatsThis(self.trUtf8( 171 self.vcsDiffAct.setWhatsThis(self.trUtf8(
172 """<b>Show difference</b>""" 172 """<b>Show difference</b>"""
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.vcsDiffAct.triggered.connect(self._vcsDiff)
176 self.actions.append(self.vcsDiffAct) 176 self.actions.append(self.vcsDiffAct)
177 177
178 self.svnExtDiffAct = E5Action(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)'),
184 )) 184 ))
185 self.svnExtDiffAct.setWhatsThis(self.trUtf8( 185 self.svnExtDiffAct.setWhatsThis(self.trUtf8(
186 """<b>Show difference (extended)</b>""" 186 """<b>Show difference (extended)</b>"""
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.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff)
190 self.actions.append(self.svnExtDiffAct) 190 self.actions.append(self.svnExtDiffAct)
191 191
192 self.svnUrlDiffAct = E5Action(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)'),
199 self.svnUrlDiffAct.setWhatsThis(self.trUtf8( 199 self.svnUrlDiffAct.setWhatsThis(self.trUtf8(
200 """<b>Show difference (URLs)</b>""" 200 """<b>Show difference (URLs)</b>"""
201 """<p>This shows the difference of the project between""" 201 """<p>This shows the difference of the project between"""
202 """ two repository URLs.</p>""" 202 """ two repository URLs.</p>"""
203 )) 203 ))
204 self.connect(self.svnUrlDiffAct, SIGNAL('triggered()'), self.__svnUrlDiff) 204 self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff)
205 self.actions.append(self.svnUrlDiffAct) 205 self.actions.append(self.svnUrlDiffAct)
206 206
207 self.vcsStatusAct = E5Action(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'),
213 )) 213 ))
214 self.vcsStatusAct.setWhatsThis(self.trUtf8( 214 self.vcsStatusAct.setWhatsThis(self.trUtf8(
215 """<b>Show status</b>""" 215 """<b>Show status</b>"""
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.vcsStatusAct.triggered.connect(self._vcsStatus)
219 self.actions.append(self.vcsStatusAct) 219 self.actions.append(self.vcsStatusAct)
220 220
221 self.svnRepoInfoAct = E5Action(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'),
228 self.svnRepoInfoAct.setWhatsThis(self.trUtf8( 228 self.svnRepoInfoAct.setWhatsThis(self.trUtf8(
229 """<b>Show repository info</b>""" 229 """<b>Show repository info</b>"""
230 """<p>This shows some repository related information for""" 230 """<p>This shows some repository related information for"""
231 """ the local project.</p>""" 231 """ the local project.</p>"""
232 )) 232 ))
233 self.connect(self.svnRepoInfoAct, SIGNAL('triggered()'), self.__svnInfo) 233 self.svnRepoInfoAct.triggered.connect(self.__svnInfo)
234 self.actions.append(self.svnRepoInfoAct) 234 self.actions.append(self.svnRepoInfoAct)
235 235
236 self.vcsTagAct = E5Action(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...'),
242 )) 242 ))
243 self.vcsTagAct.setWhatsThis(self.trUtf8( 243 self.vcsTagAct.setWhatsThis(self.trUtf8(
244 """<b>Tag in repository</b>""" 244 """<b>Tag in repository</b>"""
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.vcsTagAct.triggered.connect(self._vcsTag)
248 self.actions.append(self.vcsTagAct) 248 self.actions.append(self.vcsTagAct)
249 249
250 self.vcsExportAct = E5Action(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...'),
256 )) 256 ))
257 self.vcsExportAct.setWhatsThis(self.trUtf8( 257 self.vcsExportAct.setWhatsThis(self.trUtf8(
258 """<b>Export from repository</b>""" 258 """<b>Export from repository</b>"""
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.vcsExportAct.triggered.connect(self._vcsExport)
262 self.actions.append(self.vcsExportAct) 262 self.actions.append(self.vcsExportAct)
263 263
264 self.vcsPropsAct = E5Action(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.vcsPropsAct.triggered.connect(self._vcsCommandOptions)
273 self.actions.append(self.vcsPropsAct) 273 self.actions.append(self.vcsPropsAct)
274 274
275 self.vcsRevertAct = E5Action(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'),
281 )) 281 ))
282 self.vcsRevertAct.setWhatsThis(self.trUtf8( 282 self.vcsRevertAct.setWhatsThis(self.trUtf8(
283 """<b>Revert changes</b>""" 283 """<b>Revert changes</b>"""
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.vcsRevertAct.triggered.connect(self._vcsRevert)
287 self.actions.append(self.vcsRevertAct) 287 self.actions.append(self.vcsRevertAct)
288 288
289 self.vcsMergeAct = E5Action(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...'),
295 )) 295 ))
296 self.vcsMergeAct.setWhatsThis(self.trUtf8( 296 self.vcsMergeAct.setWhatsThis(self.trUtf8(
297 """<b>Merge</b>""" 297 """<b>Merge</b>"""
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.vcsMergeAct.triggered.connect(self._vcsMerge)
301 self.actions.append(self.vcsMergeAct) 301 self.actions.append(self.vcsMergeAct)
302 302
303 self.vcsSwitchAct = E5Action(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...'),
309 )) 309 ))
310 self.vcsSwitchAct.setWhatsThis(self.trUtf8( 310 self.vcsSwitchAct.setWhatsThis(self.trUtf8(
311 """<b>Switch</b>""" 311 """<b>Switch</b>"""
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.vcsSwitchAct.triggered.connect(self._vcsSwitch)
315 self.actions.append(self.vcsSwitchAct) 315 self.actions.append(self.vcsSwitchAct)
316 316
317 self.vcsResolveAct = E5Action(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')
322 )) 322 ))
323 self.vcsResolveAct.setWhatsThis(self.trUtf8( 323 self.vcsResolveAct.setWhatsThis(self.trUtf8(
324 """<b>Resolve conflicts</b>""" 324 """<b>Resolve conflicts</b>"""
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.vcsResolveAct.triggered.connect(self.__svnResolve)
328 self.actions.append(self.vcsResolveAct) 328 self.actions.append(self.vcsResolveAct)
329 329
330 self.vcsCleanupAct = E5Action(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')
335 )) 335 ))
336 self.vcsCleanupAct.setWhatsThis(self.trUtf8( 336 self.vcsCleanupAct.setWhatsThis(self.trUtf8(
337 """<b>Cleanup</b>""" 337 """<b>Cleanup</b>"""
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.vcsCleanupAct.triggered.connect(self._vcsCleanup)
341 self.actions.append(self.vcsCleanupAct) 341 self.actions.append(self.vcsCleanupAct)
342 342
343 self.vcsCommandAct = E5Action(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')
348 )) 348 ))
349 self.vcsCommandAct.setWhatsThis(self.trUtf8( 349 self.vcsCommandAct.setWhatsThis(self.trUtf8(
350 """<b>Execute command</b>""" 350 """<b>Execute command</b>"""
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.vcsCommandAct.triggered.connect(self._vcsCommand)
354 self.actions.append(self.vcsCommandAct) 354 self.actions.append(self.vcsCommandAct)
355 355
356 self.svnTagListAct = E5Action(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')
361 )) 361 ))
362 self.svnTagListAct.setWhatsThis(self.trUtf8( 362 self.svnTagListAct.setWhatsThis(self.trUtf8(
363 """<b>List tags</b>""" 363 """<b>List tags</b>"""
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.svnTagListAct.triggered.connect(self.__svnTagList)
367 self.actions.append(self.svnTagListAct) 367 self.actions.append(self.svnTagListAct)
368 368
369 self.svnBranchListAct = E5Action(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')
374 )) 374 ))
375 self.svnBranchListAct.setWhatsThis(self.trUtf8( 375 self.svnBranchListAct.setWhatsThis(self.trUtf8(
376 """<b>List branches</b>""" 376 """<b>List branches</b>"""
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.svnBranchListAct.triggered.connect(self.__svnBranchList)
380 self.actions.append(self.svnBranchListAct) 380 self.actions.append(self.svnBranchListAct)
381 381
382 self.svnListAct = E5Action(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')
387 )) 387 ))
388 self.svnListAct.setWhatsThis(self.trUtf8( 388 self.svnListAct.setWhatsThis(self.trUtf8(
389 """<b>List repository contents</b>""" 389 """<b>List repository contents</b>"""
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.svnListAct.triggered.connect(self.__svnTagList)
393 self.actions.append(self.svnListAct) 393 self.actions.append(self.svnListAct)
394 394
395 self.svnPropSetAct = E5Action(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')
400 )) 400 ))
401 self.svnPropSetAct.setWhatsThis(self.trUtf8( 401 self.svnPropSetAct.setWhatsThis(self.trUtf8(
402 """<b>Set Property</b>""" 402 """<b>Set Property</b>"""
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.svnPropSetAct.triggered.connect(self.__svnPropSet)
406 self.actions.append(self.svnPropSetAct) 406 self.actions.append(self.svnPropSetAct)
407 407
408 self.svnPropListAct = E5Action(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')
413 )) 413 ))
414 self.svnPropListAct.setWhatsThis(self.trUtf8( 414 self.svnPropListAct.setWhatsThis(self.trUtf8(
415 """<b>List Properties</b>""" 415 """<b>List Properties</b>"""
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.svnPropListAct.triggered.connect(self.__svnPropList)
419 self.actions.append(self.svnPropListAct) 419 self.actions.append(self.svnPropListAct)
420 420
421 self.svnPropDelAct = E5Action(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')
426 )) 426 ))
427 self.svnPropDelAct.setWhatsThis(self.trUtf8( 427 self.svnPropDelAct.setWhatsThis(self.trUtf8(
428 """<b>Delete Property</b>""" 428 """<b>Delete Property</b>"""
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.svnPropDelAct.triggered.connect(self.__svnPropDel)
432 self.actions.append(self.svnPropDelAct) 432 self.actions.append(self.svnPropDelAct)
433 433
434 self.svnRelocateAct = E5Action(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...'),
440 )) 440 ))
441 self.svnRelocateAct.setWhatsThis(self.trUtf8( 441 self.svnRelocateAct.setWhatsThis(self.trUtf8(
442 """<b>Relocate</b>""" 442 """<b>Relocate</b>"""
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.svnRelocateAct.triggered.connect(self.__svnRelocate)
446 self.actions.append(self.svnRelocateAct) 446 self.actions.append(self.svnRelocateAct)
447 447
448 self.svnRepoBrowserAct = E5Action(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...'),
454 )) 454 ))
455 self.svnRepoBrowserAct.setWhatsThis(self.trUtf8( 455 self.svnRepoBrowserAct.setWhatsThis(self.trUtf8(
456 """<b>Repository Browser</b>""" 456 """<b>Repository Browser</b>"""
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.svnRepoBrowserAct.triggered.connect(self.__svnRepoBrowser)
460 self.actions.append(self.svnRepoBrowserAct) 460 self.actions.append(self.svnRepoBrowserAct)
461 461
462 self.svnConfigAct = E5Action(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')
467 )) 467 ))
468 self.svnConfigAct.setWhatsThis(self.trUtf8( 468 self.svnConfigAct.setWhatsThis(self.trUtf8(
469 """<b>Configure</b>""" 469 """<b>Configure</b>"""
470 """<p>Show the configuration dialog with the Subversion page selected.</p>""" 470 """<p>Show the configuration dialog with the Subversion page selected.</p>"""
471 )) 471 ))
472 self.connect(self.svnConfigAct, SIGNAL('triggered()'), self.__svnConfigure) 472 self.svnConfigAct.triggered.connect(self.__svnConfigure)
473 self.actions.append(self.svnConfigAct) 473 self.actions.append(self.svnConfigAct)
474 474
475 def initMenu(self, menu): 475 def initMenu(self, menu):
476 """ 476 """
477 Public method to generate the VCS menu. 477 Public method to generate the VCS menu.

eric ide

mercurial