Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

VMDTkMenu.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr
00003  *cr            (C) Copyright 1995-2019 The Board of Trustees of the
00004  *cr                        University of Illinois
00005  *cr                         All Rights Reserved
00006  *cr
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  * RCS INFORMATION:
00011  *
00012  *      $RCSfile: VMDTkMenu.h,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.13 $       $Date: 2019/01/17 21:21:02 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  *  Class to manage Tk extension menus added by the user.
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 

Generated on Thu Apr 25 02:43:47 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002