Kate
snippetcompletionmodel.cpp
Go to the documentation of this file.
81 void SnippetCompletionModel::completionInvoked(KTextEditor::View *view, const KTextEditor::Range &range, InvocationType invocationType)
93 if ( KTextEditor::HighlightInterface* iface = qobject_cast<KTextEditor::HighlightInterface*>(view->document()) ) {
130 QModelIndex SnippetCompletionModel::index(int row, int column, const QModelIndex& parent) const {
157 KTextEditor::Range SnippetCompletionModel::completionRange(KTextEditor::View* view, const KTextEditor::Cursor& position)
180 bool SnippetCompletionModel::shouldAbortCompletion(KTextEditor::View* view, const KTextEditor::Range& range, const QString& currentCompletion)
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
void clear()
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: snippetcompletionmodel.cpp:148
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
SnippetCompletionModel()
Definition: snippetcompletionmodel.cpp:37
const T & at(int i) const
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: snippetcompletionmodel.cpp:130
bool contains(const QString &str, Qt::CaseSensitivity cs) const
virtual void executeCompletionItem2(KTextEditor::Document *document, const KTextEditor::Range &word, const QModelIndex &index) const
Definition: snippetcompletionmodel.cpp:72
virtual bool shouldAbortCompletion(KTextEditor::View *view, const KTextEditor::Range &range, const QString ¤tCompletion)
Definition: snippetcompletionmodel.cpp:180
qint64 internalId() const
virtual QModelIndex parent(const QModelIndex &index) const
Definition: snippetcompletionmodel.cpp:122
QVariant data(const QModelIndex &idx, int role=Qt::DisplayRole) const
Definition: snippetcompletionmodel.cpp:49
Qt::CheckState checkState() const
virtual KTextEditor::Range completionRange(KTextEditor::View *view, const KTextEditor::Cursor &position)
Definition: snippetcompletionmodel.cpp:157
bool isValid() const
Definition: snippetcompletionitem.h:41
int count(const T &value) const
bool isSpace() const
bool isEmpty() const
bool isEmpty() const
int row() const
void completionInvoked(KTextEditor::View *view, const KTextEditor::Range &range, KTextEditor::CodeCompletionModel::InvocationType invocationType)
Definition: snippetcompletionmodel.cpp:81
Each object of this type represents a repository of snippets.
Definition: snippetrepository.h:52
QModelIndex parent() const
QStandardItem * item(int row, int column) const
~SnippetCompletionModel()
Definition: snippetcompletionmodel.cpp:43
const QChar at(int position) const
virtual int rowCount(const QModelIndex &parent) const
int length() const
int rowCount() const
QStringList fileTypes() const
The valid filetypes for the snippets contained in this repository.
Definition: snippetrepository.cpp:103
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.