#include <UIText.h>
Inheritance diagram for UIText:
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 () |
Definition at line 35 of file UIText.h.
|
constructor.
Definition at line 56 of file UIText.C. References NULL, and Command::TOTAL. |
|
destructor.
Definition at line 117 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 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. |
|
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. |
|
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. |
|
Definition at line 76 of file UIText.h. References NULL. Referenced by py_evaltcl, VMDApp::vmd_choose_file, and VMDApp::VMDexit. |
|
specify new file to read commands from.
Definition at line 148 of file UIText.C. References TextInterp::evalFile. Referenced by VMDApp::logfile_read. |
|
set up the interpreter environment.
Definition at line 109 of file UIText.C. References TextInterp::doInit. Referenced by VMDApp::VMDinit. |
|
save state to Tcl script. Return success.
Definition at line 136 of file UIText.C. References TextInterp::evalString. Referenced by VMDApp::save_state. |