360 |
361 |
361 def __createFileActions(self): |
362 def __createFileActions(self): |
362 """ |
363 """ |
363 Private method to create the File actions. |
364 Private method to create the File actions. |
364 """ |
365 """ |
365 self.newAct = E5Action(self.trUtf8('New'), |
366 self.newAct = E5Action( |
366 UI.PixmapCache.getIcon("new.png"), |
367 self.trUtf8('New'), |
367 self.trUtf8('&New'), |
368 UI.PixmapCache.getIcon("new.png"), |
368 QKeySequence(self.trUtf8("Ctrl+N", "File|New")), |
369 self.trUtf8('&New'), |
369 0, self, 'vm_file_new') |
370 QKeySequence(self.trUtf8("Ctrl+N", "File|New")), |
|
371 0, self, 'vm_file_new') |
370 self.newAct.setStatusTip(self.trUtf8('Open an empty editor window')) |
372 self.newAct.setStatusTip(self.trUtf8('Open an empty editor window')) |
371 self.newAct.setWhatsThis(self.trUtf8( |
373 self.newAct.setWhatsThis(self.trUtf8( |
372 """<b>New</b>""" |
374 """<b>New</b>""" |
373 """<p>An empty editor window will be created.</p>""" |
375 """<p>An empty editor window will be created.</p>""" |
374 )) |
376 )) |
375 self.newAct.triggered[()].connect(self.__newFile) |
377 self.newAct.triggered[()].connect(self.__newFile) |
376 self.fileActions.append(self.newAct) |
378 self.fileActions.append(self.newAct) |
377 |
379 |
378 self.openAct = E5Action(self.trUtf8('Open'), |
380 self.openAct = E5Action( |
379 UI.PixmapCache.getIcon("open.png"), |
381 self.trUtf8('Open'), |
380 self.trUtf8('&Open...'), |
382 UI.PixmapCache.getIcon("open.png"), |
381 QKeySequence(self.trUtf8("Ctrl+O", "File|Open")), |
383 self.trUtf8('&Open...'), |
382 0, self, 'vm_file_open') |
384 QKeySequence(self.trUtf8("Ctrl+O", "File|Open")), |
|
385 0, self, 'vm_file_open') |
383 self.openAct.setStatusTip(self.trUtf8('Open a file')) |
386 self.openAct.setStatusTip(self.trUtf8('Open a file')) |
384 self.openAct.setWhatsThis(self.trUtf8( |
387 self.openAct.setWhatsThis(self.trUtf8( |
385 """<b>Open a file</b>""" |
388 """<b>Open a file</b>""" |
386 """<p>You will be asked for the name of a file to be opened.</p>""" |
389 """<p>You will be asked for the name of a file to be opened.</p>""" |
387 )) |
390 )) |
388 self.openAct.triggered[()].connect(self.__open) |
391 self.openAct.triggered[()].connect(self.__open) |
389 self.fileActions.append(self.openAct) |
392 self.fileActions.append(self.openAct) |
390 |
393 |
391 self.saveAct = E5Action(self.trUtf8('Save'), |
394 self.saveAct = E5Action( |
392 UI.PixmapCache.getIcon("fileSave.png"), |
395 self.trUtf8('Save'), |
393 self.trUtf8('&Save'), |
396 UI.PixmapCache.getIcon("fileSave.png"), |
394 QKeySequence(self.trUtf8("Ctrl+S", "File|Save")), |
397 self.trUtf8('&Save'), |
395 0, self, 'vm_file_save') |
398 QKeySequence(self.trUtf8("Ctrl+S", "File|Save")), |
|
399 0, self, 'vm_file_save') |
396 self.saveAct.setStatusTip(self.trUtf8('Save the current file')) |
400 self.saveAct.setStatusTip(self.trUtf8('Save the current file')) |
397 self.saveAct.setWhatsThis(self.trUtf8( |
401 self.saveAct.setWhatsThis(self.trUtf8( |
398 """<b>Save File</b>""" |
402 """<b>Save File</b>""" |
399 """<p>Save the contents of current editor window.</p>""" |
403 """<p>Save the contents of current editor window.</p>""" |
400 )) |
404 )) |
401 self.saveAct.triggered[()].connect(self.__save) |
405 self.saveAct.triggered[()].connect(self.__save) |
402 self.fileActions.append(self.saveAct) |
406 self.fileActions.append(self.saveAct) |
403 |
407 |
404 self.saveAsAct = E5Action(self.trUtf8('Save as'), |
408 self.saveAsAct = E5Action( |
405 UI.PixmapCache.getIcon("fileSaveAs.png"), |
409 self.trUtf8('Save as'), |
406 self.trUtf8('Save &as...'), |
410 UI.PixmapCache.getIcon("fileSaveAs.png"), |
407 QKeySequence(self.trUtf8("Shift+Ctrl+S", "File|Save As")), |
411 self.trUtf8('Save &as...'), |
408 0, self, 'vm_file_save_as') |
412 QKeySequence(self.trUtf8("Shift+Ctrl+S", "File|Save As")), |
|
413 0, self, 'vm_file_save_as') |
409 self.saveAsAct.setStatusTip(self.trUtf8( |
414 self.saveAsAct.setStatusTip(self.trUtf8( |
410 'Save the current file to a new one')) |
415 'Save the current file to a new one')) |
411 self.saveAsAct.setWhatsThis(self.trUtf8( |
416 self.saveAsAct.setWhatsThis(self.trUtf8( |
412 """<b>Save File as</b>""" |
417 """<b>Save File as</b>""" |
413 """<p>Save the contents of current editor window to a new file.""" |
418 """<p>Save the contents of current editor window to a new file.""" |
414 """ The file can be entered in a file selection dialog.</p>""" |
419 """ The file can be entered in a file selection dialog.</p>""" |
415 )) |
420 )) |
416 self.saveAsAct.triggered[()].connect(self.__saveAs) |
421 self.saveAsAct.triggered[()].connect(self.__saveAs) |
417 self.fileActions.append(self.saveAsAct) |
422 self.fileActions.append(self.saveAsAct) |
418 |
423 |
419 self.closeAct = E5Action(self.trUtf8('Close'), |
424 self.closeAct = E5Action( |
420 UI.PixmapCache.getIcon("close.png"), |
425 self.trUtf8('Close'), |
421 self.trUtf8('&Close'), |
426 UI.PixmapCache.getIcon("close.png"), |
422 QKeySequence(self.trUtf8("Ctrl+W", "File|Close")), |
427 self.trUtf8('&Close'), |
423 0, self, 'vm_file_close') |
428 QKeySequence(self.trUtf8("Ctrl+W", "File|Close")), |
|
429 0, self, 'vm_file_close') |
424 self.closeAct.setStatusTip(self.trUtf8('Close the editor window')) |
430 self.closeAct.setStatusTip(self.trUtf8('Close the editor window')) |
425 self.closeAct.setWhatsThis(self.trUtf8( |
431 self.closeAct.setWhatsThis(self.trUtf8( |
426 """<b>Close Window</b>""" |
432 """<b>Close Window</b>""" |
427 """<p>Close the current window.</p>""" |
433 """<p>Close the current window.</p>""" |
428 )) |
434 )) |
429 self.closeAct.triggered[()].connect(self.close) |
435 self.closeAct.triggered[()].connect(self.close) |
430 self.fileActions.append(self.closeAct) |
436 self.fileActions.append(self.closeAct) |
431 |
437 |
432 self.printAct = E5Action(self.trUtf8('Print'), |
438 self.printAct = E5Action( |
433 UI.PixmapCache.getIcon("print.png"), |
439 self.trUtf8('Print'), |
434 self.trUtf8('&Print'), |
440 UI.PixmapCache.getIcon("print.png"), |
435 QKeySequence(self.trUtf8("Ctrl+P", "File|Print")), |
441 self.trUtf8('&Print'), |
436 0, self, 'vm_file_print') |
442 QKeySequence(self.trUtf8("Ctrl+P", "File|Print")), |
|
443 0, self, 'vm_file_print') |
437 self.printAct.setStatusTip(self.trUtf8('Print the current file')) |
444 self.printAct.setStatusTip(self.trUtf8('Print the current file')) |
438 self.printAct.setWhatsThis(self.trUtf8( |
445 self.printAct.setWhatsThis(self.trUtf8( |
439 """<b>Print File</b>""" |
446 """<b>Print File</b>""" |
440 """<p>Print the contents of the current file.</p>""" |
447 """<p>Print the contents of the current file.</p>""" |
441 )) |
448 )) |
442 self.printAct.triggered[()].connect(self.__printFile) |
449 self.printAct.triggered[()].connect(self.__printFile) |
443 self.fileActions.append(self.printAct) |
450 self.fileActions.append(self.printAct) |
444 |
451 |
445 self.printPreviewAct = \ |
452 self.printPreviewAct = E5Action( |
446 E5Action(self.trUtf8('Print Preview'), |
453 self.trUtf8('Print Preview'), |
447 UI.PixmapCache.getIcon("printPreview.png"), |
454 UI.PixmapCache.getIcon("printPreview.png"), |
448 QApplication.translate('ViewManager', 'Print Preview'), |
455 QApplication.translate('ViewManager', 'Print Preview'), |
449 0, 0, self, 'vm_file_print_preview') |
456 0, 0, self, 'vm_file_print_preview') |
450 self.printPreviewAct.setStatusTip(self.trUtf8( |
457 self.printPreviewAct.setStatusTip(self.trUtf8( |
451 'Print preview of the current file')) |
458 'Print preview of the current file')) |
452 self.printPreviewAct.setWhatsThis(self.trUtf8( |
459 self.printPreviewAct.setWhatsThis(self.trUtf8( |
453 """<b>Print Preview</b>""" |
460 """<b>Print Preview</b>""" |
454 """<p>Print preview of the current file.</p>""" |
461 """<p>Print preview of the current file.</p>""" |
458 |
465 |
459 def __createEditActions(self): |
466 def __createEditActions(self): |
460 """ |
467 """ |
461 Private method to create the Edit actions. |
468 Private method to create the Edit actions. |
462 """ |
469 """ |
463 self.undoAct = E5Action(self.trUtf8('Undo'), |
470 self.undoAct = E5Action( |
464 UI.PixmapCache.getIcon("editUndo.png"), |
471 self.trUtf8('Undo'), |
465 self.trUtf8('&Undo'), |
472 UI.PixmapCache.getIcon("editUndo.png"), |
466 QKeySequence(self.trUtf8("Ctrl+Z", "Edit|Undo")), |
473 self.trUtf8('&Undo'), |
467 QKeySequence(self.trUtf8("Alt+Backspace", "Edit|Undo")), |
474 QKeySequence(self.trUtf8("Ctrl+Z", "Edit|Undo")), |
468 self, 'vm_edit_undo') |
475 QKeySequence(self.trUtf8("Alt+Backspace", "Edit|Undo")), |
|
476 self, 'vm_edit_undo') |
469 self.undoAct.setStatusTip(self.trUtf8('Undo the last change')) |
477 self.undoAct.setStatusTip(self.trUtf8('Undo the last change')) |
470 self.undoAct.setWhatsThis(self.trUtf8( |
478 self.undoAct.setWhatsThis(self.trUtf8( |
471 """<b>Undo</b>""" |
479 """<b>Undo</b>""" |
472 """<p>Undo the last change done in the current editor.</p>""" |
480 """<p>Undo the last change done in the current editor.</p>""" |
473 )) |
481 )) |
474 self.undoAct.triggered[()].connect(self.__undo) |
482 self.undoAct.triggered[()].connect(self.__undo) |
475 self.editActions.append(self.undoAct) |
483 self.editActions.append(self.undoAct) |
476 |
484 |
477 self.redoAct = E5Action(self.trUtf8('Redo'), |
485 self.redoAct = E5Action( |
478 UI.PixmapCache.getIcon("editRedo.png"), |
486 self.trUtf8('Redo'), |
479 self.trUtf8('&Redo'), |
487 UI.PixmapCache.getIcon("editRedo.png"), |
480 QKeySequence(self.trUtf8("Ctrl+Shift+Z", "Edit|Redo")), |
488 self.trUtf8('&Redo'), |
481 0, self, 'vm_edit_redo') |
489 QKeySequence(self.trUtf8("Ctrl+Shift+Z", "Edit|Redo")), |
|
490 0, self, 'vm_edit_redo') |
482 self.redoAct.setStatusTip(self.trUtf8('Redo the last change')) |
491 self.redoAct.setStatusTip(self.trUtf8('Redo the last change')) |
483 self.redoAct.setWhatsThis(self.trUtf8( |
492 self.redoAct.setWhatsThis(self.trUtf8( |
484 """<b>Redo</b>""" |
493 """<b>Redo</b>""" |
485 """<p>Redo the last change done in the current editor.</p>""" |
494 """<p>Redo the last change done in the current editor.</p>""" |
486 )) |
495 )) |
487 self.redoAct.triggered[()].connect(self.__redo) |
496 self.redoAct.triggered[()].connect(self.__redo) |
488 self.editActions.append(self.redoAct) |
497 self.editActions.append(self.redoAct) |
489 |
498 |
490 self.cutAct = E5Action(self.trUtf8('Cut'), |
499 self.cutAct = E5Action( |
491 UI.PixmapCache.getIcon("editCut.png"), |
500 self.trUtf8('Cut'), |
492 self.trUtf8('Cu&t'), |
501 UI.PixmapCache.getIcon("editCut.png"), |
493 QKeySequence(self.trUtf8("Ctrl+X", "Edit|Cut")), |
502 self.trUtf8('Cu&t'), |
494 QKeySequence(self.trUtf8("Shift+Del", "Edit|Cut")), |
503 QKeySequence(self.trUtf8("Ctrl+X", "Edit|Cut")), |
495 self, 'vm_edit_cut') |
504 QKeySequence(self.trUtf8("Shift+Del", "Edit|Cut")), |
|
505 self, 'vm_edit_cut') |
496 self.cutAct.setStatusTip(self.trUtf8('Cut the selection')) |
506 self.cutAct.setStatusTip(self.trUtf8('Cut the selection')) |
497 self.cutAct.setWhatsThis(self.trUtf8( |
507 self.cutAct.setWhatsThis(self.trUtf8( |
498 """<b>Cut</b>""" |
508 """<b>Cut</b>""" |
499 """<p>Cut the selected text of the current editor to the""" |
509 """<p>Cut the selected text of the current editor to the""" |
500 """ clipboard.</p>""" |
510 """ clipboard.</p>""" |
501 )) |
511 )) |
502 self.cutAct.triggered[()].connect(self.__textEdit.cut) |
512 self.cutAct.triggered[()].connect(self.__textEdit.cut) |
503 self.editActions.append(self.cutAct) |
513 self.editActions.append(self.cutAct) |
504 |
514 |
505 self.copyAct = E5Action(self.trUtf8('Copy'), |
515 self.copyAct = E5Action( |
506 UI.PixmapCache.getIcon("editCopy.png"), |
516 self.trUtf8('Copy'), |
507 self.trUtf8('&Copy'), |
517 UI.PixmapCache.getIcon("editCopy.png"), |
508 QKeySequence(self.trUtf8("Ctrl+C", "Edit|Copy")), |
518 self.trUtf8('&Copy'), |
509 QKeySequence(self.trUtf8("Ctrl+Ins", "Edit|Copy")), |
519 QKeySequence(self.trUtf8("Ctrl+C", "Edit|Copy")), |
510 self, 'vm_edit_copy') |
520 QKeySequence(self.trUtf8("Ctrl+Ins", "Edit|Copy")), |
|
521 self, 'vm_edit_copy') |
511 self.copyAct.setStatusTip(self.trUtf8('Copy the selection')) |
522 self.copyAct.setStatusTip(self.trUtf8('Copy the selection')) |
512 self.copyAct.setWhatsThis(self.trUtf8( |
523 self.copyAct.setWhatsThis(self.trUtf8( |
513 """<b>Copy</b>""" |
524 """<b>Copy</b>""" |
514 """<p>Copy the selected text of the current editor to the""" |
525 """<p>Copy the selected text of the current editor to the""" |
515 """ clipboard.</p>""" |
526 """ clipboard.</p>""" |
516 )) |
527 )) |
517 self.copyAct.triggered[()].connect(self.__textEdit.copy) |
528 self.copyAct.triggered[()].connect(self.__textEdit.copy) |
518 self.editActions.append(self.copyAct) |
529 self.editActions.append(self.copyAct) |
519 |
530 |
520 self.pasteAct = E5Action(self.trUtf8('Paste'), |
531 self.pasteAct = E5Action( |
521 UI.PixmapCache.getIcon("editPaste.png"), |
532 self.trUtf8('Paste'), |
522 self.trUtf8('&Paste'), |
533 UI.PixmapCache.getIcon("editPaste.png"), |
523 QKeySequence(self.trUtf8("Ctrl+V", "Edit|Paste")), |
534 self.trUtf8('&Paste'), |
524 QKeySequence(self.trUtf8("Shift+Ins", "Edit|Paste")), |
535 QKeySequence(self.trUtf8("Ctrl+V", "Edit|Paste")), |
525 self, 'vm_edit_paste') |
536 QKeySequence(self.trUtf8("Shift+Ins", "Edit|Paste")), |
|
537 self, 'vm_edit_paste') |
526 self.pasteAct.setStatusTip(self.trUtf8( |
538 self.pasteAct.setStatusTip(self.trUtf8( |
527 'Paste the last cut/copied text')) |
539 'Paste the last cut/copied text')) |
528 self.pasteAct.setWhatsThis(self.trUtf8( |
540 self.pasteAct.setWhatsThis(self.trUtf8( |
529 """<b>Paste</b>""" |
541 """<b>Paste</b>""" |
530 """<p>Paste the last cut/copied text from the clipboard to""" |
542 """<p>Paste the last cut/copied text from the clipboard to""" |
531 """ the current editor.</p>""" |
543 """ the current editor.</p>""" |
532 )) |
544 )) |
533 self.pasteAct.triggered[()].connect(self.__textEdit.paste) |
545 self.pasteAct.triggered[()].connect(self.__textEdit.paste) |
534 self.editActions.append(self.pasteAct) |
546 self.editActions.append(self.pasteAct) |
535 |
547 |
536 self.deleteAct = E5Action(self.trUtf8('Clear'), |
548 self.deleteAct = E5Action( |
537 UI.PixmapCache.getIcon("editDelete.png"), |
549 self.trUtf8('Clear'), |
538 self.trUtf8('Cl&ear'), |
550 UI.PixmapCache.getIcon("editDelete.png"), |
539 QKeySequence(self.trUtf8("Alt+Shift+C", "Edit|Clear")), |
551 self.trUtf8('Cl&ear'), |
540 0, |
552 QKeySequence(self.trUtf8("Alt+Shift+C", "Edit|Clear")), |
541 self, 'vm_edit_clear') |
553 0, |
|
554 self, 'vm_edit_clear') |
542 self.deleteAct.setStatusTip(self.trUtf8('Clear all text')) |
555 self.deleteAct.setStatusTip(self.trUtf8('Clear all text')) |
543 self.deleteAct.setWhatsThis(self.trUtf8( |
556 self.deleteAct.setWhatsThis(self.trUtf8( |
544 """<b>Clear</b>""" |
557 """<b>Clear</b>""" |
545 """<p>Delete all text of the current editor.</p>""" |
558 """<p>Delete all text of the current editor.</p>""" |
546 )) |
559 )) |
661 QApplication.translate('ViewManager', 'Ctrl+Right'))) |
674 QApplication.translate('ViewManager', 'Ctrl+Right'))) |
662 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT) |
675 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT) |
663 act.triggered[()].connect(self.esm.map) |
676 act.triggered[()].connect(self.esm.map) |
664 self.editActions.append(act) |
677 self.editActions.append(act) |
665 |
678 |
666 act = E5Action(QApplication.translate('ViewManager', |
679 act = E5Action( |
667 'Move to first visible character in document line'), |
680 QApplication.translate( |
668 QApplication.translate('ViewManager', |
681 'ViewManager', |
669 'Move to first visible character in document line'), |
682 'Move to first visible character in document line'), |
670 0, 0, |
683 QApplication.translate( |
671 self.editorActGrp, 'vm_edit_move_first_visible_char') |
684 'ViewManager', |
|
685 'Move to first visible character in document line'), |
|
686 0, 0, |
|
687 self.editorActGrp, 'vm_edit_move_first_visible_char') |
672 if not isMacPlatform(): |
688 if not isMacPlatform(): |
673 act.setShortcut(QKeySequence( |
689 act.setShortcut(QKeySequence( |
674 QApplication.translate('ViewManager', 'Home'))) |
690 QApplication.translate('ViewManager', 'Home'))) |
675 self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) |
691 self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) |
676 act.triggered[()].connect(self.esm.map) |
692 act.triggered[()].connect(self.esm.map) |
677 self.editActions.append(act) |
693 self.editActions.append(act) |
678 |
694 |
679 act = E5Action(QApplication.translate('ViewManager', |
695 act = E5Action( |
680 'Move to start of display line'), |
696 QApplication.translate( |
681 QApplication.translate('ViewManager', |
697 'ViewManager', |
682 'Move to start of display line'), |
698 'Move to start of display line'), |
683 0, 0, |
699 QApplication.translate( |
684 self.editorActGrp, 'vm_edit_move_start_line') |
700 'ViewManager', |
|
701 'Move to start of display line'), |
|
702 0, 0, |
|
703 self.editorActGrp, 'vm_edit_move_start_line') |
685 if isMacPlatform(): |
704 if isMacPlatform(): |
686 act.setShortcut(QKeySequence( |
705 act.setShortcut(QKeySequence( |
687 QApplication.translate('ViewManager', 'Ctrl+Left'))) |
706 QApplication.translate('ViewManager', 'Ctrl+Left'))) |
688 else: |
707 else: |
689 act.setShortcut(QKeySequence( |
708 act.setShortcut(QKeySequence( |
690 QApplication.translate('ViewManager', 'Alt+Home'))) |
709 QApplication.translate('ViewManager', 'Alt+Home'))) |
691 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY) |
710 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY) |
692 act.triggered[()].connect(self.esm.map) |
711 act.triggered[()].connect(self.esm.map) |
693 self.editActions.append(act) |
712 self.editActions.append(act) |
694 |
713 |
695 act = E5Action(QApplication.translate('ViewManager', |
714 act = E5Action( |
696 'Move to end of document line'), |
715 QApplication.translate( |
697 QApplication.translate('ViewManager', |
716 'ViewManager', |
698 'Move to end of document line'), |
717 'Move to end of document line'), |
699 0, 0, |
718 QApplication.translate( |
700 self.editorActGrp, 'vm_edit_move_end_line') |
719 'ViewManager', |
|
720 'Move to end of document line'), |
|
721 0, 0, |
|
722 self.editorActGrp, 'vm_edit_move_end_line') |
701 if isMacPlatform(): |
723 if isMacPlatform(): |
702 act.setShortcut(QKeySequence( |
724 act.setShortcut(QKeySequence( |
703 QApplication.translate('ViewManager', 'Meta+E'))) |
725 QApplication.translate('ViewManager', 'Meta+E'))) |
704 else: |
726 else: |
705 act.setShortcut(QKeySequence( |
727 act.setShortcut(QKeySequence( |
906 QApplication.translate('ViewManager', 'Alt+Shift+Right'))) |
928 QApplication.translate('ViewManager', 'Alt+Shift+Right'))) |
907 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHTEXTEND) |
929 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHTEXTEND) |
908 act.triggered[()].connect(self.esm.map) |
930 act.triggered[()].connect(self.esm.map) |
909 self.editActions.append(act) |
931 self.editActions.append(act) |
910 |
932 |
911 act = E5Action(QApplication.translate('ViewManager', |
933 act = E5Action( |
912 'Extend selection left one word'), |
934 QApplication.translate( |
913 QApplication.translate('ViewManager', |
935 'ViewManager', 'Extend selection left one word'), |
914 'Extend selection left one word'), |
936 QApplication.translate( |
915 0, 0, |
937 'ViewManager', 'Extend selection left one word'), |
916 self.editorActGrp, 'vm_edit_extend_selection_left_word') |
938 0, 0, |
|
939 self.editorActGrp, 'vm_edit_extend_selection_left_word') |
917 if isMacPlatform(): |
940 if isMacPlatform(): |
918 act.setShortcut(QKeySequence( |
941 act.setShortcut(QKeySequence( |
919 QApplication.translate('ViewManager', 'Alt+Shift+Left'))) |
942 QApplication.translate('ViewManager', 'Alt+Shift+Left'))) |
920 else: |
943 else: |
921 act.setShortcut(QKeySequence( |
944 act.setShortcut(QKeySequence( |
922 QApplication.translate('ViewManager', 'Ctrl+Shift+Left'))) |
945 QApplication.translate('ViewManager', 'Ctrl+Shift+Left'))) |
923 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEXTEND) |
946 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEXTEND) |
924 act.triggered[()].connect(self.esm.map) |
947 act.triggered[()].connect(self.esm.map) |
925 self.editActions.append(act) |
948 self.editActions.append(act) |
926 |
949 |
927 act = E5Action(QApplication.translate('ViewManager', |
950 act = E5Action( |
928 'Extend selection right one word'), |
951 QApplication.translate( |
929 QApplication.translate('ViewManager', |
952 'ViewManager', 'Extend selection right one word'), |
930 'Extend selection right one word'), |
953 QApplication.translate( |
931 0, 0, |
954 'ViewManager', 'Extend selection right one word'), |
932 self.editorActGrp, 'vm_edit_extend_selection_right_word') |
955 0, 0, |
|
956 self.editorActGrp, 'vm_edit_extend_selection_right_word') |
933 if isMacPlatform(): |
957 if isMacPlatform(): |
934 act.setShortcut(QKeySequence( |
958 act.setShortcut(QKeySequence( |
935 QApplication.translate('ViewManager', 'Alt+Shift+Right'))) |
959 QApplication.translate('ViewManager', 'Alt+Shift+Right'))) |
936 else: |
960 else: |
937 act.setShortcut(QKeySequence( |
961 act.setShortcut(QKeySequence( |
1028 QApplication.translate('ViewManager', 'Meta+Shift+V'))) |
1054 QApplication.translate('ViewManager', 'Meta+Shift+V'))) |
1029 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNEXTEND) |
1055 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNEXTEND) |
1030 act.triggered[()].connect(self.esm.map) |
1056 act.triggered[()].connect(self.esm.map) |
1031 self.editActions.append(act) |
1057 self.editActions.append(act) |
1032 |
1058 |
1033 act = E5Action(QApplication.translate('ViewManager', |
1059 act = E5Action( |
1034 'Extend selection to start of document'), |
1060 QApplication.translate( |
1035 QApplication.translate('ViewManager', |
1061 'ViewManager', 'Extend selection to start of document'), |
1036 'Extend selection to start of document'), |
1062 QApplication.translate( |
1037 0, 0, |
1063 'ViewManager', 'Extend selection to start of document'), |
1038 self.editorActGrp, 'vm_edit_extend_selection_start_text') |
1064 0, 0, |
|
1065 self.editorActGrp, 'vm_edit_extend_selection_start_text') |
1039 if isMacPlatform(): |
1066 if isMacPlatform(): |
1040 act.setShortcut(QKeySequence( |
1067 act.setShortcut(QKeySequence( |
1041 QApplication.translate('ViewManager', 'Ctrl+Shift+Up'))) |
1068 QApplication.translate('ViewManager', 'Ctrl+Shift+Up'))) |
1042 else: |
1069 else: |
1043 act.setShortcut(QKeySequence( |
1070 act.setShortcut(QKeySequence( |
1044 QApplication.translate('ViewManager', 'Ctrl+Shift+Home'))) |
1071 QApplication.translate('ViewManager', 'Ctrl+Shift+Home'))) |
1045 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTARTEXTEND) |
1072 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTARTEXTEND) |
1046 act.triggered[()].connect(self.esm.map) |
1073 act.triggered[()].connect(self.esm.map) |
1047 self.editActions.append(act) |
1074 self.editActions.append(act) |
1048 |
1075 |
1049 act = E5Action(QApplication.translate('ViewManager', |
1076 act = E5Action( |
1050 'Extend selection to end of document'), |
1077 QApplication.translate( |
1051 QApplication.translate('ViewManager', |
1078 'ViewManager', 'Extend selection to end of document'), |
1052 'Extend selection to end of document'), |
1079 QApplication.translate( |
1053 0, 0, |
1080 'ViewManager', 'Extend selection to end of document'), |
1054 self.editorActGrp, 'vm_edit_extend_selection_end_text') |
1081 0, 0, |
|
1082 self.editorActGrp, 'vm_edit_extend_selection_end_text') |
1055 if isMacPlatform(): |
1083 if isMacPlatform(): |
1056 act.setShortcut(QKeySequence( |
1084 act.setShortcut(QKeySequence( |
1057 QApplication.translate('ViewManager', 'Ctrl+Shift+Down'))) |
1085 QApplication.translate('ViewManager', 'Ctrl+Shift+Down'))) |
1058 else: |
1086 else: |
1059 act.setShortcut(QKeySequence( |
1087 act.setShortcut(QKeySequence( |
1440 self.esm.setMapping(act, QsciScintilla.SCI_SELECTIONDUPLICATE) |
1473 self.esm.setMapping(act, QsciScintilla.SCI_SELECTIONDUPLICATE) |
1441 act.triggered[()].connect(self.esm.map) |
1474 act.triggered[()].connect(self.esm.map) |
1442 self.editActions.append(act) |
1475 self.editActions.append(act) |
1443 |
1476 |
1444 if hasattr(QsciScintilla, "SCI_SCROLLTOSTART"): |
1477 if hasattr(QsciScintilla, "SCI_SCROLLTOSTART"): |
1445 act = E5Action(QApplication.translate('ViewManager', |
1478 act = E5Action( |
1446 'Scroll to start of document'), |
1479 QApplication.translate( |
1447 QApplication.translate('ViewManager', |
1480 'ViewManager', 'Scroll to start of document'), |
1448 'Scroll to start of document'), |
1481 QApplication.translate( |
1449 0, 0, |
1482 'ViewManager', 'Scroll to start of document'), |
1450 self.editorActGrp, 'vm_edit_scroll_start_text') |
1483 0, 0, |
|
1484 self.editorActGrp, 'vm_edit_scroll_start_text') |
1451 if isMacPlatform(): |
1485 if isMacPlatform(): |
1452 act.setShortcut(QKeySequence( |
1486 act.setShortcut(QKeySequence( |
1453 QApplication.translate('ViewManager', 'Home'))) |
1487 QApplication.translate('ViewManager', 'Home'))) |
1454 self.esm.setMapping(act, QsciScintilla.SCI_SCROLLTOSTART) |
1488 self.esm.setMapping(act, QsciScintilla.SCI_SCROLLTOSTART) |
1455 act.triggered[()].connect(self.esm.map) |
1489 act.triggered[()].connect(self.esm.map) |
1456 self.editActions.append(act) |
1490 self.editActions.append(act) |
1457 |
1491 |
1458 if hasattr(QsciScintilla, "SCI_SCROLLTOEND"): |
1492 if hasattr(QsciScintilla, "SCI_SCROLLTOEND"): |
1459 act = E5Action(QApplication.translate('ViewManager', |
1493 act = E5Action( |
1460 'Scroll to end of document'), |
1494 QApplication.translate( |
1461 QApplication.translate('ViewManager', |
1495 'ViewManager', 'Scroll to end of document'), |
1462 'Scroll to end of document'), |
1496 QApplication.translate( |
1463 0, 0, |
1497 'ViewManager', 'Scroll to end of document'), |
1464 self.editorActGrp, 'vm_edit_scroll_end_text') |
1498 0, 0, |
|
1499 self.editorActGrp, 'vm_edit_scroll_end_text') |
1465 if isMacPlatform(): |
1500 if isMacPlatform(): |
1466 act.setShortcut(QKeySequence( |
1501 act.setShortcut(QKeySequence( |
1467 QApplication.translate('ViewManager', 'End'))) |
1502 QApplication.translate('ViewManager', 'End'))) |
1468 self.esm.setMapping(act, QsciScintilla.SCI_SCROLLTOEND) |
1503 self.esm.setMapping(act, QsciScintilla.SCI_SCROLLTOEND) |
1469 act.triggered[()].connect(self.esm.map) |
1504 act.triggered[()].connect(self.esm.map) |
1470 self.editActions.append(act) |
1505 self.editActions.append(act) |
1471 |
1506 |
1472 if hasattr(QsciScintilla, "SCI_VERTICALCENTRECARET"): |
1507 if hasattr(QsciScintilla, "SCI_VERTICALCENTRECARET"): |
1473 act = E5Action(QApplication.translate('ViewManager', |
1508 act = E5Action( |
1474 'Scroll vertically to center current line'), |
1509 QApplication.translate( |
1475 QApplication.translate('ViewManager', |
1510 'ViewManager', 'Scroll vertically to center current line'), |
1476 'Scroll vertically to center current line'), |
1511 QApplication.translate( |
1477 0, 0, |
1512 'ViewManager', 'Scroll vertically to center current line'), |
1478 self.editorActGrp, 'vm_edit_scroll_vertically_center') |
1513 0, 0, |
|
1514 self.editorActGrp, 'vm_edit_scroll_vertically_center') |
1479 if isMacPlatform(): |
1515 if isMacPlatform(): |
1480 act.setShortcut(QKeySequence( |
1516 act.setShortcut(QKeySequence( |
1481 QApplication.translate('ViewManager', 'Meta+L'))) |
1517 QApplication.translate('ViewManager', 'Meta+L'))) |
1482 self.esm.setMapping(act, QsciScintilla.SCI_VERTICALCENTRECARET) |
1518 self.esm.setMapping(act, QsciScintilla.SCI_VERTICALCENTRECARET) |
1483 act.triggered[()].connect(self.esm.map) |
1519 act.triggered[()].connect(self.esm.map) |
1484 self.editActions.append(act) |
1520 self.editActions.append(act) |
1485 |
1521 |
1486 if hasattr(QsciScintilla, "SCI_WORDRIGHTEND"): |
1522 if hasattr(QsciScintilla, "SCI_WORDRIGHTEND"): |
1487 act = E5Action(QApplication.translate('ViewManager', |
1523 act = E5Action( |
1488 'Move to end of next word'), |
1524 QApplication.translate( |
1489 QApplication.translate('ViewManager', |
1525 'ViewManager', 'Move to end of next word'), |
1490 'Move to end of next word'), |
1526 QApplication.translate( |
1491 0, 0, |
1527 'ViewManager', 'Move to end of next word'), |
1492 self.editorActGrp, 'vm_edit_move_end_next_word') |
1528 0, 0, |
|
1529 self.editorActGrp, 'vm_edit_move_end_next_word') |
1493 if isMacPlatform(): |
1530 if isMacPlatform(): |
1494 act.setShortcut(QKeySequence( |
1531 act.setShortcut(QKeySequence( |
1495 QApplication.translate('ViewManager', 'Alt+Right'))) |
1532 QApplication.translate('ViewManager', 'Alt+Right'))) |
1496 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEND) |
1533 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEND) |
1497 act.triggered[()].connect(self.esm.map) |
1534 act.triggered[()].connect(self.esm.map) |
1498 self.editActions.append(act) |
1535 self.editActions.append(act) |
1499 |
1536 |
1500 if hasattr(QsciScintilla, "SCI_WORDRIGHTENDEXTEND"): |
1537 if hasattr(QsciScintilla, "SCI_WORDRIGHTENDEXTEND"): |
1501 act = E5Action(QApplication.translate('ViewManager', |
1538 act = E5Action( |
1502 'Extend selection to end of next word'), |
1539 QApplication.translate( |
1503 QApplication.translate('ViewManager', |
1540 'ViewManager', 'Extend selection to end of next word'), |
1504 'Extend selection to end of next word'), |
1541 QApplication.translate( |
1505 0, 0, |
1542 'ViewManager', 'Extend selection to end of next word'), |
1506 self.editorActGrp, 'vm_edit_select_end_next_word') |
1543 0, 0, |
|
1544 self.editorActGrp, 'vm_edit_select_end_next_word') |
1507 if isMacPlatform(): |
1545 if isMacPlatform(): |
1508 act.setShortcut(QKeySequence( |
1546 act.setShortcut(QKeySequence( |
1509 QApplication.translate('ViewManager', 'Alt+Shift+Right'))) |
1547 QApplication.translate('ViewManager', 'Alt+Shift+Right'))) |
1510 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTENDEXTEND) |
1548 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTENDEXTEND) |
1511 act.triggered[()].connect(self.esm.map) |
1549 act.triggered[()].connect(self.esm.map) |
1512 self.editActions.append(act) |
1550 self.editActions.append(act) |
1513 |
1551 |
1514 if hasattr(QsciScintilla, "SCI_WORDLEFTEND"): |
1552 if hasattr(QsciScintilla, "SCI_WORDLEFTEND"): |
1515 act = E5Action(QApplication.translate('ViewManager', |
1553 act = E5Action( |
1516 'Move to end of previous word'), |
1554 QApplication.translate( |
1517 QApplication.translate('ViewManager', |
1555 'ViewManager', 'Move to end of previous word'), |
1518 'Move to end of previous word'), |
1556 QApplication.translate( |
1519 0, 0, |
1557 'ViewManager', 'Move to end of previous word'), |
1520 self.editorActGrp, 'vm_edit_move_end_previous_word') |
1558 0, 0, |
|
1559 self.editorActGrp, 'vm_edit_move_end_previous_word') |
1521 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEND) |
1560 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEND) |
1522 act.triggered[()].connect(self.esm.map) |
1561 act.triggered[()].connect(self.esm.map) |
1523 self.editActions.append(act) |
1562 self.editActions.append(act) |
1524 |
1563 |
1525 if hasattr(QsciScintilla, "SCI_WORDLEFTENDEXTEND"): |
1564 if hasattr(QsciScintilla, "SCI_WORDLEFTENDEXTEND"): |
1526 act = E5Action(QApplication.translate('ViewManager', |
1565 act = E5Action( |
1527 'Extend selection to end of previous word'), |
1566 QApplication.translate( |
1528 QApplication.translate('ViewManager', |
1567 'ViewManager', 'Extend selection to end of previous word'), |
1529 'Extend selection to end of previous word'), |
1568 QApplication.translate( |
1530 0, 0, |
1569 'ViewManager', 'Extend selection to end of previous word'), |
1531 self.editorActGrp, 'vm_edit_select_end_previous_word') |
1570 0, 0, |
|
1571 self.editorActGrp, 'vm_edit_select_end_previous_word') |
1532 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTENDEXTEND) |
1572 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTENDEXTEND) |
1533 act.triggered[()].connect(self.esm.map) |
1573 act.triggered[()].connect(self.esm.map) |
1534 self.editActions.append(act) |
1574 self.editActions.append(act) |
1535 |
1575 |
1536 if hasattr(QsciScintilla, "SCI_HOME"): |
1576 if hasattr(QsciScintilla, "SCI_HOME"): |
1537 act = E5Action(QApplication.translate('ViewManager', |
1577 act = E5Action( |
1538 'Move to start of document line'), |
1578 QApplication.translate( |
1539 QApplication.translate('ViewManager', |
1579 'ViewManager', 'Move to start of document line'), |
1540 'Move to start of document line'), |
1580 QApplication.translate( |
1541 0, 0, |
1581 'ViewManager', 'Move to start of document line'), |
1542 self.editorActGrp, 'vm_edit_move_start_document_line') |
1582 0, 0, |
|
1583 self.editorActGrp, 'vm_edit_move_start_document_line') |
1543 if isMacPlatform(): |
1584 if isMacPlatform(): |
1544 act.setShortcut(QKeySequence( |
1585 act.setShortcut(QKeySequence( |
1545 QApplication.translate('ViewManager', 'Meta+A'))) |
1586 QApplication.translate('ViewManager', 'Meta+A'))) |
1546 self.esm.setMapping(act, QsciScintilla.SCI_HOME) |
1587 self.esm.setMapping(act, QsciScintilla.SCI_HOME) |
1547 act.triggered[()].connect(self.esm.map) |
1588 act.triggered[()].connect(self.esm.map) |
1813 QApplication.translate('ViewManager', '&Search...'), |
1859 QApplication.translate('ViewManager', '&Search...'), |
1814 QKeySequence(QApplication.translate( |
1860 QKeySequence(QApplication.translate( |
1815 'ViewManager', "Ctrl+F", "Search|Search")), |
1861 'ViewManager', "Ctrl+F", "Search|Search")), |
1816 0, |
1862 0, |
1817 self, 'vm_search') |
1863 self, 'vm_search') |
1818 self.searchAct.setStatusTip(QApplication.translate('ViewManager', |
1864 self.searchAct.setStatusTip( |
1819 'Search for a text')) |
1865 QApplication.translate('ViewManager', 'Search for a text')) |
1820 self.searchAct.setWhatsThis(QApplication.translate('ViewManager', |
1866 self.searchAct.setWhatsThis(QApplication.translate( |
|
1867 'ViewManager', |
1821 """<b>Search</b>""" |
1868 """<b>Search</b>""" |
1822 """<p>Search for some text in the current editor. A""" |
1869 """<p>Search for some text in the current editor. A""" |
1823 """ dialog is shown to enter the searchtext and options""" |
1870 """ dialog is shown to enter the searchtext and options""" |
1824 """ for the search.</p>""" |
1871 """ for the search.</p>""" |
1825 )) |
1872 )) |
1826 self.searchAct.triggered[()].connect(self.__search) |
1873 self.searchAct.triggered[()].connect(self.__search) |
1827 self.searchActions.append(self.searchAct) |
1874 self.searchActions.append(self.searchAct) |
1828 |
1875 |
1829 self.searchNextAct = E5Action(QApplication.translate('ViewManager', |
1876 self.searchNextAct = E5Action( |
1830 'Search next'), |
1877 QApplication.translate('ViewManager', 'Search next'), |
1831 UI.PixmapCache.getIcon("findNext.png"), |
1878 UI.PixmapCache.getIcon("findNext.png"), |
1832 QApplication.translate('ViewManager', 'Search &next'), |
1879 QApplication.translate('ViewManager', 'Search &next'), |
1833 QKeySequence(QApplication.translate('ViewManager', |
1880 QKeySequence(QApplication.translate( |
1834 "F3", "Search|Search next")), |
1881 'ViewManager', "F3", "Search|Search next")), |
1835 0, |
1882 0, |
1836 self, 'vm_search_next') |
1883 self, 'vm_search_next') |
1837 self.searchNextAct.setStatusTip(QApplication.translate('ViewManager', |
1884 self.searchNextAct.setStatusTip(QApplication.translate( |
1838 'Search next occurrence of text')) |
1885 'ViewManager', 'Search next occurrence of text')) |
1839 self.searchNextAct.setWhatsThis(QApplication.translate('ViewManager', |
1886 self.searchNextAct.setWhatsThis(QApplication.translate( |
|
1887 'ViewManager', |
1840 """<b>Search next</b>""" |
1888 """<b>Search next</b>""" |
1841 """<p>Search the next occurrence of some text in the current""" |
1889 """<p>Search the next occurrence of some text in the current""" |
1842 """ editor. The previously entered searchtext and options are""" |
1890 """ editor. The previously entered searchtext and options are""" |
1843 """ reused.</p>""" |
1891 """ reused.</p>""" |
1844 )) |
1892 )) |
1845 self.searchNextAct.triggered[()].connect(self.searchDlg.findNext) |
1893 self.searchNextAct.triggered[()].connect(self.searchDlg.findNext) |
1846 self.searchActions.append(self.searchNextAct) |
1894 self.searchActions.append(self.searchNextAct) |
1847 |
1895 |
1848 self.searchPrevAct = E5Action(QApplication.translate('ViewManager', |
1896 self.searchPrevAct = E5Action( |
1849 'Search previous'), |
1897 QApplication.translate('ViewManager', 'Search previous'), |
1850 UI.PixmapCache.getIcon("findPrev.png"), |
1898 UI.PixmapCache.getIcon("findPrev.png"), |
1851 QApplication.translate('ViewManager', 'Search &previous'), |
1899 QApplication.translate('ViewManager', 'Search &previous'), |
1852 QKeySequence(QApplication.translate('ViewManager', |
1900 QKeySequence(QApplication.translate( |
1853 "Shift+F3", "Search|Search previous")), |
1901 'ViewManager', "Shift+F3", "Search|Search previous")), |
1854 0, |
1902 0, |
1855 self, 'vm_search_previous') |
1903 self, 'vm_search_previous') |
1856 self.searchPrevAct.setStatusTip(QApplication.translate('ViewManager', |
1904 self.searchPrevAct.setStatusTip(QApplication.translate( |
1857 'Search previous occurrence of text')) |
1905 'ViewManager', 'Search previous occurrence of text')) |
1858 self.searchPrevAct.setWhatsThis(QApplication.translate('ViewManager', |
1906 self.searchPrevAct.setWhatsThis(QApplication.translate( |
|
1907 'ViewManager', |
1859 """<b>Search previous</b>""" |
1908 """<b>Search previous</b>""" |
1860 """<p>Search the previous occurrence of some text in the""" |
1909 """<p>Search the previous occurrence of some text in the""" |
1861 """ current editor. The previously entered searchtext and""" |
1910 """ current editor. The previously entered searchtext and""" |
1862 """ options are reused.</p>""" |
1911 """ options are reused.</p>""" |
1863 )) |
1912 )) |
1904 |
1954 |
1905 def __createHelpActions(self): |
1955 def __createHelpActions(self): |
1906 """ |
1956 """ |
1907 Private method to create the Help actions. |
1957 Private method to create the Help actions. |
1908 """ |
1958 """ |
1909 self.aboutAct = E5Action(self.trUtf8('About'), |
1959 self.aboutAct = E5Action( |
1910 self.trUtf8('&About'), |
1960 self.trUtf8('About'), |
1911 0, 0, self, 'about_eric') |
1961 self.trUtf8('&About'), |
|
1962 0, 0, self, 'about_eric') |
1912 self.aboutAct.setStatusTip(self.trUtf8( |
1963 self.aboutAct.setStatusTip(self.trUtf8( |
1913 'Display information about this software')) |
1964 'Display information about this software')) |
1914 self.aboutAct.setWhatsThis(self.trUtf8( |
1965 self.aboutAct.setWhatsThis(self.trUtf8( |
1915 """<b>About</b>""" |
1966 """<b>About</b>""" |
1916 """<p>Display some information about this software.</p>""")) |
1967 """<p>Display some information about this software.</p>""")) |
1917 self.aboutAct.triggered[()].connect(self.__about) |
1968 self.aboutAct.triggered[()].connect(self.__about) |
1918 self.helpActions.append(self.aboutAct) |
1969 self.helpActions.append(self.aboutAct) |
1919 |
1970 |
1920 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
1971 self.aboutQtAct = E5Action( |
1921 self.trUtf8('About &Qt'), 0, 0, self, 'about_qt') |
1972 self.trUtf8('About Qt'), |
|
1973 self.trUtf8('About &Qt'), |
|
1974 0, 0, self, 'about_qt') |
1922 self.aboutQtAct.setStatusTip( |
1975 self.aboutQtAct.setStatusTip( |
1923 self.trUtf8('Display information about the Qt toolkit')) |
1976 self.trUtf8('Display information about the Qt toolkit')) |
1924 self.aboutQtAct.setWhatsThis(self.trUtf8( |
1977 self.aboutQtAct.setWhatsThis(self.trUtf8( |
1925 """<b>About Qt</b>""" |
1978 """<b>About Qt</b>""" |
1926 """<p>Display some information about the Qt toolkit.</p>""" |
1979 """<p>Display some information about the Qt toolkit.</p>""" |
1927 )) |
1980 )) |
1928 self.aboutQtAct.triggered[()].connect(self.__aboutQt) |
1981 self.aboutQtAct.triggered[()].connect(self.__aboutQt) |
1929 self.helpActions.append(self.aboutQtAct) |
1982 self.helpActions.append(self.aboutQtAct) |
1930 |
1983 |
1931 self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'), |
1984 self.whatsThisAct = E5Action( |
|
1985 self.trUtf8('What\'s This?'), |
1932 UI.PixmapCache.getIcon("whatsThis.png"), |
1986 UI.PixmapCache.getIcon("whatsThis.png"), |
1933 self.trUtf8('&What\'s This?'), |
1987 self.trUtf8('&What\'s This?'), |
1934 QKeySequence(self.trUtf8("Shift+F1", "Help|What's This?'")), |
1988 QKeySequence(self.trUtf8("Shift+F1", "Help|What's This?'")), |
1935 0, self, 'help_help_whats_this') |
1989 0, self, 'help_help_whats_this') |
1936 self.whatsThisAct.setStatusTip(self.trUtf8('Context sensitive help')) |
1990 self.whatsThisAct.setStatusTip(self.trUtf8('Context sensitive help')) |