CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | Protected Attributes | List of all members
ctkConsoleCompleter Class Referenceabstract

#include <Libs/Widgets/ctkConsole.h>

Inheritance diagram for ctkConsoleCompleter:
Inheritance graph
[legend]
Collaboration diagram for ctkConsoleCompleter:
Collaboration graph
[legend]

Public Member Functions

QStringList autocompletePreferenceList ()
 Returns the autocomplete preference list. More...
 
virtual int cursorOffset (const QString &completion)=0
 
void setAutocompletePreferenceList (const QStringList &list)
 
virtual void updateCompletionModel (const QString &str)=0
 

Protected Attributes

QStringList AutocompletePreferenceList
 

Detailed Description

Definition at line 280 of file ctkConsole.h.

Member Function Documentation

◆ autocompletePreferenceList()

QStringList ctkConsoleCompleter::autocompletePreferenceList ( )

Returns the autocomplete preference list.

◆ cursorOffset()

virtual int ctkConsoleCompleter::cursorOffset ( const QString &  completion)
pure virtual

Given the current completion, returns the number by which the cursor should be shifted to the left.

◆ setAutocompletePreferenceList()

void ctkConsoleCompleter::setAutocompletePreferenceList ( const QStringList &  list)

Set autocomplete preference list This list allows to specify options that could be selected by default if multiple choices are proposed to the user.

◆ updateCompletionModel()

virtual void ctkConsoleCompleter::updateCompletionModel ( const QString &  str)
pure virtual

Update the completion model given a string. The given string is the current console text between the cursor and the start of the line.

Member Data Documentation

◆ AutocompletePreferenceList

QStringList ctkConsoleCompleter::AutocompletePreferenceList
protected

Definition at line 303 of file ctkConsole.h.


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