KTextEditor
katekeywordcompletion.h
21class KateKeywordCompletionModel : public KTextEditor::CodeCompletionModel, public KTextEditor::CodeCompletionModelControllerInterface
31 QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
32 void completionInvoked(KTextEditor::View *view, const KTextEditor::Range &range, InvocationType invocationType) override;
33 KTextEditor::Range completionRange(KTextEditor::View *view, const KTextEditor::Cursor &position) override;
34 bool shouldAbortCompletion(KTextEditor::View *view, const KTextEditor::Range &range, const QString ¤tCompletion) override;
35 bool shouldStartCompletion(KTextEditor::View *view, const QString &insertedText, bool userInsertion, const KTextEditor::Cursor &position) override;
Controller interface for a CodeCompletionModel.
Definition codecompletionmodelcontrollerinterface.h:61
MatchReaction
Definition codecompletionmodelcontrollerinterface.h:156
An item model for providing code completion, and meta information for enhanced presentation.
Definition codecompletionmodel.h:68
An object representing a section of text, from one Cursor to another.
Definition include/ktexteditor/range.h:49
Highlighting-file based keyword completion for the editor.
Definition katekeywordcompletion.h:22
void completionInvoked(KTextEditor::View *view, const KTextEditor::Range &range, InvocationType invocationType) override
This function is responsible to generating / updating the list of current completions.
Definition katekeywordcompletion.cpp:24
bool shouldStartCompletion(KTextEditor::View *view, const QString &insertedText, bool userInsertion, const KTextEditor::Cursor &position) override
This function decides if the automatic completion should be started when the user entered some text.
Definition katekeywordcompletion.cpp:114
bool shouldAbortCompletion(KTextEditor::View *view, const KTextEditor::Range &range, const QString ¤tCompletion) override
This function decides if the completion should be aborted.
Definition katekeywordcompletion.cpp:99
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Reimplemented from QAbstractItemModel::index().
Definition katekeywordcompletion.cpp:45
KTextEditor::Range completionRange(KTextEditor::View *view, const KTextEditor::Cursor &position) override
This function returns the completion range that will be used for the current completion.
Definition katekeywordcompletion.cpp:83
MatchReaction matchingItem(const QModelIndex &matched) override
Called whenever an item in the completion-list perfectly matches the current filter text.
Definition katekeywordcompletion.cpp:161
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Reimplemented from QAbstractItemModel::rowCount().
Definition katekeywordcompletion.cpp:64
bool shouldHideItemsWithEqualNames() const override
When multiple completion models are used at the same time, it may happen that multiple models add ite...
Definition katekeywordcompletion.cpp:125
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:03:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:03:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.