KTextEditor
codecompletionmodelcontrollerinterface.h
21 * \class CodeCompletionModelControllerInterface codecompletionmodelcontrollerinterface.h <KTextEditor/CodeCompletionModelControllerInterface>
52 * KTextEditor::Range completionRange(KTextEditor::View* view, const KTextEditor::Cursor &position);
80 virtual bool shouldStartCompletion(View *view, const QString &insertedText, bool userInsertion, const Cursor &position);
132 * The default implementation will return true when any special character was entered, or when the range is empty.
139 virtual bool shouldAbortCompletion(View *view, const Range &range, const QString ¤tCompletion);
142 * When an item within this model is currently selected in the completion-list, and the user inserted the given character,
143 * should the completion-item be executed? This can be used to execute items from other inputs than the return-key.
158 HideListIfAutomaticInvocation = 1, /** If this is returned, the completion-list is hidden if it was invoked automatically */
160 };
165 * \return Whether the completion-list should be hidden on this event. The default-implementation always returns HideListIfAutomaticInvocation
170 * When multiple completion models are used at the same time, it may happen that multiple models add items with the same
171 * name to the list. This option allows to hide items from this completion model when another model with higher priority
180Q_DECLARE_INTERFACE(KTextEditor::CodeCompletionModelControllerInterface, "org.kde.KTextEditor.CodeCompletionModelControllerInterface")
Controller interface for a CodeCompletionModel.
Definition codecompletionmodelcontrollerinterface.h:61
MatchReaction
Definition codecompletionmodelcontrollerinterface.h:156
An object representing a section of text, from one Cursor to another.
Definition include/ktexteditor/range.h:49
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:56:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:56:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.