107 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
107 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
108 |
108 |
109 self.filesTree.headerItem().setText(self.filesTree.columnCount(), "") |
109 self.filesTree.headerItem().setText(self.filesTree.columnCount(), "") |
110 self.filesTree.header().setSortIndicator(0, Qt.AscendingOrder) |
110 self.filesTree.header().setSortIndicator(0, Qt.AscendingOrder) |
111 |
111 |
112 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow.png")) |
112 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow")) |
113 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow.png")) |
113 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow")) |
114 |
114 |
115 self.refreshButton = self.buttonBox.addButton( |
115 self.refreshButton = self.buttonBox.addButton( |
116 self.tr("&Refresh"), QDialogButtonBox.ActionRole) |
116 self.tr("&Refresh"), QDialogButtonBox.ActionRole) |
117 self.refreshButton.setToolTip( |
117 self.refreshButton.setToolTip( |
118 self.tr("Press to refresh the list of changesets")) |
118 self.tr("Press to refresh the list of changesets")) |
119 self.refreshButton.setEnabled(False) |
119 self.refreshButton.setEnabled(False) |
120 |
120 |
121 self.findPrevButton.setIcon(UI.PixmapCache.getIcon("1leftarrow.png")) |
121 self.findPrevButton.setIcon(UI.PixmapCache.getIcon("1leftarrow")) |
122 self.findNextButton.setIcon(UI.PixmapCache.getIcon("1rightarrow.png")) |
122 self.findNextButton.setIcon(UI.PixmapCache.getIcon("1rightarrow")) |
123 self.__findBackwards = False |
123 self.__findBackwards = False |
124 |
124 |
125 self.modeComboBox.addItem(self.tr("Find"), "find") |
125 self.modeComboBox.addItem(self.tr("Find"), "find") |
126 self.modeComboBox.addItem(self.tr("Filter"), "filter") |
126 self.modeComboBox.addItem(self.tr("Filter"), "filter") |
127 |
127 |
257 self.__actionsMenu = QMenu() |
257 self.__actionsMenu = QMenu() |
258 self.__actionsMenu.setTearOffEnabled(True) |
258 self.__actionsMenu.setTearOffEnabled(True) |
259 self.__actionsMenu.setToolTipsVisible(True) |
259 self.__actionsMenu.setToolTipsVisible(True) |
260 |
260 |
261 self.__graftAct = self.__actionsMenu.addAction( |
261 self.__graftAct = self.__actionsMenu.addAction( |
262 UI.PixmapCache.getIcon("vcsGraft.png"), |
262 UI.PixmapCache.getIcon("vcsGraft"), |
263 self.tr("Copy Changesets"), self.__graftActTriggered) |
263 self.tr("Copy Changesets"), self.__graftActTriggered) |
264 self.__graftAct.setToolTip(self.tr( |
264 self.__graftAct.setToolTip(self.tr( |
265 "Copy the selected changesets to the current branch")) |
265 "Copy the selected changesets to the current branch")) |
266 |
266 |
267 self.__mergeAct = self.__actionsMenu.addAction( |
267 self.__mergeAct = self.__actionsMenu.addAction( |
268 UI.PixmapCache.getIcon("vcsMerge.png"), |
268 UI.PixmapCache.getIcon("vcsMerge"), |
269 self.tr("Merge with Changeset"), self.__mergeActTriggered) |
269 self.tr("Merge with Changeset"), self.__mergeActTriggered) |
270 self.__mergeAct.setToolTip(self.tr( |
270 self.__mergeAct.setToolTip(self.tr( |
271 "Merge the working directory with the selected changeset")) |
271 "Merge the working directory with the selected changeset")) |
272 |
272 |
273 self.__phaseAct = self.__actionsMenu.addAction( |
273 self.__phaseAct = self.__actionsMenu.addAction( |
278 """<b>Change Phase</b>\n<p>This changes the phase of the""" |
278 """<b>Change Phase</b>\n<p>This changes the phase of the""" |
279 """ selected revisions. The selected revisions have to have""" |
279 """ selected revisions. The selected revisions have to have""" |
280 """ the same current phase.</p>""")) |
280 """ the same current phase.</p>""")) |
281 |
281 |
282 self.__tagAct = self.__actionsMenu.addAction( |
282 self.__tagAct = self.__actionsMenu.addAction( |
283 UI.PixmapCache.getIcon("vcsTag.png"), self.tr("Tag"), |
283 UI.PixmapCache.getIcon("vcsTag"), self.tr("Tag"), |
284 self.__tagActTriggered) |
284 self.__tagActTriggered) |
285 self.__tagAct.setToolTip(self.tr("Tag the selected revision")) |
285 self.__tagAct.setToolTip(self.tr("Tag the selected revision")) |
286 |
286 |
287 self.__closeHeadsAct = self.__actionsMenu.addAction( |
287 self.__closeHeadsAct = self.__actionsMenu.addAction( |
288 UI.PixmapCache.getIcon("closehead"), self.tr("Close Heads"), |
288 UI.PixmapCache.getIcon("closehead"), self.tr("Close Heads"), |
289 self.__closeHeadsActTriggered) |
289 self.__closeHeadsActTriggered) |
290 self.__closeHeadsAct.setToolTip(self.tr("Close the selected heads")) |
290 self.__closeHeadsAct.setToolTip(self.tr("Close the selected heads")) |
291 |
291 |
292 self.__switchAct = self.__actionsMenu.addAction( |
292 self.__switchAct = self.__actionsMenu.addAction( |
293 UI.PixmapCache.getIcon("vcsSwitch.png"), self.tr("Switch"), |
293 UI.PixmapCache.getIcon("vcsSwitch"), self.tr("Switch"), |
294 self.__switchActTriggered) |
294 self.__switchActTriggered) |
295 self.__switchAct.setToolTip(self.tr( |
295 self.__switchAct.setToolTip(self.tr( |
296 "Switch the working directory to the selected revision")) |
296 "Switch the working directory to the selected revision")) |
297 |
297 |
298 self.__actionsMenu.addSeparator() |
298 self.__actionsMenu.addSeparator() |
299 |
299 |
300 self.__bookmarkAct = self.__actionsMenu.addAction( |
300 self.__bookmarkAct = self.__actionsMenu.addAction( |
301 UI.PixmapCache.getIcon("addBookmark.png"), |
301 UI.PixmapCache.getIcon("addBookmark"), |
302 self.tr("Define Bookmark..."), self.__bookmarkActTriggered) |
302 self.tr("Define Bookmark..."), self.__bookmarkActTriggered) |
303 self.__bookmarkAct.setToolTip( |
303 self.__bookmarkAct.setToolTip( |
304 self.tr("Bookmark the selected revision")) |
304 self.tr("Bookmark the selected revision")) |
305 self.__bookmarkMoveAct = self.__actionsMenu.addAction( |
305 self.__bookmarkMoveAct = self.__actionsMenu.addAction( |
306 UI.PixmapCache.getIcon("moveBookmark.png"), |
306 UI.PixmapCache.getIcon("moveBookmark"), |
307 self.tr("Move Bookmark..."), self.__bookmarkMoveActTriggered) |
307 self.tr("Move Bookmark..."), self.__bookmarkMoveActTriggered) |
308 self.__bookmarkMoveAct.setToolTip( |
308 self.__bookmarkMoveAct.setToolTip( |
309 self.tr("Move bookmark to the selected revision")) |
309 self.tr("Move bookmark to the selected revision")) |
310 |
310 |
311 self.__actionsMenu.addSeparator() |
311 self.__actionsMenu.addSeparator() |
312 |
312 |
313 self.__pullAct = self.__actionsMenu.addAction( |
313 self.__pullAct = self.__actionsMenu.addAction( |
314 UI.PixmapCache.getIcon("vcsUpdate.png"), self.tr("Pull Changes"), |
314 UI.PixmapCache.getIcon("vcsUpdate"), self.tr("Pull Changes"), |
315 self.__pullActTriggered) |
315 self.__pullActTriggered) |
316 self.__pullAct.setToolTip(self.tr( |
316 self.__pullAct.setToolTip(self.tr( |
317 "Pull changes from a remote repository")) |
317 "Pull changes from a remote repository")) |
318 self.__lfPullAct = self.__actionsMenu.addAction( |
318 self.__lfPullAct = self.__actionsMenu.addAction( |
319 self.tr("Pull Large Files"), self.__lfPullActTriggered) |
319 self.tr("Pull Large Files"), self.__lfPullActTriggered) |
325 "Fetch changes from a remote repository")) |
325 "Fetch changes from a remote repository")) |
326 |
326 |
327 self.__actionsMenu.addSeparator() |
327 self.__actionsMenu.addSeparator() |
328 |
328 |
329 self.__pushAct = self.__actionsMenu.addAction( |
329 self.__pushAct = self.__actionsMenu.addAction( |
330 UI.PixmapCache.getIcon("vcsCommit.png"), |
330 UI.PixmapCache.getIcon("vcsCommit"), |
331 self.tr("Push Selected Changes"), self.__pushActTriggered) |
331 self.tr("Push Selected Changes"), self.__pushActTriggered) |
332 self.__pushAct.setToolTip(self.tr( |
332 self.__pushAct.setToolTip(self.tr( |
333 "Push changes of the selected changeset and its ancestors" |
333 "Push changes of the selected changeset and its ancestors" |
334 " to a remote repository")) |
334 " to a remote repository")) |
335 self.__pushAllAct = self.__actionsMenu.addAction( |
335 self.__pushAllAct = self.__actionsMenu.addAction( |
336 UI.PixmapCache.getIcon("vcsCommit.png"), |
336 UI.PixmapCache.getIcon("vcsCommit"), |
337 self.tr("Push All Changes"), self.__pushAllActTriggered) |
337 self.tr("Push All Changes"), self.__pushAllActTriggered) |
338 self.__pushAllAct.setToolTip(self.tr( |
338 self.__pushAllAct.setToolTip(self.tr( |
339 "Push all changes to a remote repository")) |
339 "Push all changes to a remote repository")) |
340 |
340 |
341 self.__actionsMenu.addSeparator() |
341 self.__actionsMenu.addSeparator() |
342 |
342 |
343 self.__bundleAct = self.__actionsMenu.addAction( |
343 self.__bundleAct = self.__actionsMenu.addAction( |
344 UI.PixmapCache.getIcon("vcsCreateChangegroup.png"), |
344 UI.PixmapCache.getIcon("vcsCreateChangegroup"), |
345 self.tr("Create Changegroup"), self.__bundleActTriggered) |
345 self.tr("Create Changegroup"), self.__bundleActTriggered) |
346 self.__bundleAct.setToolTip(self.tr( |
346 self.__bundleAct.setToolTip(self.tr( |
347 "Create a changegroup file containing the selected changesets")) |
347 "Create a changegroup file containing the selected changesets")) |
348 self.__bundleAct.setWhatsThis(self.tr( |
348 self.__bundleAct.setWhatsThis(self.tr( |
349 """<b>Create Changegroup</b>\n<p>This creates a changegroup""" |
349 """<b>Create Changegroup</b>\n<p>This creates a changegroup""" |
353 """ revision. Otherwise the lowest revision will be used as""" |
353 """ revision. Otherwise the lowest revision will be used as""" |
354 """ the base revision and all other revision will be bundled.""" |
354 """ the base revision and all other revision will be bundled.""" |
355 """ If the dialog is showing outgoing changesets, all""" |
355 """ If the dialog is showing outgoing changesets, all""" |
356 """ selected changesets will be bundled.</p>""")) |
356 """ selected changesets will be bundled.</p>""")) |
357 self.__unbundleAct = self.__actionsMenu.addAction( |
357 self.__unbundleAct = self.__actionsMenu.addAction( |
358 UI.PixmapCache.getIcon("vcsApplyChangegroup.png"), |
358 UI.PixmapCache.getIcon("vcsApplyChangegroup"), |
359 self.tr("Apply Changegroup"), self.__unbundleActTriggered) |
359 self.tr("Apply Changegroup"), self.__unbundleActTriggered) |
360 self.__unbundleAct.setToolTip(self.tr( |
360 self.__unbundleAct.setToolTip(self.tr( |
361 "Apply the currently viewed changegroup file")) |
361 "Apply the currently viewed changegroup file")) |
362 |
362 |
363 self.__actionsMenu.addSeparator() |
363 self.__actionsMenu.addSeparator() |
364 |
364 |
365 self.__gpgSignAct = self.__actionsMenu.addAction( |
365 self.__gpgSignAct = self.__actionsMenu.addAction( |
366 UI.PixmapCache.getIcon("changesetSign.png"), |
366 UI.PixmapCache.getIcon("changesetSign"), |
367 self.tr("Sign Revisions"), self.__gpgSignActTriggered) |
367 self.tr("Sign Revisions"), self.__gpgSignActTriggered) |
368 self.__gpgSignAct.setToolTip(self.tr( |
368 self.__gpgSignAct.setToolTip(self.tr( |
369 "Add a signature for the selected revisions")) |
369 "Add a signature for the selected revisions")) |
370 self.__gpgVerifyAct = self.__actionsMenu.addAction( |
370 self.__gpgVerifyAct = self.__actionsMenu.addAction( |
371 UI.PixmapCache.getIcon("changesetSignVerify.png"), |
371 UI.PixmapCache.getIcon("changesetSignVerify"), |
372 self.tr("Verify Signatures"), self.__gpgVerifyActTriggered) |
372 self.tr("Verify Signatures"), self.__gpgVerifyActTriggered) |
373 self.__gpgVerifyAct.setToolTip(self.tr( |
373 self.__gpgVerifyAct.setToolTip(self.tr( |
374 "Verify all signatures there may be for the selected revision")) |
374 "Verify all signatures there may be for the selected revision")) |
375 |
375 |
376 self.__actionsMenu.addSeparator() |
376 self.__actionsMenu.addSeparator() |
377 |
377 |
378 self.__stripAct = self.__actionsMenu.addAction( |
378 self.__stripAct = self.__actionsMenu.addAction( |
379 UI.PixmapCache.getIcon("fileDelete.png"), |
379 UI.PixmapCache.getIcon("fileDelete"), |
380 self.tr("Strip Changesets"), self.__stripActTriggered) |
380 self.tr("Strip Changesets"), self.__stripActTriggered) |
381 self.__stripAct.setToolTip(self.tr( |
381 self.__stripAct.setToolTip(self.tr( |
382 "Strip changesets from a repository")) |
382 "Strip changesets from a repository")) |
383 |
383 |
384 self.__actionsMenu.addSeparator() |
384 self.__actionsMenu.addSeparator() |