• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

interfaces

KTextEditor::VariableInterface

KTextEditor::VariableInterface Class Reference

This interface is designed to provide access to "document variables", for example variables defined in files like "kate: variable value;" or the emacs style "-*- variable: value -*-". More...

#include <variableinterface.h>

List of all members.


Public Member Functions

virtual QString variable (const QString &name) const =0
virtual void variableChanged (const QString &variable, const QString &value)=0
 VariableInterface ()
unsigned int variableInterfaceNumber ()
virtual ~VariableInterface ()

Detailed Description

This interface is designed to provide access to "document variables", for example variables defined in files like "kate: variable value;" or the emacs style "-*- variable: value -*-".

The purpose is to allow KTE plugins to use variables. A document implementing this interface should return values for variable that it does not otherwise know how to use, since they could be of interrest to plugins. A document implementing this interface must emit the variableChanged() signal whenever a variable is set that it will return a value for.

KTextEditor interface to Document Variables

Definition at line 41 of file variableinterface.h.


Constructor & Destructor Documentation

VariableInterface::VariableInterface (  ) 

Definition at line 27 of file variableinterface.cpp.

VariableInterface::~VariableInterface (  )  [virtual]

Definition at line 33 of file variableinterface.cpp.


Member Function Documentation

virtual QString KTextEditor::VariableInterface::variable ( const QString &  name  )  const [pure virtual]

Returns:
the value of the variable name, or an empty string if the variable is not set or has no value.

virtual void KTextEditor::VariableInterface::variableChanged ( const QString &  variable,
const QString &  value 
) [pure virtual]

Signal: emitted when a variable is set.

unsigned int VariableInterface::variableInterfaceNumber (  ) 

Definition at line 37 of file variableinterface.cpp.


The documentation for this class was generated from the following files:
  • variableinterface.h
  • variableinterface.cpp

interfaces

Skip menu "interfaces"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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