38 @signal appendStderr(string) emitted after something was received from |
38 @signal appendStderr(string) emitted after something was received from |
39 a QProcess on stderr |
39 a QProcess on stderr |
40 @signal showMenu(string, QMenu) emitted when a menu is about to be shown. The name |
40 @signal showMenu(string, QMenu) emitted when a menu is about to be shown. The name |
41 of the menu and a reference to the menu are given. |
41 of the menu and a reference to the menu are given. |
42 """ |
42 """ |
|
43 sourceFile = pyqtSignal((str, ), (str, int)) |
|
44 |
43 def __init__(self, project, parent = None): |
45 def __init__(self, project, parent = None): |
44 """ |
46 """ |
45 Constructor |
47 Constructor |
46 |
48 |
47 @param project reference to the project object |
49 @param project reference to the project object |
321 [BrowserFileItem, BrowserClassItem, BrowserMethodItem, |
323 [BrowserFileItem, BrowserClassItem, BrowserMethodItem, |
322 BrowserClassAttributeItem]) |
324 BrowserClassAttributeItem]) |
323 |
325 |
324 for itm in itmList: |
326 for itm in itmList: |
325 if isinstance(itm, BrowserFileItem): |
327 if isinstance(itm, BrowserFileItem): |
326 self.emit(SIGNAL('sourceFile'), itm.fileName()) |
328 self.sourceFile[str].emit(itm.fileName()) |
327 elif isinstance(itm, BrowserClassItem): |
329 elif isinstance(itm, BrowserClassItem): |
328 self.emit(SIGNAL('sourceFile'), itm.fileName(), |
330 self.sourceFile[str, int].emit(itm.fileName(), |
329 itm.classObject().lineno) |
331 itm.classObject().lineno) |
330 elif isinstance(itm,BrowserMethodItem): |
332 elif isinstance(itm,BrowserMethodItem): |
331 self.emit(SIGNAL('sourceFile'), itm.fileName(), |
333 self.sourceFile[str, int].emit(itm.fileName(), |
332 itm.functionObject().lineno) |
334 itm.functionObject().lineno) |
333 elif isinstance(itm, BrowserClassAttributeItem): |
335 elif isinstance(itm, BrowserClassAttributeItem): |
334 self.emit(SIGNAL('sourceFile'), itm.fileName(), |
336 self.sourceFile[str, int].emit(itm.fileName(), |
335 itm.attributeObject().lineno) |
337 itm.attributeObject().lineno) |
336 |
338 |
337 def __addInterfaceFiles(self): |
339 def __addInterfaceFiles(self): |
338 """ |
340 """ |
339 Private method to add interface files to the project. |
341 Private method to add interface files to the project. |