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.svnRepoInfoAct = E5Action( |
207 self.svnRepoInfoAct = E5Action( |
208 self.trUtf8('Show repository info'), |
208 self.tr('Show repository info'), |
209 UI.PixmapCache.getIcon("vcsRepo.png"), |
209 UI.PixmapCache.getIcon("vcsRepo.png"), |
210 self.trUtf8('Show repository info'), |
210 self.tr('Show repository info'), |
211 0, 0, self, 'subversion_repoinfo') |
211 0, 0, self, 'subversion_repoinfo') |
212 self.svnRepoInfoAct.setStatusTip(self.trUtf8( |
212 self.svnRepoInfoAct.setStatusTip(self.tr( |
213 'Show some repository related information for the local project' |
213 'Show some repository related information for the local project' |
214 )) |
214 )) |
215 self.svnRepoInfoAct.setWhatsThis(self.trUtf8( |
215 self.svnRepoInfoAct.setWhatsThis(self.tr( |
216 """<b>Show repository info</b>""" |
216 """<b>Show repository info</b>""" |
217 """<p>This shows some repository related information for""" |
217 """<p>This shows some repository related information for""" |
218 """ the local project.</p>""" |
218 """ the local project.</p>""" |
219 )) |
219 )) |
220 self.svnRepoInfoAct.triggered[()].connect(self.__svnInfo) |
220 self.svnRepoInfoAct.triggered[()].connect(self.__svnInfo) |
221 self.actions.append(self.svnRepoInfoAct) |
221 self.actions.append(self.svnRepoInfoAct) |
222 |
222 |
223 self.vcsTagAct = E5Action( |
223 self.vcsTagAct = E5Action( |
224 self.trUtf8('Tag in repository'), |
224 self.tr('Tag in repository'), |
225 UI.PixmapCache.getIcon("vcsTag.png"), |
225 UI.PixmapCache.getIcon("vcsTag.png"), |
226 self.trUtf8('&Tag in repository...'), |
226 self.tr('&Tag in repository...'), |
227 0, 0, self, 'subversion_tag') |
227 0, 0, self, 'subversion_tag') |
228 self.vcsTagAct.setStatusTip(self.trUtf8( |
228 self.vcsTagAct.setStatusTip(self.tr( |
229 'Tag the local project in the repository' |
229 'Tag the local project in the repository' |
230 )) |
230 )) |
231 self.vcsTagAct.setWhatsThis(self.trUtf8( |
231 self.vcsTagAct.setWhatsThis(self.tr( |
232 """<b>Tag in repository</b>""" |
232 """<b>Tag in repository</b>""" |
233 """<p>This tags the local project in the repository.</p>""" |
233 """<p>This tags the local project in the repository.</p>""" |
234 )) |
234 )) |
235 self.vcsTagAct.triggered[()].connect(self._vcsTag) |
235 self.vcsTagAct.triggered[()].connect(self._vcsTag) |
236 self.actions.append(self.vcsTagAct) |
236 self.actions.append(self.vcsTagAct) |
237 |
237 |
238 self.vcsExportAct = E5Action( |
238 self.vcsExportAct = E5Action( |
239 self.trUtf8('Export from repository'), |
239 self.tr('Export from repository'), |
240 UI.PixmapCache.getIcon("vcsExport.png"), |
240 UI.PixmapCache.getIcon("vcsExport.png"), |
241 self.trUtf8('&Export from repository...'), |
241 self.tr('&Export from repository...'), |
242 0, 0, self, 'subversion_export') |
242 0, 0, self, 'subversion_export') |
243 self.vcsExportAct.setStatusTip(self.trUtf8( |
243 self.vcsExportAct.setStatusTip(self.tr( |
244 'Export a project from the repository' |
244 'Export a project from the repository' |
245 )) |
245 )) |
246 self.vcsExportAct.setWhatsThis(self.trUtf8( |
246 self.vcsExportAct.setWhatsThis(self.tr( |
247 """<b>Export from repository</b>""" |
247 """<b>Export from repository</b>""" |
248 """<p>This exports a project from the repository.</p>""" |
248 """<p>This exports a project from the repository.</p>""" |
249 )) |
249 )) |
250 self.vcsExportAct.triggered[()].connect(self._vcsExport) |
250 self.vcsExportAct.triggered[()].connect(self._vcsExport) |
251 self.actions.append(self.vcsExportAct) |
251 self.actions.append(self.vcsExportAct) |
252 |
252 |
253 self.vcsPropsAct = E5Action( |
253 self.vcsPropsAct = E5Action( |
254 self.trUtf8('Command options'), |
254 self.tr('Command options'), |
255 self.trUtf8('Command &options...'), 0, 0, self, |
255 self.tr('Command &options...'), 0, 0, self, |
256 'subversion_options') |
256 'subversion_options') |
257 self.vcsPropsAct.setStatusTip(self.trUtf8( |
257 self.vcsPropsAct.setStatusTip(self.tr( |
258 'Show the VCS command options')) |
258 'Show the VCS command options')) |
259 self.vcsPropsAct.setWhatsThis(self.trUtf8( |
259 self.vcsPropsAct.setWhatsThis(self.tr( |
260 """<b>Command options...</b>""" |
260 """<b>Command options...</b>""" |
261 """<p>This shows a dialog to edit the VCS command options.</p>""" |
261 """<p>This shows a dialog to edit the VCS command options.</p>""" |
262 )) |
262 )) |
263 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) |
263 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) |
264 self.actions.append(self.vcsPropsAct) |
264 self.actions.append(self.vcsPropsAct) |
265 |
265 |
266 self.vcsRevertAct = E5Action( |
266 self.vcsRevertAct = E5Action( |
267 self.trUtf8('Revert changes'), |
267 self.tr('Revert changes'), |
268 UI.PixmapCache.getIcon("vcsRevert.png"), |
268 UI.PixmapCache.getIcon("vcsRevert.png"), |
269 self.trUtf8('Re&vert changes'), |
269 self.tr('Re&vert changes'), |
270 0, 0, self, 'subversion_revert') |
270 0, 0, self, 'subversion_revert') |
271 self.vcsRevertAct.setStatusTip(self.trUtf8( |
271 self.vcsRevertAct.setStatusTip(self.tr( |
272 'Revert all changes made to the local project' |
272 'Revert all changes made to the local project' |
273 )) |
273 )) |
274 self.vcsRevertAct.setWhatsThis(self.trUtf8( |
274 self.vcsRevertAct.setWhatsThis(self.tr( |
275 """<b>Revert changes</b>""" |
275 """<b>Revert changes</b>""" |
276 """<p>This reverts all changes made to the local project.</p>""" |
276 """<p>This reverts all changes made to the local project.</p>""" |
277 )) |
277 )) |
278 self.vcsRevertAct.triggered[()].connect(self._vcsRevert) |
278 self.vcsRevertAct.triggered[()].connect(self._vcsRevert) |
279 self.actions.append(self.vcsRevertAct) |
279 self.actions.append(self.vcsRevertAct) |
280 |
280 |
281 self.vcsMergeAct = E5Action( |
281 self.vcsMergeAct = E5Action( |
282 self.trUtf8('Merge'), |
282 self.tr('Merge'), |
283 UI.PixmapCache.getIcon("vcsMerge.png"), |
283 UI.PixmapCache.getIcon("vcsMerge.png"), |
284 self.trUtf8('Mer&ge changes...'), |
284 self.tr('Mer&ge changes...'), |
285 0, 0, self, 'subversion_merge') |
285 0, 0, self, 'subversion_merge') |
286 self.vcsMergeAct.setStatusTip(self.trUtf8( |
286 self.vcsMergeAct.setStatusTip(self.tr( |
287 'Merge changes of a tag/revision into the local project' |
287 'Merge changes of a tag/revision into the local project' |
288 )) |
288 )) |
289 self.vcsMergeAct.setWhatsThis(self.trUtf8( |
289 self.vcsMergeAct.setWhatsThis(self.tr( |
290 """<b>Merge</b>""" |
290 """<b>Merge</b>""" |
291 """<p>This merges changes of a tag/revision into the local""" |
291 """<p>This merges changes of a tag/revision into the local""" |
292 """ project.</p>""" |
292 """ project.</p>""" |
293 )) |
293 )) |
294 self.vcsMergeAct.triggered[()].connect(self._vcsMerge) |
294 self.vcsMergeAct.triggered[()].connect(self._vcsMerge) |
295 self.actions.append(self.vcsMergeAct) |
295 self.actions.append(self.vcsMergeAct) |
296 |
296 |
297 self.vcsSwitchAct = E5Action( |
297 self.vcsSwitchAct = E5Action( |
298 self.trUtf8('Switch'), |
298 self.tr('Switch'), |
299 UI.PixmapCache.getIcon("vcsSwitch.png"), |
299 UI.PixmapCache.getIcon("vcsSwitch.png"), |
300 self.trUtf8('S&witch...'), |
300 self.tr('S&witch...'), |
301 0, 0, self, 'subversion_switch') |
301 0, 0, self, 'subversion_switch') |
302 self.vcsSwitchAct.setStatusTip(self.trUtf8( |
302 self.vcsSwitchAct.setStatusTip(self.tr( |
303 'Switch the local copy to another tag/branch' |
303 'Switch the local copy to another tag/branch' |
304 )) |
304 )) |
305 self.vcsSwitchAct.setWhatsThis(self.trUtf8( |
305 self.vcsSwitchAct.setWhatsThis(self.tr( |
306 """<b>Switch</b>""" |
306 """<b>Switch</b>""" |
307 """<p>This switches the local copy to another tag/branch.</p>""" |
307 """<p>This switches the local copy to another tag/branch.</p>""" |
308 )) |
308 )) |
309 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) |
309 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) |
310 self.actions.append(self.vcsSwitchAct) |
310 self.actions.append(self.vcsSwitchAct) |
311 |
311 |
312 self.vcsResolveAct = E5Action( |
312 self.vcsResolveAct = E5Action( |
313 self.trUtf8('Conflicts resolved'), |
313 self.tr('Conflicts resolved'), |
314 self.trUtf8('Con&flicts resolved'), |
314 self.tr('Con&flicts resolved'), |
315 0, 0, self, 'subversion_resolve') |
315 0, 0, self, 'subversion_resolve') |
316 self.vcsResolveAct.setStatusTip(self.trUtf8( |
316 self.vcsResolveAct.setStatusTip(self.tr( |
317 'Mark all conflicts of the local project as resolved' |
317 'Mark all conflicts of the local project as resolved' |
318 )) |
318 )) |
319 self.vcsResolveAct.setWhatsThis(self.trUtf8( |
319 self.vcsResolveAct.setWhatsThis(self.tr( |
320 """<b>Conflicts resolved</b>""" |
320 """<b>Conflicts resolved</b>""" |
321 """<p>This marks all conflicts of the local project as""" |
321 """<p>This marks all conflicts of the local project as""" |
322 """ resolved.</p>""" |
322 """ resolved.</p>""" |
323 )) |
323 )) |
324 self.vcsResolveAct.triggered[()].connect(self.__svnResolve) |
324 self.vcsResolveAct.triggered[()].connect(self.__svnResolve) |
325 self.actions.append(self.vcsResolveAct) |
325 self.actions.append(self.vcsResolveAct) |
326 |
326 |
327 self.vcsCleanupAct = E5Action( |
327 self.vcsCleanupAct = E5Action( |
328 self.trUtf8('Cleanup'), |
328 self.tr('Cleanup'), |
329 self.trUtf8('Cleanu&p'), |
329 self.tr('Cleanu&p'), |
330 0, 0, self, 'subversion_cleanup') |
330 0, 0, self, 'subversion_cleanup') |
331 self.vcsCleanupAct.setStatusTip(self.trUtf8( |
331 self.vcsCleanupAct.setStatusTip(self.tr( |
332 'Cleanup the local project' |
332 'Cleanup the local project' |
333 )) |
333 )) |
334 self.vcsCleanupAct.setWhatsThis(self.trUtf8( |
334 self.vcsCleanupAct.setWhatsThis(self.tr( |
335 """<b>Cleanup</b>""" |
335 """<b>Cleanup</b>""" |
336 """<p>This performs a cleanup of the local project.</p>""" |
336 """<p>This performs a cleanup of the local project.</p>""" |
337 )) |
337 )) |
338 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) |
338 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) |
339 self.actions.append(self.vcsCleanupAct) |
339 self.actions.append(self.vcsCleanupAct) |
340 |
340 |
341 self.vcsCommandAct = E5Action( |
341 self.vcsCommandAct = E5Action( |
342 self.trUtf8('Execute command'), |
342 self.tr('Execute command'), |
343 self.trUtf8('E&xecute command...'), |
343 self.tr('E&xecute command...'), |
344 0, 0, self, 'subversion_command') |
344 0, 0, self, 'subversion_command') |
345 self.vcsCommandAct.setStatusTip(self.trUtf8( |
345 self.vcsCommandAct.setStatusTip(self.tr( |
346 'Execute an arbitrary VCS command' |
346 'Execute an arbitrary VCS command' |
347 )) |
347 )) |
348 self.vcsCommandAct.setWhatsThis(self.trUtf8( |
348 self.vcsCommandAct.setWhatsThis(self.tr( |
349 """<b>Execute command</b>""" |
349 """<b>Execute command</b>""" |
350 """<p>This opens a dialog to enter an arbitrary VCS command.</p>""" |
350 """<p>This opens a dialog to enter an arbitrary VCS command.</p>""" |
351 )) |
351 )) |
352 self.vcsCommandAct.triggered[()].connect(self._vcsCommand) |
352 self.vcsCommandAct.triggered[()].connect(self._vcsCommand) |
353 self.actions.append(self.vcsCommandAct) |
353 self.actions.append(self.vcsCommandAct) |
354 |
354 |
355 self.svnTagListAct = E5Action( |
355 self.svnTagListAct = E5Action( |
356 self.trUtf8('List tags'), |
356 self.tr('List tags'), |
357 self.trUtf8('List tags...'), |
357 self.tr('List tags...'), |
358 0, 0, self, 'subversion_list_tags') |
358 0, 0, self, 'subversion_list_tags') |
359 self.svnTagListAct.setStatusTip(self.trUtf8( |
359 self.svnTagListAct.setStatusTip(self.tr( |
360 'List tags of the project' |
360 'List tags of the project' |
361 )) |
361 )) |
362 self.svnTagListAct.setWhatsThis(self.trUtf8( |
362 self.svnTagListAct.setWhatsThis(self.tr( |
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.svnTagListAct.triggered[()].connect(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( |
369 self.svnBranchListAct = E5Action( |
370 self.trUtf8('List branches'), |
370 self.tr('List branches'), |
371 self.trUtf8('List branches...'), |
371 self.tr('List branches...'), |
372 0, 0, self, 'subversion_list_branches') |
372 0, 0, self, 'subversion_list_branches') |
373 self.svnBranchListAct.setStatusTip(self.trUtf8( |
373 self.svnBranchListAct.setStatusTip(self.tr( |
374 'List branches of the project' |
374 'List branches of the project' |
375 )) |
375 )) |
376 self.svnBranchListAct.setWhatsThis(self.trUtf8( |
376 self.svnBranchListAct.setWhatsThis(self.tr( |
377 """<b>List branches</b>""" |
377 """<b>List branches</b>""" |
378 """<p>This lists the branches of the project.</p>""" |
378 """<p>This lists the branches of the project.</p>""" |
379 )) |
379 )) |
380 self.svnBranchListAct.triggered[()].connect(self.__svnBranchList) |
380 self.svnBranchListAct.triggered[()].connect(self.__svnBranchList) |
381 self.actions.append(self.svnBranchListAct) |
381 self.actions.append(self.svnBranchListAct) |
382 |
382 |
383 self.svnListAct = E5Action( |
383 self.svnListAct = E5Action( |
384 self.trUtf8('List repository contents'), |
384 self.tr('List repository contents'), |
385 self.trUtf8('List repository contents...'), |
385 self.tr('List repository contents...'), |
386 0, 0, self, 'subversion_contents') |
386 0, 0, self, 'subversion_contents') |
387 self.svnListAct.setStatusTip(self.trUtf8( |
387 self.svnListAct.setStatusTip(self.tr( |
388 'Lists the contents of the repository' |
388 'Lists the contents of the repository' |
389 )) |
389 )) |
390 self.svnListAct.setWhatsThis(self.trUtf8( |
390 self.svnListAct.setWhatsThis(self.tr( |
391 """<b>List repository contents</b>""" |
391 """<b>List repository contents</b>""" |
392 """<p>This lists the contents of the repository.</p>""" |
392 """<p>This lists the contents of the repository.</p>""" |
393 )) |
393 )) |
394 self.svnListAct.triggered[()].connect(self.__svnTagList) |
394 self.svnListAct.triggered[()].connect(self.__svnTagList) |
395 self.actions.append(self.svnListAct) |
395 self.actions.append(self.svnListAct) |
396 |
396 |
397 self.svnPropSetAct = E5Action( |
397 self.svnPropSetAct = E5Action( |
398 self.trUtf8('Set Property'), |
398 self.tr('Set Property'), |
399 self.trUtf8('Set Property...'), |
399 self.tr('Set Property...'), |
400 0, 0, self, 'subversion_property_set') |
400 0, 0, self, 'subversion_property_set') |
401 self.svnPropSetAct.setStatusTip(self.trUtf8( |
401 self.svnPropSetAct.setStatusTip(self.tr( |
402 'Set a property for the project files' |
402 'Set a property for the project files' |
403 )) |
403 )) |
404 self.svnPropSetAct.setWhatsThis(self.trUtf8( |
404 self.svnPropSetAct.setWhatsThis(self.tr( |
405 """<b>Set Property</b>""" |
405 """<b>Set Property</b>""" |
406 """<p>This sets a property for the project files.</p>""" |
406 """<p>This sets a property for the project files.</p>""" |
407 )) |
407 )) |
408 self.svnPropSetAct.triggered[()].connect(self.__svnPropSet) |
408 self.svnPropSetAct.triggered[()].connect(self.__svnPropSet) |
409 self.actions.append(self.svnPropSetAct) |
409 self.actions.append(self.svnPropSetAct) |
410 |
410 |
411 self.svnPropListAct = E5Action( |
411 self.svnPropListAct = E5Action( |
412 self.trUtf8('List Properties'), |
412 self.tr('List Properties'), |
413 self.trUtf8('List Properties...'), |
413 self.tr('List Properties...'), |
414 0, 0, self, 'subversion_property_list') |
414 0, 0, self, 'subversion_property_list') |
415 self.svnPropListAct.setStatusTip(self.trUtf8( |
415 self.svnPropListAct.setStatusTip(self.tr( |
416 'List properties of the project files' |
416 'List properties of the project files' |
417 )) |
417 )) |
418 self.svnPropListAct.setWhatsThis(self.trUtf8( |
418 self.svnPropListAct.setWhatsThis(self.tr( |
419 """<b>List Properties</b>""" |
419 """<b>List Properties</b>""" |
420 """<p>This lists the properties of the project files.</p>""" |
420 """<p>This lists the properties of the project files.</p>""" |
421 )) |
421 )) |
422 self.svnPropListAct.triggered[()].connect(self.__svnPropList) |
422 self.svnPropListAct.triggered[()].connect(self.__svnPropList) |
423 self.actions.append(self.svnPropListAct) |
423 self.actions.append(self.svnPropListAct) |
424 |
424 |
425 self.svnPropDelAct = E5Action( |
425 self.svnPropDelAct = E5Action( |
426 self.trUtf8('Delete Property'), |
426 self.tr('Delete Property'), |
427 self.trUtf8('Delete Property...'), |
427 self.tr('Delete Property...'), |
428 0, 0, self, 'subversion_property_delete') |
428 0, 0, self, 'subversion_property_delete') |
429 self.svnPropDelAct.setStatusTip(self.trUtf8( |
429 self.svnPropDelAct.setStatusTip(self.tr( |
430 'Delete a property for the project files' |
430 'Delete a property for the project files' |
431 )) |
431 )) |
432 self.svnPropDelAct.setWhatsThis(self.trUtf8( |
432 self.svnPropDelAct.setWhatsThis(self.tr( |
433 """<b>Delete Property</b>""" |
433 """<b>Delete Property</b>""" |
434 """<p>This deletes a property for the project files.</p>""" |
434 """<p>This deletes a property for the project files.</p>""" |
435 )) |
435 )) |
436 self.svnPropDelAct.triggered[()].connect(self.__svnPropDel) |
436 self.svnPropDelAct.triggered[()].connect(self.__svnPropDel) |
437 self.actions.append(self.svnPropDelAct) |
437 self.actions.append(self.svnPropDelAct) |
438 |
438 |
439 self.svnRelocateAct = E5Action( |
439 self.svnRelocateAct = E5Action( |
440 self.trUtf8('Relocate'), |
440 self.tr('Relocate'), |
441 UI.PixmapCache.getIcon("vcsSwitch.png"), |
441 UI.PixmapCache.getIcon("vcsSwitch.png"), |
442 self.trUtf8('Relocate...'), |
442 self.tr('Relocate...'), |
443 0, 0, self, 'subversion_relocate') |
443 0, 0, self, 'subversion_relocate') |
444 self.svnRelocateAct.setStatusTip(self.trUtf8( |
444 self.svnRelocateAct.setStatusTip(self.tr( |
445 'Relocate the working copy to a new repository URL' |
445 'Relocate the working copy to a new repository URL' |
446 )) |
446 )) |
447 self.svnRelocateAct.setWhatsThis(self.trUtf8( |
447 self.svnRelocateAct.setWhatsThis(self.tr( |
448 """<b>Relocate</b>""" |
448 """<b>Relocate</b>""" |
449 """<p>This relocates the working copy to a new repository""" |
449 """<p>This relocates the working copy to a new repository""" |
450 """ URL.</p>""" |
450 """ URL.</p>""" |
451 )) |
451 )) |
452 self.svnRelocateAct.triggered[()].connect(self.__svnRelocate) |
452 self.svnRelocateAct.triggered[()].connect(self.__svnRelocate) |
453 self.actions.append(self.svnRelocateAct) |
453 self.actions.append(self.svnRelocateAct) |
454 |
454 |
455 self.svnRepoBrowserAct = E5Action( |
455 self.svnRepoBrowserAct = E5Action( |
456 self.trUtf8('Repository Browser'), |
456 self.tr('Repository Browser'), |
457 UI.PixmapCache.getIcon("vcsRepoBrowser.png"), |
457 UI.PixmapCache.getIcon("vcsRepoBrowser.png"), |
458 self.trUtf8('Repository Browser...'), |
458 self.tr('Repository Browser...'), |
459 0, 0, self, 'subversion_repo_browser') |
459 0, 0, self, 'subversion_repo_browser') |
460 self.svnRepoBrowserAct.setStatusTip(self.trUtf8( |
460 self.svnRepoBrowserAct.setStatusTip(self.tr( |
461 'Show the Repository Browser dialog' |
461 'Show the Repository Browser dialog' |
462 )) |
462 )) |
463 self.svnRepoBrowserAct.setWhatsThis(self.trUtf8( |
463 self.svnRepoBrowserAct.setWhatsThis(self.tr( |
464 """<b>Repository Browser</b>""" |
464 """<b>Repository Browser</b>""" |
465 """<p>This shows the Repository Browser dialog.</p>""" |
465 """<p>This shows the Repository Browser dialog.</p>""" |
466 )) |
466 )) |
467 self.svnRepoBrowserAct.triggered[()].connect(self.__svnRepoBrowser) |
467 self.svnRepoBrowserAct.triggered[()].connect(self.__svnRepoBrowser) |
468 self.actions.append(self.svnRepoBrowserAct) |
468 self.actions.append(self.svnRepoBrowserAct) |
469 |
469 |
470 self.svnConfigAct = E5Action( |
470 self.svnConfigAct = E5Action( |
471 self.trUtf8('Configure'), |
471 self.tr('Configure'), |
472 self.trUtf8('Configure...'), |
472 self.tr('Configure...'), |
473 0, 0, self, 'subversion_configure') |
473 0, 0, self, 'subversion_configure') |
474 self.svnConfigAct.setStatusTip(self.trUtf8( |
474 self.svnConfigAct.setStatusTip(self.tr( |
475 'Show the configuration dialog with the Subversion page selected' |
475 'Show the configuration dialog with the Subversion page selected' |
476 )) |
476 )) |
477 self.svnConfigAct.setWhatsThis(self.trUtf8( |
477 self.svnConfigAct.setWhatsThis(self.tr( |
478 """<b>Configure</b>""" |
478 """<b>Configure</b>""" |
479 """<p>Show the configuration dialog with the Subversion page""" |
479 """<p>Show the configuration dialog with the Subversion page""" |
480 """ selected.</p>""" |
480 """ selected.</p>""" |
481 )) |
481 )) |
482 self.svnConfigAct.triggered[()].connect(self.__svnConfigure) |
482 self.svnConfigAct.triggered[()].connect(self.__svnConfigure) |
483 self.actions.append(self.svnConfigAct) |
483 self.actions.append(self.svnConfigAct) |
484 |
484 |
485 self.svnUpgradeAct = E5Action( |
485 self.svnUpgradeAct = E5Action( |
486 self.trUtf8('Upgrade'), |
486 self.tr('Upgrade'), |
487 self.trUtf8('Upgrade...'), |
487 self.tr('Upgrade...'), |
488 0, 0, self, 'subversion_upgrade') |
488 0, 0, self, 'subversion_upgrade') |
489 self.svnUpgradeAct.setStatusTip(self.trUtf8( |
489 self.svnUpgradeAct.setStatusTip(self.tr( |
490 'Upgrade the working copy to the current format' |
490 'Upgrade the working copy to the current format' |
491 )) |
491 )) |
492 self.svnUpgradeAct.setWhatsThis(self.trUtf8( |
492 self.svnUpgradeAct.setWhatsThis(self.tr( |
493 """<b>Upgrade</b>""" |
493 """<b>Upgrade</b>""" |
494 """<p>Upgrades the working copy to the current format.</p>""" |
494 """<p>Upgrades the working copy to the current format.</p>""" |
495 )) |
495 )) |
496 self.svnUpgradeAct.triggered[()].connect(self.__svnUpgrade) |
496 self.svnUpgradeAct.triggered[()].connect(self.__svnUpgrade) |
497 self.actions.append(self.svnUpgradeAct) |
497 self.actions.append(self.svnUpgradeAct) |