eric6/Documentation/Source/eric6.QScintilla.Editor.html

branch
maintenance
changeset 8043
0acf98cd089a
parent 7850
e64b178499da
parent 8000
47b15df088e4
child 8142
43248bafe9b2
equal deleted inserted replaced
7991:866adc8c315b 8043:0acf98cd089a
21 <body> 21 <body>
22 <a NAME="top" ID="top"></a> 22 <a NAME="top" ID="top"></a>
23 <h1>eric6.QScintilla.Editor</h1> 23 <h1>eric6.QScintilla.Editor</h1>
24 24
25 <p> 25 <p>
26 Module implementing the editor component of the eric6 IDE. 26 Module implementing the editor component of the eric IDE.
27 </p> 27 </p>
28 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29 29
30 <table> 30 <table>
31 <tr><td>EditorAutoCompletionListID</td></tr><tr><td>TemplateCompletionListID</td></tr> 31 <tr><td>EditorAutoCompletionListID</td></tr><tr><td>TemplateCompletionListID</td></tr>
34 34
35 <table> 35 <table>
36 36
37 <tr> 37 <tr>
38 <td><a href="#Editor">Editor</a></td> 38 <td><a href="#Editor">Editor</a></td>
39 <td>Class implementing the editor component of the eric6 IDE.</td> 39 <td>Class implementing the editor component of the eric IDE.</td>
40 </tr> 40 </tr>
41 </table> 41 </table>
42 <h3>Functions</h3> 42 <h3>Functions</h3>
43 43
44 <table> 44 <table>
48 <hr /> 48 <hr />
49 <a NAME="Editor" ID="Editor"></a> 49 <a NAME="Editor" ID="Editor"></a>
50 <h2>Editor</h2> 50 <h2>Editor</h2>
51 51
52 <p> 52 <p>
53 Class implementing the editor component of the eric6 IDE. 53 Class implementing the editor component of the eric IDE.
54 </p> 54 </p>
55 <h3>Signals</h3> 55 <h3>Signals</h3>
56 <dl> 56 <dl>
57 57
58 <dt>autoCompletionAPIsAvailable(bool)</dt> 58 <dt>autoCompletionAPIsAvailable(bool)</dt>
179 <h3>Derived from</h3> 179 <h3>Derived from</h3>
180 QsciScintillaCompat 180 QsciScintillaCompat
181 <h3>Class Attributes</h3> 181 <h3>Class Attributes</h3>
182 182
183 <table> 183 <table>
184 <tr><td>AttributeID</td></tr><tr><td>AttributePrivateID</td></tr><tr><td>AttributeProtectedID</td></tr><tr><td>CancelEditToken</td></tr><tr><td>ClassID</td></tr><tr><td>ClassPrivateID</td></tr><tr><td>ClassProtectedID</td></tr><tr><td>EndEditToken</td></tr><tr><td>EnumID</td></tr><tr><td>FromDocumentID</td></tr><tr><td>KeywordsID</td></tr><tr><td>MethodID</td></tr><tr><td>MethodPrivateID</td></tr><tr><td>MethodProtectedID</td></tr><tr><td>ModuleID</td></tr><tr><td>RequestSyncToken</td></tr><tr><td>Separator</td></tr><tr><td>StartEditToken</td></tr><tr><td>SyncToken</td></tr><tr><td>TemplateImageID</td></tr><tr><td>VcsConflictMarkerLineRegExpList</td></tr><tr><td>WarningCode</td></tr><tr><td>WarningStyle</td></tr> 184 <tr><td>AttributeID</td></tr><tr><td>AttributePrivateID</td></tr><tr><td>AttributeProtectedID</td></tr><tr><td>CancelEditToken</td></tr><tr><td>ClassID</td></tr><tr><td>ClassPrivateID</td></tr><tr><td>ClassProtectedID</td></tr><tr><td>EncloseChars</td></tr><tr><td>EndEditToken</td></tr><tr><td>EnumID</td></tr><tr><td>FromDocumentID</td></tr><tr><td>KeywordsID</td></tr><tr><td>MethodID</td></tr><tr><td>MethodPrivateID</td></tr><tr><td>MethodProtectedID</td></tr><tr><td>ModuleID</td></tr><tr><td>RequestSyncToken</td></tr><tr><td>Separator</td></tr><tr><td>StartEditToken</td></tr><tr><td>SyncToken</td></tr><tr><td>TemplateImageID</td></tr><tr><td>VcsConflictMarkerLineRegExpList</td></tr><tr><td>WarningCode</td></tr><tr><td>WarningStyle</td></tr>
185 </table> 185 </table>
186 <h3>Class Methods</h3> 186 <h3>Class Methods</h3>
187 187
188 <table> 188 <table>
189 <tr><td>None</td></tr> 189 <tr><td>None</td></tr>
367 <tr> 367 <tr>
368 <td><a href="#Editor.__cursorPositionChanged">__cursorPositionChanged</a></td> 368 <td><a href="#Editor.__cursorPositionChanged">__cursorPositionChanged</a></td>
369 <td>Private slot to handle the cursorPositionChanged signal.</td> 369 <td>Private slot to handle the cursorPositionChanged signal.</td>
370 </tr> 370 </tr>
371 <tr> 371 <tr>
372 <td><a href="#Editor.__delayedDocstringMenuPopup">__delayedDocstringMenuPopup</a></td>
373 <td>Private method to test, if the user might want to insert a docstring.</td>
374 </tr>
375 <tr>
372 <td><a href="#Editor.__deleteAllChangeMarkers">__deleteAllChangeMarkers</a></td> 376 <td><a href="#Editor.__deleteAllChangeMarkers">__deleteAllChangeMarkers</a></td>
373 <td>Private slot to delete all change markers.</td> 377 <td>Private slot to delete all change markers.</td>
374 </tr> 378 </tr>
375 <tr> 379 <tr>
376 <td><a href="#Editor.__deleteBreakPoints">__deleteBreakPoints</a></td> 380 <td><a href="#Editor.__deleteBreakPoints">__deleteBreakPoints</a></td>
515 <tr> 519 <tr>
516 <td><a href="#Editor.__initOnlineSyntaxCheck">__initOnlineSyntaxCheck</a></td> 520 <td><a href="#Editor.__initOnlineSyntaxCheck">__initOnlineSyntaxCheck</a></td>
517 <td>Private slot to initialize the online syntax check.</td> 521 <td>Private slot to initialize the online syntax check.</td>
518 </tr> 522 </tr>
519 <tr> 523 <tr>
524 <td><a href="#Editor.__insertDocstring">__insertDocstring</a></td>
525 <td>Private slot to generate and insert a docstring for the function under the cursor.</td>
526 </tr>
527 <tr>
520 <td><a href="#Editor.__isCommentedLine">__isCommentedLine</a></td> 528 <td><a href="#Editor.__isCommentedLine">__isCommentedLine</a></td>
521 <td>Private method to check, if the given line is a comment line as produced by the configured comment rules.</td> 529 <td>Private method to check, if the given line is a comment line as produced by the configured comment rules.</td>
522 </tr> 530 </tr>
523 <tr> 531 <tr>
524 <td><a href="#Editor.__isStartChar">__isStartChar</a></td> 532 <td><a href="#Editor.__isStartChar">__isStartChar</a></td>
603 <tr> 611 <tr>
604 <td><a href="#Editor.__onlineChangeTraceTimerTimeout">__onlineChangeTraceTimerTimeout</a></td> 612 <td><a href="#Editor.__onlineChangeTraceTimerTimeout">__onlineChangeTraceTimerTimeout</a></td>
605 <td>Private slot to mark added and changed lines.</td> 613 <td>Private slot to mark added and changed lines.</td>
606 </tr> 614 </tr>
607 <tr> 615 <tr>
616 <td><a href="#Editor.__popupDocstringMenu">__popupDocstringMenu</a></td>
617 <td>Private slot to pop up a menu asking the user, if a docstring should be inserted.</td>
618 </tr>
619 <tr>
608 <td><a href="#Editor.__printPreview">__printPreview</a></td> 620 <td><a href="#Editor.__printPreview">__printPreview</a></td>
609 <td>Private slot to generate a print preview.</td> 621 <td>Private slot to generate a print preview.</td>
610 </tr> 622 </tr>
611 <tr> 623 <tr>
612 <td><a href="#Editor.__processEndEditCommand">__processEndEditCommand</a></td> 624 <td><a href="#Editor.__processEndEditCommand">__processEndEditCommand</a></td>
1071 <tr> 1083 <tr>
1072 <td><a href="#Editor.editorCommand">editorCommand</a></td> 1084 <td><a href="#Editor.editorCommand">editorCommand</a></td>
1073 <td>Public method to perform a simple editor command.</td> 1085 <td>Public method to perform a simple editor command.</td>
1074 </tr> 1086 </tr>
1075 <tr> 1087 <tr>
1088 <td><a href="#Editor.encloseSelectedText">encloseSelectedText</a></td>
1089 <td>Local function to enclose the current selection with some characters.</td>
1090 </tr>
1091 <tr>
1076 <td><a href="#Editor.ensureVisible">ensureVisible</a></td> 1092 <td><a href="#Editor.ensureVisible">ensureVisible</a></td>
1077 <td>Public slot to ensure, that the specified line is visible.</td> 1093 <td>Public slot to ensure, that the specified line is visible.</td>
1078 </tr> 1094 </tr>
1079 <tr> 1095 <tr>
1080 <td><a href="#Editor.ensureVisibleTop">ensureVisibleTop</a></td> 1096 <td><a href="#Editor.ensureVisibleTop">ensureVisibleTop</a></td>
1155 <tr> 1171 <tr>
1156 <td><a href="#Editor.getCurrentWordBoundaries">getCurrentWordBoundaries</a></td> 1172 <td><a href="#Editor.getCurrentWordBoundaries">getCurrentWordBoundaries</a></td>
1157 <td>Public method to get the word boundaries at the current position.</td> 1173 <td>Public method to get the word boundaries at the current position.</td>
1158 </tr> 1174 </tr>
1159 <tr> 1175 <tr>
1176 <td><a href="#Editor.getDocstringGenerator">getDocstringGenerator</a></td>
1177 <td>Public method to get a reference to the docstring generator.</td>
1178 </tr>
1179 <tr>
1160 <td><a href="#Editor.getEditorConfig">getEditorConfig</a></td> 1180 <td><a href="#Editor.getEditorConfig">getEditorConfig</a></td>
1161 <td>Public method to get the requested option via EditorConfig.</td> 1181 <td>Public method to get the requested option via EditorConfig.</td>
1162 </tr> 1182 </tr>
1163 <tr> 1183 <tr>
1164 <td><a href="#Editor.getEncoding">getEncoding</a></td> 1184 <td><a href="#Editor.getEncoding">getEncoding</a></td>
1325 <td>Public method to make sure that the highlight is visible.</td> 1345 <td>Public method to make sure that the highlight is visible.</td>
1326 </tr> 1346 </tr>
1327 <tr> 1347 <tr>
1328 <td><a href="#Editor.indentLineOrSelection">indentLineOrSelection</a></td> 1348 <td><a href="#Editor.indentLineOrSelection">indentLineOrSelection</a></td>
1329 <td>Public slot to indent the current line or current selection.</td> 1349 <td>Public slot to indent the current line or current selection.</td>
1350 </tr>
1351 <tr>
1352 <td><a href="#Editor.insertDocstring">insertDocstring</a></td>
1353 <td>Public method to generate and insert a docstring for the function under the cursor.</td>
1330 </tr> 1354 </tr>
1331 <tr> 1355 <tr>
1332 <td><a href="#Editor.isClone">isClone</a></td> 1356 <td><a href="#Editor.isClone">isClone</a></td>
1333 <td>Public method to test, if the given editor is a clone.</td> 1357 <td>Public method to test, if the given editor is a clone.</td>
1334 </tr> 1358 </tr>
1859 <dd> 1883 <dd>
1860 position into the text (integer) 1884 position into the text (integer)
1861 </dd> 1885 </dd>
1862 </dl> 1886 </dl>
1863 <dl> 1887 <dl>
1864 <dt>Returns:</dt> 1888 <dt>Return:</dt>
1865 <dd> 1889 <dd>
1866 new position for the calltip (integer) 1890 new position for the calltip (integer)
1867 </dd> 1891 </dd>
1868 </dl> 1892 </dl>
1869 <a NAME="Editor.__applyTemplate" ID="Editor.__applyTemplate"></a> 1893 <a NAME="Editor.__applyTemplate" ID="Editor.__applyTemplate"></a>
1892 <p> 1916 <p>
1893 Private method to start auto-completion via plug-ins. 1917 Private method to start auto-completion via plug-ins.
1894 </p> 1918 </p>
1895 <dl> 1919 <dl>
1896 1920
1897 <dt><i>auto=</i></dt> 1921 <dt><i>auto</i></dt>
1898 <dd> 1922 <dd>
1899 flag indicating a call from the __charAdded method 1923 flag indicating a call from the __charAdded method
1900 (boolean) 1924 (boolean)
1901 </dd> 1925 </dd>
1902 <dt><i>context=</i> (bool or None)</dt> 1926 <dt><i>context</i> (bool or None)</dt>
1903 <dd> 1927 <dd>
1904 flag indicating to complete a context 1928 flag indicating to complete a context
1905 </dd> 1929 </dd>
1906 </dl> 1930 </dl>
1907 <a NAME="Editor.__autocompletionCancelled" ID="Editor.__autocompletionCancelled"></a> 1931 <a NAME="Editor.__autocompletionCancelled" ID="Editor.__autocompletionCancelled"></a>
1945 <dt><i>filename</i></dt> 1969 <dt><i>filename</i></dt>
1946 <dd> 1970 <dd>
1947 filename used to determine the associated lexer 1971 filename used to determine the associated lexer
1948 language (string) 1972 language (string)
1949 </dd> 1973 </dd>
1950 <dt><i>pyname=</i></dt> 1974 <dt><i>pyname</i></dt>
1951 <dd> 1975 <dd>
1952 name of the pygments lexer to use (string) 1976 name of the pygments lexer to use (string)
1953 </dd> 1977 </dd>
1954 </dl> 1978 </dl>
1955 <a NAME="Editor.__bindName" ID="Editor.__bindName"></a> 1979 <a NAME="Editor.__bindName" ID="Editor.__bindName"></a>
1966 first line of text to use in the generation process 1990 first line of text to use in the generation process
1967 (string) 1991 (string)
1968 </dd> 1992 </dd>
1969 </dl> 1993 </dl>
1970 <dl> 1994 <dl>
1971 <dt>Returns:</dt> 1995 <dt>Return:</dt>
1972 <dd> 1996 <dd>
1973 dummy file name to be used for binding a lexer (string) 1997 dummy file name to be used for binding a lexer (string)
1974 </dd> 1998 </dd>
1975 </dl> 1999 </dl>
1976 <a NAME="Editor.__breakPointDataAboutToBeChanged" ID="Editor.__breakPointDataAboutToBeChanged"></a> 2000 <a NAME="Editor.__breakPointDataAboutToBeChanged" ID="Editor.__breakPointDataAboutToBeChanged"></a>
2010 <dd> 2034 <dd>
2011 new text (string) 2035 new text (string)
2012 </dd> 2036 </dd>
2013 </dl> 2037 </dl>
2014 <dl> 2038 <dl>
2015 <dt>Returns:</dt> 2039 <dt>Return:</dt>
2016 <dd> 2040 <dd>
2017 commands to change old into new (string) 2041 commands to change old into new (string)
2018 </dd> 2042 </dd>
2019 </dl> 2043 </dl>
2020 <a NAME="Editor.__callTip" ID="Editor.__callTip"></a> 2044 <a NAME="Editor.__callTip" ID="Editor.__callTip"></a>
2254 <dd> 2278 <dd>
2255 width of the marker line (integer) 2279 width of the marker line (integer)
2256 </dd> 2280 </dd>
2257 </dl> 2281 </dl>
2258 <dl> 2282 <dl>
2259 <dt>Returns:</dt> 2283 <dt>Return:</dt>
2260 <dd> 2284 <dd>
2261 create pixmap (QPixmap) 2285 create pixmap (QPixmap)
2262 </dd> 2286 </dd>
2263 </dl> 2287 </dl>
2264 <a NAME="Editor.__cursorPositionChanged" ID="Editor.__cursorPositionChanged"></a> 2288 <a NAME="Editor.__cursorPositionChanged" ID="Editor.__cursorPositionChanged"></a>
2281 <dt><i>index</i></dt> 2305 <dt><i>index</i></dt>
2282 <dd> 2306 <dd>
2283 position in line of the cursor 2307 position in line of the cursor
2284 </dd> 2308 </dd>
2285 </dl> 2309 </dl>
2310 <a NAME="Editor.__delayedDocstringMenuPopup" ID="Editor.__delayedDocstringMenuPopup"></a>
2311 <h4>Editor.__delayedDocstringMenuPopup</h4>
2312 <b>__delayedDocstringMenuPopup</b>(<i>cursorPosition</i>)
2313
2314 <p>
2315 Private method to test, if the user might want to insert a docstring.
2316 </p>
2317 <dl>
2318
2319 <dt><i>cursorPosition</i> (tuple of (int, int))</dt>
2320 <dd>
2321 current cursor position (line and column)
2322 </dd>
2323 </dl>
2286 <a NAME="Editor.__deleteAllChangeMarkers" ID="Editor.__deleteAllChangeMarkers"></a> 2324 <a NAME="Editor.__deleteAllChangeMarkers" ID="Editor.__deleteAllChangeMarkers"></a>
2287 <h4>Editor.__deleteAllChangeMarkers</h4> 2325 <h4>Editor.__deleteAllChangeMarkers</h4>
2288 <b>__deleteAllChangeMarkers</b>(<i></i>) 2326 <b>__deleteAllChangeMarkers</b>(<i></i>)
2289 2327
2290 <p> 2328 <p>
2344 2382
2345 <dt><i>encoding</i></dt> 2383 <dt><i>encoding</i></dt>
2346 <dd> 2384 <dd>
2347 changed encoding (string) 2385 changed encoding (string)
2348 </dd> 2386 </dd>
2349 <dt><i>propagate=</i></dt> 2387 <dt><i>propagate</i></dt>
2350 <dd> 2388 <dd>
2351 flag indicating to propagate the change (boolean) 2389 flag indicating to propagate the change (boolean)
2352 </dd> 2390 </dd>
2353 </dl> 2391 </dl>
2354 <a NAME="Editor.__encodingsMenuTriggered" ID="Editor.__encodingsMenuTriggered"></a> 2392 <a NAME="Editor.__encodingsMenuTriggered" ID="Editor.__encodingsMenuTriggered"></a>
2413 2451
2414 <p> 2452 <p>
2415 Private method to get the text from cursor position for autocompleting. 2453 Private method to get the text from cursor position for autocompleting.
2416 </p> 2454 </p>
2417 <dl> 2455 <dl>
2418 <dt>Returns:</dt> 2456 <dt>Return:</dt>
2419 <dd> 2457 <dd>
2420 text left of cursor position 2458 text left of cursor position
2421 </dd> 2459 </dd>
2422 </dl> 2460 </dl>
2423 <dl> 2461 <dl>
2440 <dd> 2478 <dd>
2441 position to get character at (integer) 2479 position to get character at (integer)
2442 </dd> 2480 </dd>
2443 </dl> 2481 </dl>
2444 <dl> 2482 <dl>
2445 <dt>Returns:</dt> 2483 <dt>Return:</dt>
2446 <dd> 2484 <dd>
2447 requested character or "", if there are no more (string) and 2485 requested character or "", if there are no more (string) and
2448 the next position (i.e. pos - 1) 2486 the next position (i.e. pos - 1)
2449 </dd> 2487 </dd>
2450 </dl> 2488 </dl>
2455 <p> 2493 <p>
2456 Private method to get the file name of the file containing coverage 2494 Private method to get the file name of the file containing coverage
2457 info. 2495 info.
2458 </p> 2496 </p>
2459 <dl> 2497 <dl>
2460 <dt>Returns:</dt> 2498 <dt>Return:</dt>
2461 <dd> 2499 <dd>
2462 file name of the coverage file (string) 2500 file name of the coverage file (string)
2463 </dd> 2501 </dd>
2464 </dl> 2502 </dl>
2465 <a NAME="Editor.__getEditorConfig" ID="Editor.__getEditorConfig"></a> 2503 <a NAME="Editor.__getEditorConfig" ID="Editor.__getEditorConfig"></a>
2490 <dd> 2528 <dd>
2491 reference to an EditorConfig object or None 2529 reference to an EditorConfig object or None
2492 </dd> 2530 </dd>
2493 </dl> 2531 </dl>
2494 <dl> 2532 <dl>
2495 <dt>Returns:</dt> 2533 <dt>Return:</dt>
2496 <dd> 2534 <dd>
2497 value of requested setting or None if nothing was found and 2535 value of requested setting or None if nothing was found and
2498 nodefault parameter was True 2536 nodefault parameter was True
2499 </dd> 2537 </dd>
2500 </dl> 2538 </dl>
2510 2548
2511 <p> 2549 <p>
2512 Private method to select a macro name from the list of macros. 2550 Private method to select a macro name from the list of macros.
2513 </p> 2551 </p>
2514 <dl> 2552 <dl>
2515 <dt>Returns:</dt> 2553 <dt>Return:</dt>
2516 <dd> 2554 <dd>
2517 Tuple of macro name and a flag, indicating, if the user 2555 Tuple of macro name and a flag, indicating, if the user
2518 pressed ok or canceled the operation. (string, boolean) 2556 pressed ok or canceled the operation. (string, boolean)
2519 </dd> 2557 </dd>
2520 </dl> 2558 </dl>
2531 <dd> 2569 <dd>
2532 Preferences option key 2570 Preferences option key
2533 </dd> 2571 </dd>
2534 </dl> 2572 </dl>
2535 <dl> 2573 <dl>
2536 <dt>Returns:</dt> 2574 <dt>Return:</dt>
2537 <dd> 2575 <dd>
2538 override value; None in case nothing is defined 2576 override value; None in case nothing is defined
2539 </dd> 2577 </dd>
2540 </dl> 2578 </dl>
2541 <dl> 2579 <dl>
2551 <p> 2589 <p>
2552 Private method to return the Python main version or 0 if it's 2590 Private method to return the Python main version or 0 if it's
2553 not a Python file at all. 2591 not a Python file at all.
2554 </p> 2592 </p>
2555 <dl> 2593 <dl>
2556 <dt>Returns:</dt> 2594 <dt>Return:</dt>
2557 <dd> 2595 <dd>
2558 Python version or 0 if it's not a Python file (int) 2596 Python version or 0 if it's not a Python file (int)
2559 </dd> 2597 </dd>
2560 </dl> 2598 </dl>
2561 <a NAME="Editor.__getSaveFileName" ID="Editor.__getSaveFileName"></a> 2599 <a NAME="Editor.__getSaveFileName" ID="Editor.__getSaveFileName"></a>
2571 <dd> 2609 <dd>
2572 directory to save the file in (string) 2610 directory to save the file in (string)
2573 </dd> 2611 </dd>
2574 </dl> 2612 </dl>
2575 <dl> 2613 <dl>
2576 <dt>Returns:</dt> 2614 <dt>Return:</dt>
2577 <dd> 2615 <dd>
2578 file name (string) 2616 file name (string)
2579 </dd> 2617 </dd>
2580 </dl> 2618 </dl>
2581 <a NAME="Editor.__ignoreSpellingAlways" ID="Editor.__ignoreSpellingAlways"></a> 2619 <a NAME="Editor.__ignoreSpellingAlways" ID="Editor.__ignoreSpellingAlways"></a>
2630 2668
2631 <p> 2669 <p>
2632 Private method used to setup the Checks context sub menu. 2670 Private method used to setup the Checks context sub menu.
2633 </p> 2671 </p>
2634 <dl> 2672 <dl>
2635 <dt>Returns:</dt> 2673 <dt>Return:</dt>
2636 <dd> 2674 <dd>
2637 reference to the generated menu (QMenu) 2675 reference to the generated menu (QMenu)
2638 </dd> 2676 </dd>
2639 </dl> 2677 </dl>
2640 <a NAME="Editor.__initContextMenuChecks" ID="Editor.__initContextMenuChecks"></a> 2678 <a NAME="Editor.__initContextMenuChecks" ID="Editor.__initContextMenuChecks"></a>
2643 2681
2644 <p> 2682 <p>
2645 Private method used to setup the Checks context sub menu. 2683 Private method used to setup the Checks context sub menu.
2646 </p> 2684 </p>
2647 <dl> 2685 <dl>
2648 <dt>Returns:</dt> 2686 <dt>Return:</dt>
2649 <dd> 2687 <dd>
2650 reference to the generated menu (QMenu) 2688 reference to the generated menu (QMenu)
2651 </dd> 2689 </dd>
2652 </dl> 2690 </dl>
2653 <a NAME="Editor.__initContextMenuEncodings" ID="Editor.__initContextMenuEncodings"></a> 2691 <a NAME="Editor.__initContextMenuEncodings" ID="Editor.__initContextMenuEncodings"></a>
2656 2694
2657 <p> 2695 <p>
2658 Private method used to setup the Encodings context sub menu. 2696 Private method used to setup the Encodings context sub menu.
2659 </p> 2697 </p>
2660 <dl> 2698 <dl>
2661 <dt>Returns:</dt> 2699 <dt>Return:</dt>
2662 <dd> 2700 <dd>
2663 reference to the generated menu (QMenu) 2701 reference to the generated menu (QMenu)
2664 </dd> 2702 </dd>
2665 </dl> 2703 </dl>
2666 <a NAME="Editor.__initContextMenuEol" ID="Editor.__initContextMenuEol"></a> 2704 <a NAME="Editor.__initContextMenuEol" ID="Editor.__initContextMenuEol"></a>
2669 2707
2670 <p> 2708 <p>
2671 Private method to setup the eol context sub menu. 2709 Private method to setup the eol context sub menu.
2672 </p> 2710 </p>
2673 <dl> 2711 <dl>
2674 <dt>Returns:</dt> 2712 <dt>Return:</dt>
2675 <dd> 2713 <dd>
2676 reference to the generated menu (QMenu) 2714 reference to the generated menu (QMenu)
2677 </dd> 2715 </dd>
2678 </dl> 2716 </dl>
2679 <a NAME="Editor.__initContextMenuExporters" ID="Editor.__initContextMenuExporters"></a> 2717 <a NAME="Editor.__initContextMenuExporters" ID="Editor.__initContextMenuExporters"></a>
2682 2720
2683 <p> 2721 <p>
2684 Private method used to setup the Exporters context sub menu. 2722 Private method used to setup the Exporters context sub menu.
2685 </p> 2723 </p>
2686 <dl> 2724 <dl>
2687 <dt>Returns:</dt> 2725 <dt>Return:</dt>
2688 <dd> 2726 <dd>
2689 reference to the generated menu (QMenu) 2727 reference to the generated menu (QMenu)
2690 </dd> 2728 </dd>
2691 </dl> 2729 </dl>
2692 <a NAME="Editor.__initContextMenuGraphics" ID="Editor.__initContextMenuGraphics"></a> 2730 <a NAME="Editor.__initContextMenuGraphics" ID="Editor.__initContextMenuGraphics"></a>
2695 2733
2696 <p> 2734 <p>
2697 Private method used to setup the diagrams context sub menu. 2735 Private method used to setup the diagrams context sub menu.
2698 </p> 2736 </p>
2699 <dl> 2737 <dl>
2700 <dt>Returns:</dt> 2738 <dt>Return:</dt>
2701 <dd> 2739 <dd>
2702 reference to the generated menu (QMenu) 2740 reference to the generated menu (QMenu)
2703 </dd> 2741 </dd>
2704 </dl> 2742 </dl>
2705 <a NAME="Editor.__initContextMenuLanguages" ID="Editor.__initContextMenuLanguages"></a> 2743 <a NAME="Editor.__initContextMenuLanguages" ID="Editor.__initContextMenuLanguages"></a>
2708 2746
2709 <p> 2747 <p>
2710 Private method used to setup the Languages context sub menu. 2748 Private method used to setup the Languages context sub menu.
2711 </p> 2749 </p>
2712 <dl> 2750 <dl>
2713 <dt>Returns:</dt> 2751 <dt>Return:</dt>
2714 <dd> 2752 <dd>
2715 reference to the generated menu (QMenu) 2753 reference to the generated menu (QMenu)
2716 </dd> 2754 </dd>
2717 </dl> 2755 </dl>
2718 <a NAME="Editor.__initContextMenuMargins" ID="Editor.__initContextMenuMargins"></a> 2756 <a NAME="Editor.__initContextMenuMargins" ID="Editor.__initContextMenuMargins"></a>
2728 2766
2729 <p> 2767 <p>
2730 Private method used to setup the Reopen With Encoding context sub menu. 2768 Private method used to setup the Reopen With Encoding context sub menu.
2731 </p> 2769 </p>
2732 <dl> 2770 <dl>
2733 <dt>Returns:</dt> 2771 <dt>Return:</dt>
2734 <dd> 2772 <dd>
2735 reference to the generated menu (QMenu) 2773 reference to the generated menu (QMenu)
2736 </dd> 2774 </dd>
2737 </dl> 2775 </dl>
2738 <a NAME="Editor.__initContextMenuResources" ID="Editor.__initContextMenuResources"></a> 2776 <a NAME="Editor.__initContextMenuResources" ID="Editor.__initContextMenuResources"></a>
2741 2779
2742 <p> 2780 <p>
2743 Private method used to setup the Resources context sub menu. 2781 Private method used to setup the Resources context sub menu.
2744 </p> 2782 </p>
2745 <dl> 2783 <dl>
2746 <dt>Returns:</dt> 2784 <dt>Return:</dt>
2747 <dd> 2785 <dd>
2748 reference to the generated menu (QMenu) 2786 reference to the generated menu (QMenu)
2749 </dd> 2787 </dd>
2750 </dl> 2788 </dl>
2751 <a NAME="Editor.__initContextMenuShow" ID="Editor.__initContextMenuShow"></a> 2789 <a NAME="Editor.__initContextMenuShow" ID="Editor.__initContextMenuShow"></a>
2754 2792
2755 <p> 2793 <p>
2756 Private method used to setup the Show context sub menu. 2794 Private method used to setup the Show context sub menu.
2757 </p> 2795 </p>
2758 <dl> 2796 <dl>
2759 <dt>Returns:</dt> 2797 <dt>Return:</dt>
2760 <dd> 2798 <dd>
2761 reference to the generated menu (QMenu) 2799 reference to the generated menu (QMenu)
2762 </dd> 2800 </dd>
2763 </dl> 2801 </dl>
2764 <a NAME="Editor.__initContextMenuSpellLanguages" ID="Editor.__initContextMenuSpellLanguages"></a> 2802 <a NAME="Editor.__initContextMenuSpellLanguages" ID="Editor.__initContextMenuSpellLanguages"></a>
2767 2805
2768 <p> 2806 <p>
2769 Private method to setup the spell checking languages context sub menu. 2807 Private method to setup the spell checking languages context sub menu.
2770 </p> 2808 </p>
2771 <dl> 2809 <dl>
2772 <dt>Returns:</dt> 2810 <dt>Return:</dt>
2773 <dd> 2811 <dd>
2774 reference to the generated menu 2812 reference to the generated menu
2775 </dd> 2813 </dd>
2776 </dl> 2814 </dl>
2777 <dl> 2815 <dl>
2786 2824
2787 <p> 2825 <p>
2788 Private method used to setup the Tools context sub menu. 2826 Private method used to setup the Tools context sub menu.
2789 </p> 2827 </p>
2790 <dl> 2828 <dl>
2791 <dt>Returns:</dt> 2829 <dt>Return:</dt>
2792 <dd> 2830 <dd>
2793 reference to the generated menu (QMenu) 2831 reference to the generated menu (QMenu)
2794 </dd> 2832 </dd>
2795 </dl> 2833 </dl>
2796 <a NAME="Editor.__initOnlineChangeTrace" ID="Editor.__initOnlineChangeTrace"></a> 2834 <a NAME="Editor.__initOnlineChangeTrace" ID="Editor.__initOnlineChangeTrace"></a>
2805 <b>__initOnlineSyntaxCheck</b>(<i></i>) 2843 <b>__initOnlineSyntaxCheck</b>(<i></i>)
2806 2844
2807 <p> 2845 <p>
2808 Private slot to initialize the online syntax check. 2846 Private slot to initialize the online syntax check.
2809 </p> 2847 </p>
2848 <a NAME="Editor.__insertDocstring" ID="Editor.__insertDocstring"></a>
2849 <h4>Editor.__insertDocstring</h4>
2850 <b>__insertDocstring</b>(<i></i>)
2851
2852 <p>
2853 Private slot to generate and insert a docstring for the function under
2854 the cursor.
2855 </p>
2810 <a NAME="Editor.__isCommentedLine" ID="Editor.__isCommentedLine"></a> 2856 <a NAME="Editor.__isCommentedLine" ID="Editor.__isCommentedLine"></a>
2811 <h4>Editor.__isCommentedLine</h4> 2857 <h4>Editor.__isCommentedLine</h4>
2812 <b>__isCommentedLine</b>(<i>line, commentStr</i>) 2858 <b>__isCommentedLine</b>(<i>line, commentStr</i>)
2813 2859
2814 <p> 2860 <p>
2825 <dd> 2871 <dd>
2826 comment string to check against (string) 2872 comment string to check against (string)
2827 </dd> 2873 </dd>
2828 </dl> 2874 </dl>
2829 <dl> 2875 <dl>
2830 <dt>Returns:</dt> 2876 <dt>Return:</dt>
2831 <dd> 2877 <dd>
2832 flag indicating a commented line (boolean) 2878 flag indicating a commented line (boolean)
2833 </dd> 2879 </dd>
2834 </dl> 2880 </dl>
2835 <a NAME="Editor.__isStartChar" ID="Editor.__isStartChar"></a> 2881 <a NAME="Editor.__isStartChar" ID="Editor.__isStartChar"></a>
2846 <dd> 2892 <dd>
2847 character to be checked (one character string) 2893 character to be checked (one character string)
2848 </dd> 2894 </dd>
2849 </dl> 2895 </dl>
2850 <dl> 2896 <dl>
2851 <dt>Returns:</dt> 2897 <dt>Return:</dt>
2852 <dd> 2898 <dd>
2853 flag indicating the result (boolean) 2899 flag indicating the result (boolean)
2854 </dd> 2900 </dd>
2855 </dl> 2901 </dl>
2856 <a NAME="Editor.__languageChanged" ID="Editor.__languageChanged"></a> 2902 <a NAME="Editor.__languageChanged" ID="Editor.__languageChanged"></a>
2864 2910
2865 <dt><i>language</i></dt> 2911 <dt><i>language</i></dt>
2866 <dd> 2912 <dd>
2867 language to be set (string) 2913 language to be set (string)
2868 </dd> 2914 </dd>
2869 <dt><i>propagate=</i></dt> 2915 <dt><i>propagate</i></dt>
2870 <dd> 2916 <dd>
2871 flag indicating to propagate the change (boolean) 2917 flag indicating to propagate the change (boolean)
2872 </dd> 2918 </dd>
2873 </dl> 2919 </dl>
2874 <a NAME="Editor.__languageMenuTriggered" ID="Editor.__languageMenuTriggered"></a> 2920 <a NAME="Editor.__languageMenuTriggered" ID="Editor.__languageMenuTriggered"></a>
2936 <dd> 2982 <dd>
2937 name of the file 2983 name of the file
2938 </dd> 2984 </dd>
2939 </dl> 2985 </dl>
2940 <dl> 2986 <dl>
2941 <dt>Returns:</dt> 2987 <dt>Return:</dt>
2942 <dd> 2988 <dd>
2943 EditorConfig dictionary 2989 EditorConfig dictionary
2944 </dd> 2990 </dd>
2945 </dl> 2991 </dl>
2946 <dl> 2992 <dl>
2984 <dd> 3030 <dd>
2985 x position (integer) 3031 x position (integer)
2986 </dd> 3032 </dd>
2987 </dl> 3033 </dl>
2988 <dl> 3034 <dl>
2989 <dt>Returns:</dt> 3035 <dt>Return:</dt>
2990 <dd> 3036 <dd>
2991 margin number (integer, -1 for no margin) 3037 margin number (integer, -1 for no margin)
2992 </dd> 3038 </dd>
2993 </dl> 3039 </dl>
2994 <a NAME="Editor.__markOccurrences" ID="Editor.__markOccurrences"></a> 3040 <a NAME="Editor.__markOccurrences" ID="Editor.__markOccurrences"></a>
3124 <dd> 3170 <dd>
3125 encoding to be normalized (string) 3171 encoding to be normalized (string)
3126 </dd> 3172 </dd>
3127 </dl> 3173 </dl>
3128 <dl> 3174 <dl>
3129 <dt>Returns:</dt> 3175 <dt>Return:</dt>
3130 <dd> 3176 <dd>
3131 normalized encoding (string) 3177 normalized encoding (string)
3132 </dd> 3178 </dd>
3133 </dl> 3179 </dl>
3134 <a NAME="Editor.__onlineChangeTraceTimerTimeout" ID="Editor.__onlineChangeTraceTimerTimeout"></a> 3180 <a NAME="Editor.__onlineChangeTraceTimerTimeout" ID="Editor.__onlineChangeTraceTimerTimeout"></a>
3136 <b>__onlineChangeTraceTimerTimeout</b>(<i></i>) 3182 <b>__onlineChangeTraceTimerTimeout</b>(<i></i>)
3137 3183
3138 <p> 3184 <p>
3139 Private slot to mark added and changed lines. 3185 Private slot to mark added and changed lines.
3140 </p> 3186 </p>
3187 <a NAME="Editor.__popupDocstringMenu" ID="Editor.__popupDocstringMenu"></a>
3188 <h4>Editor.__popupDocstringMenu</h4>
3189 <b>__popupDocstringMenu</b>(<i>lastLineText, lastCursorPosition</i>)
3190
3191 <p>
3192 Private slot to pop up a menu asking the user, if a docstring should be
3193 inserted.
3194 </p>
3195 <dl>
3196
3197 <dt><i>lastLineText</i> (str)</dt>
3198 <dd>
3199 line contents when the delay timer was started
3200 </dd>
3201 <dt><i>lastCursorPosition</i> (tuple of (int, int))</dt>
3202 <dd>
3203 position of the cursor when the delay timer
3204 was started (line and index)
3205 </dd>
3206 </dl>
3141 <a NAME="Editor.__printPreview" ID="Editor.__printPreview"></a> 3207 <a NAME="Editor.__printPreview" ID="Editor.__printPreview"></a>
3142 <h4>Editor.__printPreview</h4> 3208 <h4>Editor.__printPreview</h4>
3143 <b>__printPreview</b>(<i>printer</i>) 3209 <b>__printPreview</b>(<i>printer</i>)
3144 3210
3145 <p> 3211 <p>
3173 3239
3174 <p> 3240 <p>
3175 Private method to extract flags and process them. 3241 Private method to extract flags and process them.
3176 </p> 3242 </p>
3177 <dl> 3243 <dl>
3178 <dt>Returns:</dt> 3244 <dt>Return:</dt>
3179 <dd> 3245 <dd>
3180 list of change flags (list of string) 3246 list of change flags (list of string)
3181 </dd> 3247 </dd>
3182 </dl> 3248 </dl>
3183 <a NAME="Editor.__processRequestSyncCommand" ID="Editor.__processRequestSyncCommand"></a> 3249 <a NAME="Editor.__processRequestSyncCommand" ID="Editor.__processRequestSyncCommand"></a>
3332 <dd> 3398 <dd>
3333 completion text 3399 completion text
3334 </dd> 3400 </dd>
3335 </dl> 3401 </dl>
3336 <dl> 3402 <dl>
3337 <dt>Returns:</dt> 3403 <dt>Return:</dt>
3338 <dd> 3404 <dd>
3339 modified completion text 3405 modified completion text
3340 </dd> 3406 </dd>
3341 </dl> 3407 </dl>
3342 <dl> 3408 <dl>
3352 <p> 3418 <p>
3353 Private method used to reset the language selection. 3419 Private method used to reset the language selection.
3354 </p> 3420 </p>
3355 <dl> 3421 <dl>
3356 3422
3357 <dt><i>propagate=</i></dt> 3423 <dt><i>propagate</i></dt>
3358 <dd> 3424 <dd>
3359 flag indicating to propagate the change (boolean) 3425 flag indicating to propagate the change (boolean)
3360 </dd> 3426 </dd>
3361 </dl> 3427 </dl>
3362 <a NAME="Editor.__resetOnlineChangeTraceInfo" ID="Editor.__resetOnlineChangeTraceInfo"></a> 3428 <a NAME="Editor.__resetOnlineChangeTraceInfo" ID="Editor.__resetOnlineChangeTraceInfo"></a>
3428 3494
3429 <p> 3495 <p>
3430 Private method to select a specific pygments lexer. 3496 Private method to select a specific pygments lexer.
3431 </p> 3497 </p>
3432 <dl> 3498 <dl>
3433 <dt>Returns:</dt> 3499 <dt>Return:</dt>
3434 <dd> 3500 <dd>
3435 name of the selected pygments lexer (string) 3501 name of the selected pygments lexer (string)
3436 </dd> 3502 </dd>
3437 </dl> 3503 </dl>
3438 <a NAME="Editor.__send" ID="Editor.__send"></a> 3504 <a NAME="Editor.__send" ID="Editor.__send"></a>
3541 3607
3542 <dt><i>language</i></dt> 3608 <dt><i>language</i></dt>
3543 <dd> 3609 <dd>
3544 spell checking language to be set (string) 3610 spell checking language to be set (string)
3545 </dd> 3611 </dd>
3546 <dt><i>pwl=</i></dt> 3612 <dt><i>pwl</i></dt>
3547 <dd> 3613 <dd>
3548 name of the personal/project word list (string) 3614 name of the personal/project word list (string)
3549 </dd> 3615 </dd>
3550 <dt><i>pel=</i></dt> 3616 <dt><i>pel</i></dt>
3551 <dd> 3617 <dd>
3552 name of the personal/project exclude list (string) 3618 name of the personal/project exclude list (string)
3553 </dd> 3619 </dd>
3554 </dl> 3620 </dl>
3555 <a NAME="Editor.__setTabAndIndent" ID="Editor.__setTabAndIndent"></a> 3621 <a NAME="Editor.__setTabAndIndent" ID="Editor.__setTabAndIndent"></a>
3987 <p> 4053 <p>
3988 Public method to start auto-completion. 4054 Public method to start auto-completion.
3989 </p> 4055 </p>
3990 <dl> 4056 <dl>
3991 4057
3992 <dt><i>auto=</i></dt> 4058 <dt><i>auto</i></dt>
3993 <dd> 4059 <dd>
3994 flag indicating a call from the __charAdded method 4060 flag indicating a call from the __charAdded method
3995 (boolean) 4061 (boolean)
3996 </dd> 4062 </dd>
3997 <dt><i>context=</i></dt> 4063 <dt><i>context</i></dt>
3998 <dd> 4064 <dd>
3999 flag indicating to complete a context (boolean) 4065 flag indicating to complete a context (boolean)
4000 </dd> 4066 </dd>
4001 </dl> 4067 </dl>
4002 <a NAME="Editor.autoCompleteQScintilla" ID="Editor.autoCompleteQScintilla"></a> 4068 <a NAME="Editor.autoCompleteQScintilla" ID="Editor.autoCompleteQScintilla"></a>
4040 4106
4041 <p> 4107 <p>
4042 Public method to check for API availablity. 4108 Public method to check for API availablity.
4043 </p> 4109 </p>
4044 <dl> 4110 <dl>
4045 <dt>Returns:</dt> 4111 <dt>Return:</dt>
4046 <dd> 4112 <dd>
4047 flag indicating autocompletion from APIs is available (boolean) 4113 flag indicating autocompletion from APIs is available (boolean)
4048 </dd> 4114 </dd>
4049 </dl> 4115 </dl>
4050 <a NAME="Editor.canProvideCallTipps" ID="Editor.canProvideCallTipps"></a> 4116 <a NAME="Editor.canProvideCallTipps" ID="Editor.canProvideCallTipps"></a>
4053 4119
4054 <p> 4120 <p>
4055 Public method to test the calltips availability. 4121 Public method to test the calltips availability.
4056 </p> 4122 </p>
4057 <dl> 4123 <dl>
4058 <dt>Returns:</dt> 4124 <dt>Return:</dt>
4059 <dd> 4125 <dd>
4060 flag indicating the availability of calltips (boolean) 4126 flag indicating the availability of calltips (boolean)
4061 </dd> 4127 </dd>
4062 </dl> 4128 </dl>
4063 <a NAME="Editor.canProvideDynamicAutoCompletion" ID="Editor.canProvideDynamicAutoCompletion"></a> 4129 <a NAME="Editor.canProvideDynamicAutoCompletion" ID="Editor.canProvideDynamicAutoCompletion"></a>
4066 4132
4067 <p> 4133 <p>
4068 Public method to test the dynamic auto-completion availability. 4134 Public method to test the dynamic auto-completion availability.
4069 </p> 4135 </p>
4070 <dl> 4136 <dl>
4071 <dt>Returns:</dt> 4137 <dt>Return:</dt>
4072 <dd> 4138 <dd>
4073 flag indicating the availability of dynamic auto-completion 4139 flag indicating the availability of dynamic auto-completion
4074 (boolean) 4140 (boolean)
4075 </dd> 4141 </dd>
4076 </dl> 4142 </dl>
4081 <p> 4147 <p>
4082 Public slot to cancel a shared edit session for the editor. 4148 Public slot to cancel a shared edit session for the editor.
4083 </p> 4149 </p>
4084 <dl> 4150 <dl>
4085 4151
4086 <dt><i>send=</i></dt> 4152 <dt><i>send</i></dt>
4087 <dd> 4153 <dd>
4088 flag indicating to send the CancelEdit command (boolean) 4154 flag indicating to send the CancelEdit command (boolean)
4089 </dd> 4155 </dd>
4090 </dl> 4156 </dl>
4091 <a NAME="Editor.changeEvent" ID="Editor.changeEvent"></a> 4157 <a NAME="Editor.changeEvent" ID="Editor.changeEvent"></a>
4102 other modes. This is to make the editor windows work nicer 4168 other modes. This is to make the editor windows work nicer
4103 with the QWorkspace. 4169 with the QWorkspace.
4104 </p> 4170 </p>
4105 <dl> 4171 <dl>
4106 4172
4107 <dt><i>evt</i></dt> 4173 <dt><i>evt</i> (QEvent)</dt>
4108 <dd> 4174 <dd>
4109 the event, that was generated (QEvent) 4175 the event, that was generated
4110 </dd> 4176 </dd>
4111 </dl> 4177 </dl>
4112 <a NAME="Editor.checkDirty" ID="Editor.checkDirty"></a> 4178 <a NAME="Editor.checkDirty" ID="Editor.checkDirty"></a>
4113 <h4>Editor.checkDirty</h4> 4179 <h4>Editor.checkDirty</h4>
4114 <b>checkDirty</b>(<i></i>) 4180 <b>checkDirty</b>(<i></i>)
4115 4181
4116 <p> 4182 <p>
4117 Public method to check dirty status and open a message window. 4183 Public method to check dirty status and open a message window.
4118 </p> 4184 </p>
4119 <dl> 4185 <dl>
4120 <dt>Returns:</dt> 4186 <dt>Return:</dt>
4121 <dd> 4187 <dd>
4122 flag indicating successful reset of the dirty flag (boolean) 4188 flag indicating successful reset of the dirty flag (boolean)
4123 </dd> 4189 </dd>
4124 </dl> 4190 </dl>
4125 <a NAME="Editor.checkSpelling" ID="Editor.checkSpelling"></a> 4191 <a NAME="Editor.checkSpelling" ID="Editor.checkSpelling"></a>
4255 <dd> 4321 <dd>
4256 ignored 4322 ignored
4257 </dd> 4323 </dd>
4258 </dl> 4324 </dl>
4259 <dl> 4325 <dl>
4260 <dt>Returns:</dt> 4326 <dt>Return:</dt>
4261 <dd> 4327 <dd>
4262 flag indicating a successful close of the editor (boolean) 4328 flag indicating a successful close of the editor (boolean)
4263 </dd> 4329 </dd>
4264 </dl> 4330 </dl>
4265 <a NAME="Editor.closeIt" ID="Editor.closeIt"></a> 4331 <a NAME="Editor.closeIt" ID="Editor.closeIt"></a>
4359 <p> 4425 <p>
4360 Public method to check for the presence of a breakpoint at the current 4426 Public method to check for the presence of a breakpoint at the current
4361 line. 4427 line.
4362 </p> 4428 </p>
4363 <dl> 4429 <dl>
4364 <dt>Returns:</dt> 4430 <dt>Return:</dt>
4365 <dd> 4431 <dd>
4366 flag indicating the presence of a breakpoint (boolean) 4432 flag indicating the presence of a breakpoint (boolean)
4367 </dd> 4433 </dd>
4368 </dl> 4434 </dl>
4369 <a NAME="Editor.determineFileType" ID="Editor.determineFileType"></a> 4435 <a NAME="Editor.determineFileType" ID="Editor.determineFileType"></a>
4372 4438
4373 <p> 4439 <p>
4374 Public method to determine the file type using various tests. 4440 Public method to determine the file type using various tests.
4375 </p> 4441 </p>
4376 <dl> 4442 <dl>
4377 <dt>Returns:</dt> 4443 <dt>Return:</dt>
4378 <dd> 4444 <dd>
4379 type of the displayed file or an empty string (string) 4445 type of the displayed file or an empty string (string)
4380 </dd> 4446 </dd>
4381 </dl> 4447 </dl>
4382 <a NAME="Editor.dragEnterEvent" ID="Editor.dragEnterEvent"></a> 4448 <a NAME="Editor.dragEnterEvent" ID="Editor.dragEnterEvent"></a>
4447 <dt><i>cmd</i></dt> 4513 <dt><i>cmd</i></dt>
4448 <dd> 4514 <dd>
4449 the scintilla command to be performed 4515 the scintilla command to be performed
4450 </dd> 4516 </dd>
4451 </dl> 4517 </dl>
4518 <a NAME="Editor.encloseSelectedText" ID="Editor.encloseSelectedText"></a>
4519 <h4>Editor.encloseSelectedText</h4>
4520 <b>encloseSelectedText</b>(<i></i>)
4521
4522 <p>
4523 Local function to enclose the current selection with some
4524 characters.
4525 </p>
4526 <dl>
4527
4528 <dt><i>encString</i> (str)</dt>
4529 <dd>
4530 string to use to enclose the selection
4531 (one or two characters)
4532 </dd>
4533 </dl>
4452 <a NAME="Editor.ensureVisible" ID="Editor.ensureVisible"></a> 4534 <a NAME="Editor.ensureVisible" ID="Editor.ensureVisible"></a>
4453 <h4>Editor.ensureVisible</h4> 4535 <h4>Editor.ensureVisible</h4>
4454 <b>ensureVisible</b>(<i>line, expand=False</i>) 4536 <b>ensureVisible</b>(<i>line, expand=False</i>)
4455 4537
4456 <p> 4538 <p>
4460 4542
4461 <dt><i>line</i> (int)</dt> 4543 <dt><i>line</i> (int)</dt>
4462 <dd> 4544 <dd>
4463 line number to make visible 4545 line number to make visible
4464 </dd> 4546 </dd>
4465 <dt><i>expand=</i> (bool)</dt> 4547 <dt><i>expand</i> (bool)</dt>
4466 <dd> 4548 <dd>
4467 flag indicating to expand all folds 4549 flag indicating to expand all folds
4468 </dd> 4550 </dd>
4469 </dl> 4551 </dl>
4470 <a NAME="Editor.ensureVisibleTop" ID="Editor.ensureVisibleTop"></a> 4552 <a NAME="Editor.ensureVisibleTop" ID="Editor.ensureVisibleTop"></a>
4479 4561
4480 <dt><i>line</i> (int)</dt> 4562 <dt><i>line</i> (int)</dt>
4481 <dd> 4563 <dd>
4482 line number to make visible 4564 line number to make visible
4483 </dd> 4565 </dd>
4484 <dt><i>expand=</i> (bool)</dt> 4566 <dt><i>expand</i> (bool)</dt>
4485 <dd> 4567 <dd>
4486 flag indicating to expand all folds 4568 flag indicating to expand all folds
4487 </dd> 4569 </dd>
4488 </dl> 4570 </dl>
4489 <a NAME="Editor.event" ID="Editor.event"></a> 4571 <a NAME="Editor.event" ID="Editor.event"></a>
4493 <p> 4575 <p>
4494 Public method handling events. 4576 Public method handling events.
4495 </p> 4577 </p>
4496 <dl> 4578 <dl>
4497 4579
4498 <dt><i>evt</i></dt> 4580 <dt><i>evt</i> (QEvent)</dt>
4499 <dd> 4581 <dd>
4500 reference to the event (QEvent) 4582 reference to the event
4501 </dd> 4583 </dd>
4502 </dl> 4584 </dl>
4503 <dl> 4585 <dl>
4504 <dt>Returns:</dt> 4586 <dt>Return:</dt>
4505 <dd> 4587 <dd>
4506 flag indicating, if the event was handled (boolean) 4588 flag indicating, if the event was handled
4589 </dd>
4590 </dl>
4591 <dl>
4592 <dt>Return Type:</dt>
4593 <dd>
4594 bool
4507 </dd> 4595 </dd>
4508 </dl> 4596 </dl>
4509 <a NAME="Editor.expandFoldWithChildren" ID="Editor.expandFoldWithChildren"></a> 4597 <a NAME="Editor.expandFoldWithChildren" ID="Editor.expandFoldWithChildren"></a>
4510 <h4>Editor.expandFoldWithChildren</h4> 4598 <h4>Editor.expandFoldWithChildren</h4>
4511 <b>expandFoldWithChildren</b>(<i>line=-1</i>) 4599 <b>expandFoldWithChildren</b>(<i>line=-1</i>)
4568 assuming, that it is in the vicinity of the old position after the 4656 assuming, that it is in the vicinity of the old position after the
4569 reread. 4657 reread.
4570 </p> 4658 </p>
4571 <dl> 4659 <dl>
4572 4660
4573 <dt><i>event</i></dt> 4661 <dt><i>event</i> (QFocusEvent)</dt>
4574 <dd> 4662 <dd>
4575 the event object (QFocusEvent) 4663 the event object
4576 </dd> 4664 </dd>
4577 </dl> 4665 </dl>
4578 <a NAME="Editor.focusOutEvent" ID="Editor.focusOutEvent"></a> 4666 <a NAME="Editor.focusOutEvent" ID="Editor.focusOutEvent"></a>
4579 <h4>Editor.focusOutEvent</h4> 4667 <h4>Editor.focusOutEvent</h4>
4580 <b>focusOutEvent</b>(<i>event</i>) 4668 <b>focusOutEvent</b>(<i>event</i>)
4582 <p> 4670 <p>
4583 Protected method called when the editor loses focus. 4671 Protected method called when the editor loses focus.
4584 </p> 4672 </p>
4585 <dl> 4673 <dl>
4586 4674
4587 <dt><i>event</i></dt> 4675 <dt><i>event</i> (QFocusEvent)</dt>
4588 <dd> 4676 <dd>
4589 the event object (QFocusEvent) 4677 the event object
4590 </dd> 4678 </dd>
4591 </dl> 4679 </dl>
4592 <a NAME="Editor.gestureEvent" ID="Editor.gestureEvent"></a> 4680 <a NAME="Editor.gestureEvent" ID="Editor.gestureEvent"></a>
4593 <h4>Editor.gestureEvent</h4> 4681 <h4>Editor.gestureEvent</h4>
4594 <b>gestureEvent</b>(<i>evt</i>) 4682 <b>gestureEvent</b>(<i>evt</i>)
4596 <p> 4684 <p>
4597 Protected method handling gesture events. 4685 Protected method handling gesture events.
4598 </p> 4686 </p>
4599 <dl> 4687 <dl>
4600 4688
4601 <dt><i>evt</i></dt> 4689 <dt><i>evt</i> (QGestureEvent)</dt>
4602 <dd> 4690 <dd>
4603 reference to the gesture event (QGestureEvent 4691 reference to the gesture event
4604 </dd> 4692 </dd>
4605 </dl> 4693 </dl>
4606 <a NAME="Editor.getApiLanguage" ID="Editor.getApiLanguage"></a> 4694 <a NAME="Editor.getApiLanguage" ID="Editor.getApiLanguage"></a>
4607 <h4>Editor.getApiLanguage</h4> 4695 <h4>Editor.getApiLanguage</h4>
4608 <b>getApiLanguage</b>(<i></i>) 4696 <b>getApiLanguage</b>(<i></i>)
4609 4697
4610 <p> 4698 <p>
4611 Public method to get the API language of the editor. 4699 Public method to get the API language of the editor.
4612 </p> 4700 </p>
4613 <dl> 4701 <dl>
4614 <dt>Returns:</dt> 4702 <dt>Return:</dt>
4615 <dd> 4703 <dd>
4616 API language 4704 API language
4617 </dd> 4705 </dd>
4618 </dl> 4706 </dl>
4619 <dl> 4707 <dl>
4628 4716
4629 <p> 4717 <p>
4630 Public method to get the lines containing a bookmark. 4718 Public method to get the lines containing a bookmark.
4631 </p> 4719 </p>
4632 <dl> 4720 <dl>
4633 <dt>Returns:</dt> 4721 <dt>Return:</dt>
4634 <dd> 4722 <dd>
4635 list of lines containing a bookmark (list of integer) 4723 list of lines containing a bookmark (list of integer)
4636 </dd> 4724 </dd>
4637 </dl> 4725 </dl>
4638 <a NAME="Editor.getBookmarks" ID="Editor.getBookmarks"></a> 4726 <a NAME="Editor.getBookmarks" ID="Editor.getBookmarks"></a>
4641 4729
4642 <p> 4730 <p>
4643 Public method to retrieve the bookmarks. 4731 Public method to retrieve the bookmarks.
4644 </p> 4732 </p>
4645 <dl> 4733 <dl>
4646 <dt>Returns:</dt> 4734 <dt>Return:</dt>
4647 <dd> 4735 <dd>
4648 sorted list of all lines containing a bookmark 4736 sorted list of all lines containing a bookmark
4649 (list of integer) 4737 (list of integer)
4650 </dd> 4738 </dd>
4651 </dl> 4739 </dl>
4655 4743
4656 <p> 4744 <p>
4657 Public method to get the lines containing a breakpoint. 4745 Public method to get the lines containing a breakpoint.
4658 </p> 4746 </p>
4659 <dl> 4747 <dl>
4660 <dt>Returns:</dt> 4748 <dt>Return:</dt>
4661 <dd> 4749 <dd>
4662 list of lines containing a breakpoint (list of integer) 4750 list of lines containing a breakpoint (list of integer)
4663 </dd> 4751 </dd>
4664 </dl> 4752 </dl>
4665 <a NAME="Editor.getCallTipHook" ID="Editor.getCallTipHook"></a> 4753 <a NAME="Editor.getCallTipHook" ID="Editor.getCallTipHook"></a>
4675 <dd> 4763 <dd>
4676 name of the provider 4764 name of the provider
4677 </dd> 4765 </dd>
4678 </dl> 4766 </dl>
4679 <dl> 4767 <dl>
4680 <dt>Returns:</dt> 4768 <dt>Return:</dt>
4681 <dd> 4769 <dd>
4682 function providing calltips 4770 function providing calltips
4683 </dd> 4771 </dd>
4684 </dl> 4772 </dl>
4685 <dl> 4773 <dl>
4694 4782
4695 <p> 4783 <p>
4696 Public method to get the lines containing a change. 4784 Public method to get the lines containing a change.
4697 </p> 4785 </p>
4698 <dl> 4786 <dl>
4699 <dt>Returns:</dt> 4787 <dt>Return:</dt>
4700 <dd> 4788 <dd>
4701 list of lines containing a change (list of integer) 4789 list of lines containing a change (list of integer)
4702 </dd> 4790 </dd>
4703 </dl> 4791 </dl>
4704 <a NAME="Editor.getCompleter" ID="Editor.getCompleter"></a> 4792 <a NAME="Editor.getCompleter" ID="Editor.getCompleter"></a>
4707 4795
4708 <p> 4796 <p>
4709 Public method to retrieve a reference to the completer object. 4797 Public method to retrieve a reference to the completer object.
4710 </p> 4798 </p>
4711 <dl> 4799 <dl>
4712 <dt>Returns:</dt> 4800 <dt>Return:</dt>
4713 <dd> 4801 <dd>
4714 the completer object (CompleterBase) 4802 the completer object (CompleterBase)
4715 </dd> 4803 </dd>
4716 </dl> 4804 </dl>
4717 <a NAME="Editor.getCompletionListHook" ID="Editor.getCompletionListHook"></a> 4805 <a NAME="Editor.getCompletionListHook" ID="Editor.getCompletionListHook"></a>
4727 <dd> 4815 <dd>
4728 name of the provider 4816 name of the provider
4729 </dd> 4817 </dd>
4730 </dl> 4818 </dl>
4731 <dl> 4819 <dl>
4732 <dt>Returns:</dt> 4820 <dt>Return:</dt>
4733 <dd> 4821 <dd>
4734 function providing completion list 4822 function providing completion list
4735 </dd> 4823 </dd>
4736 </dl> 4824 </dl>
4737 <dl> 4825 <dl>
4746 4834
4747 <p> 4835 <p>
4748 Public method to get the lines containing a coverage marker. 4836 Public method to get the lines containing a coverage marker.
4749 </p> 4837 </p>
4750 <dl> 4838 <dl>
4751 <dt>Returns:</dt> 4839 <dt>Return:</dt>
4752 <dd> 4840 <dd>
4753 list of lines containing a coverage marker (list of integer) 4841 list of lines containing a coverage marker (list of integer)
4754 </dd> 4842 </dd>
4755 </dl> 4843 </dl>
4756 <a NAME="Editor.getCurrentWord" ID="Editor.getCurrentWord"></a> 4844 <a NAME="Editor.getCurrentWord" ID="Editor.getCurrentWord"></a>
4759 4847
4760 <p> 4848 <p>
4761 Public method to get the word at the current position. 4849 Public method to get the word at the current position.
4762 </p> 4850 </p>
4763 <dl> 4851 <dl>
4764 <dt>Returns:</dt> 4852 <dt>Return:</dt>
4765 <dd> 4853 <dd>
4766 the word at that current position (string) 4854 the word at that current position (string)
4767 </dd> 4855 </dd>
4768 </dl> 4856 </dl>
4769 <a NAME="Editor.getCurrentWordBoundaries" ID="Editor.getCurrentWordBoundaries"></a> 4857 <a NAME="Editor.getCurrentWordBoundaries" ID="Editor.getCurrentWordBoundaries"></a>
4772 4860
4773 <p> 4861 <p>
4774 Public method to get the word boundaries at the current position. 4862 Public method to get the word boundaries at the current position.
4775 </p> 4863 </p>
4776 <dl> 4864 <dl>
4777 <dt>Returns:</dt> 4865 <dt>Return:</dt>
4778 <dd> 4866 <dd>
4779 tuple with start and end indexes of the current word 4867 tuple with start and end indexes of the current word
4780 (integer, integer) 4868 (integer, integer)
4869 </dd>
4870 </dl>
4871 <a NAME="Editor.getDocstringGenerator" ID="Editor.getDocstringGenerator"></a>
4872 <h4>Editor.getDocstringGenerator</h4>
4873 <b>getDocstringGenerator</b>(<i></i>)
4874
4875 <p>
4876 Public method to get a reference to the docstring generator.
4877 </p>
4878 <dl>
4879 <dt>Return:</dt>
4880 <dd>
4881 reference to the docstring generator
4882 </dd>
4883 </dl>
4884 <dl>
4885 <dt>Return Type:</dt>
4886 <dd>
4887 BaseDocstringGenerator
4781 </dd> 4888 </dd>
4782 </dl> 4889 </dl>
4783 <a NAME="Editor.getEditorConfig" ID="Editor.getEditorConfig"></a> 4890 <a NAME="Editor.getEditorConfig" ID="Editor.getEditorConfig"></a>
4784 <h4>Editor.getEditorConfig</h4> 4891 <h4>Editor.getEditorConfig</h4>
4785 <b>getEditorConfig</b>(<i>option</i>) 4892 <b>getEditorConfig</b>(<i>option</i>)
4793 <dd> 4900 <dd>
4794 Preferences option key 4901 Preferences option key
4795 </dd> 4902 </dd>
4796 </dl> 4903 </dl>
4797 <dl> 4904 <dl>
4798 <dt>Returns:</dt> 4905 <dt>Return:</dt>
4799 <dd> 4906 <dd>
4800 value of requested setting 4907 value of requested setting
4801 </dd> 4908 </dd>
4802 </dl> 4909 </dl>
4803 <dl> 4910 <dl>
4812 4919
4813 <p> 4920 <p>
4814 Public method to return the current encoding. 4921 Public method to return the current encoding.
4815 </p> 4922 </p>
4816 <dl> 4923 <dl>
4817 <dt>Returns:</dt> 4924 <dt>Return:</dt>
4818 <dd> 4925 <dd>
4819 current encoding (string) 4926 current encoding (string)
4820 </dd> 4927 </dd>
4821 </dl> 4928 </dl>
4822 <a NAME="Editor.getFileName" ID="Editor.getFileName"></a> 4929 <a NAME="Editor.getFileName" ID="Editor.getFileName"></a>
4825 4932
4826 <p> 4933 <p>
4827 Public method to return the name of the file being displayed. 4934 Public method to return the name of the file being displayed.
4828 </p> 4935 </p>
4829 <dl> 4936 <dl>
4830 <dt>Returns:</dt> 4937 <dt>Return:</dt>
4831 <dd> 4938 <dd>
4832 filename of the displayed file (string) 4939 filename of the displayed file (string)
4833 </dd> 4940 </dd>
4834 </dl> 4941 </dl>
4835 <a NAME="Editor.getFileType" ID="Editor.getFileType"></a> 4942 <a NAME="Editor.getFileType" ID="Editor.getFileType"></a>
4838 4945
4839 <p> 4946 <p>
4840 Public method to return the type of the file being displayed. 4947 Public method to return the type of the file being displayed.
4841 </p> 4948 </p>
4842 <dl> 4949 <dl>
4843 <dt>Returns:</dt> 4950 <dt>Return:</dt>
4844 <dd> 4951 <dd>
4845 type of the displayed file (string) 4952 type of the displayed file (string)
4846 </dd> 4953 </dd>
4847 </dl> 4954 </dl>
4848 <a NAME="Editor.getFileTypeByFlag" ID="Editor.getFileTypeByFlag"></a> 4955 <a NAME="Editor.getFileTypeByFlag" ID="Editor.getFileTypeByFlag"></a>
4852 <p> 4959 <p>
4853 Public method to return the type of the file, if it was set by an 4960 Public method to return the type of the file, if it was set by an
4854 eflag: marker. 4961 eflag: marker.
4855 </p> 4962 </p>
4856 <dl> 4963 <dl>
4857 <dt>Returns:</dt> 4964 <dt>Return:</dt>
4858 <dd> 4965 <dd>
4859 type of the displayed file, if set by an eflag: marker or an 4966 type of the displayed file, if set by an eflag: marker or an
4860 empty string (string) 4967 empty string (string)
4861 </dd> 4968 </dd>
4862 </dl> 4969 </dl>
4866 4973
4867 <p> 4974 <p>
4868 Public method to return the position of the highlight bar. 4975 Public method to return the position of the highlight bar.
4869 </p> 4976 </p>
4870 <dl> 4977 <dl>
4871 <dt>Returns:</dt> 4978 <dt>Return:</dt>
4872 <dd> 4979 <dd>
4873 line number of the highlight bar (integer) 4980 line number of the highlight bar (integer)
4874 </dd> 4981 </dd>
4875 </dl> 4982 </dl>
4876 <a NAME="Editor.getLanguage" ID="Editor.getLanguage"></a> 4983 <a NAME="Editor.getLanguage" ID="Editor.getLanguage"></a>
4880 <p> 4987 <p>
4881 Public method to retrieve the language of the editor. 4988 Public method to retrieve the language of the editor.
4882 </p> 4989 </p>
4883 <dl> 4990 <dl>
4884 4991
4885 <dt><i>normalized=</i></dt> 4992 <dt><i>normalized</i></dt>
4886 <dd> 4993 <dd>
4887 flag indicating to normalize some Pygments 4994 flag indicating to normalize some Pygments
4888 lexer names (boolean) 4995 lexer names (boolean)
4889 </dd> 4996 </dd>
4890 <dt><i>forPygments=</i></dt> 4997 <dt><i>forPygments</i></dt>
4891 <dd> 4998 <dd>
4892 flag indicating to normalize some lexer 4999 flag indicating to normalize some lexer
4893 names for Pygments (boolean) 5000 names for Pygments (boolean)
4894 </dd> 5001 </dd>
4895 </dl> 5002 </dl>
4896 <dl> 5003 <dl>
4897 <dt>Returns:</dt> 5004 <dt>Return:</dt>
4898 <dd> 5005 <dd>
4899 language of the editor (string) 5006 language of the editor (string)
4900 </dd> 5007 </dd>
4901 </dl> 5008 </dl>
4902 <a NAME="Editor.getLexer" ID="Editor.getLexer"></a> 5009 <a NAME="Editor.getLexer" ID="Editor.getLexer"></a>
4905 5012
4906 <p> 5013 <p>
4907 Public method to retrieve a reference to the lexer object. 5014 Public method to retrieve a reference to the lexer object.
4908 </p> 5015 </p>
4909 <dl> 5016 <dl>
4910 <dt>Returns:</dt> 5017 <dt>Return:</dt>
4911 <dd> 5018 <dd>
4912 the lexer object (Lexer) 5019 the lexer object (Lexer)
4913 </dd> 5020 </dd>
4914 </dl> 5021 </dl>
4915 <a NAME="Editor.getMenu" ID="Editor.getMenu"></a> 5022 <a NAME="Editor.getMenu" ID="Editor.getMenu"></a>
4925 <dd> 5032 <dd>
4926 name of the menu (string) 5033 name of the menu (string)
4927 </dd> 5034 </dd>
4928 </dl> 5035 </dl>
4929 <dl> 5036 <dl>
4930 <dt>Returns:</dt> 5037 <dt>Return:</dt>
4931 <dd> 5038 <dd>
4932 reference to the requested menu (QMenu) or None 5039 reference to the requested menu (QMenu) or None
4933 </dd> 5040 </dd>
4934 </dl> 5041 </dl>
4935 <a NAME="Editor.getMouseClickHandler" ID="Editor.getMouseClickHandler"></a> 5042 <a NAME="Editor.getMouseClickHandler" ID="Editor.getMouseClickHandler"></a>
4949 <dd> 5056 <dd>
4950 mouse button of the handler 5057 mouse button of the handler
4951 </dd> 5058 </dd>
4952 </dl> 5059 </dl>
4953 <dl> 5060 <dl>
4954 <dt>Returns:</dt> 5061 <dt>Return:</dt>
4955 <dd> 5062 <dd>
4956 plug-in name and registered function 5063 plug-in name and registered function
4957 </dd> 5064 </dd>
4958 </dl> 5065 </dl>
4959 <dl> 5066 <dl>
4976 <dd> 5083 <dd>
4977 name of the plug-in 5084 name of the plug-in
4978 </dd> 5085 </dd>
4979 </dl> 5086 </dl>
4980 <dl> 5087 <dl>
4981 <dt>Returns:</dt> 5088 <dt>Return:</dt>
4982 <dd> 5089 <dd>
4983 registered mouse click handlers as list of modifiers, 5090 registered mouse click handlers as list of modifiers,
4984 mouse button and function 5091 mouse button and function
4985 </dd> 5092 </dd>
4986 </dl> 5093 </dl>
4996 5103
4997 <p> 5104 <p>
4998 Public method to get the display string for an unnamed editor. 5105 Public method to get the display string for an unnamed editor.
4999 </p> 5106 </p>
5000 <dl> 5107 <dl>
5001 <dt>Returns:</dt> 5108 <dt>Return:</dt>
5002 <dd> 5109 <dd>
5003 display string for this unnamed editor (string) 5110 display string for this unnamed editor (string)
5004 </dd> 5111 </dd>
5005 </dl> 5112 </dl>
5006 <a NAME="Editor.getSearchIndicatorLines" ID="Editor.getSearchIndicatorLines"></a> 5113 <a NAME="Editor.getSearchIndicatorLines" ID="Editor.getSearchIndicatorLines"></a>
5009 5116
5010 <p> 5117 <p>
5011 Public method to get the lines containing a search indicator. 5118 Public method to get the lines containing a search indicator.
5012 </p> 5119 </p>
5013 <dl> 5120 <dl>
5014 <dt>Returns:</dt> 5121 <dt>Return:</dt>
5015 <dd> 5122 <dd>
5016 list of lines containing a search indicator (list of integer) 5123 list of lines containing a search indicator (list of integer)
5017 </dd> 5124 </dd>
5018 </dl> 5125 </dl>
5019 <a NAME="Editor.getSearchText" ID="Editor.getSearchText"></a> 5126 <a NAME="Editor.getSearchText" ID="Editor.getSearchText"></a>
5031 flag indicating that only selected text should be 5138 flag indicating that only selected text should be
5032 returned (boolean) 5139 returned (boolean)
5033 </dd> 5140 </dd>
5034 </dl> 5141 </dl>
5035 <dl> 5142 <dl>
5036 <dt>Returns:</dt> 5143 <dt>Return:</dt>
5037 <dd> 5144 <dd>
5038 selection or current word (string) 5145 selection or current word (string)
5039 </dd> 5146 </dd>
5040 </dl> 5147 </dl>
5041 <a NAME="Editor.getSharingStatus" ID="Editor.getSharingStatus"></a> 5148 <a NAME="Editor.getSharingStatus" ID="Editor.getSharingStatus"></a>
5044 5151
5045 <p> 5152 <p>
5046 Public method to get some share status info. 5153 Public method to get some share status info.
5047 </p> 5154 </p>
5048 <dl> 5155 <dl>
5049 <dt>Returns:</dt> 5156 <dt>Return:</dt>
5050 <dd> 5157 <dd>
5051 tuple indicating, if the editor is sharable, the sharing 5158 tuple indicating, if the editor is sharable, the sharing
5052 status, if it is inside a locally initiated shared edit session 5159 status, if it is inside a locally initiated shared edit session
5053 and if it is inside a remotely initiated shared edit session 5160 and if it is inside a remotely initiated shared edit session
5054 (boolean, boolean, boolean, boolean) 5161 (boolean, boolean, boolean, boolean)
5060 5167
5061 <p> 5168 <p>
5062 Public method to get the current spelling language. 5169 Public method to get the current spelling language.
5063 </p> 5170 </p>
5064 <dl> 5171 <dl>
5065 <dt>Returns:</dt> 5172 <dt>Return:</dt>
5066 <dd> 5173 <dd>
5067 current spelling language 5174 current spelling language
5068 </dd> 5175 </dd>
5069 </dl> 5176 </dl>
5070 <dl> 5177 <dl>
5079 5186
5080 <p> 5187 <p>
5081 Public method to get the lines containing a syntax error. 5188 Public method to get the lines containing a syntax error.
5082 </p> 5189 </p>
5083 <dl> 5190 <dl>
5084 <dt>Returns:</dt> 5191 <dt>Return:</dt>
5085 <dd> 5192 <dd>
5086 list of lines containing a syntax error (list of integer) 5193 list of lines containing a syntax error (list of integer)
5087 </dd> 5194 </dd>
5088 </dl> 5195 </dl>
5089 <a NAME="Editor.getSyntaxErrors" ID="Editor.getSyntaxErrors"></a> 5196 <a NAME="Editor.getSyntaxErrors" ID="Editor.getSyntaxErrors"></a>
5092 5199
5093 <p> 5200 <p>
5094 Public method to retrieve the syntax error markers. 5201 Public method to retrieve the syntax error markers.
5095 </p> 5202 </p>
5096 <dl> 5203 <dl>
5097 <dt>Returns:</dt> 5204 <dt>Return:</dt>
5098 <dd> 5205 <dd>
5099 sorted list of all lines containing a syntax error 5206 sorted list of all lines containing a syntax error
5100 (list of integer) 5207 (list of integer)
5101 </dd> 5208 </dd>
5102 </dl> 5209 </dl>
5106 5213
5107 <p> 5214 <p>
5108 Public method to get the lines containing a task. 5215 Public method to get the lines containing a task.
5109 </p> 5216 </p>
5110 <dl> 5217 <dl>
5111 <dt>Returns:</dt> 5218 <dt>Return:</dt>
5112 <dd> 5219 <dd>
5113 list of lines containing a task (list of integer) 5220 list of lines containing a task (list of integer)
5114 </dd> 5221 </dd>
5115 </dl> 5222 </dl>
5116 <a NAME="Editor.getVcsConflictMarkerLines" ID="Editor.getVcsConflictMarkerLines"></a> 5223 <a NAME="Editor.getVcsConflictMarkerLines" ID="Editor.getVcsConflictMarkerLines"></a>
5119 5226
5120 <p> 5227 <p>
5121 Public method to determine the lines containing a VCS conflict marker. 5228 Public method to determine the lines containing a VCS conflict marker.
5122 </p> 5229 </p>
5123 <dl> 5230 <dl>
5124 <dt>Returns:</dt> 5231 <dt>Return:</dt>
5125 <dd> 5232 <dd>
5126 list of line numbers containg a VCS conflict marker 5233 list of line numbers containg a VCS conflict marker
5127 </dd> 5234 </dd>
5128 </dl> 5235 </dl>
5129 <dl> 5236 <dl>
5138 5245
5139 <p> 5246 <p>
5140 Public method to get the lines containing a warning. 5247 Public method to get the lines containing a warning.
5141 </p> 5248 </p>
5142 <dl> 5249 <dl>
5143 <dt>Returns:</dt> 5250 <dt>Return:</dt>
5144 <dd> 5251 <dd>
5145 list of lines containing a warning (list of integer) 5252 list of lines containing a warning (list of integer)
5146 </dd> 5253 </dd>
5147 </dl> 5254 </dl>
5148 <a NAME="Editor.getWarnings" ID="Editor.getWarnings"></a> 5255 <a NAME="Editor.getWarnings" ID="Editor.getWarnings"></a>
5151 5258
5152 <p> 5259 <p>
5153 Public method to retrieve the warning markers. 5260 Public method to retrieve the warning markers.
5154 </p> 5261 </p>
5155 <dl> 5262 <dl>
5156 <dt>Returns:</dt> 5263 <dt>Return:</dt>
5157 <dd> 5264 <dd>
5158 sorted list of all lines containing a warning 5265 sorted list of all lines containing a warning
5159 (list of integer) 5266 (list of integer)
5160 </dd> 5267 </dd>
5161 </dl> 5268 </dl>
5179 <dt><i>direction</i></dt> 5286 <dt><i>direction</i></dt>
5180 <dd> 5287 <dd>
5181 direction to look in (0 = whole word, 1 = left, 5288 direction to look in (0 = whole word, 1 = left,
5182 2 = right) 5289 2 = right)
5183 </dd> 5290 </dd>
5184 <dt><i>useWordChars=</i></dt> 5291 <dt><i>useWordChars</i></dt>
5185 <dd> 5292 <dd>
5186 flag indicating to use the wordCharacters 5293 flag indicating to use the wordCharacters
5187 method (boolean) 5294 method (boolean)
5188 </dd> 5295 </dd>
5189 </dl> 5296 </dl>
5190 <dl> 5297 <dl>
5191 <dt>Returns:</dt> 5298 <dt>Return:</dt>
5192 <dd> 5299 <dd>
5193 the word at that position (string) 5300 the word at that position (string)
5194 </dd> 5301 </dd>
5195 </dl> 5302 </dl>
5196 <a NAME="Editor.getWordBoundaries" ID="Editor.getWordBoundaries"></a> 5303 <a NAME="Editor.getWordBoundaries" ID="Editor.getWordBoundaries"></a>
5208 </dd> 5315 </dd>
5209 <dt><i>index</i></dt> 5316 <dt><i>index</i></dt>
5210 <dd> 5317 <dd>
5211 position to look at (int) 5318 position to look at (int)
5212 </dd> 5319 </dd>
5213 <dt><i>useWordChars=</i></dt> 5320 <dt><i>useWordChars</i></dt>
5214 <dd> 5321 <dd>
5215 flag indicating to use the wordCharacters 5322 flag indicating to use the wordCharacters
5216 method (boolean) 5323 method (boolean)
5217 </dd> 5324 </dd>
5218 </dl> 5325 </dl>
5219 <dl> 5326 <dl>
5220 <dt>Returns:</dt> 5327 <dt>Return:</dt>
5221 <dd> 5328 <dd>
5222 tuple with start and end indexes of the word at the position 5329 tuple with start and end indexes of the word at the position
5223 (integer, integer) 5330 (integer, integer)
5224 </dd> 5331 </dd>
5225 </dl> 5332 </dl>
5240 <dd> 5347 <dd>
5241 position to look at (int) 5348 position to look at (int)
5242 </dd> 5349 </dd>
5243 </dl> 5350 </dl>
5244 <dl> 5351 <dl>
5245 <dt>Returns:</dt> 5352 <dt>Return:</dt>
5246 <dd> 5353 <dd>
5247 the word to the left of that position (string) 5354 the word to the left of that position (string)
5248 </dd> 5355 </dd>
5249 </dl> 5356 </dl>
5250 <a NAME="Editor.getWordRight" ID="Editor.getWordRight"></a> 5357 <a NAME="Editor.getWordRight" ID="Editor.getWordRight"></a>
5264 <dd> 5371 <dd>
5265 position to look at (int) 5372 position to look at (int)
5266 </dd> 5373 </dd>
5267 </dl> 5374 </dl>
5268 <dl> 5375 <dl>
5269 <dt>Returns:</dt> 5376 <dt>Return:</dt>
5270 <dd> 5377 <dd>
5271 the word to the right of that position (string) 5378 the word to the right of that position (string)
5272 </dd> 5379 </dd>
5273 </dl> 5380 </dl>
5274 <a NAME="Editor.gotoLastEditPosition" ID="Editor.gotoLastEditPosition"></a> 5381 <a NAME="Editor.gotoLastEditPosition" ID="Editor.gotoLastEditPosition"></a>
5289 5396
5290 <dt><i>line</i> (int)</dt> 5397 <dt><i>line</i> (int)</dt>
5291 <dd> 5398 <dd>
5292 line number to go to 5399 line number to go to
5293 </dd> 5400 </dd>
5294 <dt><i>pos=</i> (int)</dt> 5401 <dt><i>pos</i> (int)</dt>
5295 <dd> 5402 <dd>
5296 position in line to go to 5403 position in line to go to
5297 </dd> 5404 </dd>
5298 <dt><i>firstVisible=</i> (bool)</dt> 5405 <dt><i>firstVisible</i> (bool)</dt>
5299 <dd> 5406 <dd>
5300 flag indicating to make the line the first 5407 flag indicating to make the line the first
5301 visible line 5408 visible line
5302 </dd> 5409 </dd>
5303 <dt><i>expand=</i> (bool)</dt> 5410 <dt><i>expand</i> (bool)</dt>
5304 <dd> 5411 <dd>
5305 flag indicating to expand all folds 5412 flag indicating to expand all folds
5306 </dd> 5413 </dd>
5307 </dl> 5414 </dl>
5308 <a NAME="Editor.gotoMethodClass" ID="Editor.gotoMethodClass"></a> 5415 <a NAME="Editor.gotoMethodClass" ID="Editor.gotoMethodClass"></a>
5353 5460
5354 <p> 5461 <p>
5355 Public method to check for the presence of bookmarks. 5462 Public method to check for the presence of bookmarks.
5356 </p> 5463 </p>
5357 <dl> 5464 <dl>
5358 <dt>Returns:</dt> 5465 <dt>Return:</dt>
5359 <dd> 5466 <dd>
5360 flag indicating the presence of bookmarks (boolean) 5467 flag indicating the presence of bookmarks (boolean)
5361 </dd> 5468 </dd>
5362 </dl> 5469 </dl>
5363 <a NAME="Editor.hasBreakpoints" ID="Editor.hasBreakpoints"></a> 5470 <a NAME="Editor.hasBreakpoints" ID="Editor.hasBreakpoints"></a>
5366 5473
5367 <p> 5474 <p>
5368 Public method to check for the presence of breakpoints. 5475 Public method to check for the presence of breakpoints.
5369 </p> 5476 </p>
5370 <dl> 5477 <dl>
5371 <dt>Returns:</dt> 5478 <dt>Return:</dt>
5372 <dd> 5479 <dd>
5373 flag indicating the presence of breakpoints (boolean) 5480 flag indicating the presence of breakpoints (boolean)
5374 </dd> 5481 </dd>
5375 </dl> 5482 </dl>
5376 <a NAME="Editor.hasChangeMarkers" ID="Editor.hasChangeMarkers"></a> 5483 <a NAME="Editor.hasChangeMarkers" ID="Editor.hasChangeMarkers"></a>
5379 5486
5380 <p> 5487 <p>
5381 Public method to determine, if this editor contains any change markers. 5488 Public method to determine, if this editor contains any change markers.
5382 </p> 5489 </p>
5383 <dl> 5490 <dl>
5384 <dt>Returns:</dt> 5491 <dt>Return:</dt>
5385 <dd> 5492 <dd>
5386 flag indicating the presence of change markers (boolean) 5493 flag indicating the presence of change markers (boolean)
5387 </dd> 5494 </dd>
5388 </dl> 5495 </dl>
5389 <a NAME="Editor.hasCoverageMarkers" ID="Editor.hasCoverageMarkers"></a> 5496 <a NAME="Editor.hasCoverageMarkers" ID="Editor.hasCoverageMarkers"></a>
5392 5499
5393 <p> 5500 <p>
5394 Public method to test, if there are coverage markers. 5501 Public method to test, if there are coverage markers.
5395 </p> 5502 </p>
5396 <dl> 5503 <dl>
5397 <dt>Returns:</dt> 5504 <dt>Return:</dt>
5398 <dd> 5505 <dd>
5399 flag indicating the presence of coverage markers (boolean) 5506 flag indicating the presence of coverage markers (boolean)
5400 </dd> 5507 </dd>
5401 </dl> 5508 </dl>
5402 <a NAME="Editor.hasMiniMenu" ID="Editor.hasMiniMenu"></a> 5509 <a NAME="Editor.hasMiniMenu" ID="Editor.hasMiniMenu"></a>
5405 5512
5406 <p> 5513 <p>
5407 Public method to check the miniMenu flag. 5514 Public method to check the miniMenu flag.
5408 </p> 5515 </p>
5409 <dl> 5516 <dl>
5410 <dt>Returns:</dt> 5517 <dt>Return:</dt>
5411 <dd> 5518 <dd>
5412 flag indicating a minimized context menu (boolean) 5519 flag indicating a minimized context menu (boolean)
5413 </dd> 5520 </dd>
5414 </dl> 5521 </dl>
5415 <a NAME="Editor.hasSyntaxErrors" ID="Editor.hasSyntaxErrors"></a> 5522 <a NAME="Editor.hasSyntaxErrors" ID="Editor.hasSyntaxErrors"></a>
5418 5525
5419 <p> 5526 <p>
5420 Public method to check for the presence of syntax errors. 5527 Public method to check for the presence of syntax errors.
5421 </p> 5528 </p>
5422 <dl> 5529 <dl>
5423 <dt>Returns:</dt> 5530 <dt>Return:</dt>
5424 <dd> 5531 <dd>
5425 flag indicating the presence of syntax errors (boolean) 5532 flag indicating the presence of syntax errors (boolean)
5426 </dd> 5533 </dd>
5427 </dl> 5534 </dl>
5428 <a NAME="Editor.hasTaskMarkers" ID="Editor.hasTaskMarkers"></a> 5535 <a NAME="Editor.hasTaskMarkers" ID="Editor.hasTaskMarkers"></a>
5431 5538
5432 <p> 5539 <p>
5433 Public method to determine, if this editor contains any task markers. 5540 Public method to determine, if this editor contains any task markers.
5434 </p> 5541 </p>
5435 <dl> 5542 <dl>
5436 <dt>Returns:</dt> 5543 <dt>Return:</dt>
5437 <dd> 5544 <dd>
5438 flag indicating the presence of task markers (boolean) 5545 flag indicating the presence of task markers (boolean)
5439 </dd> 5546 </dd>
5440 </dl> 5547 </dl>
5441 <a NAME="Editor.hasWarnings" ID="Editor.hasWarnings"></a> 5548 <a NAME="Editor.hasWarnings" ID="Editor.hasWarnings"></a>
5444 5551
5445 <p> 5552 <p>
5446 Public method to check for the presence of warnings. 5553 Public method to check for the presence of warnings.
5447 </p> 5554 </p>
5448 <dl> 5555 <dl>
5449 <dt>Returns:</dt> 5556 <dt>Return:</dt>
5450 <dd> 5557 <dd>
5451 flag indicating the presence of warnings (boolean) 5558 flag indicating the presence of warnings (boolean)
5452 </dd> 5559 </dd>
5453 </dl> 5560 </dl>
5454 <a NAME="Editor.highlight" ID="Editor.highlight"></a> 5561 <a NAME="Editor.highlight" ID="Editor.highlight"></a>
5486 <b>indentLineOrSelection</b>(<i></i>) 5593 <b>indentLineOrSelection</b>(<i></i>)
5487 5594
5488 <p> 5595 <p>
5489 Public slot to indent the current line or current selection. 5596 Public slot to indent the current line or current selection.
5490 </p> 5597 </p>
5598 <a NAME="Editor.insertDocstring" ID="Editor.insertDocstring"></a>
5599 <h4>Editor.insertDocstring</h4>
5600 <b>insertDocstring</b>(<i></i>)
5601
5602 <p>
5603 Public method to generate and insert a docstring for the function under
5604 the cursor.
5605 </p>
5606 <p>
5607 Note: This method is called via a keyboard shortcut or through the
5608 global 'Edit' menu.
5609 </p>
5491 <a NAME="Editor.isClone" ID="Editor.isClone"></a> 5610 <a NAME="Editor.isClone" ID="Editor.isClone"></a>
5492 <h4>Editor.isClone</h4> 5611 <h4>Editor.isClone</h4>
5493 <b>isClone</b>(<i>editor</i>) 5612 <b>isClone</b>(<i>editor</i>)
5494 5613
5495 <p> 5614 <p>
5501 <dd> 5620 <dd>
5502 reference to the cloned editor 5621 reference to the cloned editor
5503 </dd> 5622 </dd>
5504 </dl> 5623 </dl>
5505 <dl> 5624 <dl>
5506 <dt>Returns:</dt> 5625 <dt>Return:</dt>
5507 <dd> 5626 <dd>
5508 flag indicating a clone 5627 flag indicating a clone
5509 </dd> 5628 </dd>
5510 </dl> 5629 </dl>
5511 <dl> 5630 <dl>
5520 5639
5521 <p> 5640 <p>
5522 Public method to return a flag indicating a Javascript file. 5641 Public method to return a flag indicating a Javascript file.
5523 </p> 5642 </p>
5524 <dl> 5643 <dl>
5525 <dt>Returns:</dt> 5644 <dt>Return:</dt>
5526 <dd> 5645 <dd>
5527 flag indicating a Javascript file (boolean) 5646 flag indicating a Javascript file (boolean)
5528 </dd> 5647 </dd>
5529 </dl> 5648 </dl>
5530 <a NAME="Editor.isLastEditPositionAvailable" ID="Editor.isLastEditPositionAvailable"></a> 5649 <a NAME="Editor.isLastEditPositionAvailable" ID="Editor.isLastEditPositionAvailable"></a>
5533 5652
5534 <p> 5653 <p>
5535 Public method to check, if a last edit position is available. 5654 Public method to check, if a last edit position is available.
5536 </p> 5655 </p>
5537 <dl> 5656 <dl>
5538 <dt>Returns:</dt> 5657 <dt>Return:</dt>
5539 <dd> 5658 <dd>
5540 flag indicating availability (boolean) 5659 flag indicating availability (boolean)
5541 </dd> 5660 </dd>
5542 </dl> 5661 </dl>
5543 <a NAME="Editor.isMicroPythonFile" ID="Editor.isMicroPythonFile"></a> 5662 <a NAME="Editor.isMicroPythonFile" ID="Editor.isMicroPythonFile"></a>
5546 5665
5547 <p> 5666 <p>
5548 Public method to return a flag indicating a MicroPython file. 5667 Public method to return a flag indicating a MicroPython file.
5549 </p> 5668 </p>
5550 <dl> 5669 <dl>
5551 <dt>Returns:</dt> 5670 <dt>Return:</dt>
5552 <dd> 5671 <dd>
5553 flag indicating a MicroPython file 5672 flag indicating a MicroPython file
5554 </dd> 5673 </dd>
5555 </dl> 5674 </dl>
5556 <dl> 5675 <dl>
5565 5684
5566 <p> 5685 <p>
5567 Public method to return a flag indicating a Python2 file. 5686 Public method to return a flag indicating a Python2 file.
5568 </p> 5687 </p>
5569 <dl> 5688 <dl>
5570 <dt>Returns:</dt> 5689 <dt>Return:</dt>
5571 <dd> 5690 <dd>
5572 flag reporting always False 5691 flag reporting always False
5573 </dd> 5692 </dd>
5574 </dl> 5693 </dl>
5575 <dl> 5694 <dl>
5584 5703
5585 <p> 5704 <p>
5586 Public method to return a flag indicating a Python3 file. 5705 Public method to return a flag indicating a Python3 file.
5587 </p> 5706 </p>
5588 <dl> 5707 <dl>
5589 <dt>Returns:</dt> 5708 <dt>Return:</dt>
5590 <dd> 5709 <dd>
5591 flag indicating a Python3 file (boolean) 5710 flag indicating a Python3 file (boolean)
5592 </dd> 5711 </dd>
5593 </dl> 5712 </dl>
5594 <a NAME="Editor.isPyFile" ID="Editor.isPyFile"></a> 5713 <a NAME="Editor.isPyFile" ID="Editor.isPyFile"></a>
5597 5716
5598 <p> 5717 <p>
5599 Public method to return a flag indicating a Python (2 or 3) file. 5718 Public method to return a flag indicating a Python (2 or 3) file.
5600 </p> 5719 </p>
5601 <dl> 5720 <dl>
5602 <dt>Returns:</dt> 5721 <dt>Return:</dt>
5603 <dd> 5722 <dd>
5604 flag indicating a Python3 file (boolean) 5723 flag indicating a Python3 file (boolean)
5605 </dd> 5724 </dd>
5606 </dl> 5725 </dl>
5607 <a NAME="Editor.isRubyFile" ID="Editor.isRubyFile"></a> 5726 <a NAME="Editor.isRubyFile" ID="Editor.isRubyFile"></a>
5610 5729
5611 <p> 5730 <p>
5612 Public method to return a flag indicating a Ruby file. 5731 Public method to return a flag indicating a Ruby file.
5613 </p> 5732 </p>
5614 <dl> 5733 <dl>
5615 <dt>Returns:</dt> 5734 <dt>Return:</dt>
5616 <dd> 5735 <dd>
5617 flag indicating a Ruby file (boolean) 5736 flag indicating a Ruby file (boolean)
5618 </dd> 5737 </dd>
5619 </dl> 5738 </dl>
5620 <a NAME="Editor.isSpellCheckRegion" ID="Editor.isSpellCheckRegion"></a> 5739 <a NAME="Editor.isSpellCheckRegion" ID="Editor.isSpellCheckRegion"></a>
5637 <dd> 5756 <dd>
5638 position to be checked 5757 position to be checked
5639 </dd> 5758 </dd>
5640 </dl> 5759 </dl>
5641 <dl> 5760 <dl>
5642 <dt>Returns:</dt> 5761 <dt>Return:</dt>
5643 <dd> 5762 <dd>
5644 flag indicating pos is in a spell check region 5763 flag indicating pos is in a spell check region
5645 </dd> 5764 </dd>
5646 </dl> 5765 </dl>
5647 <dl> 5766 <dl>
5664 <p> 5783 <p>
5665 Protected method to handle the user input a key at a time. 5784 Protected method to handle the user input a key at a time.
5666 </p> 5785 </p>
5667 <dl> 5786 <dl>
5668 5787
5669 <dt><i>ev</i></dt> 5788 <dt><i>ev</i> (QKeyEvent)</dt>
5670 <dd> 5789 <dd>
5671 key event (QKeyEvent) 5790 key event
5672 </dd> 5791 </dd>
5673 </dl> 5792 </dl>
5674 <a NAME="Editor.macroDelete" ID="Editor.macroDelete"></a> 5793 <a NAME="Editor.macroDelete" ID="Editor.macroDelete"></a>
5675 <h4>Editor.macroDelete</h4> 5794 <h4>Editor.macroDelete</h4>
5676 <b>macroDelete</b>(<i></i>) 5795 <b>macroDelete</b>(<i></i>)
5776 <p> 5895 <p>
5777 Protected method to handle the mouse press event. 5896 Protected method to handle the mouse press event.
5778 </p> 5897 </p>
5779 <dl> 5898 <dl>
5780 5899
5781 <dt><i>event</i></dt> 5900 <dt><i>event</i> (QMouseEvent)</dt>
5782 <dd> 5901 <dd>
5783 the mouse press event (QMouseEvent) 5902 the mouse press event
5784 </dd> 5903 </dd>
5785 </dl> 5904 </dl>
5786 <a NAME="Editor.mouseReleaseEvent" ID="Editor.mouseReleaseEvent"></a> 5905 <a NAME="Editor.mouseReleaseEvent" ID="Editor.mouseReleaseEvent"></a>
5787 <h4>Editor.mouseReleaseEvent</h4> 5906 <h4>Editor.mouseReleaseEvent</h4>
5788 <b>mouseReleaseEvent</b>(<i>evt</i>) 5907 <b>mouseReleaseEvent</b>(<i>evt</i>)
5932 6051
5933 <dt><i>fn</i></dt> 6052 <dt><i>fn</i></dt>
5934 <dd> 6053 <dd>
5935 filename to read from (string) 6054 filename to read from (string)
5936 </dd> 6055 </dd>
5937 <dt><i>createIt=</i></dt> 6056 <dt><i>createIt</i></dt>
5938 <dd> 6057 <dd>
5939 flag indicating the creation of a new file, if the 6058 flag indicating the creation of a new file, if the
5940 given one doesn't exist (boolean) 6059 given one doesn't exist (boolean)
5941 </dd> 6060 </dd>
5942 <dt><i>encoding=</i></dt> 6061 <dt><i>encoding</i></dt>
5943 <dd> 6062 <dd>
5944 encoding to be used to read the file (string) 6063 encoding to be used to read the file (string)
5945 (Note: this parameter overrides encoding detection) 6064 (Note: this parameter overrides encoding detection)
5946 </dd> 6065 </dd>
5947 </dl> 6066 </dl>
6070 <p> 6189 <p>
6071 Protected method handling resize events. 6190 Protected method handling resize events.
6072 </p> 6191 </p>
6073 <dl> 6192 <dl>
6074 6193
6075 <dt><i>evt</i></dt> 6194 <dt><i>evt</i> (QResizeEvent)</dt>
6076 <dd> 6195 <dd>
6077 reference to the resize event (QResizeEvent) 6196 reference to the resize event
6078 </dd> 6197 </dd>
6079 </dl> 6198 </dl>
6080 <a NAME="Editor.revertToUnmodified" ID="Editor.revertToUnmodified"></a> 6199 <a NAME="Editor.revertToUnmodified" ID="Editor.revertToUnmodified"></a>
6081 <h4>Editor.revertToUnmodified</h4> 6200 <h4>Editor.revertToUnmodified</h4>
6082 <b>revertToUnmodified</b>(<i></i>) 6201 <b>revertToUnmodified</b>(<i></i>)
6101 <dd> 6220 <dd>
6102 directory to save the file in (string) 6221 directory to save the file in (string)
6103 </dd> 6222 </dd>
6104 </dl> 6223 </dl>
6105 <dl> 6224 <dl>
6106 <dt>Returns:</dt> 6225 <dt>Return:</dt>
6107 <dd> 6226 <dd>
6108 flag indicating success (boolean) 6227 flag indicating success (boolean)
6109 </dd> 6228 </dd>
6110 </dl> 6229 </dl>
6111 <a NAME="Editor.saveFileAs" ID="Editor.saveFileAs"></a> 6230 <a NAME="Editor.saveFileAs" ID="Editor.saveFileAs"></a>
6119 6238
6120 <dt><i>path</i></dt> 6239 <dt><i>path</i></dt>
6121 <dd> 6240 <dd>
6122 directory to save the file in (string) 6241 directory to save the file in (string)
6123 </dd> 6242 </dd>
6124 <dt><i>toProject=</i></dt> 6243 <dt><i>toProject</i></dt>
6125 <dd> 6244 <dd>
6126 flag indicating a save to project operation 6245 flag indicating a save to project operation
6127 (boolean) 6246 (boolean)
6128 </dd> 6247 </dd>
6129 </dl> 6248 </dl>
6130 <dl> 6249 <dl>
6131 <dt>Returns:</dt> 6250 <dt>Return:</dt>
6132 <dd> 6251 <dd>
6133 tuple of two values (boolean, string) giving a success 6252 tuple of two values (boolean, string) giving a success
6134 indicator and the name of the saved file 6253 indicator and the name of the saved file
6135 </dd> 6254 </dd>
6136 </dl> 6255 </dl>
6147 <dd> 6266 <dd>
6148 directory to save the file in (string) 6267 directory to save the file in (string)
6149 </dd> 6268 </dd>
6150 </dl> 6269 </dl>
6151 <dl> 6270 <dl>
6152 <dt>Returns:</dt> 6271 <dt>Return:</dt>
6153 <dd> 6272 <dd>
6154 flag indicating success (boolean) 6273 flag indicating success (boolean)
6155 </dd> 6274 </dd>
6156 </dl> 6275 </dl>
6157 <a NAME="Editor.searchCurrentWordBackward" ID="Editor.searchCurrentWordBackward"></a> 6276 <a NAME="Editor.searchCurrentWordBackward" ID="Editor.searchCurrentWordBackward"></a>
6266 <dt><i>initTextDisplay</i></dt> 6385 <dt><i>initTextDisplay</i></dt>
6267 <dd> 6386 <dd>
6268 flag indicating an initialization of the text 6387 flag indicating an initialization of the text
6269 display is required as well (boolean) 6388 display is required as well (boolean)
6270 </dd> 6389 </dd>
6271 <dt><i>propagate=</i></dt> 6390 <dt><i>propagate</i></dt>
6272 <dd> 6391 <dd>
6273 flag indicating to propagate the change (boolean) 6392 flag indicating to propagate the change (boolean)
6274 </dd> 6393 </dd>
6275 <dt><i>pyname=</i></dt> 6394 <dt><i>pyname</i></dt>
6276 <dd> 6395 <dd>
6277 name of the pygments lexer to use (string) 6396 name of the pygments lexer to use (string)
6278 </dd> 6397 </dd>
6279 </dl> 6398 </dl>
6280 <a NAME="Editor.setMonospaced" ID="Editor.setMonospaced"></a> 6399 <a NAME="Editor.setMonospaced" ID="Editor.setMonospaced"></a>
6316 <dd> 6435 <dd>
6317 handler function 6436 handler function
6318 </dd> 6437 </dd>
6319 </dl> 6438 </dl>
6320 <dl> 6439 <dl>
6321 <dt>Returns:</dt> 6440 <dt>Return:</dt>
6322 <dd> 6441 <dd>
6323 flag indicating success 6442 flag indicating success
6324 </dd> 6443 </dd>
6325 </dl> 6444 </dl>
6326 <dl> 6445 <dl>
6411 6530
6412 <p> 6531 <p>
6413 Public slot to check the autosave flags. 6532 Public slot to check the autosave flags.
6414 </p> 6533 </p>
6415 <dl> 6534 <dl>
6416 <dt>Returns:</dt> 6535 <dt>Return:</dt>
6417 <dd> 6536 <dd>
6418 flag indicating this editor should be saved (boolean) 6537 flag indicating this editor should be saved (boolean)
6419 </dd> 6538 </dd>
6420 </dl> 6539 </dl>
6421 <a NAME="Editor.smartIndentLineOrSelection" ID="Editor.smartIndentLineOrSelection"></a> 6540 <a NAME="Editor.smartIndentLineOrSelection" ID="Editor.smartIndentLineOrSelection"></a>
6517 </dd> 6636 </dd>
6518 <dt><i>msg</i></dt> 6637 <dt><i>msg</i></dt>
6519 <dd> 6638 <dd>
6520 error message (string) 6639 error message (string)
6521 </dd> 6640 </dd>
6522 <dt><i>show=</i></dt> 6641 <dt><i>show</i></dt>
6523 <dd> 6642 <dd>
6524 flag indicating to set the cursor to the error position 6643 flag indicating to set the cursor to the error position
6525 (boolean) 6644 (boolean)
6526 </dd> 6645 </dd>
6527 </dl> 6646 </dl>
6552 </dd> 6671 </dd>
6553 <dt><i>msg</i></dt> 6672 <dt><i>msg</i></dt>
6554 <dd> 6673 <dd>
6555 warning message (string) 6674 warning message (string)
6556 </dd> 6675 </dd>
6557 <dt><i>warningType=</i></dt> 6676 <dt><i>warningType</i></dt>
6558 <dd> 6677 <dd>
6559 type of warning message (integer) 6678 type of warning message (integer)
6560 </dd> 6679 </dd>
6561 </dl> 6680 </dl>
6562 <a NAME="Editor.uncommentLine" ID="Editor.uncommentLine"></a> 6681 <a NAME="Editor.uncommentLine" ID="Editor.uncommentLine"></a>
6608 <p> 6727 <p>
6609 Protected method handling event of the viewport. 6728 Protected method handling event of the viewport.
6610 </p> 6729 </p>
6611 <dl> 6730 <dl>
6612 6731
6613 <dt><i>evt</i></dt> 6732 <dt><i>evt</i> (QEvent)</dt>
6614 <dd> 6733 <dd>
6615 reference to the event (QEvent) 6734 reference to the event
6616 </dd> 6735 </dd>
6617 </dl> 6736 </dl>
6618 <dl> 6737 <dl>
6619 <dt>Returns:</dt> 6738 <dt>Return:</dt>
6620 <dd> 6739 <dd>
6621 flag indiating that the event was handled (boolean) 6740 flag indiating that the event was handled
6741 </dd>
6742 </dl>
6743 <dl>
6744 <dt>Return Type:</dt>
6745 <dd>
6746 bool
6622 </dd> 6747 </dd>
6623 </dl> 6748 </dl>
6624 <a NAME="Editor.wheelEvent" ID="Editor.wheelEvent"></a> 6749 <a NAME="Editor.wheelEvent" ID="Editor.wheelEvent"></a>
6625 <h4>Editor.wheelEvent</h4> 6750 <h4>Editor.wheelEvent</h4>
6626 <b>wheelEvent</b>(<i>evt</i>) 6751 <b>wheelEvent</b>(<i>evt</i>)
6628 <p> 6753 <p>
6629 Protected method to handle wheel events. 6754 Protected method to handle wheel events.
6630 </p> 6755 </p>
6631 <dl> 6756 <dl>
6632 6757
6633 <dt><i>evt</i></dt> 6758 <dt><i>evt</i> (QWheelEvent)</dt>
6634 <dd> 6759 <dd>
6635 reference to the wheel event (QWheelEvent) 6760 reference to the wheel event
6636 </dd> 6761 </dd>
6637 </dl> 6762 </dl>
6638 <a NAME="Editor.writeFile" ID="Editor.writeFile"></a> 6763 <a NAME="Editor.writeFile" ID="Editor.writeFile"></a>
6639 <h4>Editor.writeFile</h4> 6764 <h4>Editor.writeFile</h4>
6640 <b>writeFile</b>(<i>fn, backup=True</i>) 6765 <b>writeFile</b>(<i>fn, backup=True</i>)
6652 <dd> 6777 <dd>
6653 flag indicating to save a backup (boolean) 6778 flag indicating to save a backup (boolean)
6654 </dd> 6779 </dd>
6655 </dl> 6780 </dl>
6656 <dl> 6781 <dl>
6657 <dt>Returns:</dt> 6782 <dt>Return:</dt>
6658 <dd> 6783 <dd>
6659 flag indicating success (boolean) 6784 flag indicating success (boolean)
6660 </dd> 6785 </dd>
6661 </dl> 6786 </dl>
6662 <div align="right"><a href="#top">Up</a></div> 6787 <div align="right"><a href="#top">Up</a></div>

eric ide

mercurial