ViewManager/ViewManager.py

branch
5_4_x
changeset 3548
509de9ee6cb8
parent 3323
b55fcd897118
equal deleted inserted replaced
3543:be1eb4e203c0 3548:509de9ee6cb8
3512 self.splitRemoveAct.setEnabled(False) 3512 self.splitRemoveAct.setEnabled(False)
3513 self.nextSplitAct.setEnabled(False) 3513 self.nextSplitAct.setEnabled(False)
3514 self.prevSplitAct.setEnabled(False) 3514 self.prevSplitAct.setEnabled(False)
3515 self.previewAct.setEnabled(True) 3515 self.previewAct.setEnabled(True)
3516 3516
3517 self.splitOrientationAct.setChecked(
3518 Preferences.getUI("SplitOrientationVertical"))
3519
3517 def initViewMenu(self): 3520 def initViewMenu(self):
3518 """ 3521 """
3519 Public method to create the View menu. 3522 Public method to create the View menu.
3520 3523
3521 @return the generated menu 3524 @return the generated menu
5685 UI.PixmapCache.getIcon("splitVertical.png")) 5688 UI.PixmapCache.getIcon("splitVertical.png"))
5686 self.splitRemoveAct.setIcon( 5689 self.splitRemoveAct.setIcon(
5687 UI.PixmapCache.getIcon("remsplitVertical.png")) 5690 UI.PixmapCache.getIcon("remsplitVertical.png"))
5688 self.newDocumentSplitViewAct.setIcon( 5691 self.newDocumentSplitViewAct.setIcon(
5689 UI.PixmapCache.getIcon("splitVertical.png")) 5692 UI.PixmapCache.getIcon("splitVertical.png"))
5693 Preferences.setUI("SplitOrientationVertical", checked)
5690 5694
5691 def __previewEditor(self, checked): 5695 def __previewEditor(self, checked):
5692 """ 5696 """
5693 Private slot to handle a change of the preview selection state. 5697 Private slot to handle a change of the preview selection state.
5694 5698

eric ide

mercurial