KTextEditor
KTextEditor::TemplateScriptRegistrar Class Referenceabstract
#include <templateinterface2.h>
Public Member Functions | |
TemplateScriptRegistrar () | |
virtual | ~TemplateScriptRegistrar () |
virtual TemplateScript * | registerTemplateScript (QObject *owner, const QString &script)=0 |
virtual void | unregisterTemplateScript (TemplateScript *templateScript)=0 |
Detailed Description
This is an extension for KTextEditor::Editor.
- Since
- 4.5
Definition at line 89 of file templateinterface2.h.
Constructor & Destructor Documentation
TemplateScriptRegistrar::TemplateScriptRegistrar | ( | ) |
Definition at line 32 of file templateinterface2.cpp.
|
virtual |
Definition at line 36 of file templateinterface2.cpp.
Member Function Documentation
|
pure virtual |
This registeres the script, which is contained in.
- Parameters
-
script.
- Returns
- the template script pointer, returns an empty QString on error The implementation has to register the script for all views and all documents, == globally If owner is destructed, all scripts owned by it are automatically freed. Scripts have to be self contained. Depending on the underlying editor, there might be some global functions, perhaps there will be a specifiction for a common functionset later on, but not yet.
|
pure virtual |
This frees the template script which is identified by the token.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:48 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:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.