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.tr('New from repository'), |
51 self.tr('New from repository'), |
52 UI.PixmapCache.getIcon("vcsCheckout.png"), |
52 UI.PixmapCache.getIcon("vcsCheckout"), |
53 self.tr('&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.tr( |
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 )) |
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.tr('Update from repository'), |
67 self.tr('Update from repository'), |
68 UI.PixmapCache.getIcon("vcsUpdate.png"), |
68 UI.PixmapCache.getIcon("vcsUpdate"), |
69 self.tr('&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.tr( |
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 )) |
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.tr('Commit changes to repository'), |
83 self.tr('Commit changes to repository'), |
84 UI.PixmapCache.getIcon("vcsCommit.png"), |
84 UI.PixmapCache.getIcon("vcsCommit"), |
85 self.tr('&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.tr( |
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 )) |
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.svnLogBrowserAct = E5Action( |
98 self.svnLogBrowserAct = E5Action( |
99 self.tr('Show log browser'), |
99 self.tr('Show log browser'), |
100 UI.PixmapCache.getIcon("vcsLog.png"), |
100 UI.PixmapCache.getIcon("vcsLog"), |
101 self.tr('Show log browser'), |
101 self.tr('Show log browser'), |
102 0, 0, self, 'subversion_log_browser') |
102 0, 0, self, 'subversion_log_browser') |
103 self.svnLogBrowserAct.setStatusTip(self.tr( |
103 self.svnLogBrowserAct.setStatusTip(self.tr( |
104 'Show a dialog to browse the log of the local project' |
104 'Show a dialog to browse the log of the local project' |
105 )) |
105 )) |
112 self.svnLogBrowserAct.triggered.connect(self._vcsLogBrowser) |
112 self.svnLogBrowserAct.triggered.connect(self._vcsLogBrowser) |
113 self.actions.append(self.svnLogBrowserAct) |
113 self.actions.append(self.svnLogBrowserAct) |
114 |
114 |
115 self.vcsDiffAct = E5Action( |
115 self.vcsDiffAct = E5Action( |
116 self.tr('Show differences'), |
116 self.tr('Show differences'), |
117 UI.PixmapCache.getIcon("vcsDiff.png"), |
117 UI.PixmapCache.getIcon("vcsDiff"), |
118 self.tr('Show &difference'), |
118 self.tr('Show &difference'), |
119 0, 0, self, 'subversion_diff') |
119 0, 0, self, 'subversion_diff') |
120 self.vcsDiffAct.setStatusTip(self.tr( |
120 self.vcsDiffAct.setStatusTip(self.tr( |
121 'Show the difference of the local project to the repository' |
121 'Show the difference of the local project to the repository' |
122 )) |
122 )) |
128 self.vcsDiffAct.triggered.connect(self._vcsDiff) |
128 self.vcsDiffAct.triggered.connect(self._vcsDiff) |
129 self.actions.append(self.vcsDiffAct) |
129 self.actions.append(self.vcsDiffAct) |
130 |
130 |
131 self.svnExtDiffAct = E5Action( |
131 self.svnExtDiffAct = E5Action( |
132 self.tr('Show differences (extended)'), |
132 self.tr('Show differences (extended)'), |
133 UI.PixmapCache.getIcon("vcsDiff.png"), |
133 UI.PixmapCache.getIcon("vcsDiff"), |
134 self.tr('Show differences (extended)'), |
134 self.tr('Show differences (extended)'), |
135 0, 0, self, 'subversion_extendeddiff') |
135 0, 0, self, 'subversion_extendeddiff') |
136 self.svnExtDiffAct.setStatusTip(self.tr( |
136 self.svnExtDiffAct.setStatusTip(self.tr( |
137 'Show the difference of revisions of the project to the repository' |
137 'Show the difference of revisions of the project to the repository' |
138 )) |
138 )) |
144 self.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff) |
144 self.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff) |
145 self.actions.append(self.svnExtDiffAct) |
145 self.actions.append(self.svnExtDiffAct) |
146 |
146 |
147 self.svnUrlDiffAct = E5Action( |
147 self.svnUrlDiffAct = E5Action( |
148 self.tr('Show differences (URLs)'), |
148 self.tr('Show differences (URLs)'), |
149 UI.PixmapCache.getIcon("vcsDiff.png"), |
149 UI.PixmapCache.getIcon("vcsDiff"), |
150 self.tr('Show differences (URLs)'), |
150 self.tr('Show differences (URLs)'), |
151 0, 0, self, 'subversion_urldiff') |
151 0, 0, self, 'subversion_urldiff') |
152 self.svnUrlDiffAct.setStatusTip(self.tr( |
152 self.svnUrlDiffAct.setStatusTip(self.tr( |
153 'Show the difference of the project between two repository URLs' |
153 'Show the difference of the project between two repository URLs' |
154 )) |
154 )) |
160 self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff) |
160 self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff) |
161 self.actions.append(self.svnUrlDiffAct) |
161 self.actions.append(self.svnUrlDiffAct) |
162 |
162 |
163 self.vcsStatusAct = E5Action( |
163 self.vcsStatusAct = E5Action( |
164 self.tr('Show status'), |
164 self.tr('Show status'), |
165 UI.PixmapCache.getIcon("vcsStatus.png"), |
165 UI.PixmapCache.getIcon("vcsStatus"), |
166 self.tr('Show &status'), |
166 self.tr('Show &status'), |
167 0, 0, self, 'subversion_status') |
167 0, 0, self, 'subversion_status') |
168 self.vcsStatusAct.setStatusTip(self.tr( |
168 self.vcsStatusAct.setStatusTip(self.tr( |
169 'Show the status of the local project' |
169 'Show the status of the local project' |
170 )) |
170 )) |
175 self.vcsStatusAct.triggered.connect(self._vcsStatus) |
175 self.vcsStatusAct.triggered.connect(self._vcsStatus) |
176 self.actions.append(self.vcsStatusAct) |
176 self.actions.append(self.vcsStatusAct) |
177 |
177 |
178 self.svnChangeListsAct = E5Action( |
178 self.svnChangeListsAct = E5Action( |
179 self.tr('Show change lists'), |
179 self.tr('Show change lists'), |
180 UI.PixmapCache.getIcon("vcsChangeLists.png"), |
180 UI.PixmapCache.getIcon("vcsChangeLists"), |
181 self.tr('Show change lists'), |
181 self.tr('Show change lists'), |
182 0, 0, self, 'subversion_changelists') |
182 0, 0, self, 'subversion_changelists') |
183 self.svnChangeListsAct.setStatusTip(self.tr( |
183 self.svnChangeListsAct.setStatusTip(self.tr( |
184 'Show the change lists and associated files of the local project' |
184 'Show the change lists and associated files of the local project' |
185 )) |
185 )) |
191 self.svnChangeListsAct.triggered.connect(self.__svnChangeLists) |
191 self.svnChangeListsAct.triggered.connect(self.__svnChangeLists) |
192 self.actions.append(self.svnChangeListsAct) |
192 self.actions.append(self.svnChangeListsAct) |
193 |
193 |
194 self.vcsTagAct = E5Action( |
194 self.vcsTagAct = E5Action( |
195 self.tr('Tag in repository'), |
195 self.tr('Tag in repository'), |
196 UI.PixmapCache.getIcon("vcsTag.png"), |
196 UI.PixmapCache.getIcon("vcsTag"), |
197 self.tr('&Tag in repository...'), |
197 self.tr('&Tag in repository...'), |
198 0, 0, self, 'subversion_tag') |
198 0, 0, self, 'subversion_tag') |
199 self.vcsTagAct.setStatusTip(self.tr( |
199 self.vcsTagAct.setStatusTip(self.tr( |
200 'Tag the local project in the repository' |
200 'Tag the local project in the repository' |
201 )) |
201 )) |
206 self.vcsTagAct.triggered.connect(self._vcsTag) |
206 self.vcsTagAct.triggered.connect(self._vcsTag) |
207 self.actions.append(self.vcsTagAct) |
207 self.actions.append(self.vcsTagAct) |
208 |
208 |
209 self.vcsExportAct = E5Action( |
209 self.vcsExportAct = E5Action( |
210 self.tr('Export from repository'), |
210 self.tr('Export from repository'), |
211 UI.PixmapCache.getIcon("vcsExport.png"), |
211 UI.PixmapCache.getIcon("vcsExport"), |
212 self.tr('&Export from repository...'), |
212 self.tr('&Export from repository...'), |
213 0, 0, self, 'subversion_export') |
213 0, 0, self, 'subversion_export') |
214 self.vcsExportAct.setStatusTip(self.tr( |
214 self.vcsExportAct.setStatusTip(self.tr( |
215 'Export a project from the repository' |
215 'Export a project from the repository' |
216 )) |
216 )) |
234 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions) |
234 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions) |
235 self.actions.append(self.vcsPropsAct) |
235 self.actions.append(self.vcsPropsAct) |
236 |
236 |
237 self.vcsRevertAct = E5Action( |
237 self.vcsRevertAct = E5Action( |
238 self.tr('Revert changes'), |
238 self.tr('Revert changes'), |
239 UI.PixmapCache.getIcon("vcsRevert.png"), |
239 UI.PixmapCache.getIcon("vcsRevert"), |
240 self.tr('Re&vert changes'), |
240 self.tr('Re&vert changes'), |
241 0, 0, self, 'subversion_revert') |
241 0, 0, self, 'subversion_revert') |
242 self.vcsRevertAct.setStatusTip(self.tr( |
242 self.vcsRevertAct.setStatusTip(self.tr( |
243 'Revert all changes made to the local project' |
243 'Revert all changes made to the local project' |
244 )) |
244 )) |
249 self.vcsRevertAct.triggered.connect(self._vcsRevert) |
249 self.vcsRevertAct.triggered.connect(self._vcsRevert) |
250 self.actions.append(self.vcsRevertAct) |
250 self.actions.append(self.vcsRevertAct) |
251 |
251 |
252 self.vcsMergeAct = E5Action( |
252 self.vcsMergeAct = E5Action( |
253 self.tr('Merge'), |
253 self.tr('Merge'), |
254 UI.PixmapCache.getIcon("vcsMerge.png"), |
254 UI.PixmapCache.getIcon("vcsMerge"), |
255 self.tr('Mer&ge changes...'), |
255 self.tr('Mer&ge changes...'), |
256 0, 0, self, 'subversion_merge') |
256 0, 0, self, 'subversion_merge') |
257 self.vcsMergeAct.setStatusTip(self.tr( |
257 self.vcsMergeAct.setStatusTip(self.tr( |
258 'Merge changes of a tag/revision into the local project' |
258 'Merge changes of a tag/revision into the local project' |
259 )) |
259 )) |
265 self.vcsMergeAct.triggered.connect(self._vcsMerge) |
265 self.vcsMergeAct.triggered.connect(self._vcsMerge) |
266 self.actions.append(self.vcsMergeAct) |
266 self.actions.append(self.vcsMergeAct) |
267 |
267 |
268 self.vcsSwitchAct = E5Action( |
268 self.vcsSwitchAct = E5Action( |
269 self.tr('Switch'), |
269 self.tr('Switch'), |
270 UI.PixmapCache.getIcon("vcsSwitch.png"), |
270 UI.PixmapCache.getIcon("vcsSwitch"), |
271 self.tr('S&witch...'), |
271 self.tr('S&witch...'), |
272 0, 0, self, 'subversion_switch') |
272 0, 0, self, 'subversion_switch') |
273 self.vcsSwitchAct.setStatusTip(self.tr( |
273 self.vcsSwitchAct.setStatusTip(self.tr( |
274 'Switch the local copy to another tag/branch' |
274 'Switch the local copy to another tag/branch' |
275 )) |
275 )) |
407 self.svnPropDelAct.triggered.connect(self.__svnPropDel) |
407 self.svnPropDelAct.triggered.connect(self.__svnPropDel) |
408 self.actions.append(self.svnPropDelAct) |
408 self.actions.append(self.svnPropDelAct) |
409 |
409 |
410 self.svnRelocateAct = E5Action( |
410 self.svnRelocateAct = E5Action( |
411 self.tr('Relocate'), |
411 self.tr('Relocate'), |
412 UI.PixmapCache.getIcon("vcsSwitch.png"), |
412 UI.PixmapCache.getIcon("vcsSwitch"), |
413 self.tr('Relocate...'), |
413 self.tr('Relocate...'), |
414 0, 0, self, 'subversion_relocate') |
414 0, 0, self, 'subversion_relocate') |
415 self.svnRelocateAct.setStatusTip(self.tr( |
415 self.svnRelocateAct.setStatusTip(self.tr( |
416 'Relocate the working copy to a new repository URL' |
416 'Relocate the working copy to a new repository URL' |
417 )) |
417 )) |
423 self.svnRelocateAct.triggered.connect(self.__svnRelocate) |
423 self.svnRelocateAct.triggered.connect(self.__svnRelocate) |
424 self.actions.append(self.svnRelocateAct) |
424 self.actions.append(self.svnRelocateAct) |
425 |
425 |
426 self.svnRepoBrowserAct = E5Action( |
426 self.svnRepoBrowserAct = E5Action( |
427 self.tr('Repository Browser'), |
427 self.tr('Repository Browser'), |
428 UI.PixmapCache.getIcon("vcsRepoBrowser.png"), |
428 UI.PixmapCache.getIcon("vcsRepoBrowser"), |
429 self.tr('Repository Browser...'), |
429 self.tr('Repository Browser...'), |
430 0, 0, self, 'subversion_repo_browser') |
430 0, 0, self, 'subversion_repo_browser') |
431 self.svnRepoBrowserAct.setStatusTip(self.tr( |
431 self.svnRepoBrowserAct.setStatusTip(self.tr( |
432 'Show the Repository Browser dialog' |
432 'Show the Repository Browser dialog' |
433 )) |
433 )) |