QScintilla/ShellWindow.py

changeset 5712
f0d08bdeacf4
parent 5711
50b6867ffcd3
child 5798
e4f9552f7f93
equal deleted inserted replaced
5711:50b6867ffcd3 5712:f0d08bdeacf4
108 @type QCloseEvent 108 @type QCloseEvent
109 """ 109 """
110 self.__writeSettings() 110 self.__writeSettings()
111 self.__debugServer.shutdownServer() 111 self.__debugServer.shutdownServer()
112 self.__shell.closeShell() 112 self.__shell.closeShell()
113 Preferences.syncPreferences()
113 114
114 event.accept() 115 event.accept()
115 116
116 ################################################################## 117 ##################################################################
117 ## Below are API handling methods 118 ## Below are API handling methods
559 self.editorActGrp, 'vm_edit_move_down_line') 560 self.editorActGrp, 'vm_edit_move_down_line')
560 if isMacPlatform(): 561 if isMacPlatform():
561 act.setAlternateShortcut(QKeySequence( 562 act.setAlternateShortcut(QKeySequence(
562 QCoreApplication.translate('ViewManager', 'Meta+N'))) 563 QCoreApplication.translate('ViewManager', 'Meta+N')))
563 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN) 564 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN)
565 act.triggered.connect(self.esm.map)
566 self.editActions.append(act)
567
568 act = E5Action(
569 self.tr('Move forward one history entry'),
570 self.tr('Move forward one history entry'),
571 QKeySequence(QCoreApplication.translate('ViewManager',
572 'Ctrl+Down')),
573 0, self.editorActGrp, 'vm_edit_scroll_down_line')
574 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN)
575 act.triggered.connect(self.esm.map)
576 self.editActions.append(act)
577
578 act = E5Action(
579 self.tr('Move back one history entry'),
580 self.tr('Move back one history entry'),
581 QKeySequence(QCoreApplication.translate('ViewManager', 'Ctrl+Up')),
582 0, self.editorActGrp, 'vm_edit_scroll_up_line')
583 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP)
564 act.triggered.connect(self.esm.map) 584 act.triggered.connect(self.esm.map)
565 self.editActions.append(act) 585 self.editActions.append(act)
566 586
567 act = E5Action( 587 act = E5Action(
568 QCoreApplication.translate('ViewManager', 'Move up one page'), 588 QCoreApplication.translate('ViewManager', 'Move up one page'),

eric ide

mercurial