UI/UserInterface.py

changeset 3321
ad3a75d3d870
parent 3202
d21df6f384fc
child 3345
071afe8be2a1
equal deleted inserted replaced
3320:144159e0d032 3321:ad3a75d3d870
30 from E5Gui import E5MessageBox, E5FileDialog, E5ErrorMessage 30 from E5Gui import E5MessageBox, E5FileDialog, E5ErrorMessage
31 from E5Gui.E5Application import e5App 31 from E5Gui.E5Application import e5App
32 from E5Gui.E5MainWindow import E5MainWindow 32 from E5Gui.E5MainWindow import E5MainWindow
33 from E5Gui.E5ZoomWidget import E5ZoomWidget 33 from E5Gui.E5ZoomWidget import E5ZoomWidget
34 from E5Gui.E5ProgressDialog import E5ProgressDialog 34 from E5Gui.E5ProgressDialog import E5ProgressDialog
35 from E5Gui.E5ClickableLabel import E5ClickableLabel
35 36
36 import Preferences 37 import Preferences
37 import Utilities 38 import Utilities
38 39
39 import UI.PixmapCache 40 import UI.PixmapCache
2703 Private slot to set up the status bar. 2704 Private slot to set up the status bar.
2704 """ 2705 """
2705 self.__statusBar = self.statusBar() 2706 self.__statusBar = self.statusBar()
2706 self.__statusBar.setSizeGripEnabled(True) 2707 self.__statusBar.setSizeGripEnabled(True)
2707 2708
2708 self.sbLanguage = QLabel(self.__statusBar) 2709 self.sbLanguage = E5ClickableLabel(self.__statusBar)
2709 self.__statusBar.addPermanentWidget(self.sbLanguage) 2710 self.__statusBar.addPermanentWidget(self.sbLanguage)
2710 self.sbLanguage.setWhatsThis(self.tr( 2711 self.sbLanguage.setWhatsThis(self.tr(
2711 """<p>This part of the status bar displays the""" 2712 """<p>This part of the status bar displays the"""
2712 """ current editors language.</p>""" 2713 """ current editors language.</p>"""
2713 )) 2714 ))
2714 2715
2715 self.sbEncoding = QLabel(self.__statusBar) 2716 self.sbEncoding = E5ClickableLabel(self.__statusBar)
2716 self.__statusBar.addPermanentWidget(self.sbEncoding) 2717 self.__statusBar.addPermanentWidget(self.sbEncoding)
2717 self.sbEncoding.setWhatsThis(self.tr( 2718 self.sbEncoding.setWhatsThis(self.tr(
2718 """<p>This part of the status bar displays the""" 2719 """<p>This part of the status bar displays the"""
2719 """ current editors encoding.</p>""" 2720 """ current editors encoding.</p>"""
2720 )) 2721 ))
2721 2722
2722 self.sbEol = QLabel(self.__statusBar) 2723 self.sbEol = E5ClickableLabel(self.__statusBar)
2723 self.__statusBar.addPermanentWidget(self.sbEol) 2724 self.__statusBar.addPermanentWidget(self.sbEol)
2724 self.sbEol.setWhatsThis(self.tr( 2725 self.sbEol.setWhatsThis(self.tr(
2725 """<p>This part of the status bar displays the""" 2726 """<p>This part of the status bar displays the"""
2726 """ current editors eol setting.</p>""" 2727 """ current editors eol setting.</p>"""
2727 )) 2728 ))

eric ide

mercurial