src/eric7/Tools/TRPreviewer.py

branch
eric7
changeset 9573
9960d19d66b5
parent 9500
5771348ded12
child 9653
e67609152c5e
equal deleted inserted replaced
9572:3b46c662a004 9573:9960d19d66b5
215 215
216 self.exitAct = QAction(EricPixmapCache.getIcon("exit"), self.tr("&Quit"), self) 216 self.exitAct = QAction(EricPixmapCache.getIcon("exit"), self.tr("&Quit"), self)
217 self.exitAct.setShortcut(QKeySequence(self.tr("Ctrl+Q", "File|Quit"))) 217 self.exitAct.setShortcut(QKeySequence(self.tr("Ctrl+Q", "File|Quit")))
218 self.exitAct.setStatusTip(self.tr("Quit the application")) 218 self.exitAct.setStatusTip(self.tr("Quit the application"))
219 self.exitAct.setWhatsThis( 219 self.exitAct.setWhatsThis(
220 self.tr("""<b>Quit</b>""" """<p>Quit the application.</p>""") 220 self.tr("""<b>Quit</b><p>Quit the application.</p>""")
221 ) 221 )
222 self.exitAct.triggered.connect(ericApp().closeAllWindows) 222 self.exitAct.triggered.connect(ericApp().closeAllWindows)
223 223
224 self.whatsThisAct = QAction( 224 self.whatsThisAct = QAction(
225 EricPixmapCache.getIcon("whatsThis"), self.tr("&What's This?"), self 225 EricPixmapCache.getIcon("whatsThis"), self.tr("&What's This?"), self
286 EricPixmapCache.getIcon("close"), self.tr("&Close"), self 286 EricPixmapCache.getIcon("close"), self.tr("&Close"), self
287 ) 287 )
288 self.closeAct.setShortcut(QKeySequence(self.tr("Ctrl+W", "File|Close"))) 288 self.closeAct.setShortcut(QKeySequence(self.tr("Ctrl+W", "File|Close")))
289 self.closeAct.setStatusTip(self.tr("Close the current window")) 289 self.closeAct.setStatusTip(self.tr("Close the current window"))
290 self.closeAct.setWhatsThis( 290 self.closeAct.setWhatsThis(
291 self.tr("""<b>Close Window</b>""" """<p>Close the current window.</p>""") 291 self.tr("""<b>Close Window</b><p>Close the current window.</p>""")
292 ) 292 )
293 self.closeAct.triggered.connect(self.preview.closeWidget) 293 self.closeAct.triggered.connect(self.preview.closeWidget)
294 294
295 self.closeAllAct = QAction(self.tr("Clos&e All"), self) 295 self.closeAllAct = QAction(self.tr("Clos&e All"), self)
296 self.closeAllAct.setStatusTip(self.tr("Close all windows")) 296 self.closeAllAct.setStatusTip(self.tr("Close all windows"))
297 self.closeAllAct.setWhatsThis( 297 self.closeAllAct.setWhatsThis(
298 self.tr("""<b>Close All Windows</b>""" """<p>Close all windows.</p>""") 298 self.tr("""<b>Close All Windows</b><p>Close all windows.</p>""")
299 ) 299 )
300 self.closeAllAct.triggered.connect(self.preview.closeAllWidgets) 300 self.closeAllAct.triggered.connect(self.preview.closeAllWidgets)
301 301
302 def __initMenus(self): 302 def __initMenus(self):
303 """ 303 """
685 685
686 EricMessageBox.warning( 686 EricMessageBox.warning(
687 self.parent(), 687 self.parent(),
688 self.tr("Load Translator"), 688 self.tr("Load Translator"),
689 self.tr( 689 self.tr(
690 """<p>The translation file <b>{0}</b> could""" """ not be loaded.</p>""" 690 """<p>The translation file <b>{0}</b> could not be loaded.</p>"""
691 ).format(transFileName), 691 ).format(transFileName),
692 ) 692 )
693 return None 693 return None
694 694
695 def hasTranslations(self): 695 def hasTranslations(self):

eric ide

mercurial