• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KTextEditor

  • KTextEditor
  • TemplateScriptRegistrar
Public Member Functions

KTextEditor::TemplateScriptRegistrar Class Reference

This is an extension for KTextEditor::Editor. More...

#include <templateinterface2.h>

List of all members.

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:
  • templateinterface2.h
  • templateinterface2.cpp

KTextEditor

Skip menu "KTextEditor"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal