eric6/QScintilla/MiniEditor.py

changeset 7960
e8fc383322f7
parent 7923
91e843545d9a
child 7969
62eff8b34a8d
equal deleted inserted replaced
7959:44e15eda6506 7960:e8fc383322f7
363 """ 363 """
364 Private slot to show a little About message. 364 Private slot to show a little About message.
365 """ 365 """
366 E5MessageBox.about( 366 E5MessageBox.about(
367 self, 367 self,
368 self.tr("About eric6 Mini Editor"), 368 self.tr("About eric Mini Editor"),
369 self.tr( 369 self.tr(
370 "The eric6 Mini Editor is an editor component" 370 "The eric Mini Editor is an editor component"
371 " based on QScintilla. It may be used for simple" 371 " based on QScintilla. It may be used for simple"
372 " editing tasks, that don't need the power of" 372 " editing tasks, that don't need the power of"
373 " a full blown editor.")) 373 " a full blown editor."))
374 374
375 def __aboutQt(self): 375 def __aboutQt(self):
376 """ 376 """
377 Private slot to handle the About Qt dialog. 377 Private slot to handle the About Qt dialog.
378 """ 378 """
379 E5MessageBox.aboutQt(self, "eric6 Mini Editor") 379 E5MessageBox.aboutQt(self, "eric Mini Editor")
380 380
381 def __whatsThis(self): 381 def __whatsThis(self):
382 """ 382 """
383 Private slot called in to enter Whats This mode. 383 Private slot called in to enter Whats This mode.
384 """ 384 """
493 self.__createHelpActions() 493 self.__createHelpActions()
494 self.__createSearchActions() 494 self.__createSearchActions()
495 self.__createViewActions() 495 self.__createViewActions()
496 496
497 # read the keyboard shortcuts and make them identical to the main 497 # read the keyboard shortcuts and make them identical to the main
498 # eric6 shortcuts 498 # eric shortcuts
499 for act in self.helpActions: 499 for act in self.helpActions:
500 self.__readShortcut(act, "General") 500 self.__readShortcut(act, "General")
501 for act in self.editActions: 501 for act in self.editActions:
502 self.__readShortcut(act, "Edit") 502 self.__readShortcut(act, "Edit")
503 for act in self.fileActions: 503 for act in self.fileActions:
2533 @return flag indicating, if it is ok to continue (boolean) 2533 @return flag indicating, if it is ok to continue (boolean)
2534 """ 2534 """
2535 if self.__textEdit.isModified(): 2535 if self.__textEdit.isModified():
2536 ret = E5MessageBox.okToClearData( 2536 ret = E5MessageBox.okToClearData(
2537 self, 2537 self,
2538 self.tr("eric6 Mini Editor"), 2538 self.tr("eric Mini Editor"),
2539 self.tr("The document has unsaved changes."), 2539 self.tr("The document has unsaved changes."),
2540 self.__save) 2540 self.__save)
2541 return ret 2541 return ret
2542 return True 2542 return True
2543 2543

eric ide

mercurial