Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

BtGuiVariable Class Reference

Representation of a Tcl/Tk variable. More...

#include <BtGuiVariable.h>

Inheritance diagram for BtGuiVariable::

BtGuiBase HandleId BtGuiMenuVariable List of all members.

Public Methods

 BtGuiVariable (const BtGuiTkInterpreter &interf, const String &varName="")
 ~BtGuiVariable ()
String variableName () const
void setValue (const String &value)
String getValue ()
virtual void createVariable ()
virtual void updateValue ()

Detailed Description

Representation of a Tcl/Tk variable.

NAME: BtGuiVariable - Representation of a Tcl/Tk variable

DESCRIPTION:

This class provides a C++ interface to a Tcl/Tk variable used by the menu system''s GUI.


Constructor & Destructor Documentation

BtGuiVariable::BtGuiVariable ( const BtGuiTkInterpreter & interf,
const String & varName = "" )
 

There is one constructor accepting a pointer to the Tk interpreter object, and the Tcl/Tk name of the variable.

BtGuiVariable::~BtGuiVariable ( )
 


Member Function Documentation

void BtGuiVariable::createVariable ( ) [virtual]
 

register the variable in the Tcl/Tk interpreter.

String BtGuiVariable::getValue ( )
 

return the buffered value for the Tcl/Tk variable.

void BtGuiVariable::setValue ( const String & value )
 

set a value for the Tcl/Tk variable, affects local copy and the interpreter.

void BtGuiVariable::updateValue ( ) [virtual]
 

update the buffered value by inquiring the Tcl/Tk interpreter.

Reimplemented in BtGuiMenuVariable.

String BtGuiVariable::variableName ( ) const
 

return the name of the Tcl/Tk variable.


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.