3489 self.zoomToAct.triggered.connect(self.__zoom) |
3489 self.zoomToAct.triggered.connect(self.__zoom) |
3490 self.viewActions.append(self.zoomToAct) |
3490 self.viewActions.append(self.zoomToAct) |
3491 |
3491 |
3492 self.toggleAllAct = E5Action( |
3492 self.toggleAllAct = E5Action( |
3493 QCoreApplication.translate('ViewManager', 'Toggle all folds'), |
3493 QCoreApplication.translate('ViewManager', 'Toggle all folds'), |
3494 QCoreApplication.translate('ViewManager', 'Toggle &all folds'), |
3494 QCoreApplication.translate('ViewManager', '&Toggle all folds'), |
3495 0, 0, self.viewFoldActGrp, 'vm_view_toggle_all_folds') |
3495 0, 0, self.viewFoldActGrp, 'vm_view_toggle_all_folds') |
3496 self.toggleAllAct.setStatusTip(QCoreApplication.translate( |
3496 self.toggleAllAct.setStatusTip(QCoreApplication.translate( |
3497 'ViewManager', 'Toggle all folds')) |
3497 'ViewManager', 'Toggle all folds')) |
3498 self.toggleAllAct.setWhatsThis(QCoreApplication.translate( |
3498 self.toggleAllAct.setWhatsThis(QCoreApplication.translate( |
3499 'ViewManager', |
3499 'ViewManager', |
3533 """<p>Toggle the folds of the current line of the current""" |
3533 """<p>Toggle the folds of the current line of the current""" |
3534 """ editor.</p>""" |
3534 """ editor.</p>""" |
3535 )) |
3535 )) |
3536 self.toggleCurrentAct.triggered.connect(self.__toggleCurrent) |
3536 self.toggleCurrentAct.triggered.connect(self.__toggleCurrent) |
3537 self.viewActions.append(self.toggleCurrentAct) |
3537 self.viewActions.append(self.toggleCurrentAct) |
|
3538 |
|
3539 self.clearAllFoldsAct = E5Action( |
|
3540 QCoreApplication.translate('ViewManager', 'Clear all folds'), |
|
3541 QCoreApplication.translate('ViewManager', 'Clear &all folds'), |
|
3542 0, 0, self.viewFoldActGrp, 'vm_view_clear_all_folds') |
|
3543 self.clearAllFoldsAct.setStatusTip(QCoreApplication.translate( |
|
3544 'ViewManager', 'Clear all folds')) |
|
3545 self.clearAllFoldsAct.setWhatsThis(QCoreApplication.translate( |
|
3546 'ViewManager', |
|
3547 """<b>Clear all folds</b>""" |
|
3548 """<p>Clear all folds of the current editor, i.e. ensure that""" |
|
3549 """ all lines are displayed unfolded.</p>""" |
|
3550 )) |
|
3551 self.clearAllFoldsAct.triggered.connect(self.__clearAllFolds) |
|
3552 self.viewActions.append(self.clearAllFoldsAct) |
3538 |
3553 |
3539 self.unhighlightAct = E5Action( |
3554 self.unhighlightAct = E5Action( |
3540 QCoreApplication.translate('ViewManager', 'Remove all highlights'), |
3555 QCoreApplication.translate('ViewManager', 'Remove all highlights'), |
3541 UI.PixmapCache.getIcon("unhighlight.png"), |
3556 UI.PixmapCache.getIcon("unhighlight.png"), |
3542 QCoreApplication.translate('ViewManager', 'Remove all highlights'), |
3557 QCoreApplication.translate('ViewManager', 'Remove all highlights'), |
5898 aw = e5App().getObject("Shell") |
5913 aw = e5App().getObject("Shell") |
5899 else: |
5914 else: |
5900 aw = self.activeWindow() |
5915 aw = self.activeWindow() |
5901 if aw and aw == self.sender(): |
5916 if aw and aw == self.sender(): |
5902 self.sbZoom.setValue(value) |
5917 self.sbZoom.setValue(value) |
|
5918 |
|
5919 def __clearAllFolds(self): |
|
5920 """ |
|
5921 Private method to handle the clear all folds action. |
|
5922 """ |
|
5923 aw = self.activeWindow() |
|
5924 if aw: |
|
5925 aw.clearFolds() |
5903 |
5926 |
5904 def __toggleAll(self): |
5927 def __toggleAll(self): |
5905 """ |
5928 """ |
5906 Private method to handle the toggle all folds action. |
5929 Private method to handle the toggle all folds action. |
5907 """ |
5930 """ |