• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

KTextEditor

  • KTextEditor
  • CodeCompletionModelControllerInterface2
Public Types | Public Member Functions | List of all members
KTextEditor::CodeCompletionModelControllerInterface2 Class Reference

#include <codecompletionmodelcontrollerinterface.h>

Inheritance diagram for KTextEditor::CodeCompletionModelControllerInterface2:
Inheritance graph
[legend]

Public Types

enum  MatchReaction { None, HideListIfAutomaticInvocation }
 

Public Member Functions

virtual MatchReaction matchingItem (const QModelIndex &matched)
 
- Public Member Functions inherited from KTextEditor::CodeCompletionModelControllerInterface
 CodeCompletionModelControllerInterface ()
 
virtual ~CodeCompletionModelControllerInterface ()
 
virtual void aborted (View *view)
 
virtual Range completionRange (View *view, const Cursor &position)
 
virtual QString filterString (View *view, const SmartRange &range, const Cursor &position)
 
virtual bool shouldAbortCompletion (View *view, const SmartRange &range, const QString &currentCompletion)
 
virtual bool shouldExecute (const QModelIndex &selected, QChar inserted)
 
virtual bool shouldStartCompletion (View *view, const QString &insertedText, bool userInsertion, const Cursor &position)
 
virtual void updateCompletionRange (View *view, SmartRange &range)
 

Detailed Description

Extension of CodeCompletionModelControllerInterface.

Definition at line 170 of file codecompletionmodelcontrollerinterface.h.

Member Enumeration Documentation

enum KTextEditor::CodeCompletionModelControllerInterface2::MatchReaction
Enumerator
None 
HideListIfAutomaticInvocation 

If this is returned, the completion-list is hidden if it was invoked automatically.

Definition at line 172 of file codecompletionmodelcontrollerinterface.h.

Member Function Documentation

KTextEditor::CodeCompletionModelControllerInterface2::MatchReaction KTextEditor::CodeCompletionModelControllerInterface2::matchingItem ( const QModelIndex &  matched)
virtual

Called whenever an item in the completion-list perfectly matches the current filter text.

Parameters
Theindex that is matched
Returns
Whether the completion-list should be hidden on this event. The default-implementation always returns HideListIfAutomaticInvocation

Definition at line 110 of file codecompletionmodelcontrollerinterface.cpp.


The documentation for this class was generated from the following files:
  • codecompletionmodelcontrollerinterface.h
  • codecompletionmodelcontrollerinterface.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTextEditor

Skip menu "KTextEditor"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal