src/eric7/QScintilla/ShellWindow.py

branch
eric7
changeset 9576
be9f8e7e42e0
parent 9573
9960d19d66b5
child 9624
b47dfa7a137d
equal deleted inserted replaced
9575:635b6c5a36e1 9576:be9f8e7e42e0
225 self, 225 self,
226 "quit", 226 "quit",
227 ) 227 )
228 self.exitAct.setStatusTip(self.tr("Quit the Shell")) 228 self.exitAct.setStatusTip(self.tr("Quit the Shell"))
229 self.exitAct.setWhatsThis( 229 self.exitAct.setWhatsThis(
230 self.tr( 230 self.tr("""<b>Quit the Shell</b><p>This quits the Shell window.</p>""")
231 """<b>Quit the Shell</b><p>This quits the Shell window.</p>"""
232 )
233 ) 231 )
234 self.exitAct.triggered.connect(self.quit) 232 self.exitAct.triggered.connect(self.quit)
235 self.exitAct.setMenuRole(QAction.MenuRole.QuitRole) 233 self.exitAct.setMenuRole(QAction.MenuRole.QuitRole)
236 self.fileActions.append(self.exitAct) 234 self.fileActions.append(self.exitAct)
237 235
342 ) 340 )
343 self.cutAct.setStatusTip( 341 self.cutAct.setStatusTip(
344 QCoreApplication.translate("ViewManager", "Cut the selection") 342 QCoreApplication.translate("ViewManager", "Cut the selection")
345 ) 343 )
346 self.cutAct.setWhatsThis( 344 self.cutAct.setWhatsThis(
347 self.tr( 345 self.tr("""<b>Cut</b><p>Cut the selected text to the clipboard.</p>""")
348 """<b>Cut</b><p>Cut the selected text to the clipboard.</p>"""
349 )
350 ) 346 )
351 self.cutAct.triggered.connect(self.__shell.cut) 347 self.cutAct.triggered.connect(self.__shell.cut)
352 self.editActions.append(self.cutAct) 348 self.editActions.append(self.cutAct)
353 349
354 self.copyAct = EricAction( 350 self.copyAct = EricAction(
366 ) 362 )
367 self.copyAct.setStatusTip( 363 self.copyAct.setStatusTip(
368 QCoreApplication.translate("ViewManager", "Copy the selection") 364 QCoreApplication.translate("ViewManager", "Copy the selection")
369 ) 365 )
370 self.copyAct.setWhatsThis( 366 self.copyAct.setWhatsThis(
371 self.tr( 367 self.tr("""<b>Copy</b><p>Copy the selected text to the clipboard.</p>""")
372 """<b>Copy</b><p>Copy the selected text to the clipboard.</p>"""
373 )
374 ) 368 )
375 self.copyAct.triggered.connect(self.__shell.copy) 369 self.copyAct.triggered.connect(self.__shell.copy)
376 self.editActions.append(self.copyAct) 370 self.editActions.append(self.copyAct)
377 371
378 self.pasteAct = EricAction( 372 self.pasteAct = EricAction(
412 "vm_edit_clear", 406 "vm_edit_clear",
413 ) 407 )
414 self.clearAct.setStatusTip( 408 self.clearAct.setStatusTip(
415 QCoreApplication.translate("ViewManager", "Clear all text") 409 QCoreApplication.translate("ViewManager", "Clear all text")
416 ) 410 )
417 self.clearAct.setWhatsThis( 411 self.clearAct.setWhatsThis(self.tr("""<b>Clear</b><p>Delete all text.</p>"""))
418 self.tr("""<b>Clear</b><p>Delete all text.</p>""")
419 )
420 self.clearAct.triggered.connect(self.__shell.clear) 412 self.clearAct.triggered.connect(self.__shell.clear)
421 self.editActions.append(self.clearAct) 413 self.editActions.append(self.clearAct)
422 414
423 self.cutAct.setEnabled(False) 415 self.cutAct.setEnabled(False)
424 self.copyAct.setEnabled(False) 416 self.copyAct.setEnabled(False)
869 self.editActions.append(act) 861 self.editActions.append(act)
870 862
871 act = EricAction( 863 act = EricAction(
872 QCoreApplication.translate( 864 QCoreApplication.translate(
873 "ViewManager", 865 "ViewManager",
874 "Extend selection to first visible character in document" " line", 866 "Extend selection to first visible character in document line",
875 ), 867 ),
876 QCoreApplication.translate( 868 QCoreApplication.translate(
877 "ViewManager", 869 "ViewManager",
878 "Extend selection to first visible character in document" " line", 870 "Extend selection to first visible character in document line",
879 ), 871 ),
880 0, 872 0,
881 0, 873 0,
882 self.editorActGrp, 874 self.editorActGrp,
883 "vm_edit_extend_selection_first_visible_char", 875 "vm_edit_extend_selection_first_visible_char",

eric ide

mercurial