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

KTextEditor

  • KTextEditor
  • TemplateScriptRegistrar
Public Member Functions | List of all members
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.

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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTextEditor

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal