• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • interfaces
 

interfaces

  • KTextEditor
  • VariableInterface
Public Member Functions | List of all members
KTextEditor::VariableInterface Class Referenceabstract

#include <variableinterface.h>

Public Member Functions

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

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::VariableInterface ( )

Definition at line 27 of file variableinterface.cpp.

◆ ~VariableInterface()

VariableInterface::~VariableInterface ( )
virtual

Definition at line 33 of file variableinterface.cpp.

Member Function Documentation

◆ variable()

virtual TQString KTextEditor::VariableInterface::variable ( const TQString &  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.

◆ variableChanged()

virtual void KTextEditor::VariableInterface::variableChanged ( const TQString &  variable,
const TQString &  value 
)
pure virtual

Signal: emitted when a variable is set.

◆ variableInterfaceNumber()

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
  • Related Pages

interfaces

Skip menu "interfaces"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for interfaces by doxygen 1.9.4
This website is maintained by Timothy Pearson.