300 elif self.project.isProjectForm(fn): |
300 elif self.project.isProjectForm(fn): |
301 self.pfBrowser.selectFile(fn) |
301 self.pfBrowser.selectFile(fn) |
302 elif self.project.isProjectInterface(fn): |
302 elif self.project.isProjectInterface(fn): |
303 self.piBrowser.selectFile(fn) |
303 self.piBrowser.selectFile(fn) |
304 |
304 |
|
305 def handleEditorLineChanged(self, fn, lineno): |
|
306 """ |
|
307 Public slot to handle the editorLineChanged signal. |
|
308 |
|
309 @param fn filename of the changed file (string) |
|
310 @param lineno one based line number of the item (integer) |
|
311 """ |
|
312 if Preferences.getProject("FollowEditor") and \ |
|
313 Preferences.getProject("FollowCursorLine"): |
|
314 if self.project.isProjectSource(fn): |
|
315 self.psBrowser.selectFileLine(fn, lineno) |
|
316 |
305 def getProjectBrowsers(self): |
317 def getProjectBrowsers(self): |
306 """ |
318 """ |
307 Public method to get references to the individual project browsers. |
319 Public method to get references to the individual project browsers. |
308 |
320 |
309 @return list of references to project browsers |
321 @return list of references to project browsers |