KTextEditor
KTextEditor::TemplateScriptRegistrar Class Reference
This is an extension for KTextEditor::Editor. More...
#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.
| TemplateScriptRegistrar::~TemplateScriptRegistrar | ( | ) | [virtual] |
Definition at line 36 of file templateinterface2.cpp.
Member Function Documentation
| virtual TemplateScript* KTextEditor::TemplateScriptRegistrar::registerTemplateScript | ( | QObject * | owner, |
| const QString & | script | ||
| ) | [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.
| virtual void KTextEditor::TemplateScriptRegistrar::unregisterTemplateScript | ( | TemplateScript * | templateScript | ) | [pure virtual] |
This frees the template script which is identified by the token.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference