QScintilla/MiniEditor.py

changeset 55
b5c84934de9c
parent 53
c3eb7cc1ff8b
child 97
c4086afea02b
equal deleted inserted replaced
54:31463df17fd5 55:b5c84934de9c
13 13
14 from PyQt4.QtCore import * 14 from PyQt4.QtCore import *
15 from PyQt4.QtGui import * 15 from PyQt4.QtGui import *
16 from PyQt4.Qsci import QsciScintilla 16 from PyQt4.Qsci import QsciScintilla
17 17
18 from E4Gui.E4Application import e5App 18 from E5Gui.E5Application import e5App
19 from E4Gui.E4Action import E4Action, createActionGroup 19 from E5Gui.E5Action import E5Action, createActionGroup
20 20
21 from . import Lexers 21 from . import Lexers
22 from .QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION 22 from .QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION
23 from .SearchReplaceWidget import SearchReplaceWidget 23 from .SearchReplaceWidget import SearchReplaceWidget
24 24
303 303
304 def __readShortcut(self, act, category): 304 def __readShortcut(self, act, category):
305 """ 305 """
306 Private function to read a single keyboard shortcut from the settings. 306 Private function to read a single keyboard shortcut from the settings.
307 307
308 @param act reference to the action object (E4Action) 308 @param act reference to the action object (E5Action)
309 @param category category the action belongs to (string) 309 @param category category the action belongs to (string)
310 @param prefClass preferences class used as the storage area 310 @param prefClass preferences class used as the storage area
311 """ 311 """
312 if act.objectName(): 312 if act.objectName():
313 accel = Preferences.Prefs.settings.value(\ 313 accel = Preferences.Prefs.settings.value(\
346 346
347 def __createFileActions(self): 347 def __createFileActions(self):
348 """ 348 """
349 Private method to create the File actions. 349 Private method to create the File actions.
350 """ 350 """
351 self.newAct = E4Action(self.trUtf8('New'), 351 self.newAct = E5Action(self.trUtf8('New'),
352 UI.PixmapCache.getIcon("new.png"), 352 UI.PixmapCache.getIcon("new.png"),
353 self.trUtf8('&New'), 353 self.trUtf8('&New'),
354 QKeySequence(self.trUtf8("Ctrl+N", "File|New")), 354 QKeySequence(self.trUtf8("Ctrl+N", "File|New")),
355 0, self, 'vm_file_new') 355 0, self, 'vm_file_new')
356 self.newAct.setStatusTip(self.trUtf8('Open an empty editor window')) 356 self.newAct.setStatusTip(self.trUtf8('Open an empty editor window'))
359 """<p>An empty editor window will be created.</p>""" 359 """<p>An empty editor window will be created.</p>"""
360 )) 360 ))
361 self.connect(self.newAct, SIGNAL('triggered()'), self.__newFile) 361 self.connect(self.newAct, SIGNAL('triggered()'), self.__newFile)
362 self.fileActions.append(self.newAct) 362 self.fileActions.append(self.newAct)
363 363
364 self.openAct = E4Action(self.trUtf8('Open'), 364 self.openAct = E5Action(self.trUtf8('Open'),
365 UI.PixmapCache.getIcon("open.png"), 365 UI.PixmapCache.getIcon("open.png"),
366 self.trUtf8('&Open...'), 366 self.trUtf8('&Open...'),
367 QKeySequence(self.trUtf8("Ctrl+O", "File|Open")), 367 QKeySequence(self.trUtf8("Ctrl+O", "File|Open")),
368 0, self, 'vm_file_open') 368 0, self, 'vm_file_open')
369 self.openAct.setStatusTip(self.trUtf8('Open a file')) 369 self.openAct.setStatusTip(self.trUtf8('Open a file'))
372 """<p>You will be asked for the name of a file to be opened.</p>""" 372 """<p>You will be asked for the name of a file to be opened.</p>"""
373 )) 373 ))
374 self.connect(self.openAct, SIGNAL('triggered()'), self.__open) 374 self.connect(self.openAct, SIGNAL('triggered()'), self.__open)
375 self.fileActions.append(self.openAct) 375 self.fileActions.append(self.openAct)
376 376
377 self.saveAct = E4Action(self.trUtf8('Save'), 377 self.saveAct = E5Action(self.trUtf8('Save'),
378 UI.PixmapCache.getIcon("fileSave.png"), 378 UI.PixmapCache.getIcon("fileSave.png"),
379 self.trUtf8('&Save'), 379 self.trUtf8('&Save'),
380 QKeySequence(self.trUtf8("Ctrl+S", "File|Save")), 380 QKeySequence(self.trUtf8("Ctrl+S", "File|Save")),
381 0, self, 'vm_file_save') 381 0, self, 'vm_file_save')
382 self.saveAct.setStatusTip(self.trUtf8('Save the current file')) 382 self.saveAct.setStatusTip(self.trUtf8('Save the current file'))
385 """<p>Save the contents of current editor window.</p>""" 385 """<p>Save the contents of current editor window.</p>"""
386 )) 386 ))
387 self.connect(self.saveAct, SIGNAL('triggered()'), self.__save) 387 self.connect(self.saveAct, SIGNAL('triggered()'), self.__save)
388 self.fileActions.append(self.saveAct) 388 self.fileActions.append(self.saveAct)
389 389
390 self.saveAsAct = E4Action(self.trUtf8('Save as'), 390 self.saveAsAct = E5Action(self.trUtf8('Save as'),
391 UI.PixmapCache.getIcon("fileSaveAs.png"), 391 UI.PixmapCache.getIcon("fileSaveAs.png"),
392 self.trUtf8('Save &as...'), 392 self.trUtf8('Save &as...'),
393 QKeySequence(self.trUtf8("Shift+Ctrl+S", "File|Save As")), 393 QKeySequence(self.trUtf8("Shift+Ctrl+S", "File|Save As")),
394 0, self, 'vm_file_save_as') 394 0, self, 'vm_file_save_as')
395 self.saveAsAct.setStatusTip(self.trUtf8('Save the current file to a new one')) 395 self.saveAsAct.setStatusTip(self.trUtf8('Save the current file to a new one'))
399 """ The file can be entered in a file selection dialog.</p>""" 399 """ The file can be entered in a file selection dialog.</p>"""
400 )) 400 ))
401 self.connect(self.saveAsAct, SIGNAL('triggered()'), self.__saveAs) 401 self.connect(self.saveAsAct, SIGNAL('triggered()'), self.__saveAs)
402 self.fileActions.append(self.saveAsAct) 402 self.fileActions.append(self.saveAsAct)
403 403
404 self.closeAct = E4Action(self.trUtf8('Close'), 404 self.closeAct = E5Action(self.trUtf8('Close'),
405 UI.PixmapCache.getIcon("close.png"), 405 UI.PixmapCache.getIcon("close.png"),
406 self.trUtf8('&Close'), 406 self.trUtf8('&Close'),
407 QKeySequence(self.trUtf8("Ctrl+W", "File|Close")), 407 QKeySequence(self.trUtf8("Ctrl+W", "File|Close")),
408 0, self, 'vm_file_close') 408 0, self, 'vm_file_close')
409 self.closeAct.setStatusTip(self.trUtf8('Close the editor window')) 409 self.closeAct.setStatusTip(self.trUtf8('Close the editor window'))
412 """<p>Close the current window.</p>""" 412 """<p>Close the current window.</p>"""
413 )) 413 ))
414 self.connect(self.closeAct, SIGNAL('triggered()'), self.close) 414 self.connect(self.closeAct, SIGNAL('triggered()'), self.close)
415 self.fileActions.append(self.closeAct) 415 self.fileActions.append(self.closeAct)
416 416
417 self.printAct = E4Action(self.trUtf8('Print'), 417 self.printAct = E5Action(self.trUtf8('Print'),
418 UI.PixmapCache.getIcon("print.png"), 418 UI.PixmapCache.getIcon("print.png"),
419 self.trUtf8('&Print'), 419 self.trUtf8('&Print'),
420 QKeySequence(self.trUtf8("Ctrl+P", "File|Print")), 420 QKeySequence(self.trUtf8("Ctrl+P", "File|Print")),
421 0, self, 'vm_file_print') 421 0, self, 'vm_file_print')
422 self.printAct.setStatusTip(self.trUtf8('Print the current file')) 422 self.printAct.setStatusTip(self.trUtf8('Print the current file'))
426 )) 426 ))
427 self.connect(self.printAct, SIGNAL('triggered()'), self.__printFile) 427 self.connect(self.printAct, SIGNAL('triggered()'), self.__printFile)
428 self.fileActions.append(self.printAct) 428 self.fileActions.append(self.printAct)
429 429
430 self.printPreviewAct = \ 430 self.printPreviewAct = \
431 E4Action(self.trUtf8('Print Preview'), 431 E5Action(self.trUtf8('Print Preview'),
432 UI.PixmapCache.getIcon("printPreview.png"), 432 UI.PixmapCache.getIcon("printPreview.png"),
433 QApplication.translate('ViewManager', 'Print Preview'), 433 QApplication.translate('ViewManager', 'Print Preview'),
434 0, 0, self, 'vm_file_print_preview') 434 0, 0, self, 'vm_file_print_preview')
435 self.printPreviewAct.setStatusTip(self.trUtf8( 435 self.printPreviewAct.setStatusTip(self.trUtf8(
436 'Print preview of the current file')) 436 'Print preview of the current file'))
444 444
445 def __createEditActions(self): 445 def __createEditActions(self):
446 """ 446 """
447 Private method to create the Edit actions. 447 Private method to create the Edit actions.
448 """ 448 """
449 self.undoAct = E4Action(self.trUtf8('Undo'), 449 self.undoAct = E5Action(self.trUtf8('Undo'),
450 UI.PixmapCache.getIcon("editUndo.png"), 450 UI.PixmapCache.getIcon("editUndo.png"),
451 self.trUtf8('&Undo'), 451 self.trUtf8('&Undo'),
452 QKeySequence(self.trUtf8("Ctrl+Z", "Edit|Undo")), 452 QKeySequence(self.trUtf8("Ctrl+Z", "Edit|Undo")),
453 QKeySequence(self.trUtf8("Alt+Backspace", "Edit|Undo")), 453 QKeySequence(self.trUtf8("Alt+Backspace", "Edit|Undo")),
454 self, 'vm_edit_undo') 454 self, 'vm_edit_undo')
458 """<p>Undo the last change done in the current editor.</p>""" 458 """<p>Undo the last change done in the current editor.</p>"""
459 )) 459 ))
460 self.connect(self.undoAct, SIGNAL('triggered()'), self.__undo) 460 self.connect(self.undoAct, SIGNAL('triggered()'), self.__undo)
461 self.editActions.append(self.undoAct) 461 self.editActions.append(self.undoAct)
462 462
463 self.redoAct = E4Action(self.trUtf8('Redo'), 463 self.redoAct = E5Action(self.trUtf8('Redo'),
464 UI.PixmapCache.getIcon("editRedo.png"), 464 UI.PixmapCache.getIcon("editRedo.png"),
465 self.trUtf8('&Redo'), 465 self.trUtf8('&Redo'),
466 QKeySequence(self.trUtf8("Ctrl+Shift+Z", "Edit|Redo")), 466 QKeySequence(self.trUtf8("Ctrl+Shift+Z", "Edit|Redo")),
467 0, self, 'vm_edit_redo') 467 0, self, 'vm_edit_redo')
468 self.redoAct.setStatusTip(self.trUtf8('Redo the last change')) 468 self.redoAct.setStatusTip(self.trUtf8('Redo the last change'))
471 """<p>Redo the last change done in the current editor.</p>""" 471 """<p>Redo the last change done in the current editor.</p>"""
472 )) 472 ))
473 self.connect(self.redoAct, SIGNAL('triggered()'), self.__redo) 473 self.connect(self.redoAct, SIGNAL('triggered()'), self.__redo)
474 self.editActions.append(self.redoAct) 474 self.editActions.append(self.redoAct)
475 475
476 self.cutAct = E4Action(self.trUtf8('Cut'), 476 self.cutAct = E5Action(self.trUtf8('Cut'),
477 UI.PixmapCache.getIcon("editCut.png"), 477 UI.PixmapCache.getIcon("editCut.png"),
478 self.trUtf8('Cu&t'), 478 self.trUtf8('Cu&t'),
479 QKeySequence(self.trUtf8("Ctrl+X", "Edit|Cut")), 479 QKeySequence(self.trUtf8("Ctrl+X", "Edit|Cut")),
480 QKeySequence(self.trUtf8("Shift+Del", "Edit|Cut")), 480 QKeySequence(self.trUtf8("Shift+Del", "Edit|Cut")),
481 self, 'vm_edit_cut') 481 self, 'vm_edit_cut')
485 """<p>Cut the selected text of the current editor to the clipboard.</p>""" 485 """<p>Cut the selected text of the current editor to the clipboard.</p>"""
486 )) 486 ))
487 self.connect(self.cutAct, SIGNAL('triggered()'), self.__textEdit.cut) 487 self.connect(self.cutAct, SIGNAL('triggered()'), self.__textEdit.cut)
488 self.editActions.append(self.cutAct) 488 self.editActions.append(self.cutAct)
489 489
490 self.copyAct = E4Action(self.trUtf8('Copy'), 490 self.copyAct = E5Action(self.trUtf8('Copy'),
491 UI.PixmapCache.getIcon("editCopy.png"), 491 UI.PixmapCache.getIcon("editCopy.png"),
492 self.trUtf8('&Copy'), 492 self.trUtf8('&Copy'),
493 QKeySequence(self.trUtf8("Ctrl+C", "Edit|Copy")), 493 QKeySequence(self.trUtf8("Ctrl+C", "Edit|Copy")),
494 QKeySequence(self.trUtf8("Ctrl+Ins", "Edit|Copy")), 494 QKeySequence(self.trUtf8("Ctrl+Ins", "Edit|Copy")),
495 self, 'vm_edit_copy') 495 self, 'vm_edit_copy')
499 """<p>Copy the selected text of the current editor to the clipboard.</p>""" 499 """<p>Copy the selected text of the current editor to the clipboard.</p>"""
500 )) 500 ))
501 self.connect(self.copyAct, SIGNAL('triggered()'), self.__textEdit.copy) 501 self.connect(self.copyAct, SIGNAL('triggered()'), self.__textEdit.copy)
502 self.editActions.append(self.copyAct) 502 self.editActions.append(self.copyAct)
503 503
504 self.pasteAct = E4Action(self.trUtf8('Paste'), 504 self.pasteAct = E5Action(self.trUtf8('Paste'),
505 UI.PixmapCache.getIcon("editPaste.png"), 505 UI.PixmapCache.getIcon("editPaste.png"),
506 self.trUtf8('&Paste'), 506 self.trUtf8('&Paste'),
507 QKeySequence(self.trUtf8("Ctrl+V", "Edit|Paste")), 507 QKeySequence(self.trUtf8("Ctrl+V", "Edit|Paste")),
508 QKeySequence(self.trUtf8("Shift+Ins", "Edit|Paste")), 508 QKeySequence(self.trUtf8("Shift+Ins", "Edit|Paste")),
509 self, 'vm_edit_paste') 509 self, 'vm_edit_paste')
514 """ the current editor.</p>""" 514 """ the current editor.</p>"""
515 )) 515 ))
516 self.connect(self.pasteAct, SIGNAL('triggered()'), self.__textEdit.paste) 516 self.connect(self.pasteAct, SIGNAL('triggered()'), self.__textEdit.paste)
517 self.editActions.append(self.pasteAct) 517 self.editActions.append(self.pasteAct)
518 518
519 self.deleteAct = E4Action(self.trUtf8('Clear'), 519 self.deleteAct = E5Action(self.trUtf8('Clear'),
520 UI.PixmapCache.getIcon("editDelete.png"), 520 UI.PixmapCache.getIcon("editDelete.png"),
521 self.trUtf8('Cl&ear'), 521 self.trUtf8('Cl&ear'),
522 QKeySequence(self.trUtf8("Alt+Shift+C", "Edit|Clear")), 522 QKeySequence(self.trUtf8("Alt+Shift+C", "Edit|Clear")),
523 0, 523 0,
524 self, 'vm_edit_clear') 524 self, 'vm_edit_clear')
544 self.esm = QSignalMapper(self) 544 self.esm = QSignalMapper(self)
545 self.connect(self.esm, SIGNAL('mapped(int)'), self.__textEdit.editorCommand) 545 self.connect(self.esm, SIGNAL('mapped(int)'), self.__textEdit.editorCommand)
546 546
547 self.editorActGrp = createActionGroup(self) 547 self.editorActGrp = createActionGroup(self)
548 548
549 act = E4Action(QApplication.translate('ViewManager', 'Move left one character'), 549 act = E5Action(QApplication.translate('ViewManager', 'Move left one character'),
550 QApplication.translate('ViewManager', 'Move left one character'), 550 QApplication.translate('ViewManager', 'Move left one character'),
551 QKeySequence(QApplication.translate('ViewManager', 'Left')), 0, 551 QKeySequence(QApplication.translate('ViewManager', 'Left')), 0,
552 self.editorActGrp, 'vm_edit_move_left_char') 552 self.editorActGrp, 'vm_edit_move_left_char')
553 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFT) 553 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFT)
554 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 554 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
555 self.editActions.append(act) 555 self.editActions.append(act)
556 556
557 act = E4Action(QApplication.translate('ViewManager', 'Move right one character'), 557 act = E5Action(QApplication.translate('ViewManager', 'Move right one character'),
558 QApplication.translate('ViewManager', 'Move right one character'), 558 QApplication.translate('ViewManager', 'Move right one character'),
559 QKeySequence(QApplication.translate('ViewManager', 'Right')), 0, 559 QKeySequence(QApplication.translate('ViewManager', 'Right')), 0,
560 self.editorActGrp, 'vm_edit_move_right_char') 560 self.editorActGrp, 'vm_edit_move_right_char')
561 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHT) 561 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHT)
562 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 562 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
563 self.editActions.append(act) 563 self.editActions.append(act)
564 564
565 act = E4Action(QApplication.translate('ViewManager', 'Move up one line'), 565 act = E5Action(QApplication.translate('ViewManager', 'Move up one line'),
566 QApplication.translate('ViewManager', 'Move up one line'), 566 QApplication.translate('ViewManager', 'Move up one line'),
567 QKeySequence(QApplication.translate('ViewManager', 'Up')), 0, 567 QKeySequence(QApplication.translate('ViewManager', 'Up')), 0,
568 self.editorActGrp, 'vm_edit_move_up_line') 568 self.editorActGrp, 'vm_edit_move_up_line')
569 self.esm.setMapping(act, QsciScintilla.SCI_LINEUP) 569 self.esm.setMapping(act, QsciScintilla.SCI_LINEUP)
570 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 570 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
571 self.editActions.append(act) 571 self.editActions.append(act)
572 572
573 act = E4Action(QApplication.translate('ViewManager', 'Move down one line'), 573 act = E5Action(QApplication.translate('ViewManager', 'Move down one line'),
574 QApplication.translate('ViewManager', 'Move down one line'), 574 QApplication.translate('ViewManager', 'Move down one line'),
575 QKeySequence(QApplication.translate('ViewManager', 'Down')), 0, 575 QKeySequence(QApplication.translate('ViewManager', 'Down')), 0,
576 self.editorActGrp, 'vm_edit_move_down_line') 576 self.editorActGrp, 'vm_edit_move_down_line')
577 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN) 577 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN)
578 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 578 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
579 self.editActions.append(act) 579 self.editActions.append(act)
580 580
581 act = E4Action(QApplication.translate('ViewManager', 'Move left one word part'), 581 act = E5Action(QApplication.translate('ViewManager', 'Move left one word part'),
582 QApplication.translate('ViewManager', 'Move left one word part'), 582 QApplication.translate('ViewManager', 'Move left one word part'),
583 QKeySequence(QApplication.translate('ViewManager', 'Alt+Left')), 0, 583 QKeySequence(QApplication.translate('ViewManager', 'Alt+Left')), 0,
584 self.editorActGrp, 'vm_edit_move_left_word_part') 584 self.editorActGrp, 'vm_edit_move_left_word_part')
585 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFT) 585 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFT)
586 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 586 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
587 self.editActions.append(act) 587 self.editActions.append(act)
588 588
589 act = E4Action(QApplication.translate('ViewManager', 'Move right one word part'), 589 act = E5Action(QApplication.translate('ViewManager', 'Move right one word part'),
590 QApplication.translate('ViewManager', 'Move right one word part'), 590 QApplication.translate('ViewManager', 'Move right one word part'),
591 QKeySequence(QApplication.translate('ViewManager', 'Alt+Right')), 0, 591 QKeySequence(QApplication.translate('ViewManager', 'Alt+Right')), 0,
592 self.editorActGrp, 'vm_edit_move_right_word_part') 592 self.editorActGrp, 'vm_edit_move_right_word_part')
593 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHT) 593 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHT)
594 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 594 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
595 self.editActions.append(act) 595 self.editActions.append(act)
596 596
597 act = E4Action(QApplication.translate('ViewManager', 'Move left one word'), 597 act = E5Action(QApplication.translate('ViewManager', 'Move left one word'),
598 QApplication.translate('ViewManager', 'Move left one word'), 598 QApplication.translate('ViewManager', 'Move left one word'),
599 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Left')), 0, 599 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Left')), 0,
600 self.editorActGrp, 'vm_edit_move_left_word') 600 self.editorActGrp, 'vm_edit_move_left_word')
601 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFT) 601 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFT)
602 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 602 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
603 self.editActions.append(act) 603 self.editActions.append(act)
604 604
605 act = E4Action(QApplication.translate('ViewManager', 'Move right one word'), 605 act = E5Action(QApplication.translate('ViewManager', 'Move right one word'),
606 QApplication.translate('ViewManager', 'Move right one word'), 606 QApplication.translate('ViewManager', 'Move right one word'),
607 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Right')), 607 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Right')),
608 0, 608 0,
609 self.editorActGrp, 'vm_edit_move_right_word') 609 self.editorActGrp, 'vm_edit_move_right_word')
610 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT) 610 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT)
611 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 611 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
612 self.editActions.append(act) 612 self.editActions.append(act)
613 613
614 act = E4Action(QApplication.translate('ViewManager', 614 act = E5Action(QApplication.translate('ViewManager',
615 'Move to first visible character in line'), 615 'Move to first visible character in line'),
616 QApplication.translate('ViewManager', 616 QApplication.translate('ViewManager',
617 'Move to first visible character in line'), 617 'Move to first visible character in line'),
618 QKeySequence(QApplication.translate('ViewManager', 'Home')), 0, 618 QKeySequence(QApplication.translate('ViewManager', 'Home')), 0,
619 self.editorActGrp, 'vm_edit_move_first_visible_char') 619 self.editorActGrp, 'vm_edit_move_first_visible_char')
620 self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) 620 self.esm.setMapping(act, QsciScintilla.SCI_VCHOME)
621 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 621 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
622 self.editActions.append(act) 622 self.editActions.append(act)
623 623
624 act = E4Action(QApplication.translate('ViewManager', 624 act = E5Action(QApplication.translate('ViewManager',
625 'Move to start of displayed line'), 625 'Move to start of displayed line'),
626 QApplication.translate('ViewManager', 626 QApplication.translate('ViewManager',
627 'Move to start of displayed line'), 627 'Move to start of displayed line'),
628 QKeySequence(QApplication.translate('ViewManager', 'Alt+Home')), 0, 628 QKeySequence(QApplication.translate('ViewManager', 'Alt+Home')), 0,
629 self.editorActGrp, 'vm_edit_move_start_line') 629 self.editorActGrp, 'vm_edit_move_start_line')
630 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY) 630 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY)
631 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 631 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
632 self.editActions.append(act) 632 self.editActions.append(act)
633 633
634 act = E4Action(QApplication.translate('ViewManager', 'Move to end of line'), 634 act = E5Action(QApplication.translate('ViewManager', 'Move to end of line'),
635 QApplication.translate('ViewManager', 'Move to end of line'), 635 QApplication.translate('ViewManager', 'Move to end of line'),
636 QKeySequence(QApplication.translate('ViewManager', 'End')), 0, 636 QKeySequence(QApplication.translate('ViewManager', 'End')), 0,
637 self.editorActGrp, 'vm_edit_move_end_line') 637 self.editorActGrp, 'vm_edit_move_end_line')
638 self.esm.setMapping(act, QsciScintilla.SCI_LINEEND) 638 self.esm.setMapping(act, QsciScintilla.SCI_LINEEND)
639 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 639 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
640 self.editActions.append(act) 640 self.editActions.append(act)
641 641
642 act = E4Action(QApplication.translate('ViewManager', 'Scroll view down one line'), 642 act = E5Action(QApplication.translate('ViewManager', 'Scroll view down one line'),
643 QApplication.translate('ViewManager', 'Scroll view down one line'), 643 QApplication.translate('ViewManager', 'Scroll view down one line'),
644 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0, 644 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0,
645 self.editorActGrp, 'vm_edit_scroll_down_line') 645 self.editorActGrp, 'vm_edit_scroll_down_line')
646 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN) 646 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN)
647 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 647 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
648 self.editActions.append(act) 648 self.editActions.append(act)
649 649
650 act = E4Action(QApplication.translate('ViewManager', 'Scroll view up one line'), 650 act = E5Action(QApplication.translate('ViewManager', 'Scroll view up one line'),
651 QApplication.translate('ViewManager', 'Scroll view up one line'), 651 QApplication.translate('ViewManager', 'Scroll view up one line'),
652 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0, 652 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0,
653 self.editorActGrp, 'vm_edit_scroll_up_line') 653 self.editorActGrp, 'vm_edit_scroll_up_line')
654 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP) 654 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP)
655 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 655 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
656 self.editActions.append(act) 656 self.editActions.append(act)
657 657
658 act = E4Action(QApplication.translate('ViewManager', 'Move up one paragraph'), 658 act = E5Action(QApplication.translate('ViewManager', 'Move up one paragraph'),
659 QApplication.translate('ViewManager', 'Move up one paragraph'), 659 QApplication.translate('ViewManager', 'Move up one paragraph'),
660 QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0, 660 QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0,
661 self.editorActGrp, 'vm_edit_move_up_para') 661 self.editorActGrp, 'vm_edit_move_up_para')
662 self.esm.setMapping(act, QsciScintilla.SCI_PARAUP) 662 self.esm.setMapping(act, QsciScintilla.SCI_PARAUP)
663 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 663 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
664 self.editActions.append(act) 664 self.editActions.append(act)
665 665
666 act = E4Action(QApplication.translate('ViewManager', 'Move down one paragraph'), 666 act = E5Action(QApplication.translate('ViewManager', 'Move down one paragraph'),
667 QApplication.translate('ViewManager', 'Move down one paragraph'), 667 QApplication.translate('ViewManager', 'Move down one paragraph'),
668 QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0, 668 QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0,
669 self.editorActGrp, 'vm_edit_move_down_para') 669 self.editorActGrp, 'vm_edit_move_down_para')
670 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWN) 670 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWN)
671 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 671 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
672 self.editActions.append(act) 672 self.editActions.append(act)
673 673
674 act = E4Action(QApplication.translate('ViewManager', 'Move up one page'), 674 act = E5Action(QApplication.translate('ViewManager', 'Move up one page'),
675 QApplication.translate('ViewManager', 'Move up one page'), 675 QApplication.translate('ViewManager', 'Move up one page'),
676 QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0, 676 QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0,
677 self.editorActGrp, 'vm_edit_move_up_page') 677 self.editorActGrp, 'vm_edit_move_up_page')
678 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUP) 678 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUP)
679 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 679 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
680 self.editActions.append(act) 680 self.editActions.append(act)
681 681
682 act = E4Action(QApplication.translate('ViewManager', 'Move down one page'), 682 act = E5Action(QApplication.translate('ViewManager', 'Move down one page'),
683 QApplication.translate('ViewManager', 'Move down one page'), 683 QApplication.translate('ViewManager', 'Move down one page'),
684 QKeySequence(QApplication.translate('ViewManager', 'PgDown')), 0, 684 QKeySequence(QApplication.translate('ViewManager', 'PgDown')), 0,
685 self.editorActGrp, 'vm_edit_move_down_page') 685 self.editorActGrp, 'vm_edit_move_down_page')
686 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWN) 686 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWN)
687 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 687 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
688 self.editActions.append(act) 688 self.editActions.append(act)
689 689
690 act = E4Action(QApplication.translate('ViewManager', 'Move to start of text'), 690 act = E5Action(QApplication.translate('ViewManager', 'Move to start of text'),
691 QApplication.translate('ViewManager', 'Move to start of text'), 691 QApplication.translate('ViewManager', 'Move to start of text'),
692 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Home')), 0, 692 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Home')), 0,
693 self.editorActGrp, 'vm_edit_move_start_text') 693 self.editorActGrp, 'vm_edit_move_start_text')
694 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTART) 694 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTART)
695 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 695 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
696 self.editActions.append(act) 696 self.editActions.append(act)
697 697
698 act = E4Action(QApplication.translate('ViewManager', 'Move to end of text'), 698 act = E5Action(QApplication.translate('ViewManager', 'Move to end of text'),
699 QApplication.translate('ViewManager', 'Move to end of text'), 699 QApplication.translate('ViewManager', 'Move to end of text'),
700 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+End')), 0, 700 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+End')), 0,
701 self.editorActGrp, 'vm_edit_move_end_text') 701 self.editorActGrp, 'vm_edit_move_end_text')
702 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTEND) 702 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTEND)
703 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 703 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
704 self.editActions.append(act) 704 self.editActions.append(act)
705 705
706 act = E4Action(QApplication.translate('ViewManager', 'Indent one level'), 706 act = E5Action(QApplication.translate('ViewManager', 'Indent one level'),
707 QApplication.translate('ViewManager', 'Indent one level'), 707 QApplication.translate('ViewManager', 'Indent one level'),
708 QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0, 708 QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0,
709 self.editorActGrp, 'vm_edit_indent_one_level') 709 self.editorActGrp, 'vm_edit_indent_one_level')
710 self.esm.setMapping(act, QsciScintilla.SCI_TAB) 710 self.esm.setMapping(act, QsciScintilla.SCI_TAB)
711 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 711 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
712 self.editActions.append(act) 712 self.editActions.append(act)
713 713
714 act = E4Action(QApplication.translate('ViewManager', 'Unindent one level'), 714 act = E5Action(QApplication.translate('ViewManager', 'Unindent one level'),
715 QApplication.translate('ViewManager', 'Unindent one level'), 715 QApplication.translate('ViewManager', 'Unindent one level'),
716 QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0, 716 QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0,
717 self.editorActGrp, 'vm_edit_unindent_one_level') 717 self.editorActGrp, 'vm_edit_unindent_one_level')
718 self.esm.setMapping(act, QsciScintilla.SCI_BACKTAB) 718 self.esm.setMapping(act, QsciScintilla.SCI_BACKTAB)
719 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 719 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
720 self.editActions.append(act) 720 self.editActions.append(act)
721 721
722 act = E4Action(QApplication.translate('ViewManager', 722 act = E5Action(QApplication.translate('ViewManager',
723 'Extend selection left one character'), 723 'Extend selection left one character'),
724 QApplication.translate('ViewManager', 724 QApplication.translate('ViewManager',
725 'Extend selection left one character'), 725 'Extend selection left one character'),
726 QKeySequence(QApplication.translate('ViewManager', 'Shift+Left')), 726 QKeySequence(QApplication.translate('ViewManager', 'Shift+Left')),
727 0, 727 0,
728 self.editorActGrp, 'vm_edit_extend_selection_left_char') 728 self.editorActGrp, 'vm_edit_extend_selection_left_char')
729 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTEXTEND) 729 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTEXTEND)
730 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 730 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
731 self.editActions.append(act) 731 self.editActions.append(act)
732 732
733 act = E4Action(QApplication.translate('ViewManager', 733 act = E5Action(QApplication.translate('ViewManager',
734 'Extend selection right one character'), 734 'Extend selection right one character'),
735 QApplication.translate('ViewManager', 735 QApplication.translate('ViewManager',
736 'Extend selection right one character'), 736 'Extend selection right one character'),
737 QKeySequence(QApplication.translate('ViewManager', 'Shift+Right')), 737 QKeySequence(QApplication.translate('ViewManager', 'Shift+Right')),
738 0, 738 0,
739 self.editorActGrp, 'vm_edit_extend_selection_right_char') 739 self.editorActGrp, 'vm_edit_extend_selection_right_char')
740 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTEXTEND) 740 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTEXTEND)
741 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 741 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
742 self.editActions.append(act) 742 self.editActions.append(act)
743 743
744 act = E4Action(QApplication.translate('ViewManager', 744 act = E5Action(QApplication.translate('ViewManager',
745 'Extend selection up one line'), 745 'Extend selection up one line'),
746 QApplication.translate('ViewManager', 746 QApplication.translate('ViewManager',
747 'Extend selection up one line'), 747 'Extend selection up one line'),
748 QKeySequence(QApplication.translate('ViewManager', 'Shift+Up')), 0, 748 QKeySequence(QApplication.translate('ViewManager', 'Shift+Up')), 0,
749 self.editorActGrp, 'vm_edit_extend_selection_up_line') 749 self.editorActGrp, 'vm_edit_extend_selection_up_line')
750 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPEXTEND) 750 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPEXTEND)
751 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 751 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
752 self.editActions.append(act) 752 self.editActions.append(act)
753 753
754 act = E4Action(QApplication.translate('ViewManager', 754 act = E5Action(QApplication.translate('ViewManager',
755 'Extend selection down one line'), 755 'Extend selection down one line'),
756 QApplication.translate('ViewManager', 756 QApplication.translate('ViewManager',
757 'Extend selection down one line'), 757 'Extend selection down one line'),
758 QKeySequence(QApplication.translate('ViewManager', 'Shift+Down')), 758 QKeySequence(QApplication.translate('ViewManager', 'Shift+Down')),
759 0, 759 0,
760 self.editorActGrp, 'vm_edit_extend_selection_down_line') 760 self.editorActGrp, 'vm_edit_extend_selection_down_line')
761 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNEXTEND) 761 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNEXTEND)
762 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 762 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
763 self.editActions.append(act) 763 self.editActions.append(act)
764 764
765 act = E4Action(QApplication.translate('ViewManager', 765 act = E5Action(QApplication.translate('ViewManager',
766 'Extend selection left one word part'), 766 'Extend selection left one word part'),
767 QApplication.translate('ViewManager', 767 QApplication.translate('ViewManager',
768 'Extend selection left one word part'), 768 'Extend selection left one word part'),
769 QKeySequence(QApplication.translate('ViewManager', 769 QKeySequence(QApplication.translate('ViewManager',
770 'Alt+Shift+Left')), 770 'Alt+Shift+Left')),
772 self.editorActGrp, 'vm_edit_extend_selection_left_word_part') 772 self.editorActGrp, 'vm_edit_extend_selection_left_word_part')
773 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFTEXTEND) 773 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFTEXTEND)
774 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 774 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
775 self.editActions.append(act) 775 self.editActions.append(act)
776 776
777 act = E4Action(QApplication.translate('ViewManager', 777 act = E5Action(QApplication.translate('ViewManager',
778 'Extend selection right one word part'), 778 'Extend selection right one word part'),
779 QApplication.translate('ViewManager', 779 QApplication.translate('ViewManager',
780 'Extend selection right one word part'), 780 'Extend selection right one word part'),
781 QKeySequence(QApplication.translate('ViewManager', 781 QKeySequence(QApplication.translate('ViewManager',
782 'Alt+Shift+Right')), 782 'Alt+Shift+Right')),
784 self.editorActGrp, 'vm_edit_extend_selection_right_word_part') 784 self.editorActGrp, 'vm_edit_extend_selection_right_word_part')
785 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHTEXTEND) 785 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHTEXTEND)
786 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 786 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
787 self.editActions.append(act) 787 self.editActions.append(act)
788 788
789 act = E4Action(QApplication.translate('ViewManager', 789 act = E5Action(QApplication.translate('ViewManager',
790 'Extend selection left one word'), 790 'Extend selection left one word'),
791 QApplication.translate('ViewManager', 791 QApplication.translate('ViewManager',
792 'Extend selection left one word'), 792 'Extend selection left one word'),
793 QKeySequence(QApplication.translate('ViewManager', 793 QKeySequence(QApplication.translate('ViewManager',
794 'Ctrl+Shift+Left')), 794 'Ctrl+Shift+Left')),
796 self.editorActGrp, 'vm_edit_extend_selection_left_word') 796 self.editorActGrp, 'vm_edit_extend_selection_left_word')
797 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEXTEND) 797 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEXTEND)
798 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 798 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
799 self.editActions.append(act) 799 self.editActions.append(act)
800 800
801 act = E4Action(QApplication.translate('ViewManager', 801 act = E5Action(QApplication.translate('ViewManager',
802 'Extend selection right one word'), 802 'Extend selection right one word'),
803 QApplication.translate('ViewManager', 803 QApplication.translate('ViewManager',
804 'Extend selection right one word'), 804 'Extend selection right one word'),
805 QKeySequence(QApplication.translate('ViewManager', 805 QKeySequence(QApplication.translate('ViewManager',
806 'Ctrl+Shift+Right')), 806 'Ctrl+Shift+Right')),
808 self.editorActGrp, 'vm_edit_extend_selection_right_word') 808 self.editorActGrp, 'vm_edit_extend_selection_right_word')
809 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEXTEND) 809 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEXTEND)
810 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 810 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
811 self.editActions.append(act) 811 self.editActions.append(act)
812 812
813 act = E4Action(QApplication.translate('ViewManager', 813 act = E5Action(QApplication.translate('ViewManager',
814 'Extend selection to first visible character in line'), 814 'Extend selection to first visible character in line'),
815 QApplication.translate('ViewManager', 815 QApplication.translate('ViewManager',
816 'Extend selection to first visible character in line'), 816 'Extend selection to first visible character in line'),
817 QKeySequence(QApplication.translate('ViewManager', 'Shift+Home')), 817 QKeySequence(QApplication.translate('ViewManager', 'Shift+Home')),
818 0, 818 0,
819 self.editorActGrp, 'vm_edit_extend_selection_first_visible_char') 819 self.editorActGrp, 'vm_edit_extend_selection_first_visible_char')
820 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEEXTEND) 820 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEEXTEND)
821 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 821 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
822 self.editActions.append(act) 822 self.editActions.append(act)
823 823
824 act = E4Action(QApplication.translate('ViewManager', 824 act = E5Action(QApplication.translate('ViewManager',
825 'Extend selection to start of line'), 825 'Extend selection to start of line'),
826 QApplication.translate('ViewManager', 826 QApplication.translate('ViewManager',
827 'Extend selection to start of line'), 827 'Extend selection to start of line'),
828 QKeySequence(QApplication.translate('ViewManager', 828 QKeySequence(QApplication.translate('ViewManager',
829 'Alt+Shift+Home')), 829 'Alt+Shift+Home')),
831 self.editorActGrp, 'vm_edit_extend_selection_start_line') 831 self.editorActGrp, 'vm_edit_extend_selection_start_line')
832 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAYEXTEND) 832 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAYEXTEND)
833 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 833 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
834 self.editActions.append(act) 834 self.editActions.append(act)
835 835
836 act = E4Action(QApplication.translate('ViewManager', 836 act = E5Action(QApplication.translate('ViewManager',
837 'Extend selection to end of line'), 837 'Extend selection to end of line'),
838 QApplication.translate('ViewManager', 838 QApplication.translate('ViewManager',
839 'Extend selection to end of line'), 839 'Extend selection to end of line'),
840 QKeySequence(QApplication.translate('ViewManager', 'Shift+End')), 0, 840 QKeySequence(QApplication.translate('ViewManager', 'Shift+End')), 0,
841 self.editorActGrp, 'vm_edit_extend_selection_end_line') 841 self.editorActGrp, 'vm_edit_extend_selection_end_line')
842 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDEXTEND) 842 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDEXTEND)
843 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 843 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
844 self.editActions.append(act) 844 self.editActions.append(act)
845 845
846 act = E4Action(QApplication.translate('ViewManager', 846 act = E5Action(QApplication.translate('ViewManager',
847 'Extend selection up one paragraph'), 847 'Extend selection up one paragraph'),
848 QApplication.translate('ViewManager', 848 QApplication.translate('ViewManager',
849 'Extend selection up one paragraph'), 849 'Extend selection up one paragraph'),
850 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+Up')), 850 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+Up')),
851 0, 851 0,
852 self.editorActGrp, 'vm_edit_extend_selection_up_para') 852 self.editorActGrp, 'vm_edit_extend_selection_up_para')
853 self.esm.setMapping(act, QsciScintilla.SCI_PARAUPEXTEND) 853 self.esm.setMapping(act, QsciScintilla.SCI_PARAUPEXTEND)
854 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 854 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
855 self.editActions.append(act) 855 self.editActions.append(act)
856 856
857 act = E4Action(QApplication.translate('ViewManager', 857 act = E5Action(QApplication.translate('ViewManager',
858 'Extend selection down one paragraph'), 858 'Extend selection down one paragraph'),
859 QApplication.translate('ViewManager', 859 QApplication.translate('ViewManager',
860 'Extend selection down one paragraph'), 860 'Extend selection down one paragraph'),
861 QKeySequence(QApplication.translate('ViewManager', 861 QKeySequence(QApplication.translate('ViewManager',
862 'Alt+Shift+Down')), 862 'Alt+Shift+Down')),
864 self.editorActGrp, 'vm_edit_extend_selection_down_para') 864 self.editorActGrp, 'vm_edit_extend_selection_down_para')
865 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWNEXTEND) 865 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWNEXTEND)
866 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 866 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
867 self.editActions.append(act) 867 self.editActions.append(act)
868 868
869 act = E4Action(QApplication.translate('ViewManager', 869 act = E5Action(QApplication.translate('ViewManager',
870 'Extend selection up one page'), 870 'Extend selection up one page'),
871 QApplication.translate('ViewManager', 871 QApplication.translate('ViewManager',
872 'Extend selection up one page'), 872 'Extend selection up one page'),
873 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgUp')), 873 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgUp')),
874 0, 874 0,
875 self.editorActGrp, 'vm_edit_extend_selection_up_page') 875 self.editorActGrp, 'vm_edit_extend_selection_up_page')
876 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPEXTEND) 876 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPEXTEND)
877 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 877 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
878 self.editActions.append(act) 878 self.editActions.append(act)
879 879
880 act = E4Action(QApplication.translate('ViewManager', 880 act = E5Action(QApplication.translate('ViewManager',
881 'Extend selection down one page'), 881 'Extend selection down one page'),
882 QApplication.translate('ViewManager', 882 QApplication.translate('ViewManager',
883 'Extend selection down one page'), 883 'Extend selection down one page'),
884 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgDown')), 884 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgDown')),
885 0, 885 0,
886 self.editorActGrp, 'vm_edit_extend_selection_down_page') 886 self.editorActGrp, 'vm_edit_extend_selection_down_page')
887 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNEXTEND) 887 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNEXTEND)
888 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 888 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
889 self.editActions.append(act) 889 self.editActions.append(act)
890 890
891 act = E4Action(QApplication.translate('ViewManager', 891 act = E5Action(QApplication.translate('ViewManager',
892 'Extend selection to start of text'), 892 'Extend selection to start of text'),
893 QApplication.translate('ViewManager', 893 QApplication.translate('ViewManager',
894 'Extend selection to start of text'), 894 'Extend selection to start of text'),
895 QKeySequence(QApplication.translate('ViewManager', 895 QKeySequence(QApplication.translate('ViewManager',
896 'Ctrl+Shift+Home')), 896 'Ctrl+Shift+Home')),
898 self.editorActGrp, 'vm_edit_extend_selection_start_text') 898 self.editorActGrp, 'vm_edit_extend_selection_start_text')
899 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTARTEXTEND) 899 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTARTEXTEND)
900 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 900 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
901 self.editActions.append(act) 901 self.editActions.append(act)
902 902
903 act = E4Action(QApplication.translate('ViewManager', 903 act = E5Action(QApplication.translate('ViewManager',
904 'Extend selection to end of text'), 904 'Extend selection to end of text'),
905 QApplication.translate('ViewManager', 905 QApplication.translate('ViewManager',
906 'Extend selection to end of text'), 906 'Extend selection to end of text'),
907 QKeySequence(QApplication.translate('ViewManager', 907 QKeySequence(QApplication.translate('ViewManager',
908 'Ctrl+Shift+End')), 908 'Ctrl+Shift+End')),
910 self.editorActGrp, 'vm_edit_extend_selection_end_text') 910 self.editorActGrp, 'vm_edit_extend_selection_end_text')
911 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTENDEXTEND) 911 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTENDEXTEND)
912 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 912 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
913 self.editActions.append(act) 913 self.editActions.append(act)
914 914
915 act = E4Action(QApplication.translate('ViewManager', 915 act = E5Action(QApplication.translate('ViewManager',
916 'Delete previous character'), 916 'Delete previous character'),
917 QApplication.translate('ViewManager', 'Delete previous character'), 917 QApplication.translate('ViewManager', 'Delete previous character'),
918 QKeySequence(QApplication.translate('ViewManager', 'Backspace')), 918 QKeySequence(QApplication.translate('ViewManager', 'Backspace')),
919 QKeySequence(QApplication.translate('ViewManager', 919 QKeySequence(QApplication.translate('ViewManager',
920 'Shift+Backspace')), 920 'Shift+Backspace')),
921 self.editorActGrp, 'vm_edit_delete_previous_char') 921 self.editorActGrp, 'vm_edit_delete_previous_char')
922 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACK) 922 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACK)
923 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 923 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
924 self.editActions.append(act) 924 self.editActions.append(act)
925 925
926 act = E4Action(QApplication.translate('ViewManager', 926 act = E5Action(QApplication.translate('ViewManager',
927 'Delete previous character if not at line start'), 927 'Delete previous character if not at line start'),
928 QApplication.translate('ViewManager', 928 QApplication.translate('ViewManager',
929 'Delete previous character if not at line start'), 929 'Delete previous character if not at line start'),
930 0, 0, 930 0, 0,
931 self.editorActGrp, 'vm_edit_delet_previous_char_not_line_start') 931 self.editorActGrp, 'vm_edit_delet_previous_char_not_line_start')
932 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACKNOTLINE) 932 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACKNOTLINE)
933 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 933 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
934 self.editActions.append(act) 934 self.editActions.append(act)
935 935
936 act = E4Action(QApplication.translate('ViewManager', 'Delete current character'), 936 act = E5Action(QApplication.translate('ViewManager', 'Delete current character'),
937 QApplication.translate('ViewManager', 'Delete current character'), 937 QApplication.translate('ViewManager', 'Delete current character'),
938 QKeySequence(QApplication.translate('ViewManager', 'Del')), 0, 938 QKeySequence(QApplication.translate('ViewManager', 'Del')), 0,
939 self.editorActGrp, 'vm_edit_delete_current_char') 939 self.editorActGrp, 'vm_edit_delete_current_char')
940 self.esm.setMapping(act, QsciScintilla.SCI_CLEAR) 940 self.esm.setMapping(act, QsciScintilla.SCI_CLEAR)
941 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 941 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
942 self.editActions.append(act) 942 self.editActions.append(act)
943 943
944 act = E4Action(QApplication.translate('ViewManager', 'Delete word to left'), 944 act = E5Action(QApplication.translate('ViewManager', 'Delete word to left'),
945 QApplication.translate('ViewManager', 'Delete word to left'), 945 QApplication.translate('ViewManager', 'Delete word to left'),
946 QKeySequence(QApplication.translate('ViewManager', 946 QKeySequence(QApplication.translate('ViewManager',
947 'Ctrl+Backspace')), 947 'Ctrl+Backspace')),
948 0, 948 0,
949 self.editorActGrp, 'vm_edit_delete_word_left') 949 self.editorActGrp, 'vm_edit_delete_word_left')
950 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDLEFT) 950 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDLEFT)
951 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 951 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
952 self.editActions.append(act) 952 self.editActions.append(act)
953 953
954 act = E4Action(QApplication.translate('ViewManager', 'Delete word to right'), 954 act = E5Action(QApplication.translate('ViewManager', 'Delete word to right'),
955 QApplication.translate('ViewManager', 'Delete word to right'), 955 QApplication.translate('ViewManager', 'Delete word to right'),
956 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0, 956 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0,
957 self.editorActGrp, 'vm_edit_delete_word_right') 957 self.editorActGrp, 'vm_edit_delete_word_right')
958 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHT) 958 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHT)
959 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 959 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
960 self.editActions.append(act) 960 self.editActions.append(act)
961 961
962 act = E4Action(QApplication.translate('ViewManager', 'Delete line to left'), 962 act = E5Action(QApplication.translate('ViewManager', 'Delete line to left'),
963 QApplication.translate('ViewManager', 'Delete line to left'), 963 QApplication.translate('ViewManager', 'Delete line to left'),
964 QKeySequence(QApplication.translate('ViewManager', 964 QKeySequence(QApplication.translate('ViewManager',
965 'Ctrl+Shift+Backspace')), 965 'Ctrl+Shift+Backspace')),
966 0, 966 0,
967 self.editorActGrp, 'vm_edit_delete_line_left') 967 self.editorActGrp, 'vm_edit_delete_line_left')
968 self.esm.setMapping(act, QsciScintilla.SCI_DELLINELEFT) 968 self.esm.setMapping(act, QsciScintilla.SCI_DELLINELEFT)
969 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 969 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
970 self.editActions.append(act) 970 self.editActions.append(act)
971 971
972 act = E4Action(QApplication.translate('ViewManager', 'Delete line to right'), 972 act = E5Action(QApplication.translate('ViewManager', 'Delete line to right'),
973 QApplication.translate('ViewManager', 'Delete line to right'), 973 QApplication.translate('ViewManager', 'Delete line to right'),
974 QKeySequence(QApplication.translate('ViewManager', 974 QKeySequence(QApplication.translate('ViewManager',
975 'Ctrl+Shift+Del')), 975 'Ctrl+Shift+Del')),
976 0, 976 0,
977 self.editorActGrp, 'vm_edit_delete_line_right') 977 self.editorActGrp, 'vm_edit_delete_line_right')
978 self.esm.setMapping(act, QsciScintilla.SCI_DELLINERIGHT) 978 self.esm.setMapping(act, QsciScintilla.SCI_DELLINERIGHT)
979 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 979 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
980 self.editActions.append(act) 980 self.editActions.append(act)
981 981
982 act = E4Action(QApplication.translate('ViewManager', 'Insert new line'), 982 act = E5Action(QApplication.translate('ViewManager', 'Insert new line'),
983 QApplication.translate('ViewManager', 'Insert new line'), 983 QApplication.translate('ViewManager', 'Insert new line'),
984 QKeySequence(QApplication.translate('ViewManager', 'Return')), 984 QKeySequence(QApplication.translate('ViewManager', 'Return')),
985 QKeySequence(QApplication.translate('ViewManager', 'Enter')), 985 QKeySequence(QApplication.translate('ViewManager', 'Enter')),
986 self.editorActGrp, 'vm_edit_insert_line') 986 self.editorActGrp, 'vm_edit_insert_line')
987 self.esm.setMapping(act, QsciScintilla.SCI_NEWLINE) 987 self.esm.setMapping(act, QsciScintilla.SCI_NEWLINE)
988 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 988 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
989 self.editActions.append(act) 989 self.editActions.append(act)
990 990
991 act = E4Action(QApplication.translate('ViewManager', 991 act = E5Action(QApplication.translate('ViewManager',
992 'Insert new line below current line'), 992 'Insert new line below current line'),
993 QApplication.translate('ViewManager', 993 QApplication.translate('ViewManager',
994 'Insert new line below current line'), 994 'Insert new line below current line'),
995 QKeySequence(QApplication.translate('ViewManager', 'Shift+Return')), 995 QKeySequence(QApplication.translate('ViewManager', 'Shift+Return')),
996 QKeySequence(QApplication.translate('ViewManager', 'Shift+Enter')), 996 QKeySequence(QApplication.translate('ViewManager', 'Shift+Enter')),
997 self.editorActGrp, 'vm_edit_insert_line_below') 997 self.editorActGrp, 'vm_edit_insert_line_below')
998 self.connect(act, SIGNAL('triggered()'), self.__textEdit.newLineBelow) 998 self.connect(act, SIGNAL('triggered()'), self.__textEdit.newLineBelow)
999 self.editActions.append(act) 999 self.editActions.append(act)
1000 1000
1001 act = E4Action(QApplication.translate('ViewManager', 'Delete current line'), 1001 act = E5Action(QApplication.translate('ViewManager', 'Delete current line'),
1002 QApplication.translate('ViewManager', 'Delete current line'), 1002 QApplication.translate('ViewManager', 'Delete current line'),
1003 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+U')), 1003 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+U')),
1004 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+L')), 1004 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+L')),
1005 self.editorActGrp, 'vm_edit_delete_current_line') 1005 self.editorActGrp, 'vm_edit_delete_current_line')
1006 self.esm.setMapping(act, QsciScintilla.SCI_LINEDELETE) 1006 self.esm.setMapping(act, QsciScintilla.SCI_LINEDELETE)
1007 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1007 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1008 self.editActions.append(act) 1008 self.editActions.append(act)
1009 1009
1010 act = E4Action(QApplication.translate('ViewManager', 'Duplicate current line'), 1010 act = E5Action(QApplication.translate('ViewManager', 'Duplicate current line'),
1011 QApplication.translate('ViewManager', 'Duplicate current line'), 1011 QApplication.translate('ViewManager', 'Duplicate current line'),
1012 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0, 1012 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0,
1013 self.editorActGrp, 'vm_edit_duplicate_current_line') 1013 self.editorActGrp, 'vm_edit_duplicate_current_line')
1014 self.esm.setMapping(act, QsciScintilla.SCI_LINEDUPLICATE) 1014 self.esm.setMapping(act, QsciScintilla.SCI_LINEDUPLICATE)
1015 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1015 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1016 self.editActions.append(act) 1016 self.editActions.append(act)
1017 1017
1018 act = E4Action(QApplication.translate('ViewManager', 1018 act = E5Action(QApplication.translate('ViewManager',
1019 'Swap current and previous lines'), 1019 'Swap current and previous lines'),
1020 QApplication.translate('ViewManager', 1020 QApplication.translate('ViewManager',
1021 'Swap current and previous lines'), 1021 'Swap current and previous lines'),
1022 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+T')), 0, 1022 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+T')), 0,
1023 self.editorActGrp, 'vm_edit_swap_current_previous_line') 1023 self.editorActGrp, 'vm_edit_swap_current_previous_line')
1024 self.esm.setMapping(act, QsciScintilla.SCI_LINETRANSPOSE) 1024 self.esm.setMapping(act, QsciScintilla.SCI_LINETRANSPOSE)
1025 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1025 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1026 self.editActions.append(act) 1026 self.editActions.append(act)
1027 1027
1028 act = E4Action(QApplication.translate('ViewManager', 'Cut current line'), 1028 act = E5Action(QApplication.translate('ViewManager', 'Cut current line'),
1029 QApplication.translate('ViewManager', 'Cut current line'), 1029 QApplication.translate('ViewManager', 'Cut current line'),
1030 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+L')), 1030 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+L')),
1031 0, 1031 0,
1032 self.editorActGrp, 'vm_edit_cut_current_line') 1032 self.editorActGrp, 'vm_edit_cut_current_line')
1033 self.esm.setMapping(act, QsciScintilla.SCI_LINECUT) 1033 self.esm.setMapping(act, QsciScintilla.SCI_LINECUT)
1034 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1034 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1035 self.editActions.append(act) 1035 self.editActions.append(act)
1036 1036
1037 act = E4Action(QApplication.translate('ViewManager', 'Copy current line'), 1037 act = E5Action(QApplication.translate('ViewManager', 'Copy current line'),
1038 QApplication.translate('ViewManager', 'Copy current line'), 1038 QApplication.translate('ViewManager', 'Copy current line'),
1039 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+T')), 1039 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+T')),
1040 0, 1040 0,
1041 self.editorActGrp, 'vm_edit_copy_current_line') 1041 self.editorActGrp, 'vm_edit_copy_current_line')
1042 self.esm.setMapping(act, QsciScintilla.SCI_LINECOPY) 1042 self.esm.setMapping(act, QsciScintilla.SCI_LINECOPY)
1043 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1043 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1044 self.editActions.append(act) 1044 self.editActions.append(act)
1045 1045
1046 act = E4Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'), 1046 act = E5Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'),
1047 QApplication.translate('ViewManager', 'Toggle insert/overtype'), 1047 QApplication.translate('ViewManager', 'Toggle insert/overtype'),
1048 QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0, 1048 QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0,
1049 self.editorActGrp, 'vm_edit_toggle_insert_overtype') 1049 self.editorActGrp, 'vm_edit_toggle_insert_overtype')
1050 self.esm.setMapping(act, QsciScintilla.SCI_EDITTOGGLEOVERTYPE) 1050 self.esm.setMapping(act, QsciScintilla.SCI_EDITTOGGLEOVERTYPE)
1051 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1051 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1052 self.editActions.append(act) 1052 self.editActions.append(act)
1053 1053
1054 act = E4Action(QApplication.translate('ViewManager', 1054 act = E5Action(QApplication.translate('ViewManager',
1055 'Convert selection to lower case'), 1055 'Convert selection to lower case'),
1056 QApplication.translate('ViewManager', 1056 QApplication.translate('ViewManager',
1057 'Convert selection to lower case'), 1057 'Convert selection to lower case'),
1058 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+U')), 1058 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+U')),
1059 0, 1059 0,
1060 self.editorActGrp, 'vm_edit_convert_selection_lower') 1060 self.editorActGrp, 'vm_edit_convert_selection_lower')
1061 self.esm.setMapping(act, QsciScintilla.SCI_LOWERCASE) 1061 self.esm.setMapping(act, QsciScintilla.SCI_LOWERCASE)
1062 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1062 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1063 self.editActions.append(act) 1063 self.editActions.append(act)
1064 1064
1065 act = E4Action(QApplication.translate('ViewManager', 1065 act = E5Action(QApplication.translate('ViewManager',
1066 'Convert selection to upper case'), 1066 'Convert selection to upper case'),
1067 QApplication.translate('ViewManager', 1067 QApplication.translate('ViewManager',
1068 'Convert selection to upper case'), 1068 'Convert selection to upper case'),
1069 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+U')), 1069 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+U')),
1070 0, 1070 0,
1071 self.editorActGrp, 'vm_edit_convert_selection_upper') 1071 self.editorActGrp, 'vm_edit_convert_selection_upper')
1072 self.esm.setMapping(act, QsciScintilla.SCI_UPPERCASE) 1072 self.esm.setMapping(act, QsciScintilla.SCI_UPPERCASE)
1073 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1073 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1074 self.editActions.append(act) 1074 self.editActions.append(act)
1075 1075
1076 act = E4Action(QApplication.translate('ViewManager', 1076 act = E5Action(QApplication.translate('ViewManager',
1077 'Move to end of displayed line'), 1077 'Move to end of displayed line'),
1078 QApplication.translate('ViewManager', 1078 QApplication.translate('ViewManager',
1079 'Move to end of displayed line'), 1079 'Move to end of displayed line'),
1080 QKeySequence(QApplication.translate('ViewManager', 'Alt+End')), 0, 1080 QKeySequence(QApplication.translate('ViewManager', 'Alt+End')), 0,
1081 self.editorActGrp, 'vm_edit_move_end_displayed_line') 1081 self.editorActGrp, 'vm_edit_move_end_displayed_line')
1082 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAY) 1082 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAY)
1083 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1083 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1084 self.editActions.append(act) 1084 self.editActions.append(act)
1085 1085
1086 act = E4Action(QApplication.translate('ViewManager', 1086 act = E5Action(QApplication.translate('ViewManager',
1087 'Extend selection to end of displayed line'), 1087 'Extend selection to end of displayed line'),
1088 QApplication.translate('ViewManager', 1088 QApplication.translate('ViewManager',
1089 'Extend selection to end of displayed line'), 1089 'Extend selection to end of displayed line'),
1090 0, 0, 1090 0, 0,
1091 self.editorActGrp, 'vm_edit_extend_selection_end_displayed_line') 1091 self.editorActGrp, 'vm_edit_extend_selection_end_displayed_line')
1092 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAYEXTEND) 1092 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAYEXTEND)
1093 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1093 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1094 self.editActions.append(act) 1094 self.editActions.append(act)
1095 1095
1096 act = E4Action(QApplication.translate('ViewManager', 'Formfeed'), 1096 act = E5Action(QApplication.translate('ViewManager', 'Formfeed'),
1097 QApplication.translate('ViewManager', 'Formfeed'), 1097 QApplication.translate('ViewManager', 'Formfeed'),
1098 0, 0, 1098 0, 0,
1099 self.editorActGrp, 'vm_edit_formfeed') 1099 self.editorActGrp, 'vm_edit_formfeed')
1100 self.esm.setMapping(act, QsciScintilla.SCI_FORMFEED) 1100 self.esm.setMapping(act, QsciScintilla.SCI_FORMFEED)
1101 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1101 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1102 self.editActions.append(act) 1102 self.editActions.append(act)
1103 1103
1104 act = E4Action(QApplication.translate('ViewManager', 'Escape'), 1104 act = E5Action(QApplication.translate('ViewManager', 'Escape'),
1105 QApplication.translate('ViewManager', 'Escape'), 1105 QApplication.translate('ViewManager', 'Escape'),
1106 QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0, 1106 QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0,
1107 self.editorActGrp, 'vm_edit_escape') 1107 self.editorActGrp, 'vm_edit_escape')
1108 self.esm.setMapping(act, QsciScintilla.SCI_CANCEL) 1108 self.esm.setMapping(act, QsciScintilla.SCI_CANCEL)
1109 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1109 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1110 self.editActions.append(act) 1110 self.editActions.append(act)
1111 1111
1112 act = E4Action(QApplication.translate('ViewManager', 1112 act = E5Action(QApplication.translate('ViewManager',
1113 'Extend rectangular selection down one line'), 1113 'Extend rectangular selection down one line'),
1114 QApplication.translate('ViewManager', 1114 QApplication.translate('ViewManager',
1115 'Extend rectangular selection down one line'), 1115 'Extend rectangular selection down one line'),
1116 QKeySequence(QApplication.translate('ViewManager', 1116 QKeySequence(QApplication.translate('ViewManager',
1117 'Alt+Ctrl+Down')), 1117 'Alt+Ctrl+Down')),
1119 self.editorActGrp, 'vm_edit_extend_rect_selection_down_line') 1119 self.editorActGrp, 'vm_edit_extend_rect_selection_down_line')
1120 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNRECTEXTEND) 1120 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNRECTEXTEND)
1121 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1121 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1122 self.editActions.append(act) 1122 self.editActions.append(act)
1123 1123
1124 act = E4Action(QApplication.translate('ViewManager', 1124 act = E5Action(QApplication.translate('ViewManager',
1125 'Extend rectangular selection up one line'), 1125 'Extend rectangular selection up one line'),
1126 QApplication.translate('ViewManager', 1126 QApplication.translate('ViewManager',
1127 'Extend rectangular selection up one line'), 1127 'Extend rectangular selection up one line'),
1128 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+Up')), 1128 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+Up')),
1129 0, 1129 0,
1130 self.editorActGrp, 'vm_edit_extend_rect_selection_up_line') 1130 self.editorActGrp, 'vm_edit_extend_rect_selection_up_line')
1131 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPRECTEXTEND) 1131 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPRECTEXTEND)
1132 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1132 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1133 self.editActions.append(act) 1133 self.editActions.append(act)
1134 1134
1135 act = E4Action(QApplication.translate('ViewManager', 1135 act = E5Action(QApplication.translate('ViewManager',
1136 'Extend rectangular selection left one character'), 1136 'Extend rectangular selection left one character'),
1137 QApplication.translate('ViewManager', 1137 QApplication.translate('ViewManager',
1138 'Extend rectangular selection left one character'), 1138 'Extend rectangular selection left one character'),
1139 QKeySequence(QApplication.translate('ViewManager', 1139 QKeySequence(QApplication.translate('ViewManager',
1140 'Alt+Ctrl+Left')), 1140 'Alt+Ctrl+Left')),
1142 self.editorActGrp, 'vm_edit_extend_rect_selection_left_char') 1142 self.editorActGrp, 'vm_edit_extend_rect_selection_left_char')
1143 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTRECTEXTEND) 1143 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTRECTEXTEND)
1144 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1144 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1145 self.editActions.append(act) 1145 self.editActions.append(act)
1146 1146
1147 act = E4Action(QApplication.translate('ViewManager', 1147 act = E5Action(QApplication.translate('ViewManager',
1148 'Extend rectangular selection right one character'), 1148 'Extend rectangular selection right one character'),
1149 QApplication.translate('ViewManager', 1149 QApplication.translate('ViewManager',
1150 'Extend rectangular selection right one character'), 1150 'Extend rectangular selection right one character'),
1151 QKeySequence(QApplication.translate('ViewManager', 1151 QKeySequence(QApplication.translate('ViewManager',
1152 'Alt+Ctrl+Right')), 1152 'Alt+Ctrl+Right')),
1154 self.editorActGrp, 'vm_edit_extend_rect_selection_right_char') 1154 self.editorActGrp, 'vm_edit_extend_rect_selection_right_char')
1155 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTRECTEXTEND) 1155 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTRECTEXTEND)
1156 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1156 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1157 self.editActions.append(act) 1157 self.editActions.append(act)
1158 1158
1159 act = E4Action(QApplication.translate('ViewManager', 1159 act = E5Action(QApplication.translate('ViewManager',
1160 'Extend rectangular selection to first' 1160 'Extend rectangular selection to first'
1161 ' visible character in line'), 1161 ' visible character in line'),
1162 QApplication.translate('ViewManager', 1162 QApplication.translate('ViewManager',
1163 'Extend rectangular selection to first' 1163 'Extend rectangular selection to first'
1164 ' visible character in line'), 1164 ' visible character in line'),
1169 'vm_edit_extend_rect_selection_first_visible_char') 1169 'vm_edit_extend_rect_selection_first_visible_char')
1170 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMERECTEXTEND) 1170 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMERECTEXTEND)
1171 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1171 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1172 self.editActions.append(act) 1172 self.editActions.append(act)
1173 1173
1174 act = E4Action(QApplication.translate('ViewManager', 1174 act = E5Action(QApplication.translate('ViewManager',
1175 'Extend rectangular selection to end of line'), 1175 'Extend rectangular selection to end of line'),
1176 QApplication.translate('ViewManager', 1176 QApplication.translate('ViewManager',
1177 'Extend rectangular selection to end of line'), 1177 'Extend rectangular selection to end of line'),
1178 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+End')), 1178 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+End')),
1179 0, 1179 0,
1180 self.editorActGrp, 'vm_edit_extend_rect_selection_end_line') 1180 self.editorActGrp, 'vm_edit_extend_rect_selection_end_line')
1181 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDRECTEXTEND) 1181 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDRECTEXTEND)
1182 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1182 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1183 self.editActions.append(act) 1183 self.editActions.append(act)
1184 1184
1185 act = E4Action(QApplication.translate('ViewManager', 1185 act = E5Action(QApplication.translate('ViewManager',
1186 'Extend rectangular selection up one page'), 1186 'Extend rectangular selection up one page'),
1187 QApplication.translate('ViewManager', 1187 QApplication.translate('ViewManager',
1188 'Extend rectangular selection up one page'), 1188 'Extend rectangular selection up one page'),
1189 QKeySequence(QApplication.translate('ViewManager', 1189 QKeySequence(QApplication.translate('ViewManager',
1190 'Alt+Ctrl+PgUp')), 1190 'Alt+Ctrl+PgUp')),
1192 self.editorActGrp, 'vm_edit_extend_rect_selection_up_page') 1192 self.editorActGrp, 'vm_edit_extend_rect_selection_up_page')
1193 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPRECTEXTEND) 1193 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPRECTEXTEND)
1194 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1194 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1195 self.editActions.append(act) 1195 self.editActions.append(act)
1196 1196
1197 act = E4Action(QApplication.translate('ViewManager', 1197 act = E5Action(QApplication.translate('ViewManager',
1198 'Extend rectangular selection down one page'), 1198 'Extend rectangular selection down one page'),
1199 QApplication.translate('ViewManager', 1199 QApplication.translate('ViewManager',
1200 'Extend rectangular selection down one page'), 1200 'Extend rectangular selection down one page'),
1201 QKeySequence(QApplication.translate('ViewManager', 1201 QKeySequence(QApplication.translate('ViewManager',
1202 'Alt+Ctrl+PgDown')), 1202 'Alt+Ctrl+PgDown')),
1204 self.editorActGrp, 'vm_edit_extend_rect_selection_down_page') 1204 self.editorActGrp, 'vm_edit_extend_rect_selection_down_page')
1205 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNRECTEXTEND) 1205 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNRECTEXTEND)
1206 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1206 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1207 self.editActions.append(act) 1207 self.editActions.append(act)
1208 1208
1209 act = E4Action(QApplication.translate('ViewManager', 1209 act = E5Action(QApplication.translate('ViewManager',
1210 'Duplicate current selection'), 1210 'Duplicate current selection'),
1211 QApplication.translate('ViewManager', 1211 QApplication.translate('ViewManager',
1212 'Duplicate current selection'), 1212 'Duplicate current selection'),
1213 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+D')), 1213 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+D')),
1214 0, 1214 0,
1221 1221
1222 def __createSearchActions(self): 1222 def __createSearchActions(self):
1223 """ 1223 """
1224 Private method defining the user interface actions for the search commands. 1224 Private method defining the user interface actions for the search commands.
1225 """ 1225 """
1226 self.searchAct = E4Action(QApplication.translate('ViewManager', 'Search'), 1226 self.searchAct = E5Action(QApplication.translate('ViewManager', 'Search'),
1227 UI.PixmapCache.getIcon("find.png"), 1227 UI.PixmapCache.getIcon("find.png"),
1228 QApplication.translate('ViewManager', '&Search...'), 1228 QApplication.translate('ViewManager', '&Search...'),
1229 QKeySequence(QApplication.translate('ViewManager', 1229 QKeySequence(QApplication.translate('ViewManager',
1230 "Ctrl+F", "Search|Search")), 1230 "Ctrl+F", "Search|Search")),
1231 0, 1231 0,
1239 """ for the search.</p>""" 1239 """ for the search.</p>"""
1240 )) 1240 ))
1241 self.connect(self.searchAct, SIGNAL('triggered()'), self.__search) 1241 self.connect(self.searchAct, SIGNAL('triggered()'), self.__search)
1242 self.searchActions.append(self.searchAct) 1242 self.searchActions.append(self.searchAct)
1243 1243
1244 self.searchNextAct = E4Action(QApplication.translate('ViewManager', 1244 self.searchNextAct = E5Action(QApplication.translate('ViewManager',
1245 'Search next'), 1245 'Search next'),
1246 UI.PixmapCache.getIcon("findNext.png"), 1246 UI.PixmapCache.getIcon("findNext.png"),
1247 QApplication.translate('ViewManager', 'Search &next'), 1247 QApplication.translate('ViewManager', 'Search &next'),
1248 QKeySequence(QApplication.translate('ViewManager', 1248 QKeySequence(QApplication.translate('ViewManager',
1249 "F3", "Search|Search next")), 1249 "F3", "Search|Search next")),
1257 """ The previously entered searchtext and options are reused.</p>""" 1257 """ The previously entered searchtext and options are reused.</p>"""
1258 )) 1258 ))
1259 self.connect(self.searchNextAct, SIGNAL('triggered()'), self.searchDlg.findNext) 1259 self.connect(self.searchNextAct, SIGNAL('triggered()'), self.searchDlg.findNext)
1260 self.searchActions.append(self.searchNextAct) 1260 self.searchActions.append(self.searchNextAct)
1261 1261
1262 self.searchPrevAct = E4Action(QApplication.translate('ViewManager', 1262 self.searchPrevAct = E5Action(QApplication.translate('ViewManager',
1263 'Search previous'), 1263 'Search previous'),
1264 UI.PixmapCache.getIcon("findPrev.png"), 1264 UI.PixmapCache.getIcon("findPrev.png"),
1265 QApplication.translate('ViewManager', 'Search &previous'), 1265 QApplication.translate('ViewManager', 'Search &previous'),
1266 QKeySequence(QApplication.translate('ViewManager', 1266 QKeySequence(QApplication.translate('ViewManager',
1267 "Shift+F3", "Search|Search previous")), 1267 "Shift+F3", "Search|Search previous")),
1275 """ The previously entered searchtext and options are reused.</p>""" 1275 """ The previously entered searchtext and options are reused.</p>"""
1276 )) 1276 ))
1277 self.connect(self.searchPrevAct, SIGNAL('triggered()'), self.searchDlg.findPrev) 1277 self.connect(self.searchPrevAct, SIGNAL('triggered()'), self.searchDlg.findPrev)
1278 self.searchActions.append(self.searchPrevAct) 1278 self.searchActions.append(self.searchPrevAct)
1279 1279
1280 self.searchClearMarkersAct = E4Action(QApplication.translate('ViewManager', 1280 self.searchClearMarkersAct = E5Action(QApplication.translate('ViewManager',
1281 'Clear search markers'), 1281 'Clear search markers'),
1282 UI.PixmapCache.getIcon("findClear.png"), 1282 UI.PixmapCache.getIcon("findClear.png"),
1283 QApplication.translate('ViewManager', 'Clear search markers'), 1283 QApplication.translate('ViewManager', 'Clear search markers'),
1284 QKeySequence(QApplication.translate('ViewManager', 1284 QKeySequence(QApplication.translate('ViewManager',
1285 "Ctrl+3", "Search|Clear search markers")), 1285 "Ctrl+3", "Search|Clear search markers")),
1293 )) 1293 ))
1294 self.connect(self.searchClearMarkersAct, SIGNAL('triggered()'), 1294 self.connect(self.searchClearMarkersAct, SIGNAL('triggered()'),
1295 self.__searchClearMarkers) 1295 self.__searchClearMarkers)
1296 self.searchActions.append(self.searchClearMarkersAct) 1296 self.searchActions.append(self.searchClearMarkersAct)
1297 1297
1298 self.replaceAct = E4Action(QApplication.translate('ViewManager', 'Replace'), 1298 self.replaceAct = E5Action(QApplication.translate('ViewManager', 'Replace'),
1299 QApplication.translate('ViewManager', '&Replace...'), 1299 QApplication.translate('ViewManager', '&Replace...'),
1300 QKeySequence(QApplication.translate('ViewManager', 1300 QKeySequence(QApplication.translate('ViewManager',
1301 "Ctrl+R", "Search|Replace")), 1301 "Ctrl+R", "Search|Replace")),
1302 0, 1302 0,
1303 self, 'vm_search_replace') 1303 self, 'vm_search_replace')
1314 1314
1315 def __createHelpActions(self): 1315 def __createHelpActions(self):
1316 """ 1316 """
1317 Private method to create the Help actions. 1317 Private method to create the Help actions.
1318 """ 1318 """
1319 self.aboutAct = E4Action(self.trUtf8('About'), 1319 self.aboutAct = E5Action(self.trUtf8('About'),
1320 self.trUtf8('&About'), 1320 self.trUtf8('&About'),
1321 0, 0, self, 'about_eric') 1321 0, 0, self, 'about_eric')
1322 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) 1322 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software'))
1323 self.aboutAct.setWhatsThis(self.trUtf8( 1323 self.aboutAct.setWhatsThis(self.trUtf8(
1324 """<b>About</b>""" 1324 """<b>About</b>"""
1325 """<p>Display some information about this software.</p>""")) 1325 """<p>Display some information about this software.</p>"""))
1326 self.connect(self.aboutAct, SIGNAL('triggered()'), self.__about) 1326 self.connect(self.aboutAct, SIGNAL('triggered()'), self.__about)
1327 self.helpActions.append(self.aboutAct) 1327 self.helpActions.append(self.aboutAct)
1328 1328
1329 self.aboutQtAct = E4Action(self.trUtf8('About Qt'), 1329 self.aboutQtAct = E5Action(self.trUtf8('About Qt'),
1330 self.trUtf8('About &Qt'), 0, 0, self, 'about_qt') 1330 self.trUtf8('About &Qt'), 0, 0, self, 'about_qt')
1331 self.aboutQtAct.setStatusTip(\ 1331 self.aboutQtAct.setStatusTip(\
1332 self.trUtf8('Display information about the Qt toolkit')) 1332 self.trUtf8('Display information about the Qt toolkit'))
1333 self.aboutQtAct.setWhatsThis(self.trUtf8( 1333 self.aboutQtAct.setWhatsThis(self.trUtf8(
1334 """<b>About Qt</b>""" 1334 """<b>About Qt</b>"""
1335 """<p>Display some information about the Qt toolkit.</p>""" 1335 """<p>Display some information about the Qt toolkit.</p>"""
1336 )) 1336 ))
1337 self.connect(self.aboutQtAct, SIGNAL('triggered()'), self.__aboutQt) 1337 self.connect(self.aboutQtAct, SIGNAL('triggered()'), self.__aboutQt)
1338 self.helpActions.append(self.aboutQtAct) 1338 self.helpActions.append(self.aboutQtAct)
1339 1339
1340 self.whatsThisAct = E4Action(self.trUtf8('What\'s This?'), 1340 self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'),
1341 UI.PixmapCache.getIcon("whatsThis.png"), 1341 UI.PixmapCache.getIcon("whatsThis.png"),
1342 self.trUtf8('&What\'s This?'), 1342 self.trUtf8('&What\'s This?'),
1343 QKeySequence(self.trUtf8("Shift+F1","Help|What's This?'")), 1343 QKeySequence(self.trUtf8("Shift+F1","Help|What's This?'")),
1344 0, self, 'help_help_whats_this') 1344 0, self, 'help_help_whats_this')
1345 self.whatsThisAct.setStatusTip(self.trUtf8('Context sensitive help')) 1345 self.whatsThisAct.setStatusTip(self.trUtf8('Context sensitive help'))

eric ide

mercurial