UI/UserInterface.py

changeset 2334
fc69ad77e18a
parent 2331
9e623311630d
child 2347
a4a4d710ebe8
equal deleted inserted replaced
2331:9e623311630d 2334:fc69ad77e18a
88 from E5Gui.E5ToolBox import E5VerticalToolBox, E5HorizontalToolBox 88 from E5Gui.E5ToolBox import E5VerticalToolBox, E5HorizontalToolBox
89 from E5Gui.E5SideBar import E5SideBar 89 from E5Gui.E5SideBar import E5SideBar
90 from E5Gui import E5MessageBox, E5FileDialog 90 from E5Gui import E5MessageBox, E5FileDialog
91 from E5Gui.E5Application import e5App 91 from E5Gui.E5Application import e5App
92 from E5Gui.E5MainWindow import E5MainWindow 92 from E5Gui.E5MainWindow import E5MainWindow
93 from E5Gui.E5ZoomWidget import E5ZoomWidget
93 94
94 from VCS.StatusMonitorLed import StatusMonitorLed 95 from VCS.StatusMonitorLed import StatusMonitorLed
95 96
96 import Preferences 97 import Preferences
97 import ViewManager 98 import ViewManager
2494 self.sbPos.setWhatsThis(self.trUtf8( 2495 self.sbPos.setWhatsThis(self.trUtf8(
2495 """<p>This part of the status bar displays the cursor position of""" 2496 """<p>This part of the status bar displays the cursor position of"""
2496 """ the current editor.</p>""" 2497 """ the current editor.</p>"""
2497 )) 2498 ))
2498 2499
2500 self.sbZoom = E5ZoomWidget(UI.PixmapCache.getPixmap("zoomOut.png"),
2501 UI.PixmapCache.getPixmap("zoomIn.png"),
2502 UI.PixmapCache.getPixmap("zoomReset.png"),
2503 self.__statusBar)
2504 self.__statusBar.addPermanentWidget(self.sbZoom)
2505 self.sbZoom.setWhatsThis(self.trUtf8(
2506 """<p>This part of the status bar allows zooming the current editor,"""
2507 """ shell or terminal.</p>"""
2508 ))
2509
2499 self.viewmanager.setSbInfo(self.sbLine, self.sbPos, self.sbWritable, 2510 self.viewmanager.setSbInfo(self.sbLine, self.sbPos, self.sbWritable,
2500 self.sbEncoding, self.sbLanguage, self.sbEol) 2511 self.sbEncoding, self.sbLanguage, self.sbEol,
2512 self.sbZoom)
2501 2513
2502 self.sbVcsMonitorLed = StatusMonitorLed(self.project, self.__statusBar) 2514 self.sbVcsMonitorLed = StatusMonitorLed(self.project, self.__statusBar)
2503 self.__statusBar.addPermanentWidget(self.sbVcsMonitorLed) 2515 self.__statusBar.addPermanentWidget(self.sbVcsMonitorLed)
2504 2516
2505 def __initExternalToolsActions(self): 2517 def __initExternalToolsActions(self):

eric ide

mercurial