78 <td>Private method to determine a list of completions from an API object.</td> |
78 <td>Private method to determine a list of completions from an API object.</td> |
79 </tr><tr> |
79 </tr><tr> |
80 <td><a href="#Assistant.__getCharacter">__getCharacter</a></td> |
80 <td><a href="#Assistant.__getCharacter">__getCharacter</a></td> |
81 <td>Private method to get the character to the left of the current position in the current line.</td> |
81 <td>Private method to get the character to the left of the current position in the current line.</td> |
82 </tr><tr> |
82 </tr><tr> |
|
83 <td><a href="#Assistant.__getCompletions">__getCompletions</a></td> |
|
84 <td>Private method to get the list of possible completions.</td> |
|
85 </tr><tr> |
83 <td><a href="#Assistant.__getDocumentCalltips">__getDocumentCalltips</a></td> |
86 <td><a href="#Assistant.__getDocumentCalltips">__getDocumentCalltips</a></td> |
84 <td>Private method to determine calltips from the document.</td> |
87 <td>Private method to determine calltips from the document.</td> |
85 </tr><tr> |
88 </tr><tr> |
86 <td><a href="#Assistant.__getDocumentCompletions">__getDocumentCompletions</a></td> |
89 <td><a href="#Assistant.__getDocumentCompletions">__getDocumentCompletions</a></td> |
87 <td>Private method to determine autocompletion proposals from the document.</td> |
90 <td>Private method to determine autocompletion proposals from the document.</td> |
221 </dd><dt><i>module</i></dt> |
224 </dd><dt><i>module</i></dt> |
222 <dd> |
225 <dd> |
223 reference to the scanned module info (Module) |
226 reference to the scanned module info (Module) |
224 </dd><dt><i>editor</i></dt> |
227 </dd><dt><i>editor</i></dt> |
225 <dd> |
228 <dd> |
226 reference to the editor object (QScintilla.Editor) |
229 reference to the editor object (QScintilla.Editor.Editor) |
227 </dd> |
230 </dd> |
228 </dl><dl> |
231 </dl><dl> |
229 <dt>Returns:</dt> |
232 <dt>Returns:</dt> |
230 <dd> |
233 <dd> |
231 list of possible completions (list of strings) |
234 list of possible completions (list of strings) |
248 <dt>Returns:</dt> |
251 <dt>Returns:</dt> |
249 <dd> |
252 <dd> |
250 requested character or "", if there are no more (string) and |
253 requested character or "", if there are no more (string) and |
251 the next position (i.e. pos - 1) |
254 the next position (i.e. pos - 1) |
252 </dd> |
255 </dd> |
|
256 </dl><a NAME="Assistant.__getCompletions" ID="Assistant.__getCompletions"></a> |
|
257 <h4>Assistant.__getCompletions</h4> |
|
258 <b>__getCompletions</b>(<i>word, context, prefix, language, module, editor, importCompletion, sep</i>) |
|
259 <p> |
|
260 Private method to get the list of possible completions. |
|
261 </p><dl> |
|
262 <dt><i>word</i></dt> |
|
263 <dd> |
|
264 word (or wordpart) to complete (string) |
|
265 </dd><dt><i>context</i></dt> |
|
266 <dd> |
|
267 flag indicating to autocomplete a context (boolean) |
|
268 </dd><dt><i>prefix</i></dt> |
|
269 <dd> |
|
270 prefix of the word to be completed (string) |
|
271 </dd><dt><i>language</i></dt> |
|
272 <dd> |
|
273 programming language of the source (string) |
|
274 </dd><dt><i>module</i></dt> |
|
275 <dd> |
|
276 reference to the scanned module info (Module) |
|
277 </dd><dt><i>editor</i></dt> |
|
278 <dd> |
|
279 reference to the editor object (QScintilla.Editor.Editor) |
|
280 </dd><dt><i>importCompletion</i></dt> |
|
281 <dd> |
|
282 flag indicating an import completion (boolean) |
|
283 </dd><dt><i>sep</i></dt> |
|
284 <dd> |
|
285 separator string (string) |
|
286 </dd> |
|
287 </dl><dl> |
|
288 <dt>Returns:</dt> |
|
289 <dd> |
|
290 list of possible completions (list of strings) |
|
291 </dd> |
253 </dl><a NAME="Assistant.__getDocumentCalltips" ID="Assistant.__getDocumentCalltips"></a> |
292 </dl><a NAME="Assistant.__getDocumentCalltips" ID="Assistant.__getDocumentCalltips"></a> |
254 <h4>Assistant.__getDocumentCalltips</h4> |
293 <h4>Assistant.__getDocumentCalltips</h4> |
255 <b>__getDocumentCalltips</b>(<i>word, prefix, module, editor, doHierarchy=False</i>) |
294 <b>__getDocumentCalltips</b>(<i>word, prefix, module, editor, doHierarchy=False</i>) |
256 <p> |
295 <p> |
257 Private method to determine calltips from the document. |
296 Private method to determine calltips from the document. |
283 <p> |
322 <p> |
284 Private method to determine autocompletion proposals from the document. |
323 Private method to determine autocompletion proposals from the document. |
285 </p><dl> |
324 </p><dl> |
286 <dt><i>editor</i></dt> |
325 <dt><i>editor</i></dt> |
287 <dd> |
326 <dd> |
288 reference to the editor object (QScintilla.Editor) |
327 reference to the editor object (QScintilla.Editor.Editor) |
289 </dd><dt><i>word</i></dt> |
328 </dd><dt><i>word</i></dt> |
290 <dd> |
329 <dd> |
291 string to be completed (string) |
330 string to be completed (string) |
292 </dd><dt><i>context</i></dt> |
331 </dd><dt><i>context</i></dt> |
293 <dd> |
332 <dd> |