ViewManager/ViewManager.py

branch
6_1_x
changeset 4893
6756ba35675b
parent 4877
2ef641412a63
child 4898
87f323577ce1
equal deleted inserted replaced
4890:314deb5a1316 4893:6756ba35675b
4527 4527
4528 @param caller reference to the editor calling this method 4528 @param caller reference to the editor calling this method
4529 @param filetype type of the source file (string) 4529 @param filetype type of the source file (string)
4530 @param fn filename of this view 4530 @param fn filename of this view
4531 @return reference to the new editor object (Editor.Editor) and the new 4531 @return reference to the new editor object (Editor.Editor) and the new
4532 edito assembly object (EditorAssembly.EditorAssembly) 4532 editor assembly object (EditorAssembly.EditorAssembly)
4533 """ 4533 """
4534 from QScintilla.EditorAssembly import EditorAssembly 4534 from QScintilla.EditorAssembly import EditorAssembly
4535 assembly = EditorAssembly(self.dbs, fn, self, filetype=filetype, 4535 assembly = EditorAssembly(self.dbs, fn, self, filetype=filetype,
4536 editor=caller, 4536 editor=caller,
4537 tv=e5App().getObject("TaskViewer")) 4537 tv=e5App().getObject("TaskViewer"))
4936 def newEditor(self): 4936 def newEditor(self):
4937 """ 4937 """
4938 Public slot to generate a new empty editor. 4938 Public slot to generate a new empty editor.
4939 """ 4939 """
4940 from QScintilla.EditorAssembly import EditorAssembly 4940 from QScintilla.EditorAssembly import EditorAssembly
4941 assembly = EditorAssembly(self.dbs, None, self, 4941 assembly = EditorAssembly(self.dbs, "", self,
4942 tv=e5App().getObject("TaskViewer")) 4942 tv=e5App().getObject("TaskViewer"))
4943 editor = assembly.getEditor() 4943 editor = assembly.getEditor()
4944 self.editors.append(editor) 4944 self.editors.append(editor)
4945 self.__connectEditor(editor) 4945 self.__connectEditor(editor)
4946 self._addView(assembly, None) 4946 self._addView(assembly, None)

eric ide

mercurial