src/eric7/Documentation/Source/eric7.ViewManager.ViewManager.html

branch
eric7
changeset 9758
6d24ab9c0404
parent 9602
28e7f6cdf385
child 9938
b8005dd4fc9b
diff -r ab6e87f6f1c4 -r 6d24ab9c0404 src/eric7/Documentation/Source/eric7.ViewManager.ViewManager.html
--- a/src/eric7/Documentation/Source/eric7.ViewManager.ViewManager.html	Mon Feb 13 17:51:03 2023 +0100
+++ b/src/eric7/Documentation/Source/eric7.ViewManager.ViewManager.html	Mon Feb 13 17:52:26 2023 +0100
@@ -1007,13 +1007,17 @@
 </tr>
 <tr>
 <td><a href="#ViewManager.newEditor">newEditor</a></td>
-<td>Public slot to generate a new empty editor.</td>
+<td>Public method to generate a new empty editor.</td>
 </tr>
 <tr>
 <td><a href="#ViewManager.newEditorView">newEditorView</a></td>
 <td>Public method to create a new editor displaying the given document.</td>
 </tr>
 <tr>
+<td><a href="#ViewManager.newEditorWithText">newEditorWithText</a></td>
+<td>Public method to generate a new editor with a given text and associated file name.</td>
+</tr>
+<tr>
 <td><a href="#ViewManager.nextSplit">nextSplit</a></td>
 <td>Public slot used to move to the next split.</td>
 </tr>
@@ -3244,8 +3248,8 @@
 </dd>
 <dt><i>indexes</i> (tuple of two int)</dt>
 <dd>
-of the editor, first the split view index, second the
-            index within the view
+tuple containing the indexes of the editor, first the split
+            view index, second the index within the view
 </dd>
 </dl>
 <dl>
@@ -3765,8 +3769,20 @@
 <b>newEditor</b>(<i></i>)
 
 <p>
-        Public slot to generate a new empty editor.
-</p>
+        Public method to generate a new empty editor.
+</p>
+<dl>
+<dt>Return:</dt>
+<dd>
+reference to the new editor
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+Editor
+</dd>
+</dl>
 <a NAME="ViewManager.newEditorView" ID="ViewManager.newEditorView"></a>
 <h4>ViewManager.newEditorView</h4>
 <b>newEditorView</b>(<i>fn, caller, filetype="", indexes=None</i>)
@@ -3806,6 +3822,29 @@
 Editor
 </dd>
 </dl>
+<a NAME="ViewManager.newEditorWithText" ID="ViewManager.newEditorWithText"></a>
+<h4>ViewManager.newEditorWithText</h4>
+<b>newEditorWithText</b>(<i>text, language="", fileName=""</i>)
+
+<p>
+        Public method to generate a new editor with a given text and associated file
+        name.
+</p>
+<dl>
+
+<dt><i>text</i> (str)</dt>
+<dd>
+text for the editor
+</dd>
+<dt><i>language</i> (str (optional))</dt>
+<dd>
+source language (defaults to "")
+</dd>
+<dt><i>fileName</i> (str (optional))</dt>
+<dd>
+associated file name (defaults to "")
+</dd>
+</dl>
 <a NAME="ViewManager.nextSplit" ID="ViewManager.nextSplit"></a>
 <h4>ViewManager.nextSplit</h4>
 <b>nextSplit</b>(<i></i>)

eric ide

mercurial