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