40 from eric7 import Preferences |
40 from eric7 import Preferences |
41 from eric7.EricGui import EricPixmapCache |
41 from eric7.EricGui import EricPixmapCache |
42 from eric7.EricWidgets import EricFileDialog, EricMessageBox |
42 from eric7.EricWidgets import EricFileDialog, EricMessageBox |
43 from eric7.EricWidgets.EricApplication import ericApp |
43 from eric7.EricWidgets.EricApplication import ericApp |
44 from eric7.EricWidgets.EricMainWindow import EricMainWindow |
44 from eric7.EricWidgets.EricMainWindow import EricMainWindow |
45 from eric7.UI import Config |
|
46 |
45 |
47 from .TRSingleApplication import TRSingleApplicationServer |
46 from .TRSingleApplication import TRSingleApplicationServer |
48 |
47 |
49 noTranslationName = QCoreApplication.translate("TRPreviewer", "<No translation>") |
48 noTranslationName = QCoreApplication.translate("TRPreviewer", "<No translation>") |
50 |
49 |
333 def __initToolbars(self): |
332 def __initToolbars(self): |
334 """ |
333 """ |
335 Private method to create the toolbars. |
334 Private method to create the toolbars. |
336 """ |
335 """ |
337 filetb = self.addToolBar(self.tr("File")) |
336 filetb = self.addToolBar(self.tr("File")) |
338 filetb.setIconSize(Config.ToolBarIconSize) |
|
339 filetb.addAction(self.openUIAct) |
337 filetb.addAction(self.openUIAct) |
340 filetb.addAction(self.openQMAct) |
338 filetb.addAction(self.openQMAct) |
341 filetb.addAction(self.reloadAct) |
339 filetb.addAction(self.reloadAct) |
342 filetb.addSeparator() |
340 filetb.addSeparator() |
343 filetb.addAction(self.closeAct) |
341 filetb.addAction(self.closeAct) |
344 filetb.addSeparator() |
342 filetb.addSeparator() |
345 filetb.addAction(self.exitAct) |
343 filetb.addAction(self.exitAct) |
346 |
344 |
347 helptb = self.addToolBar(self.tr("Help")) |
345 helptb = self.addToolBar(self.tr("Help")) |
348 helptb.setIconSize(Config.ToolBarIconSize) |
|
349 helptb.addAction(self.whatsThisAct) |
346 helptb.addAction(self.whatsThisAct) |
350 |
347 |
351 def __whatsThis(self): |
348 def __whatsThis(self): |
352 """ |
349 """ |
353 Private slot called in to enter Whats This mode. |
350 Private slot called in to enter Whats This mode. |