NCL Composer  0.1.5
 All Classes Functions Variables Pages
QsciNCLAPIs Class Reference
Inheritance diagram for QsciNCLAPIs:
Collaboration diagram for QsciNCLAPIs:

Public Member Functions

 QsciNCLAPIs (QsciLexer *lexer=0)
 
void updateAutoCompletionList (const QStringList &context, QStringList &list)
 
void autoCompletionSelected (const QString &selection)
 
QStringList callTips (const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QList< int > &shifts)
 
bool event (QEvent *e)
 

Detailed Description

Definition at line 29 of file QsciNCLAPIs.h.

Member Function Documentation

void QsciNCLAPIs::autoCompletionSelected ( const QString &  selection)

This is called when the user selects the entry selection from the auto-completion list. A sub-class can use this as a hint to provide more specific API entries in future calls to updateAutoCompletionList(). The default implementation does nothing.

Definition at line 269 of file QsciNCLAPIs.cpp.

Here is the call graph for this function:

QStringList QsciNCLAPIs::callTips ( const QStringList &  context,
int  commas,
QsciScintilla::CallTipsStyle  style,
QList< int > &  shifts 
)

Return the call tips valid for the context context. (Note that the last word of the context will always be empty.) commas is the number of commas the user has typed after the context and before the cursor position. The exact position of the list of call tips can be adjusted by specifying a corresponding left character shift in shifts. This is normally done to correct for any displayed context according to style.

See Also
updateAutoCompletionList()

Definition at line 410 of file QsciNCLAPIs.cpp.

void QsciNCLAPIs::updateAutoCompletionList ( const QStringList &  context,
QStringList &  list 
)

Update the list list with API entries derived from context. context is the list of words in the text preceding the cursor position. The characters that make up a word and the characters that separate words are defined by the lexer. The last word is a partial word and may be empty if the user has just entered a word separator.

Definition at line 41 of file QsciNCLAPIs.cpp.

Here is the call graph for this function:


The documentation for this class was generated from the following files: