Kate
snippetcompletionitem.cpp
Go to the documentation of this file.
52 QVariant SnippetCompletionItem::data( const QModelIndex& index, int role, const KTextEditor::CodeCompletionModel2* model ) const
95 KTextEditor::TemplateInterface2* templateIface2 = qobject_cast<KTextEditor::TemplateInterface2*>(view);
101 templateIface2->insertTemplateText(word.start(), m_snippet, values, m_repo->registeredScript());
Cursor & start()
SnippetCompletionItem(Snippet *snippet, SnippetRepository *repo)
Definition: snippetcompletionitem.cpp:40
QVariant data(const QModelIndex &index, int role, const KTextEditor::CodeCompletionModel2 *model) const
Definition: snippetcompletionitem.cpp:52
QString prefix()
virtual bool removeText(const Range &range, bool block=false)=0
void execute(KTextEditor::View *view, const KTextEditor::Range &word)
Definition: snippetcompletionitem.cpp:92
virtual Document * document() const =0
QString completionNamespace() const
The namespace associated with this repository.
Definition: snippetrepository.cpp:127
Each object of this type represents a repository of snippets.
Definition: snippetrepository.h:52
KTextEditor::TemplateScript * registeredScript() const
The token identifying the script in this repository.
Definition: snippetrepository.cpp:142
~SnippetCompletionItem()
Definition: snippetcompletionitem.cpp:48
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.