cantor/src/lib
completionobject.cpp
Go to the documentation of this file.
121 void CompletionObject::completeLine(const QString& comp, CompletionObject::LineCompletionMode mode)
a function that takes no arguments
Definition: completionobject.h:111
void completeKeywordLine()
Completes line with keyword identifier and emits lineDone with the completed line.
Definition: completionobject.cpp:266
QString identifier() const
returns the identifier for fetchIdentifierType
Definition: completionobject.cpp:76
QString command() const
returns the command, this completion is for
Definition: completionobject.cpp:61
void completeFunctionLine(IdentifierType type=FunctionWithArguments)
Completes line with function identifier and emits lineDone with the completed line.
Definition: completionobject.cpp:220
bool isDigit() const
virtual bool mayIdentifierContain(QChar c) const
return true if c may be used in identifier names
Definition: completionobject.cpp:165
void setCommand(const QString &cmd)
sets the command/command-part
Definition: completionobject.cpp:146
bool isLetter() const
void completeLine(const QString &comp, LineCompletionMode mode)
Takes a completion and a completion mode and triggers and calculates the new line with this completio...
Definition: completionobject.cpp:121
void setCompletions(const QStringList &completions)
Sets the completions.
Definition: completionobject.cpp:140
Only insert the completion.
Definition: completionobject.h:54
bool isEmpty() const
virtual bool mayIdentifierBeginWith(QChar c) const
return true if identifier names can begin with c
Definition: completionobject.cpp:170
no identifier type was found
Definition: completionobject.h:113
void updateLine(const QString &line, int index)
Takes the changed line and updates the command accordingly.
Definition: completionobject.cpp:106
Session * session() const
returns the session, this object belongs to
Definition: completionobject.cpp:66
virtual void fetchIdentifierType()
Fetch the identifier type of d->identifier; reimplemented in the backends.
Definition: completionobject.cpp:134
virtual int locateIdentifier(const QString &cmd, int index) const
Find an identifier in cmd that ends at index.
Definition: completionobject.cpp:151
void done()
indicates that the possible completions and a common completion string have been found ...
a function that takes arguments
Definition: completionobject.h:109
QString mid(int position, int n) const
void handleParenCompletionWithType(IdentifierType type)
Handle a completion request after a opening parenthesis.
Definition: completionobject.cpp:189
void lineDone(QString line, int index)
emitted when the line completion is done, passes the new line and the cursor index ...
int length() const
void completeLineWithType(IdentifierType type)
Calls the appropriate complete*Line based on type.
Definition: completionobject.cpp:201
void setLine(const QString &line, int index)
Sets the line and cursor index at which a completion should be found This triggers an asynchronous fe...
Definition: completionobject.cpp:86
virtual void fetchCompletions()=0
This function should be reimplemented to start the actual fetching of the completions.
void fetchingTypeDone(IdentifierType type)
indicates that the type of identifier() was found and passes the type as an argument ...
void completeUnknownLine()
Completes line with identifier of unknown type and emits lineDone with the completed line...
Definition: completionobject.cpp:288
void fetchingDone()
indicates that the fetching of completions is done
void completeVariableLine()
Completes line with variable identifier and emits lineDone with the completed line.
Definition: completionobject.cpp:279
singleShot
The Session object is the main class used to interact with a Backend.
Definition: session.h:50
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.