Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   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 *, int guienabled, int mpienabled)
 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  ,
int    guienabled,
int    mpienabled
 

constructor.

Definition at line 56 of file UIText.C.

References NULL, and Command::TOTAL.

UIText::~UIText void    [virtual]
 

destructor.

Definition at line 117 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 197 of file UIText.C.

References UIObject::app, InterpEvent::do_callback, Command::has_text, Command::INTERP_EVENT, TextInterp::logfile_cb, PROFILE_POP_RANGE, PROFILE_PUSH_RANGE, 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 245 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 169 of file UIText.C.

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

Tcl_Interp* UIText::get_tcl_interp   [inline]
 

Definition at line 76 of file UIText.h.

References NULL.

Referenced by py_evaltcl, VMDApp::vmd_choose_file, and VMDApp::VMDexit.

void UIText::read_from_file const char *   
 

specify new file to read commands from.

Definition at line 148 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 109 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 136 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 Fri Nov 8 02:47:24 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002