Documentation/Source/eric5.ViewManager.ViewManager.html

changeset 945
8cd4d08fa9f6
parent 832
eb5ff61f927b
child 1150
859253d366c5
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
903 </dd> 903 </dd>
904 </dl><a NAME="ViewManager.__cursorChanged" ID="ViewManager.__cursorChanged"></a> 904 </dl><a NAME="ViewManager.__cursorChanged" ID="ViewManager.__cursorChanged"></a>
905 <h4>ViewManager.__cursorChanged</h4> 905 <h4>ViewManager.__cursorChanged</h4>
906 <b>__cursorChanged</b>(<i>fn, line, pos</i>) 906 <b>__cursorChanged</b>(<i>fn, line, pos</i>)
907 <p> 907 <p>
908 Private slot to handle the cursorChanged signal. 908 Private slot to handle the cursorChanged signal.
909 </p><p> 909 </p><p>
910 It emits the signal cursorChanged with parameter editor. 910 It emits the signal cursorChanged with parameter editor.
911 </p><dl> 911 </p><dl>
912 <dt><i>fn</i></dt> 912 <dt><i>fn</i></dt>
913 <dd> 913 <dd>
1342 <b>__setAutoSpellChecking</b>(<i></i>) 1342 <b>__setAutoSpellChecking</b>(<i></i>)
1343 <p> 1343 <p>
1344 Private slot to set the automatic spell checking of all editors. 1344 Private slot to set the automatic spell checking of all editors.
1345 </p><a NAME="ViewManager.__setSbFile" ID="ViewManager.__setSbFile"></a> 1345 </p><a NAME="ViewManager.__setSbFile" ID="ViewManager.__setSbFile"></a>
1346 <h4>ViewManager.__setSbFile</h4> 1346 <h4>ViewManager.__setSbFile</h4>
1347 <b>__setSbFile</b>(<i>fn = None, line = None, pos = None, encoding = None, language = None, eol = None</i>) 1347 <b>__setSbFile</b>(<i>fn=None, line=None, pos=None, encoding=None, language=None, eol=None</i>)
1348 <p> 1348 <p>
1349 Private method to set the file info in the status bar. 1349 Private method to set the file info in the status bar.
1350 </p><dl> 1350 </p><dl>
1351 <dt><i>fn</i></dt> 1351 <dt><i>fn</i></dt>
1352 <dd> 1352 <dd>
1478 <dd> 1478 <dd>
1479 Not implemented 1479 Not implemented
1480 </dd> 1480 </dd>
1481 </dl><a NAME="ViewManager._checkActions" ID="ViewManager._checkActions"></a> 1481 </dl><a NAME="ViewManager._checkActions" ID="ViewManager._checkActions"></a>
1482 <h4>ViewManager._checkActions</h4> 1482 <h4>ViewManager._checkActions</h4>
1483 <b>_checkActions</b>(<i>editor, setSb = True</i>) 1483 <b>_checkActions</b>(<i>editor, setSb=True</i>)
1484 <p> 1484 <p>
1485 Protected slot to check some actions for their enable/disable status 1485 Protected slot to check some actions for their enable/disable status
1486 and set the statusbar info. 1486 and set the statusbar info.
1487 </p><dl> 1487 </p><dl>
1488 <dt><i>editor</i></dt> 1488 <dt><i>editor</i></dt>
1507 </dd> 1507 </dd>
1508 </dl><a NAME="ViewManager._getOpenStartDir" ID="ViewManager._getOpenStartDir"></a> 1508 </dl><a NAME="ViewManager._getOpenStartDir" ID="ViewManager._getOpenStartDir"></a>
1509 <h4>ViewManager._getOpenStartDir</h4> 1509 <h4>ViewManager._getOpenStartDir</h4>
1510 <b>_getOpenStartDir</b>(<i></i>) 1510 <b>_getOpenStartDir</b>(<i></i>)
1511 <p> 1511 <p>
1512 Protected method to return the starting directory for a file open dialog. 1512 Protected method to return the starting directory for a file open dialog.
1513 </p><p> 1513 </p><p>
1514 The appropriate starting directory is calculated 1514 The appropriate starting directory is calculated
1515 using the following search order, until a match is found:<br /> 1515 using the following search order, until a match is found:<br />
1516 1: Directory of currently active editor<br /> 1516 1: Directory of currently active editor<br />
1517 2: Directory of currently active Project<br /> 1517 2: Directory of currently active Project<br />
1717 <dd> 1717 <dd>
1718 flag indicating successful reset of all dirty flags (boolean) 1718 flag indicating successful reset of all dirty flags (boolean)
1719 </dd> 1719 </dd>
1720 </dl><a NAME="ViewManager.checkDirty" ID="ViewManager.checkDirty"></a> 1720 </dl><a NAME="ViewManager.checkDirty" ID="ViewManager.checkDirty"></a>
1721 <h4>ViewManager.checkDirty</h4> 1721 <h4>ViewManager.checkDirty</h4>
1722 <b>checkDirty</b>(<i>editor, autosave = False</i>) 1722 <b>checkDirty</b>(<i>editor, autosave=False</i>)
1723 <p> 1723 <p>
1724 Public method to check dirty status and open a message window. 1724 Public method to check dirty status and open a message window.
1725 </p><dl> 1725 </p><dl>
1726 <dt><i>editor</i></dt> 1726 <dt><i>editor</i></dt>
1727 <dd> 1727 <dd>
1799 </dd> 1799 </dd>
1800 </dl><a NAME="ViewManager.closeViewManager" ID="ViewManager.closeViewManager"></a> 1800 </dl><a NAME="ViewManager.closeViewManager" ID="ViewManager.closeViewManager"></a>
1801 <h4>ViewManager.closeViewManager</h4> 1801 <h4>ViewManager.closeViewManager</h4>
1802 <b>closeViewManager</b>(<i></i>) 1802 <b>closeViewManager</b>(<i></i>)
1803 <p> 1803 <p>
1804 Public method to shutdown the viewmanager. 1804 Public method to shutdown the viewmanager.
1805 </p><p> 1805 </p><p>
1806 If it cannot close all editor windows, it aborts the shutdown process. 1806 If it cannot close all editor windows, it aborts the shutdown process.
1807 </p><dl> 1807 </p><dl>
1808 <dt>Returns:</dt> 1808 <dt>Returns:</dt>
1809 <dd> 1809 <dd>
1826 </dd> 1826 </dd>
1827 </dl><a NAME="ViewManager.editorsCheckFocusInEnabled" ID="ViewManager.editorsCheckFocusInEnabled"></a> 1827 </dl><a NAME="ViewManager.editorsCheckFocusInEnabled" ID="ViewManager.editorsCheckFocusInEnabled"></a>
1828 <h4>ViewManager.editorsCheckFocusInEnabled</h4> 1828 <h4>ViewManager.editorsCheckFocusInEnabled</h4>
1829 <b>editorsCheckFocusInEnabled</b>(<i></i>) 1829 <b>editorsCheckFocusInEnabled</b>(<i></i>)
1830 <p> 1830 <p>
1831 Public method returning the flag indicating editors should perform 1831 Public method returning the flag indicating editors should perform
1832 focus in checks. 1832 focus in checks.
1833 </p><dl> 1833 </p><dl>
1834 <dt>Returns:</dt> 1834 <dt>Returns:</dt>
1835 <dd> 1835 <dd>
1836 flag indicating focus in checks should be performed (boolean) 1836 flag indicating focus in checks should be performed (boolean)
1906 <dd> 1906 <dd>
1907 filename of active window (string) 1907 filename of active window (string)
1908 </dd> 1908 </dd>
1909 </dl><a NAME="ViewManager.getEditor" ID="ViewManager.getEditor"></a> 1909 </dl><a NAME="ViewManager.getEditor" ID="ViewManager.getEditor"></a>
1910 <h4>ViewManager.getEditor</h4> 1910 <h4>ViewManager.getEditor</h4>
1911 <b>getEditor</b>(<i>fn, filetype = ""</i>) 1911 <b>getEditor</b>(<i>fn, filetype=""</i>)
1912 <p> 1912 <p>
1913 Public method to return the editor displaying the given file. 1913 Public method to return the editor displaying the given file.
1914 </p><p> 1914 </p><p>
1915 If there is no editor with the given file, a new editor window is 1915 If there is no editor with the given file, a new editor window is
1916 created. 1916 created.
2209 <b>newEditor</b>(<i></i>) 2209 <b>newEditor</b>(<i></i>)
2210 <p> 2210 <p>
2211 Public slot to generate a new empty editor. 2211 Public slot to generate a new empty editor.
2212 </p><a NAME="ViewManager.newEditorView" ID="ViewManager.newEditorView"></a> 2212 </p><a NAME="ViewManager.newEditorView" ID="ViewManager.newEditorView"></a>
2213 <h4>ViewManager.newEditorView</h4> 2213 <h4>ViewManager.newEditorView</h4>
2214 <b>newEditorView</b>(<i>fn, caller, filetype = ""</i>) 2214 <b>newEditorView</b>(<i>fn, caller, filetype=""</i>)
2215 <p> 2215 <p>
2216 Public method to create a new editor displaying the given document. 2216 Public method to create a new editor displaying the given document.
2217 </p><dl> 2217 </p><dl>
2218 <dt><i>fn</i></dt> 2218 <dt><i>fn</i></dt>
2219 <dd> 2219 <dd>
2230 <b>nextSplit</b>(<i></i>) 2230 <b>nextSplit</b>(<i></i>)
2231 <p> 2231 <p>
2232 Public slot used to move to the next split. 2232 Public slot used to move to the next split.
2233 </p><a NAME="ViewManager.openFiles" ID="ViewManager.openFiles"></a> 2233 </p><a NAME="ViewManager.openFiles" ID="ViewManager.openFiles"></a>
2234 <h4>ViewManager.openFiles</h4> 2234 <h4>ViewManager.openFiles</h4>
2235 <b>openFiles</b>(<i>prog = None</i>) 2235 <b>openFiles</b>(<i>prog=None</i>)
2236 <p> 2236 <p>
2237 Public slot to open some files. 2237 Public slot to open some files.
2238 </p><dl> 2238 </p><dl>
2239 <dt><i>prog</i></dt> 2239 <dt><i>prog</i></dt>
2240 <dd> 2240 <dd>
2241 name of file to be opened (string) 2241 name of file to be opened (string)
2242 </dd> 2242 </dd>
2243 </dl><a NAME="ViewManager.openSourceFile" ID="ViewManager.openSourceFile"></a> 2243 </dl><a NAME="ViewManager.openSourceFile" ID="ViewManager.openSourceFile"></a>
2244 <h4>ViewManager.openSourceFile</h4> 2244 <h4>ViewManager.openSourceFile</h4>
2245 <b>openSourceFile</b>(<i>fn, lineno = None, filetype = "", selStart = 0, selEnd = 0, pos = 0</i>) 2245 <b>openSourceFile</b>(<i>fn, lineno=None, filetype="", selStart=0, selEnd=0, pos=0</i>)
2246 <p> 2246 <p>
2247 Public slot to display a file in an editor. 2247 Public slot to display a file in an editor.
2248 </p><dl> 2248 </p><dl>
2249 <dt><i>fn</i></dt> 2249 <dt><i>fn</i></dt>
2250 <dd> 2250 <dd>
2462 <dd> 2462 <dd>
2463 Not implemented 2463 Not implemented
2464 </dd> 2464 </dd>
2465 </dl><a NAME="ViewManager.setFileLine" ID="ViewManager.setFileLine"></a> 2465 </dl><a NAME="ViewManager.setFileLine" ID="ViewManager.setFileLine"></a>
2466 <h4>ViewManager.setFileLine</h4> 2466 <h4>ViewManager.setFileLine</h4>
2467 <b>setFileLine</b>(<i>fn, line, error = False, syntaxError = False</i>) 2467 <b>setFileLine</b>(<i>fn, line, error=False, syntaxError=False</i>)
2468 <p> 2468 <p>
2469 Public method to update the user interface when the current program 2469 Public method to update the user interface when the current program
2470 or line changes. 2470 or line changes.
2471 </p><dl> 2471 </p><dl>
2472 <dt><i>fn</i></dt> 2472 <dt><i>fn</i></dt>
2590 <b>startSharedEdit</b>(<i></i>) 2590 <b>startSharedEdit</b>(<i></i>)
2591 <p> 2591 <p>
2592 Public slot to start a shared edit session for the current editor. 2592 Public slot to start a shared edit session for the current editor.
2593 </p><a NAME="ViewManager.textForFind" ID="ViewManager.textForFind"></a> 2593 </p><a NAME="ViewManager.textForFind" ID="ViewManager.textForFind"></a>
2594 <h4>ViewManager.textForFind</h4> 2594 <h4>ViewManager.textForFind</h4>
2595 <b>textForFind</b>(<i>getCurrentWord = True</i>) 2595 <b>textForFind</b>(<i>getCurrentWord=True</i>)
2596 <p> 2596 <p>
2597 Public method to determine the selection or the current word for the next 2597 Public method to determine the selection or the current word for the next
2598 find operation. 2598 find operation.
2599 </p><dl> 2599 </p><dl>
2600 <dt><i>getCurrentWord</i></dt> 2600 <dt><i>getCurrentWord</i></dt>
2601 <dd> 2601 <dd>
2602 flag indicating to return the current word, if no selected 2602 flag indicating to return the current word, if no selected
2617 <dd> 2617 <dd>
2618 Not implemented 2618 Not implemented
2619 </dd> 2619 </dd>
2620 </dl><a NAME="ViewManager.unhighlight" ID="ViewManager.unhighlight"></a> 2620 </dl><a NAME="ViewManager.unhighlight" ID="ViewManager.unhighlight"></a>
2621 <h4>ViewManager.unhighlight</h4> 2621 <h4>ViewManager.unhighlight</h4>
2622 <b>unhighlight</b>(<i>current = False</i>) 2622 <b>unhighlight</b>(<i>current=False</i>)
2623 <p> 2623 <p>
2624 Public method to switch off all highlights. 2624 Public method to switch off all highlights.
2625 </p><dl> 2625 </p><dl>
2626 <dt><i>current</i></dt> 2626 <dt><i>current</i></dt>
2627 <dd> 2627 <dd>

eric ide

mercurial