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

UIText Class Reference

UIObject class providing text based user interfaces for scripting etc. More...

#include <UIText.h>

Inheritance diagram for UIText:

UIObject List of all members.

Public Methods

 UIText (VMDApp *)
 constructor. More...

virtual ~UIText (void)
 destructor. More...

void read_init (void)
 set up the interpreter environment. More...

int change_interp (const char *interpname)
 change to the text interpreter with the given name. Currently "tcl" and "python" are supported. Return success. More...

void read_from_file (const char *)
 specify new file to read commands from. More...

int save_state (const char *fname)
 save state to Tcl script. Return success. More...

virtual int check_event (void)
 check for an event, and queue it if found. Return TRUE if an event was generated. More...

virtual int act_on_command (int, Command *)
 update the display due to a command being executed. Return whether any action was taken on this command. Arguments are the command type, command object, and the success of the command (T or F). More...

Tcl_Interp * get_tcl_interp ()

Detailed Description

UIObject class providing text based user interfaces for scripting etc.

Definition at line 35 of file UIText.h.


Constructor & Destructor Documentation

UIText::UIText VMDApp  
 

constructor.

Definition at line 52 of file UIText.C.

References UIObject::app, UIObject::command_wanted, NULL, UIObject::reset, and Command::TOTAL.

UIText::~UIText void    [virtual]
 

destructor.

Definition at line 95 of file UIText.C.

References TextInterp::logfile_cb.


Member Function Documentation

int UIText::act_on_command int    cmdtype,
Command   cmd
[virtual]
 

update the display due to a command being executed. Return whether any action was taken on this command. Arguments are the command type, command object, and the success of the command (T or F).

Reimplemented from UIObject.

Definition at line 144 of file UIText.C.

References InterpEvent::do_callback, Command::has_text, Command::INTERP_EVENT, TextInterp::logfile_cb, Inform::reset, and Inform::text.

int UIText::change_interp const char *    interpname
 

change to the text interpreter with the given name. Currently "tcl" and "python" are supported. Return success.

Definition at line 168 of file UIText.C.

References UIObject::app, and strupcmp.

Referenced by VMDApp::textinterp_change.

int UIText::check_event void    [virtual]
 

check for an event, and queue it if found. Return TRUE if an event was generated.

Reimplemented from UIObject.

Definition at line 124 of file UIText.C.

References TextInterp::doEvent, and TextInterp::doTkUpdate.

Tcl_Interp* UIText::get_tcl_interp   [inline]
 

Definition at line 70 of file UIText.h.

References NULL.

Referenced by VMDApp::vmd_choose_file.

void UIText::read_from_file const char *   
 

specify new file to read commands from.

Definition at line 119 of file UIText.C.

References TextInterp::evalFile.

Referenced by VMDApp::logfile_read.

void UIText::read_init void   
 

set up the interpreter environment.

Definition at line 90 of file UIText.C.

References TextInterp::doInit.

Referenced by VMDApp::VMDinit.

int UIText::save_state const char *    fname
 

save state to Tcl script. Return success.

Definition at line 107 of file UIText.C.

References TextInterp::evalString.

Referenced by VMDApp::save_state.


The documentation for this class was generated from the following files:
Generated on Sun Jul 6 01:28:41 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002