Kate
katekeywordcompletion.cpp
Go to the documentation of this file.
35 void KateKeywordCompletionModel::completionInvoked(KTextEditor::View* view, const KTextEditor::Range& range,
90 QModelIndex KateKeywordCompletionModel::index(int row, int column, const QModelIndex& parent) const
118 static bool isInWord(const KTextEditor::View* view, const KTextEditor::Cursor& position, QChar c)
129 const QString& text = view->document()->text(KTextEditor::Range(position, KTextEditor::Cursor(position.line(), 0)));
143 bool KateKeywordCompletionModel::shouldAbortCompletion(KTextEditor::View* view, const KTextEditor::Range& range,
148 // Do not abort completions when the text has been empty already before and a newline has been entered
158 bool KateKeywordCompletionModel::shouldStartCompletion(KTextEditor::View* /*view*/, const QString& insertedText,
201 KTextEditor::CodeCompletionModelControllerInterface3::MatchReaction KateKeywordCompletionModel::matchingItem(
virtual bool shouldHideItemsWithEqualNames() const
When multiple completion models are used at the same time, it may happen that multiple models add ite...
Definition: katekeywordcompletion.cpp:168
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
Definition: katehighlighthelpers.h:28
virtual void completionInvoked(KTextEditor::View *view, const KTextEditor::Range &range, InvocationType invocationType)
Definition: katekeywordcompletion.cpp:35
const T & at(int i) const
int size() const
qint64 internalId() const
virtual KTextEditor::Range completionRange(KTextEditor::View *view, const KTextEditor::Cursor &position)
Definition: katekeywordcompletion.cpp:126
Definition: katehighlighthelpers.h:72
bool isValid() const
int count(const T &value) const
virtual MatchReaction matchingItem(const QModelIndex &matched)
Definition: katekeywordcompletion.cpp:201
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: katekeywordcompletion.cpp:108
bool isEmpty() const
int row() const
KateKeywordCompletionModel(QObject *parent)
Definition: katekeywordcompletion.cpp:29
QModelIndex parent() const
static bool isInWord(const KTextEditor::View *view, const KTextEditor::Cursor &position, QChar c)
Definition: katekeywordcompletion.cpp:118
Definition: katedocument.h:74
bool contains(QChar ch, Qt::CaseSensitivity cs) const
virtual QModelIndex parent(const QModelIndex &index) const
Definition: katekeywordcompletion.cpp:82
Definition: katehighlighthelpers.h:184
virtual bool shouldAbortCompletion(KTextEditor::View *view, const KTextEditor::Range &range, const QString ¤tCompletion)
Definition: katekeywordcompletion.cpp:143
QSet< T > & unite(const QSet< T > &other)
Definition: katehighlight.h:119
const QChar at(int position) const
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: katekeywordcompletion.cpp:90
int column() const
Definition: kateviinsertmode.h:39
QList< T > toList() const
virtual QVariant data(const QModelIndex &index, int role) const
Definition: katekeywordcompletion.cpp:173
bool isInWord(QChar c, int attrib=0) const
Definition: katehighlight.cpp:1122
void doHighlight(const Kate::TextLineData *prevLine, Kate::TextLineData *textLine, const Kate::TextLineData *nextLine, bool &ctxChanged, int tabWidth=0, QVector< ContextChange > *contextChanges=0)
Parse the text and fill in the context array and folding list array.
Definition: katehighlight.cpp:279
virtual bool shouldStartCompletion(KTextEditor::View *view, const QString &insertedText, bool userInsertion, const KTextEditor::Cursor &position)
Definition: katekeywordcompletion.cpp:158
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.