Mon, 16 Oct 2017 19:10:53 +0200
Added some code info actions to the editor context menu and the Edit main menu.
QScintilla/Editor.py | file | annotate | diff | comparison | revisions | |
ViewManager/ViewManager.py | file | annotate | diff | comparison | revisions |
--- a/QScintilla/Editor.py Mon Oct 16 19:10:00 2017 +0200 +++ b/QScintilla/Editor.py Mon Oct 16 19:10:53 2017 +0200 @@ -770,6 +770,8 @@ self.menu.addMenu(self.autocompletionMenu) self.menuActs["calltip"] = self.menu.addAction( self.tr('Calltip'), self.callTip) + self.menuActs["codeInfo"] = self.menu.addAction( + self.tr('Code Info'), self.__showCodeInfo) self.menu.addSeparator() if self.isResourcesFile: self.menu.addMenu(self.resourcesMenu) @@ -4995,6 +4997,12 @@ if char == "(" and Preferences.getEditor("ShowInfoOnOpenParenthesis"): self.vm.showEditorInfo(self) + def __showCodeInfo(self): + """ + Private slot to handle the context menu action to show code info. + """ + self.vm.showEditorInfo(self) + ################################################################# ## Methods needed by the context menu #################################################################
--- a/ViewManager/ViewManager.py Mon Oct 16 19:10:00 2017 +0200 +++ b/ViewManager/ViewManager.py Mon Oct 16 19:10:53 2017 +0200 @@ -2770,6 +2770,7 @@ menu.addSeparator() menu.addMenu(autocompletionMenu) menu.addAction(self.calltipsAct) + menu.addAction(self.codeInfoAct) menu.addSeparator() menu.addMenu(searchMenu) menu.addSeparator()