Documentation/Source/eric6.QScintilla.Editor.html

changeset 5888
f23f3d2b7516
parent 5882
c52ed9b0ad2b
child 5890
22ec89341f5e
equal deleted inserted replaced
5887:9a6ce5faed7a 5888:f23f3d2b7516
178 <td>Private method to calculate an adjusted position for showing calltips.</td> 178 <td>Private method to calculate an adjusted position for showing calltips.</td>
179 </tr><tr> 179 </tr><tr>
180 <td><a href="#Editor.__applyTemplate">__applyTemplate</a></td> 180 <td><a href="#Editor.__applyTemplate">__applyTemplate</a></td>
181 <td>Private method to apply a template by name.</td> 181 <td>Private method to apply a template by name.</td>
182 </tr><tr> 182 </tr><tr>
183 <td><a href="#Editor.__autoComplete">__autoComplete</a></td>
184 <td>Private method to start auto-completion via plug-ins.</td>
185 </tr><tr>
183 <td><a href="#Editor.__autosaveEnable">__autosaveEnable</a></td> 186 <td><a href="#Editor.__autosaveEnable">__autosaveEnable</a></td>
184 <td>Private slot handling the autosave enable context menu action.</td> 187 <td>Private slot handling the autosave enable context menu action.</td>
185 </tr><tr> 188 </tr><tr>
186 <td><a href="#Editor.__bindCompleter">__bindCompleter</a></td> 189 <td><a href="#Editor.__bindCompleter">__bindCompleter</a></td>
187 <td>Private slot to set the correct typing completer depending on language.</td> 190 <td>Private slot to set the correct typing completer depending on language.</td>
223 <td>Private slot to check the word below the spelling context menu.</td> 226 <td>Private slot to check the word below the spelling context menu.</td>
224 </tr><tr> 227 </tr><tr>
225 <td><a href="#Editor.__clearBreakpoints">__clearBreakpoints</a></td> 228 <td><a href="#Editor.__clearBreakpoints">__clearBreakpoints</a></td>
226 <td>Private slot to clear all breakpoints.</td> 229 <td>Private slot to clear all breakpoints.</td>
227 </tr><tr> 230 </tr><tr>
231 <td><a href="#Editor.__clearCompletionsCache">__clearCompletionsCache</a></td>
232 <td>Private method to clear the auto-completions cache.</td>
233 </tr><tr>
228 <td><a href="#Editor.__clearTypedWarning">__clearTypedWarning</a></td> 234 <td><a href="#Editor.__clearTypedWarning">__clearTypedWarning</a></td>
229 <td>Private method to clear warnings of a specific kind.</td> 235 <td>Private method to clear warnings of a specific kind.</td>
230 </tr><tr> 236 </tr><tr>
231 <td><a href="#Editor.__codeCoverageHideAnnotations">__codeCoverageHideAnnotations</a></td> 237 <td><a href="#Editor.__codeCoverageHideAnnotations">__codeCoverageHideAnnotations</a></td>
232 <td>Private method to handle the hide code coverage annotations context menu action.</td> 238 <td>Private method to handle the hide code coverage annotations context menu action.</td>
626 </tr><tr> 632 </tr><tr>
627 <td><a href="#Editor.addedToProject">addedToProject</a></td> 633 <td><a href="#Editor.addedToProject">addedToProject</a></td>
628 <td>Public method to signal, that this editor has been added to a project.</td> 634 <td>Public method to signal, that this editor has been added to a project.</td>
629 </tr><tr> 635 </tr><tr>
630 <td><a href="#Editor.autoComplete">autoComplete</a></td> 636 <td><a href="#Editor.autoComplete">autoComplete</a></td>
631 <td>Public method to start autocompletion.</td> 637 <td>Public method to start auto-completion.</td>
632 </tr><tr> 638 </tr><tr>
633 <td><a href="#Editor.autoCompleteQScintilla">autoCompleteQScintilla</a></td> 639 <td><a href="#Editor.autoCompleteQScintilla">autoCompleteQScintilla</a></td>
634 <td>Public method to perform an autocompletion using QScintilla methods.</td> 640 <td>Public method to perform an autocompletion using QScintilla methods.</td>
635 </tr><tr> 641 </tr><tr>
636 <td><a href="#Editor.boxCommentLine">boxCommentLine</a></td> 642 <td><a href="#Editor.boxCommentLine">boxCommentLine</a></td>
708 <td><a href="#Editor.commentLineOrSelection">commentLineOrSelection</a></td> 714 <td><a href="#Editor.commentLineOrSelection">commentLineOrSelection</a></td>
709 <td>Public slot to comment the current line or current selection.</td> 715 <td>Public slot to comment the current line or current selection.</td>
710 </tr><tr> 716 </tr><tr>
711 <td><a href="#Editor.commentSelection">commentSelection</a></td> 717 <td><a href="#Editor.commentSelection">commentSelection</a></td>
712 <td>Public slot to comment the current selection.</td> 718 <td>Public slot to comment the current selection.</td>
719 </tr><tr>
720 <td><a href="#Editor.completionsListReady">completionsListReady</a></td>
721 <td>Public method to show the completions determined by a completions provider.</td>
713 </tr><tr> 722 </tr><tr>
714 <td><a href="#Editor.contextMenuEvent">contextMenuEvent</a></td> 723 <td><a href="#Editor.contextMenuEvent">contextMenuEvent</a></td>
715 <td>Protected method implementing the context menu event.</td> 724 <td>Protected method implementing the context menu event.</td>
716 </tr><tr> 725 </tr><tr>
717 <td><a href="#Editor.curLineHasBreakpoint">curLineHasBreakpoint</a></td> 726 <td><a href="#Editor.curLineHasBreakpoint">curLineHasBreakpoint</a></td>
1313 </dd><dt><i>language</i></dt> 1322 </dd><dt><i>language</i></dt>
1314 <dd> 1323 <dd>
1315 name of the language (group) to get the template 1324 name of the language (group) to get the template
1316 from (string) 1325 from (string)
1317 </dd> 1326 </dd>
1327 </dl><a NAME="Editor.__autoComplete" ID="Editor.__autoComplete"></a>
1328 <h4>Editor.__autoComplete</h4>
1329 <b>__autoComplete</b>(<i>context=None</i>)
1330 <p>
1331 Private method to start auto-completion via plug-ins.
1332 </p><dl>
1333 <dt><i>context=</i> (bool or None)</dt>
1334 <dd>
1335 flag indicating to complete a context
1336 </dd>
1318 </dl><a NAME="Editor.__autosaveEnable" ID="Editor.__autosaveEnable"></a> 1337 </dl><a NAME="Editor.__autosaveEnable" ID="Editor.__autosaveEnable"></a>
1319 <h4>Editor.__autosaveEnable</h4> 1338 <h4>Editor.__autosaveEnable</h4>
1320 <b>__autosaveEnable</b>(<i></i>) 1339 <b>__autosaveEnable</b>(<i></i>)
1321 <p> 1340 <p>
1322 Private slot handling the autosave enable context menu action. 1341 Private slot handling the autosave enable context menu action.
1457 </p><dl> 1476 </p><dl>
1458 <dt><i>fileName</i></dt> 1477 <dt><i>fileName</i></dt>
1459 <dd> 1478 <dd>
1460 name of the file (string) 1479 name of the file (string)
1461 </dd> 1480 </dd>
1462 </dl><a NAME="Editor.__clearTypedWarning" ID="Editor.__clearTypedWarning"></a> 1481 </dl><a NAME="Editor.__clearCompletionsCache" ID="Editor.__clearCompletionsCache"></a>
1482 <h4>Editor.__clearCompletionsCache</h4>
1483 <b>__clearCompletionsCache</b>(<i></i>)
1484 <p>
1485 Private method to clear the auto-completions cache.
1486 </p><a NAME="Editor.__clearTypedWarning" ID="Editor.__clearTypedWarning"></a>
1463 <h4>Editor.__clearTypedWarning</h4> 1487 <h4>Editor.__clearTypedWarning</h4>
1464 <b>__clearTypedWarning</b>(<i>warningKind</i>) 1488 <b>__clearTypedWarning</b>(<i>warningKind</i>)
1465 <p> 1489 <p>
1466 Private method to clear warnings of a specific kind. 1490 Private method to clear warnings of a specific kind.
1467 </p><dl> 1491 </p><dl>
2599 <dd> 2623 <dd>
2600 reference to the cloned editor (Editor) 2624 reference to the cloned editor (Editor)
2601 </dd> 2625 </dd>
2602 </dl><a NAME="Editor.addCompletionListHook" ID="Editor.addCompletionListHook"></a> 2626 </dl><a NAME="Editor.addCompletionListHook" ID="Editor.addCompletionListHook"></a>
2603 <h4>Editor.addCompletionListHook</h4> 2627 <h4>Editor.addCompletionListHook</h4>
2604 <b>addCompletionListHook</b>(<i>key, func</i>) 2628 <b>addCompletionListHook</b>(<i>key, func, async=False</i>)
2605 <p> 2629 <p>
2606 Public method to set an auto-completion list provider. 2630 Public method to set an auto-completion list provider.
2607 </p><dl> 2631 </p><dl>
2608 <dt><i>key</i> (str)</dt> 2632 <dt><i>key</i> (str)</dt>
2609 <dd> 2633 <dd>
2610 name of the provider 2634 name of the provider
2611 </dd><dt><i>func</i> (function(editor, bool) -> list of str)</dt> 2635 </dd><dt><i>func</i> (function(editor, bool) -> list of str in case async is False)</dt>
2612 <dd> 2636 <dd>
2613 function providing completion list. func 2637 function providing completion list. func
2614 should be a function taking a reference to the editor and 2638 should be a function taking a reference to the editor and
2615 a boolean indicating to complete a context. It should return 2639 a boolean indicating to complete a context. It should return
2616 the possible completions as a list of strings. 2640 the possible completions as a list of strings.
2641 and function(editor, bool, str) returning nothing in case async
2642 is True
2643 </dd><dt><i>async</i> (bool)</dt>
2644 <dd>
2645 flag indicating an asynchroneous function
2617 </dd> 2646 </dd>
2618 </dl><a NAME="Editor.addedToProject" ID="Editor.addedToProject"></a> 2647 </dl><a NAME="Editor.addedToProject" ID="Editor.addedToProject"></a>
2619 <h4>Editor.addedToProject</h4> 2648 <h4>Editor.addedToProject</h4>
2620 <b>addedToProject</b>(<i></i>) 2649 <b>addedToProject</b>(<i></i>)
2621 <p> 2650 <p>
2622 Public method to signal, that this editor has been added to a project. 2651 Public method to signal, that this editor has been added to a project.
2623 </p><a NAME="Editor.autoComplete" ID="Editor.autoComplete"></a> 2652 </p><a NAME="Editor.autoComplete" ID="Editor.autoComplete"></a>
2624 <h4>Editor.autoComplete</h4> 2653 <h4>Editor.autoComplete</h4>
2625 <b>autoComplete</b>(<i>auto=False, context=True</i>) 2654 <b>autoComplete</b>(<i>auto=False, context=True</i>)
2626 <p> 2655 <p>
2627 Public method to start autocompletion. 2656 Public method to start auto-completion.
2628 </p><dl> 2657 </p><dl>
2629 <dt><i>auto=</i></dt> 2658 <dt><i>auto=</i></dt>
2630 <dd> 2659 <dd>
2631 flag indicating a call from the __charAdded method 2660 flag indicating a call from the __charAdded method
2632 (boolean) 2661 (boolean)
2833 </p><a NAME="Editor.commentSelection" ID="Editor.commentSelection"></a> 2862 </p><a NAME="Editor.commentSelection" ID="Editor.commentSelection"></a>
2834 <h4>Editor.commentSelection</h4> 2863 <h4>Editor.commentSelection</h4>
2835 <b>commentSelection</b>(<i></i>) 2864 <b>commentSelection</b>(<i></i>)
2836 <p> 2865 <p>
2837 Public slot to comment the current selection. 2866 Public slot to comment the current selection.
2838 </p><a NAME="Editor.contextMenuEvent" ID="Editor.contextMenuEvent"></a> 2867 </p><a NAME="Editor.completionsListReady" ID="Editor.completionsListReady"></a>
2868 <h4>Editor.completionsListReady</h4>
2869 <b>completionsListReady</b>(<i>completions, acText</i>)
2870 <p>
2871 Public method to show the completions determined by a completions
2872 provider.
2873 </p><dl>
2874 <dt><i>completions</i> (list of str or set of str)</dt>
2875 <dd>
2876 list of possible completions
2877 </dd><dt><i>acText</i> (str)</dt>
2878 <dd>
2879 text to be completed
2880 </dd>
2881 </dl><a NAME="Editor.contextMenuEvent" ID="Editor.contextMenuEvent"></a>
2839 <h4>Editor.contextMenuEvent</h4> 2882 <h4>Editor.contextMenuEvent</h4>
2840 <b>contextMenuEvent</b>(<i>evt</i>) 2883 <b>contextMenuEvent</b>(<i>evt</i>)
2841 <p> 2884 <p>
2842 Protected method implementing the context menu event. 2885 Protected method implementing the context menu event.
2843 </p><dl> 2886 </p><dl>

eric ide

mercurial