KTextEditor
codecompletionmodelcontrollerinterface.h
Go to the documentation of this file.
90 virtual bool shouldStartCompletion(View* view, const QString &insertedText, bool userInsertion, const Cursor &position);
151 virtual bool shouldAbortCompletion(View* view, const SmartRange& range, const QString ¤tCompletion);
170class KTEXTEDITOR_EXPORT_DEPRECATED CodeCompletionModelControllerInterface2 : public CodeCompletionModelControllerInterface {
246 virtual bool shouldStartCompletion(View* view, const QString &insertedText, bool userInsertion, const Cursor &position);
308 virtual bool shouldAbortCompletion(View* view, const Range& range, const QString ¤tCompletion);
344Q_DECLARE_INTERFACE(KTextEditor::CodeCompletionModelControllerInterface, "org.kde.KTextEditor.CodeCompletionModelControllerInterface")
345Q_DECLARE_INTERFACE(KTextEditor::CodeCompletionModelControllerInterface2, "org.kde.KTextEditor.CodeCompletionModelControllerInterface2")
348Q_DECLARE_INTERFACE(KTextEditor::CodeCompletionModelControllerInterface3, "org.kde.KTextEditor.CodeCompletionModelControllerInterface3")
Extension of CodeCompletionModelControllerInterface.
Definition codecompletionmodelcontrollerinterface.h:170
MatchReaction
Definition codecompletionmodelcontrollerinterface.h:172
@ HideListIfAutomaticInvocation
If this is returned, the completion-list is hidden if it was invoked automatically.
Definition codecompletionmodelcontrollerinterface.h:174
@ None
Definition codecompletionmodelcontrollerinterface.h:173
Controller interface for a CodeCompletionModel.
Definition codecompletionmodelcontrollerinterface.h:227
virtual bool shouldAbortCompletion(View *view, const Range &range, const QString ¤tCompletion)
This function decides if the completion should be aborted.
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
@ ForExtension
If this is returned, the completion-list is hidden if it was invoked automatically.
Definition codecompletionmodelcontrollerinterface.h:329
@ HideListIfAutomaticInvocation
Definition codecompletionmodelcontrollerinterface.h:328
@ None
Definition codecompletionmodelcontrollerinterface.h:327
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 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.
Controller interface for a CodeCompletionModel.
Definition codecompletionmodelcontrollerinterface.h:71
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 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.
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
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.