Kate
katesnippetglobal.cpp
Go to the documentation of this file.
99 KTextEditor::MdiContainer *iface = qobject_cast<KTextEditor::MdiContainer*>(KateGlobal::self()->container());
KateSnippetGlobal(QObject *parent, const QVariantList &args=QVariantList())
Definition: katesnippetglobal.cpp:48
Cursor & start()
void insertSnippet(Snippet *snippet)
Inserts the given snippet into the currently active view.
Definition: katesnippetglobal.cpp:95
virtual bool isValid() const
QScriptValue i18nc(QScriptContext *context, QScriptEngine *engine)
i18nc("context", "text", arguments [optional])
Definition: katescripthelpers.cpp:210
static SnippetRepository * createRepoFromName(const QString &name)
Creates a snippet repository for the given name and adds it to the SnippetStore.
Definition: snippetrepository.cpp:73
This class gets embedded into the right tool view by the KateSnippetGlobal.
Definition: snippetview.h:39
virtual QString highlightingModeAt(const KTextEditor::Cursor &position)
Definition: katedocument.cpp:5406
void showDialog(KateView *view)
Show the snippet dialog, used by most simple apps using just KatePart.
Definition: katesnippetglobal.cpp:61
static void init(KateSnippetGlobal *plugin)
Initialize the SnippetStore.
Definition: snippetstore.cpp:61
virtual const KTextEditor::Range & selectionRange() const
Definition: kateview.cpp:2760
virtual QString mode() const
Return the name of the currently used mode.
Definition: katedocument.cpp:1468
void setFileTypes(const QStringList &filetypes)
Sets the valid filetypes for the snippets contained in this repository.
Definition: snippetrepository.cpp:108
void insertSnippetFromActionData()
Definition: katesnippetglobal.cpp:123
Definition: snippetcompletionitem.h:41
QWidget * snippetWidget()
Create a new snippet widget, to allow to manage and insert snippets.
Definition: katesnippetglobal.cpp:90
void execute(KTextEditor::View *view, const KTextEditor::Range &word)
Definition: snippetcompletionitem.cpp:92
virtual Cursor cursorPosition() const =0
Each object of this type represents a repository of snippets.
Definition: snippetrepository.h:52
Definition: kateview.h:78
virtual const Range & selectionRange() const =0
This dialog is used to create/edit snippets in a given repository.
Definition: editsnippet.h:49
void createSnippet(KateView *view)
Create snippet for given view, e.g.
Definition: katesnippetglobal.cpp:132
virtual View * activeView()=0
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:52 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:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.