Index

NAME

BtGuiTkInterpreter -


INCLUDE

include "BtGuiTkInterpreter.h"

SYNTAX

 class BtGuiTkInterpreter : public virtual HandleId
 {
   Tk_Window_* mainWindow_;
   Tcl_Interp* interp_;
   char*       display_;
   int         debug_;
   char*       geometry_;
   char*       buffer_;

   bool        top_level_destroyed_;
   bool        not_finished_;

   String      last_result;

   // Default properties

   String foreground_;
   String background_;

   // List of registered widgets

   List(BtGuiWidget, ListItemHandle) registered_widgets_;

   // Handles the death of a widget
   Handle(BtGuiCallback) death_handler_;

 public:
   BtGuiTkInterpreter();
   ~BtGuiTkInterpreter();

   virtual bool        init(int& argc, const char** argv);

   inline  Tcl_Interp* getInterpreter() const;

   virtual bool        evaluateCommand(String command);

   virtual bool        evaluateFile(String filename);

   inline  String      getResult() const;

   virtual void        registerWidget   (const BtGuiWidget& widget);
   virtual void        unregisterWidget (const String& name);

   virtual void        finish();

   virtual void        mainLoop();

   String              expandFileName(const String& path);
 };


AUTHOR

Trond Vidar Stensby, SINTEF Applied Mathematics