Documentation/Source/eric6.QScintilla.Editor.html

changeset 5882
c52ed9b0ad2b
parent 5734
d8b99b5fa673
child 5888
f23f3d2b7516
child 5948
6f958d5765f4
equal deleted inserted replaced
5881:13381dbbb81e 5882:c52ed9b0ad2b
631 <td>Public method to start autocompletion.</td> 631 <td>Public method to start autocompletion.</td>
632 </tr><tr> 632 </tr><tr>
633 <td><a href="#Editor.autoCompleteQScintilla">autoCompleteQScintilla</a></td> 633 <td><a href="#Editor.autoCompleteQScintilla">autoCompleteQScintilla</a></td>
634 <td>Public method to perform an autocompletion using QScintilla methods.</td> 634 <td>Public method to perform an autocompletion using QScintilla methods.</td>
635 </tr><tr> 635 </tr><tr>
636 <td><a href="#Editor.autoCompletionHook">autoCompletionHook</a></td>
637 <td>Public method to get the autocompletion hook function.</td>
638 </tr><tr>
639 <td><a href="#Editor.boxCommentLine">boxCommentLine</a></td> 636 <td><a href="#Editor.boxCommentLine">boxCommentLine</a></td>
640 <td>Public slot to box comment the current line.</td> 637 <td>Public slot to box comment the current line.</td>
641 </tr><tr> 638 </tr><tr>
642 <td><a href="#Editor.boxCommentLineOrSelection">boxCommentLineOrSelection</a></td> 639 <td><a href="#Editor.boxCommentLineOrSelection">boxCommentLineOrSelection</a></td>
643 <td>Public slot to box comment the current line or current selection.</td> 640 <td>Public slot to box comment the current line or current selection.</td>
646 <td>Public slot to box comment the current selection.</td> 643 <td>Public slot to box comment the current selection.</td>
647 </tr><tr> 644 </tr><tr>
648 <td><a href="#Editor.callTip">callTip</a></td> 645 <td><a href="#Editor.callTip">callTip</a></td>
649 <td>Public method to show calltips.</td> 646 <td>Public method to show calltips.</td>
650 </tr><tr> 647 </tr><tr>
651 <td><a href="#Editor.callTipHook">callTipHook</a></td>
652 <td>Public method to get the calltip hook function.</td>
653 </tr><tr>
654 <td><a href="#Editor.canAutoCompleteFromAPIs">canAutoCompleteFromAPIs</a></td> 648 <td><a href="#Editor.canAutoCompleteFromAPIs">canAutoCompleteFromAPIs</a></td>
655 <td>Public method to check for API availablity.</td> 649 <td>Public method to check for API availablity.</td>
656 </tr><tr> 650 </tr><tr>
657 <td><a href="#Editor.canProvideCallTipps">canProvideCallTipps</a></td> 651 <td><a href="#Editor.canProvideCallTipps">canProvideCallTipps</a></td>
658 <td>Public method to test the calltips availability.</td> 652 <td>Public method to test the calltips availability.</td>
1099 <td>Public slot to end a shared edit session for the editor and send the changes.</td> 1093 <td>Public slot to end a shared edit session for the editor and send the changes.</td>
1100 </tr><tr> 1094 </tr><tr>
1101 <td><a href="#Editor.setAutoCompletionEnabled">setAutoCompletionEnabled</a></td> 1095 <td><a href="#Editor.setAutoCompletionEnabled">setAutoCompletionEnabled</a></td>
1102 <td>Public method to enable/disable autocompletion.</td> 1096 <td>Public method to enable/disable autocompletion.</td>
1103 </tr><tr> 1097 </tr><tr>
1104 <td><a href="#Editor.setAutoCompletionHook">setAutoCompletionHook</a></td>
1105 <td>Public method to set an autocompletion hook.</td>
1106 </tr><tr>
1107 <td><a href="#Editor.setAutoSpellChecking">setAutoSpellChecking</a></td> 1098 <td><a href="#Editor.setAutoSpellChecking">setAutoSpellChecking</a></td>
1108 <td>Public method to set the automatic spell checking.</td> 1099 <td>Public method to set the automatic spell checking.</td>
1109 </tr><tr> 1100 </tr><tr>
1110 <td><a href="#Editor.setCallTipHook">setCallTipHook</a></td>
1111 <td>Public method to set a calltip hook.</td>
1112 </tr><tr>
1113 <td><a href="#Editor.setLanguage">setLanguage</a></td> 1101 <td><a href="#Editor.setLanguage">setLanguage</a></td>
1114 <td>Public method to set a lexer language.</td> 1102 <td>Public method to set a lexer language.</td>
1115 </tr><tr> 1103 </tr><tr>
1116 <td><a href="#Editor.setMonospaced">setMonospaced</a></td> 1104 <td><a href="#Editor.setMonospaced">setMonospaced</a></td>
1117 <td>Public method to set/reset a monospaced font.</td> 1105 <td>Public method to set/reset a monospaced font.</td>
1182 <td><a href="#Editor.undo">undo</a></td> 1170 <td><a href="#Editor.undo">undo</a></td>
1183 <td>Public method to undo the last recorded change.</td> 1171 <td>Public method to undo the last recorded change.</td>
1184 </tr><tr> 1172 </tr><tr>
1185 <td><a href="#Editor.unindentLineOrSelection">unindentLineOrSelection</a></td> 1173 <td><a href="#Editor.unindentLineOrSelection">unindentLineOrSelection</a></td>
1186 <td>Public slot to unindent the current line or current selection.</td> 1174 <td>Public slot to unindent the current line or current selection.</td>
1187 </tr><tr>
1188 <td><a href="#Editor.unsetAutoCompletionHook">unsetAutoCompletionHook</a></td>
1189 <td>Public method to unset a previously installed autocompletion hook.</td>
1190 </tr><tr>
1191 <td><a href="#Editor.unsetCallTipHook">unsetCallTipHook</a></td>
1192 <td>Public method to unset a calltip hook.</td>
1193 </tr><tr> 1175 </tr><tr>
1194 <td><a href="#Editor.updateMarkerMap">updateMarkerMap</a></td> 1176 <td><a href="#Editor.updateMarkerMap">updateMarkerMap</a></td>
1195 <td>Public method to initiate an update of the marker map.</td> 1177 <td>Public method to initiate an update of the marker map.</td>
1196 </tr><tr> 1178 </tr><tr>
1197 <td><a href="#Editor.viewportEvent">viewportEvent</a></td> 1179 <td><a href="#Editor.viewportEvent">viewportEvent</a></td>
2655 </dl><a NAME="Editor.autoCompleteQScintilla" ID="Editor.autoCompleteQScintilla"></a> 2637 </dl><a NAME="Editor.autoCompleteQScintilla" ID="Editor.autoCompleteQScintilla"></a>
2656 <h4>Editor.autoCompleteQScintilla</h4> 2638 <h4>Editor.autoCompleteQScintilla</h4>
2657 <b>autoCompleteQScintilla</b>(<i></i>) 2639 <b>autoCompleteQScintilla</b>(<i></i>)
2658 <p> 2640 <p>
2659 Public method to perform an autocompletion using QScintilla methods. 2641 Public method to perform an autocompletion using QScintilla methods.
2660 </p><a NAME="Editor.autoCompletionHook" ID="Editor.autoCompletionHook"></a> 2642 </p><a NAME="Editor.boxCommentLine" ID="Editor.boxCommentLine"></a>
2661 <h4>Editor.autoCompletionHook</h4>
2662 <b>autoCompletionHook</b>(<i></i>)
2663 <p>
2664 Public method to get the autocompletion hook function.
2665 </p><dl>
2666 <dt>Returns:</dt>
2667 <dd>
2668 function set by setAutoCompletionHook()
2669 </dd>
2670 </dl><a NAME="Editor.boxCommentLine" ID="Editor.boxCommentLine"></a>
2671 <h4>Editor.boxCommentLine</h4> 2643 <h4>Editor.boxCommentLine</h4>
2672 <b>boxCommentLine</b>(<i></i>) 2644 <b>boxCommentLine</b>(<i></i>)
2673 <p> 2645 <p>
2674 Public slot to box comment the current line. 2646 Public slot to box comment the current line.
2675 </p><a NAME="Editor.boxCommentLineOrSelection" ID="Editor.boxCommentLineOrSelection"></a> 2647 </p><a NAME="Editor.boxCommentLineOrSelection" ID="Editor.boxCommentLineOrSelection"></a>
2685 </p><a NAME="Editor.callTip" ID="Editor.callTip"></a> 2657 </p><a NAME="Editor.callTip" ID="Editor.callTip"></a>
2686 <h4>Editor.callTip</h4> 2658 <h4>Editor.callTip</h4>
2687 <b>callTip</b>(<i></i>) 2659 <b>callTip</b>(<i></i>)
2688 <p> 2660 <p>
2689 Public method to show calltips. 2661 Public method to show calltips.
2690 </p><a NAME="Editor.callTipHook" ID="Editor.callTipHook"></a> 2662 </p><a NAME="Editor.canAutoCompleteFromAPIs" ID="Editor.canAutoCompleteFromAPIs"></a>
2691 <h4>Editor.callTipHook</h4>
2692 <b>callTipHook</b>(<i></i>)
2693 <p>
2694 Public method to get the calltip hook function.
2695 </p><dl>
2696 <dt>Returns:</dt>
2697 <dd>
2698 function set by setCallTipHook()
2699 </dd>
2700 </dl><a NAME="Editor.canAutoCompleteFromAPIs" ID="Editor.canAutoCompleteFromAPIs"></a>
2701 <h4>Editor.canAutoCompleteFromAPIs</h4> 2663 <h4>Editor.canAutoCompleteFromAPIs</h4>
2702 <b>canAutoCompleteFromAPIs</b>(<i></i>) 2664 <b>canAutoCompleteFromAPIs</b>(<i></i>)
2703 <p> 2665 <p>
2704 Public method to check for API availablity. 2666 Public method to check for API availablity.
2705 </p><dl> 2667 </p><dl>
4149 <dt><i>enable</i></dt> 4111 <dt><i>enable</i></dt>
4150 <dd> 4112 <dd>
4151 flag indicating the desired autocompletion status 4113 flag indicating the desired autocompletion status
4152 (boolean) 4114 (boolean)
4153 </dd> 4115 </dd>
4154 </dl><a NAME="Editor.setAutoCompletionHook" ID="Editor.setAutoCompletionHook"></a>
4155 <h4>Editor.setAutoCompletionHook</h4>
4156 <b>setAutoCompletionHook</b>(<i>func</i>)
4157 <p>
4158 Public method to set an autocompletion hook.
4159 </p><dl>
4160 <dt><i>func</i></dt>
4161 <dd>
4162 Function to be set to handle autocompletion. func
4163 should be a function taking a reference to the editor and
4164 a boolean indicating to complete a context.
4165 </dd>
4166 </dl><a NAME="Editor.setAutoSpellChecking" ID="Editor.setAutoSpellChecking"></a> 4116 </dl><a NAME="Editor.setAutoSpellChecking" ID="Editor.setAutoSpellChecking"></a>
4167 <h4>Editor.setAutoSpellChecking</h4> 4117 <h4>Editor.setAutoSpellChecking</h4>
4168 <b>setAutoSpellChecking</b>(<i></i>) 4118 <b>setAutoSpellChecking</b>(<i></i>)
4169 <p> 4119 <p>
4170 Public method to set the automatic spell checking. 4120 Public method to set the automatic spell checking.
4171 </p><a NAME="Editor.setCallTipHook" ID="Editor.setCallTipHook"></a> 4121 </p><a NAME="Editor.setLanguage" ID="Editor.setLanguage"></a>
4172 <h4>Editor.setCallTipHook</h4>
4173 <b>setCallTipHook</b>(<i>func</i>)
4174 <p>
4175 Public method to set a calltip hook.
4176 </p><dl>
4177 <dt><i>func</i></dt>
4178 <dd>
4179 Function to be set to determine calltips. func
4180 should be a function taking a reference to the editor,
4181 a position into the text and the amount of commas to the
4182 left of the cursor. It should return the possible
4183 calltips as a list of strings.
4184 </dd>
4185 </dl><a NAME="Editor.setLanguage" ID="Editor.setLanguage"></a>
4186 <h4>Editor.setLanguage</h4> 4122 <h4>Editor.setLanguage</h4>
4187 <b>setLanguage</b>(<i>filename, initTextDisplay=True, propagate=True, pyname=""</i>) 4123 <b>setLanguage</b>(<i>filename, initTextDisplay=True, propagate=True, pyname=""</i>)
4188 <p> 4124 <p>
4189 Public method to set a lexer language. 4125 Public method to set a lexer language.
4190 </p><dl> 4126 </p><dl>
4428 </p><a NAME="Editor.unindentLineOrSelection" ID="Editor.unindentLineOrSelection"></a> 4364 </p><a NAME="Editor.unindentLineOrSelection" ID="Editor.unindentLineOrSelection"></a>
4429 <h4>Editor.unindentLineOrSelection</h4> 4365 <h4>Editor.unindentLineOrSelection</h4>
4430 <b>unindentLineOrSelection</b>(<i></i>) 4366 <b>unindentLineOrSelection</b>(<i></i>)
4431 <p> 4367 <p>
4432 Public slot to unindent the current line or current selection. 4368 Public slot to unindent the current line or current selection.
4433 </p><a NAME="Editor.unsetAutoCompletionHook" ID="Editor.unsetAutoCompletionHook"></a>
4434 <h4>Editor.unsetAutoCompletionHook</h4>
4435 <b>unsetAutoCompletionHook</b>(<i></i>)
4436 <p>
4437 Public method to unset a previously installed autocompletion hook.
4438 </p><a NAME="Editor.unsetCallTipHook" ID="Editor.unsetCallTipHook"></a>
4439 <h4>Editor.unsetCallTipHook</h4>
4440 <b>unsetCallTipHook</b>(<i></i>)
4441 <p>
4442 Public method to unset a calltip hook.
4443 </p><a NAME="Editor.updateMarkerMap" ID="Editor.updateMarkerMap"></a> 4369 </p><a NAME="Editor.updateMarkerMap" ID="Editor.updateMarkerMap"></a>
4444 <h4>Editor.updateMarkerMap</h4> 4370 <h4>Editor.updateMarkerMap</h4>
4445 <b>updateMarkerMap</b>(<i></i>) 4371 <b>updateMarkerMap</b>(<i></i>)
4446 <p> 4372 <p>
4447 Public method to initiate an update of the marker map. 4373 Public method to initiate an update of the marker map.

eric ide

mercurial