ViewManager/ViewManager.py

changeset 4891
d6e8171d2c02
parent 4876
686e69aecdb5
child 4896
5ace700023de
equal deleted inserted replaced
4889:10cec9d5aa91 4891:d6e8171d2c02
4528 4528
4529 @param caller reference to the editor calling this method 4529 @param caller reference to the editor calling this method
4530 @param filetype type of the source file (string) 4530 @param filetype type of the source file (string)
4531 @param fn filename of this view 4531 @param fn filename of this view
4532 @return reference to the new editor object (Editor.Editor) and the new 4532 @return reference to the new editor object (Editor.Editor) and the new
4533 edito assembly object (EditorAssembly.EditorAssembly) 4533 editor assembly object (EditorAssembly.EditorAssembly)
4534 """ 4534 """
4535 from QScintilla.EditorAssembly import EditorAssembly 4535 from QScintilla.EditorAssembly import EditorAssembly
4536 assembly = EditorAssembly(self.dbs, fn, self, filetype=filetype, 4536 assembly = EditorAssembly(self.dbs, fn, self, filetype=filetype,
4537 editor=caller, 4537 editor=caller,
4538 tv=e5App().getObject("TaskViewer")) 4538 tv=e5App().getObject("TaskViewer"))
4937 def newEditor(self): 4937 def newEditor(self):
4938 """ 4938 """
4939 Public slot to generate a new empty editor. 4939 Public slot to generate a new empty editor.
4940 """ 4940 """
4941 from QScintilla.EditorAssembly import EditorAssembly 4941 from QScintilla.EditorAssembly import EditorAssembly
4942 assembly = EditorAssembly(self.dbs, None, self, 4942 assembly = EditorAssembly(self.dbs, "", self,
4943 tv=e5App().getObject("TaskViewer")) 4943 tv=e5App().getObject("TaskViewer"))
4944 editor = assembly.getEditor() 4944 editor = assembly.getEditor()
4945 self.editors.append(editor) 4945 self.editors.append(editor)
4946 self.__connectEditor(editor) 4946 self.__connectEditor(editor)
4947 self._addView(assembly, None) 4947 self._addView(assembly, None)

eric ide

mercurial