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 """ |