#include <UIText.h>
Inheritance diagram for UIText:

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 () |
Definition at line 35 of file UIText.h.
|
|
constructor.
Definition at line 52 of file UIText.C. References UIObject::app, UIObject::command_wanted, NULL, UIObject::reset, and Command::TOTAL. |
|
|
destructor.
Definition at line 95 of file UIText.C. References TextInterp::logfile_cb. |
|
||||||||||||
|
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. |
|
|
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. |
|
|
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. |
|
|
Definition at line 70 of file UIText.h. References NULL. Referenced by VMDApp::vmd_choose_file. |
|
|
specify new file to read commands from.
Definition at line 119 of file UIText.C. References TextInterp::evalFile. Referenced by VMDApp::logfile_read. |
|
|
set up the interpreter environment.
Definition at line 90 of file UIText.C. References TextInterp::doInit. Referenced by VMDApp::VMDinit. |
|
|
save state to Tcl script. Return success.
Definition at line 107 of file UIText.C. References TextInterp::evalString. Referenced by VMDApp::save_state. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002