Index

NAME

BtGuiCallback -


INCLUDE

include "BtGuiCallback.h"

SYNTAX

 class BtGuiCallback : public virtual BtGuiBase
 {
   // Tcl name of callback
   String actionName_;

   // Routine to call as callback routine (not memeber of any class)
   bool (*callback_)(int,char**);

   // Tcl commands to run as callback
   StringList  tclCommands_;

 public:
   BtGuiCallback(const BtGuiTkInterpreter& interf, const String& actionName="");
   ~BtGuiCallback();

   inline  String actionName() const;

   void            addTclCommand(const String& tclcommand);

   virtual void setCallbackRoutine(bool (*callback)(int,char**));
   virtual void createCallback();

   virtual bool performeAction(int argc, char** argv);

   void            bindToEvent(const String& tag, const String& event,
                               const String& cmdopt="");
 };


AUTHOR

Trond Vidar Stensby, SINTEF Applied Mathematics