Class ::tycho::EditPtlang


Inherits: ::tycho::EditCpp - Source File - Contents: itk_option - public methods - public proc
This class defines a widget that provides an emacs-like editor specialized for editing ptlang files. Ptlang is the preprocessor language used to define stars in Ptolemy. This class colorizes the code, identifying comments and ptlang keywords, automatically indents the code, and fills blocks of comments. It is derived from the C++ editor, and hence inherits all its features.

Itk_option

-star
The argument to -star should be a two element list that consists of a domain name and a star name. The domain name should be capitalized. for example, the following code will open up the SDF Cosine .pl file
 ::tycho::view EditPtlang {-star {SDF Cos}}
If you configure this option after construction, you must invoke reload to view the new star.

Public constructs

Public Methods

gendocBuffer
Generate and display a doc file. If the doc file already exists and is newer than the source file, then it is simply displayed, not regenerated. NOTE: This is a Unix-specific implementation, since "exec" is used to invoke "ptlang".
help
Open a window with help on the current widget.
parseNow start stop
Tag and color the Ptlang keywords and then invoke the C++ parser.

Public Proc

gendoc filename
Generate and display a doc file. If the doc file already exists and is newer than the source file, then it is simply displayed, not regenerated. NOTE: This is a Unix-specific implementation, since "exec" is used to invoke "ptlang".

Index of classes



Author: Edward A. Lee
Version: @(#)EditPtlang.itcl 1.26 11/29/96
Copyright: (c) 1995-1996 The Regents of the University of California.