KTextEditor
codecompletionmodelcontrollerinterface.cpp
Go to the documentation of this file.
39bool CodeCompletionModelControllerInterface::shouldStartCompletion(View* view, const QString &insertedText, bool userInsertion, const Cursor &position)
83QString CodeCompletionModelControllerInterface::filterString(View* view, const SmartRange &range, const Cursor &position)
88bool CodeCompletionModelControllerInterface::shouldAbortCompletion(View* view, const SmartRange &range, const QString ¤tCompletion)
104bool CodeCompletionModelControllerInterface::shouldExecute(const QModelIndex& index, QChar inserted) {
110KTextEditor::CodeCompletionModelControllerInterface2::MatchReaction CodeCompletionModelControllerInterface2::matchingItem(const QModelIndex& selected) {
127bool CodeCompletionModelControllerInterface3::shouldStartCompletion(View* view, const QString &insertedText, bool userInsertion, const Cursor &position)
142Range CodeCompletionModelControllerInterface3::completionRange(View* view, const Cursor &position)
163Range CodeCompletionModelControllerInterface3::updateCompletionRange(View* view, const Range& range)
173QString CodeCompletionModelControllerInterface3::filterString(View* view, const Range &range, const Cursor &position)
178bool CodeCompletionModelControllerInterface3::shouldAbortCompletion(View* view, const Range &range, const QString ¤tCompletion)
194bool CodeCompletionModelControllerInterface3::shouldExecute(const QModelIndex& index, QChar inserted) {
200KTextEditor::CodeCompletionModelControllerInterface3::MatchReaction CodeCompletionModelControllerInterface3::matchingItem(const QModelIndex& selected) {
MatchReaction
Definition codecompletionmodelcontrollerinterface.h:172
@ HideListIfAutomaticInvocation
If this is returned, the completion-list is hidden if it was invoked automatically.
Definition codecompletionmodelcontrollerinterface.h:174
virtual MatchReaction matchingItem(const QModelIndex &matched)
Called whenever an item in the completion-list perfectly matches the current filter text.
virtual bool shouldAbortCompletion(View *view, const Range &range, const QString ¤tCompletion)
This function decides if the completion should be aborted.
virtual MatchReaction matchingItem(const QModelIndex &matched)
Called whenever an item in the completion-list perfectly matches the current filter text.
virtual Range completionRange(View *view, const Cursor &position)
This function returns the completion range that will be used for the current completion.
virtual void aborted(View *view)
Notification that completion for this model has been aborted.
CodeCompletionModelControllerInterface3()
virtual Range updateCompletionRange(View *view, const Range &range)
This function lets the CompletionModel dynamically modify the range.
MatchReaction
Definition codecompletionmodelcontrollerinterface.h:326
@ HideListIfAutomaticInvocation
Definition codecompletionmodelcontrollerinterface.h:328
virtual bool shouldExecute(const QModelIndex &selected, QChar inserted)
When an item within this model is currently selected in the completion-list, and the user inserted th...
virtual ~CodeCompletionModelControllerInterface3()
virtual QString filterString(View *view, const Range &range, const Cursor &position)
This function returns the filter-text used for the current completion.
virtual bool shouldStartCompletion(View *view, const QString &insertedText, bool userInsertion, const Cursor &position)
This function decides if the automatic completion should be started when the user entered some text.
virtual Range completionRange(View *view, const Cursor &position)
This function returns the completion range that will be used for the current completion.
virtual QString filterString(View *view, const SmartRange &range, const Cursor &position)
This function returns the filter-text used for the current completion.
virtual void aborted(View *view)
Notification that completion for this model has been aborted.
virtual void updateCompletionRange(View *view, SmartRange &range)
This function lets the CompletionModel dynamically modify the range.
CodeCompletionModelControllerInterface()
virtual ~CodeCompletionModelControllerInterface()
virtual bool shouldExecute(const QModelIndex &selected, QChar inserted)
When an item within this model is currently selected in the completion-list, and the user inserted th...
virtual bool shouldStartCompletion(View *view, const QString &insertedText, bool userInsertion, const Cursor &position)
This function decides if the automatic completion should be started when the user entered some text.
virtual bool shouldAbortCompletion(View *view, const SmartRange &range, const QString ¤tCompletion)
This function decides if the completion should be aborted.
virtual QStringList textLines(const Range &range, bool block=false) const =0
Get the document content within the given range.
An object representing a section of text, from one Cursor to another.
Definition range.h:55
A Range which is bound to a specific Document, and maintains its position.
Definition smartrange.h:95
virtual QStringList text(bool block=false) const
Retrieve the text which is contained within this range.
Definition smartrange.cpp:641
virtual Document * document() const =0
Get the view's document, that means the view is a view of the returned document.
virtual Cursor cursorPosition() const =0
Get the view's current cursor position.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 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 Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.