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

VMDTkMenu Class Reference

VMDMenu subclass to manage Tk extension menus added by the user. More...

#include <VMDTkMenu.h>

Inheritance diagram for VMDTkMenu:

VMDMenu UIObject List of all members.

Public Methods

 VMDTkMenu (const char *menuname, const char *windowpath, VMDApp *, Tcl_Interp *)
 class constructor and destructor. More...

virtual ~VMDTkMenu ()
int register_proc (const char *newproc)
 register a window creation proc. Return success. More...

virtual void move (int, int)
 Move the menu to a new place on the screen. More...

virtual void where (int &, int &)
 return the current location of the form. More...


Protected Methods

void create_window ()
 registers newly-created window with the window manager. More...

virtual void do_on ()
 virtual routines to handle toolkit-specific actions. More...

virtual void do_off ()

Protected Attributes

Tcl_Interp * interp
 Tcl interpreter handle. More...

char * path
 Tk window path, i.e. .zoomseq. More...

char * windowProc
 Name of proc which returns a window handle; can be used to defer window creation until the first time the menu is turned on. More...


Detailed Description

VMDMenu subclass to manage Tk extension menus added by the user.

Definition at line 28 of file VMDTkMenu.h.


Constructor & Destructor Documentation

VMDTkMenu::VMDTkMenu const char *    menuname,
const char *    windowpath,
VMDApp  ,
Tcl_Interp *   
 

class constructor and destructor.

Definition at line 26 of file VMDTkMenu.C.

References create_window, interp, NULL, path, stringdup, and windowProc.

VMDTkMenu::~VMDTkMenu   [virtual]
 

Definition at line 60 of file VMDTkMenu.C.

References interp, path, and windowProc.


Member Function Documentation

void VMDTkMenu::create_window   [protected]
 

registers newly-created window with the window manager.

Definition at line 39 of file VMDTkMenu.C.

References VMDMenu::get_name, interp, and path.

Referenced by do_on, and VMDTkMenu.

void VMDTkMenu::do_off   [protected, virtual]
 

Reimplemented from UIObject.

Definition at line 94 of file VMDTkMenu.C.

References interp, and path.

void VMDTkMenu::do_on   [protected, virtual]
 

virtual routines to handle toolkit-specific actions.

Reimplemented from UIObject.

Definition at line 72 of file VMDTkMenu.C.

References create_window, VMDMenu::get_name, interp, NULL, path, stringdup, and windowProc.

void VMDTkMenu::move int   ,
int   
[virtual]
 

Move the menu to a new place on the screen.

Implements VMDMenu.

Definition at line 102 of file VMDTkMenu.C.

References interp, and path.

int VMDTkMenu::register_proc const char *    newproc
 

register a window creation proc. Return success.

Definition at line 53 of file VMDTkMenu.C.

References stringdup, and windowProc.

Referenced by text_cmd_menu.

void VMDTkMenu::where int &   ,
int &   
[virtual]
 

return the current location of the form.

Implements VMDMenu.

Definition at line 113 of file VMDTkMenu.C.

References interp, path, and result.


Member Data Documentation

Tcl_Interp* VMDTkMenu::interp [protected]
 

Tcl interpreter handle.

Definition at line 30 of file VMDTkMenu.h.

Referenced by create_window, do_off, do_on, move, VMDTkMenu, where, and ~VMDTkMenu.

char* VMDTkMenu::path [protected]
 

Tk window path, i.e. .zoomseq.

Definition at line 31 of file VMDTkMenu.h.

Referenced by create_window, do_off, do_on, move, VMDTkMenu, where, and ~VMDTkMenu.

char* VMDTkMenu::windowProc [protected]
 

Name of proc which returns a window handle; can be used to defer window creation until the first time the menu is turned on.

Definition at line 35 of file VMDTkMenu.h.

Referenced by do_on, register_proc, VMDTkMenu, and ~VMDTkMenu.


The documentation for this class was generated from the following files:
Generated on Wed Apr 24 02:45:17 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002