377 self.editorLineChanged.emit(fn, aw.getCursorPosition()[0] + 1) |
377 self.editorLineChanged.emit(fn, aw.getCursorPosition()[0] + 1) |
378 else: |
378 else: |
379 self.changeCaption.emit("") |
379 self.changeCaption.emit("") |
380 self.editorChangedEd.emit(aw) |
380 self.editorChangedEd.emit(aw) |
381 |
381 |
382 def _addView(self, win, fn=None, noName=""): |
382 def _addView(self, win, fn=None, noName="", next=False): |
383 """ |
383 """ |
384 Protected method to add a view (i.e. window). |
384 Protected method to add a view (i.e. window). |
385 |
385 |
386 @param win editor assembly to be added |
386 @param win editor assembly to be added |
387 @param fn filename of this editor (string) |
387 @param fn filename of this editor (string) |
388 @param noName name to be used for an unnamed editor (string) |
388 @param noName name to be used for an unnamed editor (string) |
|
389 @param next flag indicating to add the view next to the current |
|
390 view (bool) |
389 """ |
391 """ |
390 editor = win.getEditor() |
392 editor = win.getEditor() |
391 if fn is None: |
393 if fn is None: |
392 if not noName: |
394 if not noName: |
393 self.untitledCount += 1 |
395 self.untitledCount += 1 |