Kate
snippetstore.cpp
Go to the documentation of this file.
void unregisterScript(KTextEditor::TemplateScript *token)
Unregister script identified by token.
Definition: snippetstore.cpp:128
QStandardItem * invisibleRootItem() const
KSharedConfig::Ptr sessionConfig
property to tell the editor to use a given session config for session related configuration instead o...
Definition: kateglobal.h:97
KTextEditor::TemplateScript * registerScript(const QString &script)
Register script to make it available in snippets.
Definition: snippetstore.cpp:135
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
static void init(KateSnippetGlobal *plugin)
Initialize the SnippetStore.
Definition: snippetstore.cpp:61
bool isValid() const
void appendRow(const QList< QStandardItem * > &items)
SnippetRepository * repositoryForFile(const QString &file)
Returns the repository for the given file if there is any.
Definition: snippetstore.cpp:116
bool isEmpty() const
void removeRows(int row, int count)
Each object of this type represents a repository of snippets.
Definition: snippetrepository.h:52
QModelIndex parent() const
QStandardItem * item(int row, int column) const
SnippetRepository(const QString &file)
Creates a new SnippetRepository.
Definition: snippetrepository.cpp:52
This is the main class of KDevelop's snippet plugin.
Definition: katesnippetglobal.h:39
const QString & file() const
The path to this repository's file.
Definition: snippetrepository.cpp:88
QStandardItem * itemFromIndex(const QModelIndex &index) const
virtual int rowCount(const QModelIndex &parent) const
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: snippetstore.cpp:89
QString toString() const
typedef ItemFlags
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.