Plugins/VcsPlugins/vcsSubversion/ProjectHelper.py

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

eric ide

mercurial