74 <td>Private method to determine calltips from APIs.</td> |
74 <td>Private method to determine calltips from APIs.</td> |
75 </tr><tr> |
75 </tr><tr> |
76 <td><a href="#Assistant.__getApiCompletions">__getApiCompletions</a></td> |
76 <td><a href="#Assistant.__getApiCompletions">__getApiCompletions</a></td> |
77 <td>Private method to determine a list of completions from an API object.</td> |
77 <td>Private method to determine a list of completions from an API object.</td> |
78 </tr><tr> |
78 </tr><tr> |
79 <td><a href="#Assistant.__getCharacter">__getCharacter</a></td> |
|
80 <td>Private method to get the character to the left of the current position in the current line.</td> |
|
81 </tr><tr> |
|
82 <td><a href="#Assistant.__getCompletions">__getCompletions</a></td> |
79 <td><a href="#Assistant.__getCompletions">__getCompletions</a></td> |
83 <td>Private method to get the list of possible completions.</td> |
80 <td>Private method to get the list of possible completions.</td> |
84 </tr><tr> |
81 </tr><tr> |
85 <td><a href="#Assistant.__getDocumentCalltips">__getDocumentCalltips</a></td> |
82 <td><a href="#Assistant.__getDocumentCalltips">__getDocumentCalltips</a></td> |
86 <td>Private method to determine calltips from the document.</td> |
83 <td>Private method to determine calltips from the document.</td> |
88 <td><a href="#Assistant.__getDocumentCompletions">__getDocumentCompletions</a></td> |
85 <td><a href="#Assistant.__getDocumentCompletions">__getDocumentCompletions</a></td> |
89 <td>Private method to determine autocompletion proposals from the document.</td> |
86 <td>Private method to determine autocompletion proposals from the document.</td> |
90 </tr><tr> |
87 </tr><tr> |
91 <td><a href="#Assistant.__preferencesChanged">__preferencesChanged</a></td> |
88 <td><a href="#Assistant.__preferencesChanged">__preferencesChanged</a></td> |
92 <td>Private method to handle a change of the global configuration.</td> |
89 <td>Private method to handle a change of the global configuration.</td> |
|
90 </tr><tr> |
|
91 <td><a href="#Assistant.__recordSelectedContext">__recordSelectedContext</a></td> |
|
92 <td>Private slot to handle the selection from the completion list to record the selected completion context.</td> |
93 </tr><tr> |
93 </tr><tr> |
94 <td><a href="#Assistant.__setAutoCompletionHook">__setAutoCompletionHook</a></td> |
94 <td><a href="#Assistant.__setAutoCompletionHook">__setAutoCompletionHook</a></td> |
95 <td>Private method to set the autocompletion hook.</td> |
95 <td>Private method to set the autocompletion hook.</td> |
96 </tr><tr> |
96 </tr><tr> |
97 <td><a href="#Assistant.__setCalltipsHook">__setCalltipsHook</a></td> |
97 <td><a href="#Assistant.__setCalltipsHook">__setCalltipsHook</a></td> |
234 </dl><dl> |
234 </dl><dl> |
235 <dt>Returns:</dt> |
235 <dt>Returns:</dt> |
236 <dd> |
236 <dd> |
237 list of possible completions (list of strings) |
237 list of possible completions (list of strings) |
238 </dd> |
238 </dd> |
239 </dl><a NAME="Assistant.__getCharacter" ID="Assistant.__getCharacter"></a> |
|
240 <h4>Assistant.__getCharacter</h4> |
|
241 <b>__getCharacter</b>(<i>pos, editor</i>) |
|
242 <p> |
|
243 Private method to get the character to the left of the current position |
|
244 in the current line. |
|
245 </p><dl> |
|
246 <dt><i>pos</i></dt> |
|
247 <dd> |
|
248 position to get character at (integer) |
|
249 </dd><dt><i>editor</i></dt> |
|
250 <dd> |
|
251 reference to the editor object to work with |
|
252 (QScintilla.Editor) |
|
253 </dd> |
|
254 </dl><dl> |
|
255 <dt>Returns:</dt> |
|
256 <dd> |
|
257 requested character or "", if there are no more (string) and |
|
258 the next position (i.e. pos - 1) |
|
259 </dd> |
|
260 </dl><a NAME="Assistant.__getCompletions" ID="Assistant.__getCompletions"></a> |
239 </dl><a NAME="Assistant.__getCompletions" ID="Assistant.__getCompletions"></a> |
261 <h4>Assistant.__getCompletions</h4> |
240 <h4>Assistant.__getCompletions</h4> |
262 <b>__getCompletions</b>(<i>word, context, prefix, language, module, editor, importCompletion, sep</i>) |
241 <b>__getCompletions</b>(<i>word, context, prefix, language, module, editor, importCompletion, sep</i>) |
263 <p> |
242 <p> |
264 Private method to get the list of possible completions. |
243 Private method to get the list of possible completions. |
356 </dl><a NAME="Assistant.__preferencesChanged" ID="Assistant.__preferencesChanged"></a> |
335 </dl><a NAME="Assistant.__preferencesChanged" ID="Assistant.__preferencesChanged"></a> |
357 <h4>Assistant.__preferencesChanged</h4> |
336 <h4>Assistant.__preferencesChanged</h4> |
358 <b>__preferencesChanged</b>(<i></i>) |
337 <b>__preferencesChanged</b>(<i></i>) |
359 <p> |
338 <p> |
360 Private method to handle a change of the global configuration. |
339 Private method to handle a change of the global configuration. |
361 </p><a NAME="Assistant.__setAutoCompletionHook" ID="Assistant.__setAutoCompletionHook"></a> |
340 </p><a NAME="Assistant.__recordSelectedContext" ID="Assistant.__recordSelectedContext"></a> |
|
341 <h4>Assistant.__recordSelectedContext</h4> |
|
342 <b>__recordSelectedContext</b>(<i>id, txt</i>) |
|
343 <p> |
|
344 Private slot to handle the selection from the completion list to |
|
345 record the selected completion context. |
|
346 </p><dl> |
|
347 <dt><i>id</i></dt> |
|
348 <dd> |
|
349 the ID of the user list (should be 1) (integer) |
|
350 </dd><dt><i>txt</i></dt> |
|
351 <dd> |
|
352 the selected text (string) |
|
353 </dd> |
|
354 </dl><a NAME="Assistant.__setAutoCompletionHook" ID="Assistant.__setAutoCompletionHook"></a> |
362 <h4>Assistant.__setAutoCompletionHook</h4> |
355 <h4>Assistant.__setAutoCompletionHook</h4> |
363 <b>__setAutoCompletionHook</b>(<i>editor</i>) |
356 <b>__setAutoCompletionHook</b>(<i>editor</i>) |
364 <p> |
357 <p> |
365 Private method to set the autocompletion hook. |
358 Private method to set the autocompletion hook. |
366 </p><dl> |
359 </p><dl> |