ViewManager/ViewManager.py

changeset 128
13e96bd0f5a5
parent 97
c4086afea02b
child 155
375e3c884874
equal deleted inserted replaced
127:003f568ac4a0 128:13e96bd0f5a5
27 from QScintilla.ZoomDialog import ZoomDialog 27 from QScintilla.ZoomDialog import ZoomDialog
28 from QScintilla.APIsManager import APIsManager 28 from QScintilla.APIsManager import APIsManager
29 from QScintilla.SpellChecker import SpellChecker 29 from QScintilla.SpellChecker import SpellChecker
30 import QScintilla.Lexers 30 import QScintilla.Lexers
31 import QScintilla.Exporters 31 import QScintilla.Exporters
32 from QScintilla.Shell import Shell
33 from QScintilla.Terminal import Terminal
32 34
33 import Utilities 35 import Utilities
34 36
35 import UI.PixmapCache 37 import UI.PixmapCache
36 import UI.Config 38 import UI.Config
3735 Private method to handle the search for file action. 3737 Private method to handle the search for file action.
3736 """ 3738 """
3737 self.ui.findFileNameDialog.show() 3739 self.ui.findFileNameDialog.show()
3738 self.ui.findFileNameDialog.raise_() 3740 self.ui.findFileNameDialog.raise_()
3739 self.ui.findFileNameDialog.activateWindow() 3741 self.ui.findFileNameDialog.activateWindow()
3742
3743 def appFocusChanged(self, old, now):
3744 """
3745 Public method to handle the global change of focus.
3746
3747 @param old reference to the widget loosing focus (QWidget)
3748 @param now reference to the widget gaining focus (QWidget)
3749 """
3750 if not isinstance(now, (Editor, Shell, Terminal)):
3751 self.editActGrp.setEnabled(False)
3752 self.copyActGrp.setEnabled(False)
3753 self.viewActGrp.setEnabled(False)
3754 self.searchActGrp.setEnabled(False)
3740 3755
3741 ################################################################## 3756 ##################################################################
3742 ## Below are the action methods for the edit menu 3757 ## Below are the action methods for the edit menu
3743 ################################################################## 3758 ##################################################################
3744 3759

eric ide

mercurial