Project/ProjectSourcesBrowser.py

changeset 4186
e2bf1c32272b
parent 4183
856ba07de877
child 4563
881340f4bd0c
child 4632
ca310db386ed
equal deleted inserted replaced
4184:6dbd901a8b1a 4186:e2bf1c32272b
39 @signal sourceFile(str) emitted to open the given file. 39 @signal sourceFile(str) emitted to open the given file.
40 @signal sourceFile(str, int) emitted to open the given file at the given 40 @signal sourceFile(str, int) emitted to open the given file at the given
41 line. 41 line.
42 @signal sourceFile(str, int, str) emitted to open the given file as the 42 @signal sourceFile(str, int, str) emitted to open the given file as the
43 given type at the given line. 43 given type at the given line.
44 @signal sourceFile(str, list) emitted to open a Python file giving a list
45 of lines
44 """ 46 """
45 showMenu = pyqtSignal(str, QMenu) 47 showMenu = pyqtSignal(str, QMenu)
46 48
47 def __init__(self, project, parent=None): 49 def __init__(self, project, parent=None):
48 """ 50 """
782 itm.fileName(), itm.functionObject().lineno) 784 itm.fileName(), itm.functionObject().lineno)
783 elif isinstance(itm, BrowserClassAttributeItem): 785 elif isinstance(itm, BrowserClassAttributeItem):
784 self.sourceFile[str, int].emit( 786 self.sourceFile[str, int].emit(
785 itm.fileName(), itm.attributeObject().lineno) 787 itm.fileName(), itm.attributeObject().lineno)
786 elif isinstance(itm, BrowserImportItem): 788 elif isinstance(itm, BrowserImportItem):
787 self.sourceFile[str, int].emit( 789 self.sourceFile[str, list].emit(
788 itm.fileName(), itm.lineno()) 790 itm.fileName(), itm.linenos())
789 791
790 def __addNewPackage(self): 792 def __addNewPackage(self):
791 """ 793 """
792 Private method to add a new package to the project. 794 Private method to add a new package to the project.
793 """ 795 """

eric ide

mercurial