QScintilla/Editor.py

changeset 5907
c928af9fce32
parent 5905
f31960634997
child 5909
21d90a3abc7c
equal deleted inserted replaced
5906:fef02b3fdc32 5907:c928af9fce32
768 self.autoCompletionThreshold() != -1) 768 self.autoCompletionThreshold() != -1)
769 if not self.isResourcesFile: 769 if not self.isResourcesFile:
770 self.menu.addMenu(self.autocompletionMenu) 770 self.menu.addMenu(self.autocompletionMenu)
771 self.menuActs["calltip"] = self.menu.addAction( 771 self.menuActs["calltip"] = self.menu.addAction(
772 self.tr('Calltip'), self.callTip) 772 self.tr('Calltip'), self.callTip)
773 self.menuActs["codeInfo"] = self.menu.addAction(
774 self.tr('Code Info'), self.__showCodeInfo)
773 self.menu.addSeparator() 775 self.menu.addSeparator()
774 if self.isResourcesFile: 776 if self.isResourcesFile:
775 self.menu.addMenu(self.resourcesMenu) 777 self.menu.addMenu(self.resourcesMenu)
776 else: 778 else:
777 self.menuActs["Check"] = self.menu.addMenu(self.checksMenu) 779 self.menuActs["Check"] = self.menu.addMenu(self.checksMenu)
4993 """ 4995 """
4994 char = chr(charNumber) 4996 char = chr(charNumber)
4995 if char == "(" and Preferences.getEditor("ShowInfoOnOpenParenthesis"): 4997 if char == "(" and Preferences.getEditor("ShowInfoOnOpenParenthesis"):
4996 self.vm.showEditorInfo(self) 4998 self.vm.showEditorInfo(self)
4997 4999
5000 def __showCodeInfo(self):
5001 """
5002 Private slot to handle the context menu action to show code info.
5003 """
5004 self.vm.showEditorInfo(self)
5005
4998 ################################################################# 5006 #################################################################
4999 ## Methods needed by the context menu 5007 ## Methods needed by the context menu
5000 ################################################################# 5008 #################################################################
5001 5009
5002 def __marginNumber(self, xPos): 5010 def __marginNumber(self, xPos):

eric ide

mercurial