eric6/Plugins/VcsPlugins/vcsPySvn/ProjectHelper.py

changeset 7533
88261c96484b
parent 7493
1696e91a5393
child 7667
cd2e9a5ee187
equal deleted inserted replaced
7532:1358e9d67a1c 7533:88261c96484b
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 'pysvn_new') 54 'pysvn_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 'pysvn_update') 70 'pysvn_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 'pysvn_commit') 86 'pysvn_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, 'pysvn_log_browser') 102 0, 0, self, 'pysvn_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, 'pysvn_diff') 119 0, 0, self, 'pysvn_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, 'pysvn_extendeddiff') 135 0, 0, self, 'pysvn_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, 'pysvn_urldiff') 151 0, 0, self, 'pysvn_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, 'pysvn_status') 167 0, 0, self, 'pysvn_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, 'pysvn_changelists') 182 0, 0, self, 'pysvn_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.svnRepoInfoAct = E5Action( 194 self.svnRepoInfoAct = E5Action(
195 self.tr('Show repository info'), 195 self.tr('Show repository info'),
196 UI.PixmapCache.getIcon("vcsRepo.png"), 196 UI.PixmapCache.getIcon("vcsRepo"),
197 self.tr('Show repository info'), 197 self.tr('Show repository info'),
198 0, 0, self, 'pysvn_repoinfo') 198 0, 0, self, 'pysvn_repoinfo')
199 self.svnRepoInfoAct.setStatusTip(self.tr( 199 self.svnRepoInfoAct.setStatusTip(self.tr(
200 'Show some repository related information for the local project' 200 'Show some repository related information for the local project'
201 )) 201 ))
207 self.svnRepoInfoAct.triggered.connect(self.__svnInfo) 207 self.svnRepoInfoAct.triggered.connect(self.__svnInfo)
208 self.actions.append(self.svnRepoInfoAct) 208 self.actions.append(self.svnRepoInfoAct)
209 209
210 self.vcsTagAct = E5Action( 210 self.vcsTagAct = E5Action(
211 self.tr('Tag in repository'), 211 self.tr('Tag in repository'),
212 UI.PixmapCache.getIcon("vcsTag.png"), 212 UI.PixmapCache.getIcon("vcsTag"),
213 self.tr('&Tag in repository...'), 213 self.tr('&Tag in repository...'),
214 0, 0, self, 'pysvn_tag') 214 0, 0, self, 'pysvn_tag')
215 self.vcsTagAct.setStatusTip(self.tr( 215 self.vcsTagAct.setStatusTip(self.tr(
216 'Tag the local project in the repository' 216 'Tag the local project in the repository'
217 )) 217 ))
222 self.vcsTagAct.triggered.connect(self._vcsTag) 222 self.vcsTagAct.triggered.connect(self._vcsTag)
223 self.actions.append(self.vcsTagAct) 223 self.actions.append(self.vcsTagAct)
224 224
225 self.vcsExportAct = E5Action( 225 self.vcsExportAct = E5Action(
226 self.tr('Export from repository'), 226 self.tr('Export from repository'),
227 UI.PixmapCache.getIcon("vcsExport.png"), 227 UI.PixmapCache.getIcon("vcsExport"),
228 self.tr('&Export from repository...'), 228 self.tr('&Export from repository...'),
229 0, 0, self, 'pysvn_export') 229 0, 0, self, 'pysvn_export')
230 self.vcsExportAct.setStatusTip(self.tr( 230 self.vcsExportAct.setStatusTip(self.tr(
231 'Export a project from the repository' 231 'Export a project from the repository'
232 )) 232 ))
250 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions) 250 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions)
251 self.actions.append(self.vcsPropsAct) 251 self.actions.append(self.vcsPropsAct)
252 252
253 self.vcsRevertAct = E5Action( 253 self.vcsRevertAct = E5Action(
254 self.tr('Revert changes'), 254 self.tr('Revert changes'),
255 UI.PixmapCache.getIcon("vcsRevert.png"), 255 UI.PixmapCache.getIcon("vcsRevert"),
256 self.tr('Re&vert changes'), 256 self.tr('Re&vert changes'),
257 0, 0, self, 'pysvn_revert') 257 0, 0, self, 'pysvn_revert')
258 self.vcsRevertAct.setStatusTip(self.tr( 258 self.vcsRevertAct.setStatusTip(self.tr(
259 'Revert all changes made to the local project' 259 'Revert all changes made to the local project'
260 )) 260 ))
265 self.vcsRevertAct.triggered.connect(self._vcsRevert) 265 self.vcsRevertAct.triggered.connect(self._vcsRevert)
266 self.actions.append(self.vcsRevertAct) 266 self.actions.append(self.vcsRevertAct)
267 267
268 self.vcsMergeAct = E5Action( 268 self.vcsMergeAct = E5Action(
269 self.tr('Merge'), 269 self.tr('Merge'),
270 UI.PixmapCache.getIcon("vcsMerge.png"), 270 UI.PixmapCache.getIcon("vcsMerge"),
271 self.tr('Mer&ge changes...'), 271 self.tr('Mer&ge changes...'),
272 0, 0, self, 'pysvn_merge') 272 0, 0, self, 'pysvn_merge')
273 self.vcsMergeAct.setStatusTip(self.tr( 273 self.vcsMergeAct.setStatusTip(self.tr(
274 'Merge changes of a tag/revision into the local project' 274 'Merge changes of a tag/revision into the local project'
275 )) 275 ))
281 self.vcsMergeAct.triggered.connect(self._vcsMerge) 281 self.vcsMergeAct.triggered.connect(self._vcsMerge)
282 self.actions.append(self.vcsMergeAct) 282 self.actions.append(self.vcsMergeAct)
283 283
284 self.vcsSwitchAct = E5Action( 284 self.vcsSwitchAct = E5Action(
285 self.tr('Switch'), 285 self.tr('Switch'),
286 UI.PixmapCache.getIcon("vcsSwitch.png"), 286 UI.PixmapCache.getIcon("vcsSwitch"),
287 self.tr('S&witch...'), 287 self.tr('S&witch...'),
288 0, 0, self, 'pysvn_switch') 288 0, 0, self, 'pysvn_switch')
289 self.vcsSwitchAct.setStatusTip(self.tr( 289 self.vcsSwitchAct.setStatusTip(self.tr(
290 'Switch the local copy to another tag/branch' 290 'Switch the local copy to another tag/branch'
291 )) 291 ))
423 self.svnPropDelAct.triggered.connect(self.__svnPropDel) 423 self.svnPropDelAct.triggered.connect(self.__svnPropDel)
424 self.actions.append(self.svnPropDelAct) 424 self.actions.append(self.svnPropDelAct)
425 425
426 self.svnRelocateAct = E5Action( 426 self.svnRelocateAct = E5Action(
427 self.tr('Relocate'), 427 self.tr('Relocate'),
428 UI.PixmapCache.getIcon("vcsSwitch.png"), 428 UI.PixmapCache.getIcon("vcsSwitch"),
429 self.tr('Relocate...'), 429 self.tr('Relocate...'),
430 0, 0, self, 'pysvn_relocate') 430 0, 0, self, 'pysvn_relocate')
431 self.svnRelocateAct.setStatusTip(self.tr( 431 self.svnRelocateAct.setStatusTip(self.tr(
432 'Relocate the working copy to a new repository URL' 432 'Relocate the working copy to a new repository URL'
433 )) 433 ))
439 self.svnRelocateAct.triggered.connect(self.__svnRelocate) 439 self.svnRelocateAct.triggered.connect(self.__svnRelocate)
440 self.actions.append(self.svnRelocateAct) 440 self.actions.append(self.svnRelocateAct)
441 441
442 self.svnRepoBrowserAct = E5Action( 442 self.svnRepoBrowserAct = E5Action(
443 self.tr('Repository Browser'), 443 self.tr('Repository Browser'),
444 UI.PixmapCache.getIcon("vcsRepoBrowser.png"), 444 UI.PixmapCache.getIcon("vcsRepoBrowser"),
445 self.tr('Repository Browser...'), 445 self.tr('Repository Browser...'),
446 0, 0, self, 'pysvn_repo_browser') 446 0, 0, self, 'pysvn_repo_browser')
447 self.svnRepoBrowserAct.setStatusTip(self.tr( 447 self.svnRepoBrowserAct.setStatusTip(self.tr(
448 'Show the Repository Browser dialog' 448 'Show the Repository Browser dialog'
449 )) 449 ))

eric ide

mercurial