KTextEditor
codecompletionmodel.h
Go to the documentation of this file.
384 virtual void completionInvoked(KTextEditor::View* view, const KTextEditor::Range& range, InvocationType invocationType);
491 virtual void executeCompletionItem2(Document* document, const Range& word, const QModelIndex& index) const;
virtual void executeCompletionItem2(Document *document, const Range &word, const QModelIndex &index) const
This function is responsible for inserting a selected completion into the document.
Definition codecompletionmodel.cpp:119
CodeCompletionModel2(QObject *parent)
Definition codecompletionmodel.cpp:115
An item model for providing code completion, and meta information for enhanced presentation.
Definition codecompletionmodel.h:78
bool hasGroups() const
This function returns true if the model needs grouping, otherwise false in KDE 4 default value is tru...
Definition codecompletionmodel.cpp:103
static const int ColumnCount
Definition codecompletionmodel.h:96
void setRowCount(int rowCount)
Definition codecompletionmodel.cpp:78
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Reimplemented from QAbstractItemModel::rowCount().
Definition codecompletionmodel.cpp:83
static const int LastItemDataRole
Definition codecompletionmodel.h:363
@ ManualInvocation
Definition codecompletionmodel.h:370
@ AutomaticInvocation
Definition codecompletionmodel.h:368
@ UserInvocation
Definition codecompletionmodel.h:369
virtual QModelIndex parent(const QModelIndex &index) const
Reimplemented from QAbstractItemModel::parent().
Definition codecompletionmodel.cpp:73
void hasGroupsChanged(KTextEditor::CodeCompletionModel *model, bool hasGroups)
Internal.
void waitForReset()
Emit this if the code-completion for this model was invoked, some time is needed in order to get the ...
HighlightMethod
Definition codecompletionmodel.h:140
@ InternalHighlighting
Definition codecompletionmodel.h:142
@ CustomHighlighting
Definition codecompletionmodel.h:143
@ NoHighlighting
Definition codecompletionmodel.h:141
void setHasGroups(bool hasGroups)
Definition codecompletionmodel.cpp:107
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Reimplemented from QAbstractItemModel::index().
Definition codecompletionmodel.cpp:52
CompletionProperty
Definition codecompletionmodel.h:98
@ NamespaceScope
Definition codecompletionmodel.h:132
ExtraItemDataRoles
Meta information is passed through extra {Qt::ItemDataRole}s.
Definition codecompletionmodel.h:149
@ InheritanceDepth
Returns the inheritance depth of the completion.
Definition codecompletionmodel.h:213
@ CompletionRole
The model should return a set of CompletionProperties.
Definition codecompletionmodel.h:151
@ GroupRole
Using this Role, it is possible to greatly optimize the time needed to process very long completion-l...
Definition codecompletionmodel.h:353
@ SetMatchContext
Is requested before MatchQuality(..) is requested.
Definition codecompletionmodel.h:182
@ HighlightingMethod
Define which highlighting method will be used:
Definition codecompletionmodel.h:189
@ ItemSelected
Whenever an item is selected, this will be requested from the underlying model.
Definition codecompletionmodel.h:253
@ LastExtraItemDataRole
Definition codecompletionmodel.h:360
@ AccessibilityAccept
AccessibilityAccept will be requested on an item if it is expanded, contains an expanding-widget,...
Definition codecompletionmodel.h:321
@ UnimportantItemRole
Return a nonzero value here to enforce sorting the item at the end of the list.
Definition codecompletionmodel.h:358
@ BestMatchesCount
This will be requested for each item to ask whether it should be included in computing a best-matches...
Definition codecompletionmodel.h:295
@ ScopeIndex
The model should return an index to the scope -1 represents no scope.
Definition codecompletionmodel.h:156
@ ExpandingWidget
After a model returned true for a row on IsExpandable, the row may be expanded by the user.
Definition codecompletionmodel.h:245
@ AccessibilityNext
The following three enumeration-values are only used on expanded completion-list items that contain a...
Definition codecompletionmodel.h:307
@ MatchQuality
If requested, your model should try to determine whether the completion in question is a suitable mat...
Definition codecompletionmodel.h:172
@ AccessibilityPrevious
AccessibilityPrevious will be requested on an item if it is expanded, contains an expanding-widget,...
Definition codecompletionmodel.h:314
@ IsExpandable
This allows items in the completion-list to be expandable.
Definition codecompletionmodel.h:220
CodeCompletionModel(QObject *parent)
Definition codecompletionmodel.cpp:36
An object representing a section of text, from one Cursor to another.
Definition range.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.