00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 #ifndef VMDTKMENU_H
00022 #define VMDTKMENU_H
00023 
00024 #include "VMDMenu.h"
00025 #include <tcl.h>
00026 
00028 class VMDTkMenu: public VMDMenu {
00029 protected:
00030   Tcl_Interp *interp;   
00031   char *path;           
00032 
00035   char *windowProc;
00036 
00038   void create_window();
00039 
00041   virtual void do_on();
00042   virtual void do_off();
00043 
00044 public:
00046   VMDTkMenu(const char *menuname, const char *windowpath, 
00047             VMDApp *, Tcl_Interp *);
00048   virtual ~VMDTkMenu();
00049 
00051   int register_proc(const char *newproc);
00052 
00054   virtual void move(int, int);
00055 
00057   virtual void where(int &, int &);
00058 };
00059 
00060 #endif
00061