--- a/ViewManager/ViewManager.py Wed Aug 04 08:54:52 2010 +0200 +++ b/ViewManager/ViewManager.py Wed Aug 04 20:33:53 2010 +0200 @@ -469,7 +469,7 @@ """<b>New</b>""" """<p>An empty editor window will be created.</p>""" )) - self.newAct.triggered.connect(self.newEditor) + self.newAct.triggered[()].connect(self.newEditor) self.fileActions.append(self.newAct) self.openAct = E5Action(QApplication.translate('ViewManager', 'Open'), @@ -484,7 +484,7 @@ """<p>You will be asked for the name of a file to be opened""" """ in an editor window.</p>""" )) - self.openAct.triggered.connect(self.openFiles) + self.openAct.triggered[()].connect(self.openFiles) self.fileActions.append(self.openAct) self.closeActGrp = createActionGroup(self) @@ -501,7 +501,7 @@ """<b>Close Window</b>""" """<p>Close the current window.</p>""" )) - self.closeAct.triggered.connect(self.closeCurrentWindow) + self.closeAct.triggered[()].connect(self.closeCurrentWindow) self.fileActions.append(self.closeAct) self.closeAllAct = E5Action(QApplication.translate('ViewManager', 'Close All'), @@ -513,7 +513,7 @@ """<b>Close All Windows</b>""" """<p>Close all editor windows.</p>""" )) - self.closeAllAct.triggered.connect(self.closeAllWindows) + self.closeAllAct.triggered[()].connect(self.closeAllWindows) self.fileActions.append(self.closeAllAct) self.closeActGrp.setEnabled(False) @@ -532,7 +532,7 @@ """<b>Save File</b>""" """<p>Save the contents of current editor window.</p>""" )) - self.saveAct.triggered.connect(self.saveCurrentEditor) + self.saveAct.triggered[()].connect(self.saveCurrentEditor) self.fileActions.append(self.saveAct) self.saveAsAct = E5Action(QApplication.translate('ViewManager', 'Save as'), @@ -548,7 +548,7 @@ """<p>Save the contents of current editor window to a new file.""" """ The file can be entered in a file selection dialog.</p>""" )) - self.saveAsAct.triggered.connect(self.saveAsCurrentEditor) + self.saveAsAct.triggered[()].connect(self.saveAsCurrentEditor) self.fileActions.append(self.saveAsAct) self.saveAllAct = E5Action(QApplication.translate('ViewManager', 'Save all'), @@ -561,7 +561,7 @@ """<b>Save All Files</b>""" """<p>Save the contents of all editor windows.</p>""" )) - self.saveAllAct.triggered.connect(self.saveAllEditors) + self.saveAllAct.triggered[()].connect(self.saveAllEditors) self.fileActions.append(self.saveAllAct) self.saveActGrp.setEnabled(False) @@ -579,7 +579,7 @@ """ current project. After the file has been saved, it is""" """ automatically added to the current project.</p>""" )) - self.saveToProjectAct.triggered.connect(self.saveCurrentEditorToProject) + self.saveToProjectAct.triggered[()].connect(self.saveCurrentEditorToProject) self.saveToProjectAct.setEnabled(False) self.fileActions.append(self.saveToProjectAct) @@ -595,7 +595,7 @@ """<b>Print File</b>""" """<p>Print the contents of current editor window.</p>""" )) - self.printAct.triggered.connect(self.printCurrentEditor) + self.printAct.triggered[()].connect(self.printCurrentEditor) self.printAct.setEnabled(False) self.fileActions.append(self.printAct) @@ -610,7 +610,7 @@ """<b>Print Preview</b>""" """<p>Print preview of the current editor window.</p>""" )) - self.printPreviewAct.triggered.connect(self.printPreviewCurrentEditor) + self.printPreviewAct.triggered[()].connect(self.printPreviewCurrentEditor) self.printPreviewAct.setEnabled(False) self.fileActions.append(self.printPreviewAct) @@ -626,7 +626,7 @@ """<b>Search File</b>""" """<p>Search for a file.</p>""" )) - self.findFileNameAct.triggered.connect(self.__findFileName) + self.findFileNameAct.triggered[()].connect(self.__findFileName) self.fileActions.append(self.findFileNameAct) def initFileMenu(self): @@ -744,7 +744,7 @@ """<b>Undo</b>""" """<p>Undo the last change done in the current editor.</p>""" )) - self.undoAct.triggered.connect(self.__editUndo) + self.undoAct.triggered[()].connect(self.__editUndo) self.editActions.append(self.undoAct) self.redoAct = E5Action(QApplication.translate('ViewManager', 'Redo'), @@ -759,7 +759,7 @@ """<b>Redo</b>""" """<p>Redo the last change done in the current editor.</p>""" )) - self.redoAct.triggered.connect(self.__editRedo) + self.redoAct.triggered[()].connect(self.__editRedo) self.editActions.append(self.redoAct) self.revertAct = E5Action(QApplication.translate('ViewManager', @@ -776,7 +776,7 @@ """<p>Undo all changes up to the last saved state""" """ of the current editor.</p>""" )) - self.revertAct.triggered.connect(self.__editRevert) + self.revertAct.triggered[()].connect(self.__editRevert) self.editActions.append(self.revertAct) self.copyActGrp = createActionGroup(self.editActGrp) @@ -794,7 +794,7 @@ """<b>Cut</b>""" """<p>Cut the selected text of the current editor to the clipboard.</p>""" )) - self.cutAct.triggered.connect(self.__editCut) + self.cutAct.triggered[()].connect(self.__editCut) self.editActions.append(self.cutAct) self.copyAct = E5Action(QApplication.translate('ViewManager', 'Copy'), @@ -811,7 +811,7 @@ """<b>Copy</b>""" """<p>Copy the selected text of the current editor to the clipboard.</p>""" )) - self.copyAct.triggered.connect(self.__editCopy) + self.copyAct.triggered[()].connect(self.__editCopy) self.editActions.append(self.copyAct) self.pasteAct = E5Action(QApplication.translate('ViewManager', 'Paste'), @@ -829,7 +829,7 @@ """<p>Paste the last cut/copied text from the clipboard to""" """ the current editor.</p>""" )) - self.pasteAct.triggered.connect(self.__editPaste) + self.pasteAct.triggered[()].connect(self.__editPaste) self.editActions.append(self.pasteAct) self.deleteAct = E5Action(QApplication.translate('ViewManager', 'Clear'), @@ -845,7 +845,7 @@ """<b>Clear</b>""" """<p>Delete all text of the current editor.</p>""" )) - self.deleteAct.triggered.connect(self.__editDelete) + self.deleteAct.triggered[()].connect(self.__editDelete) self.editActions.append(self.deleteAct) self.indentAct = E5Action(QApplication.translate('ViewManager', 'Indent'), @@ -861,7 +861,7 @@ """<p>Indents the current line or the lines of the""" """ selection by one level.</p>""" )) - self.indentAct.triggered.connect(self.__editIndent) + self.indentAct.triggered[()].connect(self.__editIndent) self.editActions.append(self.indentAct) self.unindentAct = E5Action(QApplication.translate('ViewManager', 'Unindent'), @@ -878,7 +878,7 @@ """<p>Unindents the current line or the lines of the""" """ selection by one level.</p>""" )) - self.unindentAct.triggered.connect(self.__editUnindent) + self.unindentAct.triggered[()].connect(self.__editUnindent) self.editActions.append(self.unindentAct) self.smartIndentAct = E5Action(QApplication.translate('ViewManager', @@ -896,7 +896,7 @@ """<p>Indents the current line or the lines of the""" """ current selection smartly.</p>""" )) - self.smartIndentAct.triggered.connect(self.__editSmartIndent) + self.smartIndentAct.triggered[()].connect(self.__editSmartIndent) self.editActions.append(self.smartIndentAct) self.commentAct = E5Action(QApplication.translate('ViewManager', 'Comment'), @@ -913,7 +913,7 @@ """<p>Comments the current line or the lines of the""" """ current selection.</p>""" )) - self.commentAct.triggered.connect(self.__editComment) + self.commentAct.triggered[()].connect(self.__editComment) self.editActions.append(self.commentAct) self.uncommentAct = E5Action(QApplication.translate('ViewManager', 'Uncomment'), @@ -930,7 +930,7 @@ """<p>Uncomments the current line or the lines of the""" """ current selection.</p>""" )) - self.uncommentAct.triggered.connect(self.__editUncomment) + self.uncommentAct.triggered[()].connect(self.__editUncomment) self.editActions.append(self.uncommentAct) self.streamCommentAct = E5Action(QApplication.translate('ViewManager', @@ -943,7 +943,7 @@ """<b>Stream Comment</b>""" """<p>Stream comments the current line or the current selection.</p>""" )) - self.streamCommentAct.triggered.connect(self.__editStreamComment) + self.streamCommentAct.triggered[()].connect(self.__editStreamComment) self.editActions.append(self.streamCommentAct) self.boxCommentAct = E5Action(QApplication.translate('ViewManager', @@ -957,7 +957,7 @@ """<p>Box comments the current line or the lines of the""" """ current selection.</p>""" )) - self.boxCommentAct.triggered.connect(self.__editBoxComment) + self.boxCommentAct.triggered[()].connect(self.__editBoxComment) self.editActions.append(self.boxCommentAct) self.selectBraceAct = E5Action(QApplication.translate('ViewManager', @@ -973,7 +973,7 @@ """<b>Select to brace</b>""" """<p>Select text of the current editor to the matching brace.</p>""" )) - self.selectBraceAct.triggered.connect(self.__editSelectBrace) + self.selectBraceAct.triggered[()].connect(self.__editSelectBrace) self.editActions.append(self.selectBraceAct) self.selectAllAct = E5Action(QApplication.translate('ViewManager', 'Select all'), @@ -988,7 +988,7 @@ """<b>Select All</b>""" """<p>Select all text of the current editor.</p>""" )) - self.selectAllAct.triggered.connect(self.__editSelectAll) + self.selectAllAct.triggered[()].connect(self.__editSelectAll) self.editActions.append(self.selectAllAct) self.deselectAllAct = E5Action(QApplication.translate('ViewManager', @@ -1004,7 +1004,7 @@ """<b>Deselect All</b>""" """<p>Deselect all text of the current editor.</p>""" )) - self.deselectAllAct.triggered.connect(self.__editDeselectAll) + self.deselectAllAct.triggered[()].connect(self.__editDeselectAll) self.editActions.append(self.deselectAllAct) self.convertEOLAct = E5Action(QApplication.translate('ViewManager', @@ -1017,7 +1017,7 @@ """<b>Convert Line End Characters</b>""" """<p>Convert the line end characters to the currently set type.</p>""" )) - self.convertEOLAct.triggered.connect(self.__convertEOL) + self.convertEOLAct.triggered[()].connect(self.__convertEOL) self.editActions.append(self.convertEOLAct) self.shortenEmptyAct = E5Action(QApplication.translate('ViewManager', @@ -1030,7 +1030,7 @@ """<b>Shorten empty lines</b>""" """<p>Shorten lines consisting solely of whitespace characters.</p>""" )) - self.shortenEmptyAct.triggered.connect(self.__shortenEmptyLines) + self.shortenEmptyAct.triggered[()].connect(self.__shortenEmptyLines) self.editActions.append(self.shortenEmptyAct) self.autoCompleteAct = E5Action(QApplication.translate('ViewManager', @@ -1046,7 +1046,7 @@ """<b>Autocomplete</b>""" """<p>Performs an autocompletion of the word containing the cursor.</p>""" )) - self.autoCompleteAct.triggered.connect(self.__editAutoComplete) + self.autoCompleteAct.triggered[()].connect(self.__editAutoComplete) self.editActions.append(self.autoCompleteAct) self.autoCompleteFromDocAct = E5Action(QApplication.translate('ViewManager', @@ -1062,7 +1062,7 @@ """<p>Performs an autocompletion from document of the word""" """ containing the cursor.</p>""" )) - self.autoCompleteFromDocAct.triggered.connect(self.__editAutoCompleteFromDoc) + self.autoCompleteFromDocAct.triggered[()].connect(self.__editAutoCompleteFromDoc) self.editActions.append(self.autoCompleteFromDocAct) self.autoCompleteFromAPIsAct = E5Action(QApplication.translate('ViewManager', @@ -1078,7 +1078,7 @@ """<p>Performs an autocompletion from APIs of the word containing""" """ the cursor.</p>""" )) - self.autoCompleteFromAPIsAct.triggered.connect(self.__editAutoCompleteFromAPIs) + self.autoCompleteFromAPIsAct.triggered[()].connect(self.__editAutoCompleteFromAPIs) self.editActions.append(self.autoCompleteFromAPIsAct) self.autoCompleteFromAllAct = E5Action(\ @@ -1096,7 +1096,7 @@ """<p>Performs an autocompletion from document and APIs""" """ of the word containing the cursor.</p>""" )) - self.autoCompleteFromAllAct.triggered.connect(self.__editAutoCompleteFromAll) + self.autoCompleteFromAllAct.triggered[()].connect(self.__editAutoCompleteFromAll) self.editActions.append(self.autoCompleteFromAllAct) self.calltipsAct = E5Action(QApplication.translate('ViewManager', @@ -1113,7 +1113,7 @@ """<p>Show calltips based on the characters immediately to the""" """ left of the cursor.</p>""" )) - self.calltipsAct.triggered.connect(self.__editShowCallTips) + self.calltipsAct.triggered[()].connect(self.__editShowCallTips) self.editActions.append(self.calltipsAct) self.editActGrp.setEnabled(False) @@ -1133,7 +1133,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Left')), 0, self.editorActGrp, 'vm_edit_move_left_char') self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFT) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move right one character'), @@ -1141,7 +1141,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Right')), 0, self.editorActGrp, 'vm_edit_move_right_char') self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHT) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move up one line'), @@ -1149,7 +1149,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Up')), 0, self.editorActGrp, 'vm_edit_move_up_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEUP) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move down one line'), @@ -1157,7 +1157,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Down')), 0, self.editorActGrp, 'vm_edit_move_down_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move left one word part'), @@ -1165,7 +1165,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+Left')), 0, self.editorActGrp, 'vm_edit_move_left_word_part') self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFT) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move right one word part'), @@ -1173,7 +1173,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+Right')), 0, self.editorActGrp, 'vm_edit_move_right_word_part') self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHT) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move left one word'), @@ -1181,7 +1181,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Left')), 0, self.editorActGrp, 'vm_edit_move_left_word') self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFT) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move right one word'), @@ -1190,7 +1190,7 @@ 0, self.editorActGrp, 'vm_edit_move_right_word') self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1200,7 +1200,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Home')), 0, self.editorActGrp, 'vm_edit_move_first_visible_char') self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1210,7 +1210,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+Home')), 0, self.editorActGrp, 'vm_edit_move_start_line') self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move to end of line'), @@ -1218,7 +1218,7 @@ QKeySequence(QApplication.translate('ViewManager', 'End')), 0, self.editorActGrp, 'vm_edit_move_end_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Scroll view down one line'), @@ -1226,7 +1226,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0, self.editorActGrp, 'vm_edit_scroll_down_line') self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Scroll view up one line'), @@ -1234,7 +1234,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0, self.editorActGrp, 'vm_edit_scroll_up_line') self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move up one paragraph'), @@ -1242,7 +1242,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0, self.editorActGrp, 'vm_edit_move_up_para') self.esm.setMapping(act, QsciScintilla.SCI_PARAUP) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move down one paragraph'), @@ -1250,7 +1250,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0, self.editorActGrp, 'vm_edit_move_down_para') self.esm.setMapping(act, QsciScintilla.SCI_PARADOWN) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move up one page'), @@ -1258,7 +1258,7 @@ QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0, self.editorActGrp, 'vm_edit_move_up_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEUP) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move down one page'), @@ -1266,7 +1266,7 @@ QKeySequence(QApplication.translate('ViewManager', 'PgDown')), 0, self.editorActGrp, 'vm_edit_move_down_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWN) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move to start of text'), @@ -1274,7 +1274,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Home')), 0, self.editorActGrp, 'vm_edit_move_start_text') self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTART) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Move to end of text'), @@ -1282,7 +1282,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+End')), 0, self.editorActGrp, 'vm_edit_move_end_text') self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Indent one level'), @@ -1290,7 +1290,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0, self.editorActGrp, 'vm_edit_indent_one_level') self.esm.setMapping(act, QsciScintilla.SCI_TAB) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Unindent one level'), @@ -1298,7 +1298,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0, self.editorActGrp, 'vm_edit_unindent_one_level') self.esm.setMapping(act, QsciScintilla.SCI_BACKTAB) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1309,7 +1309,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_left_char') self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1320,7 +1320,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_right_char') self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1330,7 +1330,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Shift+Up')), 0, self.editorActGrp, 'vm_edit_extend_selection_up_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEUPEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1341,7 +1341,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_down_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1353,7 +1353,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_left_word_part') self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1365,7 +1365,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_right_word_part') self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1377,7 +1377,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_left_word') self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1389,7 +1389,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_right_word') self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1400,7 +1400,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_first_visible_char') self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1412,7 +1412,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_start_line') self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAYEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1422,7 +1422,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Shift+End')), 0, self.editorActGrp, 'vm_edit_extend_selection_end_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEENDEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1433,7 +1433,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_up_para') self.esm.setMapping(act, QsciScintilla.SCI_PARAUPEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1445,7 +1445,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_down_para') self.esm.setMapping(act, QsciScintilla.SCI_PARADOWNEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1456,7 +1456,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_up_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1467,7 +1467,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_down_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1479,7 +1479,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_start_text') self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTARTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1491,7 +1491,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_end_text') self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTENDEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1502,7 +1502,7 @@ 'Shift+Backspace')), self.editorActGrp, 'vm_edit_delete_previous_char') self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACK) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1512,7 +1512,7 @@ 0, 0, self.editorActGrp, 'vm_edit_delet_previous_char_not_line_start') self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACKNOTLINE) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Delete current character'), @@ -1520,7 +1520,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Del')), 0, self.editorActGrp, 'vm_edit_delete_current_char') self.esm.setMapping(act, QsciScintilla.SCI_CLEAR) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Delete word to left'), @@ -1530,7 +1530,7 @@ 0, self.editorActGrp, 'vm_edit_delete_word_left') self.esm.setMapping(act, QsciScintilla.SCI_DELWORDLEFT) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Delete word to right'), @@ -1538,7 +1538,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0, self.editorActGrp, 'vm_edit_delete_word_right') self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHT) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Delete line to left'), @@ -1548,7 +1548,7 @@ 0, self.editorActGrp, 'vm_edit_delete_line_left') self.esm.setMapping(act, QsciScintilla.SCI_DELLINELEFT) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Delete line to right'), @@ -1558,7 +1558,7 @@ 0, self.editorActGrp, 'vm_edit_delete_line_right') self.esm.setMapping(act, QsciScintilla.SCI_DELLINERIGHT) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Insert new line'), @@ -1567,7 +1567,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Enter')), self.editorActGrp, 'vm_edit_insert_line') self.esm.setMapping(act, QsciScintilla.SCI_NEWLINE) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1577,7 +1577,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Shift+Return')), QKeySequence(QApplication.translate('ViewManager', 'Shift+Enter')), self.editorActGrp, 'vm_edit_insert_line_below') - act.triggered.connect(self.__newLineBelow) + act.triggered[()].connect(self.__newLineBelow) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Delete current line'), @@ -1586,7 +1586,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+L')), self.editorActGrp, 'vm_edit_delete_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEDELETE) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Duplicate current line'), @@ -1594,7 +1594,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0, self.editorActGrp, 'vm_edit_duplicate_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEDUPLICATE) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1604,7 +1604,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+T')), 0, self.editorActGrp, 'vm_edit_swap_current_previous_line') self.esm.setMapping(act, QsciScintilla.SCI_LINETRANSPOSE) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Cut current line'), @@ -1613,7 +1613,7 @@ 0, self.editorActGrp, 'vm_edit_cut_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINECUT) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Copy current line'), @@ -1622,7 +1622,7 @@ 0, self.editorActGrp, 'vm_edit_copy_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINECOPY) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'), @@ -1630,7 +1630,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0, self.editorActGrp, 'vm_edit_toggle_insert_overtype') self.esm.setMapping(act, QsciScintilla.SCI_EDITTOGGLEOVERTYPE) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1641,7 +1641,7 @@ 0, self.editorActGrp, 'vm_edit_convert_selection_lower') self.esm.setMapping(act, QsciScintilla.SCI_LOWERCASE) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1652,7 +1652,7 @@ 0, self.editorActGrp, 'vm_edit_convert_selection_upper') self.esm.setMapping(act, QsciScintilla.SCI_UPPERCASE) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1662,7 +1662,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+End')), 0, self.editorActGrp, 'vm_edit_move_end_displayed_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAY) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1672,7 +1672,7 @@ 0, 0, self.editorActGrp, 'vm_edit_extend_selection_end_displayed_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAYEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Formfeed'), @@ -1680,7 +1680,7 @@ 0, 0, self.editorActGrp, 'vm_edit_formfeed') self.esm.setMapping(act, QsciScintilla.SCI_FORMFEED) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', 'Escape'), @@ -1688,7 +1688,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0, self.editorActGrp, 'vm_edit_escape') self.esm.setMapping(act, QsciScintilla.SCI_CANCEL) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1700,7 +1700,7 @@ 0, self.editorActGrp, 'vm_edit_extend_rect_selection_down_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNRECTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1711,7 +1711,7 @@ 0, self.editorActGrp, 'vm_edit_extend_rect_selection_up_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEUPRECTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1723,7 +1723,7 @@ 0, self.editorActGrp, 'vm_edit_extend_rect_selection_left_char') self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTRECTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1735,7 +1735,7 @@ 0, self.editorActGrp, 'vm_edit_extend_rect_selection_right_char') self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTRECTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1750,7 +1750,7 @@ self.editorActGrp, 'vm_edit_extend_rect_selection_first_visible_char') self.esm.setMapping(act, QsciScintilla.SCI_VCHOMERECTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1761,7 +1761,7 @@ 0, self.editorActGrp, 'vm_edit_extend_rect_selection_end_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEENDRECTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1773,7 +1773,7 @@ 0, self.editorActGrp, 'vm_edit_extend_rect_selection_up_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPRECTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1785,7 +1785,7 @@ 0, self.editorActGrp, 'vm_edit_extend_rect_selection_down_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNRECTEXTEND) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) act = E5Action(QApplication.translate('ViewManager', @@ -1796,7 +1796,7 @@ 0, self.editorActGrp, 'vm_edit_duplicate_current_selection') self.esm.setMapping(act, QsciScintilla.SCI_SELECTIONDUPLICATE) - act.triggered.connect(self.esm.map) + act.triggered[()].connect(self.esm.map) self.editActions.append(act) self.editorActGrp.setEnabled(False) @@ -1924,7 +1924,7 @@ """ dialog is shown to enter the searchtext and options""" """ for the search.</p>""" )) - self.searchAct.triggered.connect(self.__search) + self.searchAct.triggered[()].connect(self.__search) self.searchActions.append(self.searchAct) self.searchNextAct = E5Action(QApplication.translate('ViewManager', @@ -1942,7 +1942,7 @@ """<p>Search the next occurrence of some text in the current editor.""" """ The previously entered searchtext and options are reused.</p>""" )) - self.searchNextAct.triggered.connect(self.searchDlg.findNext) + self.searchNextAct.triggered[()].connect(self.searchDlg.findNext) self.searchActions.append(self.searchNextAct) self.searchPrevAct = E5Action(QApplication.translate('ViewManager', @@ -1960,7 +1960,7 @@ """<p>Search the previous occurrence of some text in the current editor.""" """ The previously entered searchtext and options are reused.</p>""" )) - self.searchPrevAct.triggered.connect(self.searchDlg.findPrev) + self.searchPrevAct.triggered[()].connect(self.searchDlg.findPrev) self.searchActions.append(self.searchPrevAct) self.searchClearMarkersAct = E5Action(QApplication.translate('ViewManager', @@ -1977,7 +1977,7 @@ """<b>Clear search markers</b>""" """<p>Clear all displayed search markers.</p>""" )) - self.searchClearMarkersAct.triggered.connect(self.__searchClearMarkers) + self.searchClearMarkersAct.triggered[()].connect(self.__searchClearMarkers) self.searchActions.append(self.searchClearMarkersAct) self.replaceAct = E5Action(QApplication.translate('ViewManager', 'Replace'), @@ -1994,7 +1994,7 @@ """ dialog is shown to enter the searchtext, the replacement text""" """ and options for the search and replace.</p>""" )) - self.replaceAct.triggered.connect(self.__replace) + self.replaceAct.triggered[()].connect(self.__replace) self.searchActions.append(self.replaceAct) self.quickSearchAct = E5Action(QApplication.translate('ViewManager', @@ -2014,7 +2014,7 @@ """ is already active and contains text, it searches for the""" """ next occurrence of this text.</p>""" )) - self.quickSearchAct.triggered.connect(self.__quickSearch) + self.quickSearchAct.triggered[()].connect(self.__quickSearch) self.searchActions.append(self.quickSearchAct) self.quickSearchBackAct = E5Action(QApplication.translate('ViewManager', @@ -2030,7 +2030,7 @@ """<b>Quicksearch backwards</b>""" """<p>This searches the previous occurrence of the quicksearch text.</p>""" )) - self.quickSearchBackAct.triggered.connect(self.__quickSearchPrev) + self.quickSearchBackAct.triggered[()].connect(self.__quickSearchPrev) self.searchActions.append(self.quickSearchBackAct) self.quickSearchExtendAct = E5Action(QApplication.translate('ViewManager', @@ -2048,7 +2048,7 @@ """<p>This extends the quicksearch text to the end of the word""" """ currently found.</p>""" )) - self.quickSearchExtendAct.triggered.connect(self.__quickSearchExtend) + self.quickSearchExtendAct.triggered[()].connect(self.__quickSearchExtend) self.searchActions.append(self.quickSearchExtendAct) self.gotoAct = E5Action(QApplication.translate('ViewManager', 'Goto Line'), @@ -2064,7 +2064,7 @@ """<p>Go to a specific line of text in the current editor.""" """ A dialog is shown to enter the linenumber.</p>""" )) - self.gotoAct.triggered.connect(self.__goto) + self.gotoAct.triggered[()].connect(self.__goto) self.searchActions.append(self.gotoAct) self.gotoBraceAct = E5Action(QApplication.translate('ViewManager', 'Goto Brace'), @@ -2080,7 +2080,7 @@ """<b>Goto Brace</b>""" """<p>Go to the matching brace in the current editor.</p>""" )) - self.gotoBraceAct.triggered.connect(self.__gotoBrace) + self.gotoBraceAct.triggered[()].connect(self.__gotoBrace) self.searchActions.append(self.gotoBraceAct) self.searchActGrp.setEnabled(False) @@ -2101,7 +2101,7 @@ """ or the project. A dialog is shown to enter the searchtext""" """ and options for the search and to display the result.</p>""" )) - self.searchFilesAct.triggered.connect(self.__searchFiles) + self.searchFilesAct.triggered[()].connect(self.__searchFiles) self.searchActions.append(self.searchFilesAct) self.replaceFilesAct = E5Action(QApplication.translate('ViewManager', @@ -2120,7 +2120,7 @@ """ the searchtext, the replacement text and options for the""" """ search and to display the result.</p>""" )) - self.replaceFilesAct.triggered.connect(self.__replaceFiles) + self.replaceFilesAct.triggered[()].connect(self.__replaceFiles) self.searchActions.append(self.replaceFilesAct) def initSearchToolbars(self, toolbarManager): @@ -2233,7 +2233,7 @@ """<b>Zoom in</b>""" """<p>Zoom in on the text. This makes the text bigger.</p>""" )) - self.zoomInAct.triggered.connect(self.__zoomIn) + self.zoomInAct.triggered[()].connect(self.__zoomIn) self.viewActions.append(self.zoomInAct) self.zoomOutAct = E5Action(QApplication.translate('ViewManager', 'Zoom out'), @@ -2249,7 +2249,7 @@ """<b>Zoom out</b>""" """<p>Zoom out on the text. This makes the text smaller.</p>""" )) - self.zoomOutAct.triggered.connect(self.__zoomOut) + self.zoomOutAct.triggered[()].connect(self.__zoomOut) self.viewActions.append(self.zoomOutAct) self.zoomToAct = E5Action(QApplication.translate('ViewManager', 'Zoom'), @@ -2266,7 +2266,7 @@ """<p>Zoom the text. This opens a dialog where the""" """ desired size can be entered.</p>""" )) - self.zoomToAct.triggered.connect(self.__zoom) + self.zoomToAct.triggered[()].connect(self.__zoom) self.viewActions.append(self.zoomToAct) self.toggleAllAct = E5Action(QApplication.translate('ViewManager', @@ -2279,7 +2279,7 @@ """<b>Toggle all folds</b>""" """<p>Toggle all folds of the current editor.</p>""" )) - self.toggleAllAct.triggered.connect(self.__toggleAll) + self.toggleAllAct.triggered[()].connect(self.__toggleAll) self.viewActions.append(self.toggleAllAct) self.toggleAllChildrenAct = \ @@ -2295,7 +2295,7 @@ """<p>Toggle all folds of the current editor including""" """ all children.</p>""" )) - self.toggleAllChildrenAct.triggered.connect(self.__toggleAllChildren) + self.toggleAllChildrenAct.triggered[()].connect(self.__toggleAllChildren) self.viewActions.append(self.toggleAllChildrenAct) self.toggleCurrentAct = E5Action(QApplication.translate('ViewManager', @@ -2308,7 +2308,7 @@ """<b>Toggle current fold</b>""" """<p>Toggle the folds of the current line of the current editor.</p>""" )) - self.toggleCurrentAct.triggered.connect(self.__toggleCurrent) + self.toggleCurrentAct.triggered[()].connect(self.__toggleCurrent) self.viewActions.append(self.toggleCurrentAct) self.unhighlightAct = E5Action(QApplication.translate('ViewManager', @@ -2323,7 +2323,7 @@ """<b>Remove all highlights</b>""" """<p>Remove the highlights of all editors.</p>""" )) - self.unhighlightAct.triggered.connect(self.unhighlight) + self.unhighlightAct.triggered[()].connect(self.unhighlight) self.viewActions.append(self.unhighlightAct) self.splitViewAct = E5Action(QApplication.translate('ViewManager', 'Split view'), @@ -2336,7 +2336,7 @@ """<b>Split view</b>""" """<p>Add a split to the view.</p>""" )) - self.splitViewAct.triggered.connect(self.__splitView) + self.splitViewAct.triggered[()].connect(self.__splitView) self.viewActions.append(self.splitViewAct) self.splitOrientationAct = E5Action(QApplication.translate('ViewManager', @@ -2366,7 +2366,7 @@ """<b>Remove split</b>""" """<p>Remove the current split.</p>""" )) - self.splitRemoveAct.triggered.connect(self.removeSplit) + self.splitRemoveAct.triggered[()].connect(self.removeSplit) self.viewActions.append(self.splitRemoveAct) self.nextSplitAct = E5Action(QApplication.translate('ViewManager', 'Next split'), @@ -2381,7 +2381,7 @@ """<b>Next split</b>""" """<p>Move to the next split.</p>""" )) - self.nextSplitAct.triggered.connect(self.nextSplit) + self.nextSplitAct.triggered[()].connect(self.nextSplit) self.viewActions.append(self.nextSplitAct) self.prevSplitAct = E5Action(QApplication.translate('ViewManager', @@ -2396,7 +2396,7 @@ """<b>Previous split</b>""" """<p>Move to the previous split.</p>""" )) - self.prevSplitAct.triggered.connect(self.prevSplit) + self.prevSplitAct.triggered[()].connect(self.prevSplit) self.viewActions.append(self.prevSplitAct) self.viewActGrp.setEnabled(False) @@ -2473,7 +2473,7 @@ """<b>Start Macro Recording</b>""" """<p>Start recording editor commands into a new macro.</p>""" )) - self.macroStartRecAct.triggered.connect(self.__macroStartRecording) + self.macroStartRecAct.triggered[()].connect(self.__macroStartRecording) self.macroActions.append(self.macroStartRecAct) self.macroStopRecAct = E5Action(QApplication.translate('ViewManager', @@ -2487,7 +2487,7 @@ """<b>Stop Macro Recording</b>""" """<p>Stop recording editor commands into a new macro.</p>""" )) - self.macroStopRecAct.triggered.connect(self.__macroStopRecording) + self.macroStopRecAct.triggered[()].connect(self.__macroStopRecording) self.macroActions.append(self.macroStopRecAct) self.macroRunAct = E5Action(QApplication.translate('ViewManager', 'Run Macro'), @@ -2498,7 +2498,7 @@ """<b>Run Macro</b>""" """<p>Run a previously recorded editor macro.</p>""" )) - self.macroRunAct.triggered.connect(self.__macroRun) + self.macroRunAct.triggered[()].connect(self.__macroRun) self.macroActions.append(self.macroRunAct) self.macroDeleteAct = E5Action(QApplication.translate('ViewManager', @@ -2511,7 +2511,7 @@ """<b>Delete Macro</b>""" """<p>Delete a previously recorded editor macro.</p>""" )) - self.macroDeleteAct.triggered.connect(self.__macroDelete) + self.macroDeleteAct.triggered[()].connect(self.__macroDelete) self.macroActions.append(self.macroDeleteAct) self.macroLoadAct = E5Action(QApplication.translate('ViewManager', 'Load Macro'), @@ -2523,7 +2523,7 @@ """<b>Load Macro</b>""" """<p>Load an editor macro from a file.</p>""" )) - self.macroLoadAct.triggered.connect(self.__macroLoad) + self.macroLoadAct.triggered[()].connect(self.__macroLoad) self.macroActions.append(self.macroLoadAct) self.macroSaveAct = E5Action(QApplication.translate('ViewManager', 'Save Macro'), @@ -2535,7 +2535,7 @@ """<b>Save Macro</b>""" """<p>Save a previously recorded editor macro to a file.</p>""" )) - self.macroSaveAct.triggered.connect(self.__macroSave) + self.macroSaveAct.triggered[()].connect(self.__macroSave) self.macroActions.append(self.macroSaveAct) self.macroActGrp.setEnabled(False) @@ -2575,7 +2575,7 @@ """<b>Toggle Bookmark</b>""" """<p>Toggle a bookmark at the current line of the current editor.</p>""" )) - self.bookmarkToggleAct.triggered.connect(self.__toggleBookmark) + self.bookmarkToggleAct.triggered[()].connect(self.__toggleBookmark) self.bookmarkActions.append(self.bookmarkToggleAct) self.bookmarkNextAct = E5Action(QApplication.translate('ViewManager', @@ -2591,7 +2591,7 @@ """<b>Next Bookmark</b>""" """<p>Go to next bookmark of the current editor.</p>""" )) - self.bookmarkNextAct.triggered.connect(self.__nextBookmark) + self.bookmarkNextAct.triggered[()].connect(self.__nextBookmark) self.bookmarkActions.append(self.bookmarkNextAct) self.bookmarkPreviousAct = E5Action(QApplication.translate('ViewManager', @@ -2607,7 +2607,7 @@ """<b>Previous Bookmark</b>""" """<p>Go to previous bookmark of the current editor.</p>""" )) - self.bookmarkPreviousAct.triggered.connect(self.__previousBookmark) + self.bookmarkPreviousAct.triggered[()].connect(self.__previousBookmark) self.bookmarkActions.append(self.bookmarkPreviousAct) self.bookmarkClearAct = E5Action(QApplication.translate('ViewManager', @@ -2623,7 +2623,7 @@ """<b>Clear Bookmarks</b>""" """<p>Clear bookmarks of all editors.</p>""" )) - self.bookmarkClearAct.triggered.connect(self.__clearAllBookmarks) + self.bookmarkClearAct.triggered[()].connect(self.__clearAllBookmarks) self.bookmarkActions.append(self.bookmarkClearAct) self.syntaxErrorGotoAct = E5Action(QApplication.translate('ViewManager', @@ -2638,7 +2638,7 @@ """<b>Goto Syntax Error</b>""" """<p>Go to next syntax error of the current editor.</p>""" )) - self.syntaxErrorGotoAct.triggered.connect(self.__gotoSyntaxError) + self.syntaxErrorGotoAct.triggered[()].connect(self.__gotoSyntaxError) self.bookmarkActions.append(self.syntaxErrorGotoAct) self.syntaxErrorClearAct = E5Action(QApplication.translate('ViewManager', @@ -2652,7 +2652,7 @@ """<b>Clear Syntax Errors</b>""" """<p>Clear syntax errors of all editors.</p>""" )) - self.syntaxErrorClearAct.triggered.connect(self.__clearAllSyntaxErrors) + self.syntaxErrorClearAct.triggered[()].connect(self.__clearAllSyntaxErrors) self.bookmarkActions.append(self.syntaxErrorClearAct) self.warningsNextAct = E5Action(QApplication.translate('ViewManager', @@ -2669,7 +2669,7 @@ """<p>Go to next line of the current editor""" """ having a py3flakes warning.</p>""" )) - self.warningsNextAct.triggered.connect(self.__nextWarning) + self.warningsNextAct.triggered[()].connect(self.__nextWarning) self.bookmarkActions.append(self.warningsNextAct) self.warningsPreviousAct = E5Action(QApplication.translate('ViewManager', @@ -2686,7 +2686,7 @@ """<p>Go to previous line of the current editor""" """ having a py3flakes warning.</p>""" )) - self.warningsPreviousAct.triggered.connect(self.__previousWarning) + self.warningsPreviousAct.triggered[()].connect(self.__previousWarning) self.bookmarkActions.append(self.warningsPreviousAct) self.warningsClearAct = E5Action(QApplication.translate('ViewManager', @@ -2701,7 +2701,7 @@ """<b>Clear Warning Messages</b>""" """<p>Clear py3flakes warning messages of all editors.</p>""" )) - self.warningsClearAct.triggered.connect(self.__clearAllWarnings) + self.warningsClearAct.triggered[()].connect(self.__clearAllWarnings) self.bookmarkActions.append(self.warningsClearAct) self.notcoveredNextAct = E5Action(QApplication.translate('ViewManager', @@ -2716,7 +2716,7 @@ """<b>Next uncovered line</b>""" """<p>Go to next line of the current editor marked as not covered.</p>""" )) - self.notcoveredNextAct.triggered.connect(self.__nextUncovered) + self.notcoveredNextAct.triggered[()].connect(self.__nextUncovered) self.bookmarkActions.append(self.notcoveredNextAct) self.notcoveredPreviousAct = E5Action(QApplication.translate('ViewManager', @@ -2733,7 +2733,7 @@ """<p>Go to previous line of the current editor marked""" """ as not covered.</p>""" )) - self.notcoveredPreviousAct.triggered.connect(self.__previousUncovered) + self.notcoveredPreviousAct.triggered[()].connect(self.__previousUncovered) self.bookmarkActions.append(self.notcoveredPreviousAct) self.taskNextAct = E5Action(QApplication.translate('ViewManager', @@ -2748,7 +2748,7 @@ """<b>Next Task</b>""" """<p>Go to next line of the current editor having a task.</p>""" )) - self.taskNextAct.triggered.connect(self.__nextTask) + self.taskNextAct.triggered[()].connect(self.__nextTask) self.bookmarkActions.append(self.taskNextAct) self.taskPreviousAct = E5Action(QApplication.translate('ViewManager', @@ -2764,7 +2764,7 @@ """<b>Previous Task</b>""" """<p>Go to previous line of the current editor having a task.</p>""" )) - self.taskPreviousAct.triggered.connect(self.__previousTask) + self.taskPreviousAct.triggered[()].connect(self.__previousTask) self.bookmarkActions.append(self.taskPreviousAct) self.bookmarkActGrp.setEnabled(False) @@ -2863,7 +2863,7 @@ """<b>Spell check</b>""" """<p>Perform a spell check of the current editor.</p>""" )) - self.spellCheckAct.triggered.connect(self.__spellCheck) + self.spellCheckAct.triggered[()].connect(self.__spellCheck) self.spellingActions.append(self.spellCheckAct) self.autoSpellCheckAct = E5Action(QApplication.translate('ViewManager', @@ -2883,7 +2883,7 @@ self.autoSpellCheckAct.setCheckable(True) self.autoSpellCheckAct.setChecked( Preferences.getEditor("AutoSpellCheckingEnabled")) - self.autoSpellCheckAct.triggered.connect(self.__setAutoSpellChecking) + self.autoSpellCheckAct.triggered[()].connect(self.__setAutoSpellChecking) self.spellingActions.append(self.autoSpellCheckAct) self.__enableSpellingActions()