29 onto the respective entry of the list. |
29 onto the respective entry of the list. |
30 |
30 |
31 @signal sourceFile(string) emitted to open a file in the editor |
31 @signal sourceFile(string) emitted to open a file in the editor |
32 @signal designerFile(string) emitted to open a Qt-Designer file |
32 @signal designerFile(string) emitted to open a Qt-Designer file |
33 """ |
33 """ |
|
34 sourceFile = pyqtSignal(str) |
|
35 |
34 def __init__(self, project, parent = None): |
36 def __init__(self, project, parent = None): |
35 """ |
37 """ |
36 Constructor |
38 Constructor |
37 |
39 |
38 @param project reference to the project object |
40 @param project reference to the project object |
80 filePath = itm.text(1) |
82 filePath = itm.text(1) |
81 |
83 |
82 if fileName.endswith('.ui'): |
84 if fileName.endswith('.ui'): |
83 self.emit(SIGNAL('designerFile'), os.path.join(filePath, fileName)) |
85 self.emit(SIGNAL('designerFile'), os.path.join(filePath, fileName)) |
84 else: |
86 else: |
85 self.emit(SIGNAL('sourceFile'), os.path.join(filePath, fileName)) |
87 self.sourceFile.emit(os.path.join(filePath, fileName)) |
86 |
88 |
87 def __searchFile(self): |
89 def __searchFile(self): |
88 """ |
90 """ |
89 Private slot to handle the search. |
91 Private slot to handle the search. |
90 """ |
92 """ |