Kate
#include <snippetstore.h>
Public Member Functions | |
virtual | ~SnippetStore () |
KConfigGroup | getConfig () |
KTextEditor::TemplateScript * | registerScript (const QString &script) |
SnippetRepository * | repositoryForFile (const QString &file) |
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
void | unregisterScript (KTextEditor::TemplateScript *token) |
Static Public Member Functions | |
static void | init (KateSnippetGlobal *plugin) |
static SnippetStore * | self () |
Detailed Description
This class is implemented as singelton.
It represents the model containing all snippet repositories with their snippets.
Definition at line 44 of file snippetstore.h.
Constructor & Destructor Documentation
|
virtual |
Definition at line 55 of file snippetstore.cpp.
Member Function Documentation
KConfigGroup SnippetStore::getConfig | ( | ) |
use KTextEditor::Editor session config object
Definition at line 81 of file snippetstore.cpp.
|
static |
Initialize the SnippetStore.
Definition at line 61 of file snippetstore.cpp.
KTextEditor::TemplateScript * SnippetStore::registerScript | ( | const QString & | script | ) |
Register script
to make it available in snippets.
- Returns
- token identifying the script
- Since
- KDE 4.5
Definition at line 135 of file snippetstore.cpp.
SnippetRepository * SnippetStore::repositoryForFile | ( | const QString & | file | ) |
Returns the repository for the given file
if there is any.
Definition at line 116 of file snippetstore.cpp.
|
static |
Retuns the SnippetStore.
Call init() to set it up first.
Definition at line 67 of file snippetstore.cpp.
|
virtual |
Definition at line 89 of file snippetstore.cpp.
void SnippetStore::unregisterScript | ( | KTextEditor::TemplateScript * | token | ) |
Unregister script identified by token
.
- Since
- KDE 4.5
Definition at line 128 of file snippetstore.cpp.
The documentation for this class was generated from the following files:
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.