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