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)
Cursor & start()
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
InvocationType
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: snippetcompletionmodel.cpp:130
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
virtual QModelIndex parent(const QModelIndex &index) const
Definition: snippetcompletionmodel.cpp:122
virtual QString highlightingMode() const =0
QVariant data(const QModelIndex &idx, int role=Qt::DisplayRole) const
Definition: snippetcompletionmodel.cpp:49
virtual KTextEditor::Range completionRange(KTextEditor::View *view, const KTextEditor::Cursor &position)
Definition: snippetcompletionmodel.cpp:157
Definition: snippetcompletionitem.h:41
virtual Document * document() const =0
void completionInvoked(KTextEditor::View *view, const KTextEditor::Range &range, KTextEditor::CodeCompletionModel::InvocationType invocationType)
Definition: snippetcompletionmodel.cpp:81
virtual Cursor cursorPosition() const =0
Each object of this type represents a repository of snippets.
Definition: snippetrepository.h:52
void setHasGroups(bool hasGroups)
static const int ColumnCount
virtual QString line(int line) const =0
virtual int line() const
~SnippetCompletionModel()
Definition: snippetcompletionmodel.cpp:43
Cursor & end()
KGuiItem reset()
virtual void setColumn(int column)
int column() 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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.