Class ::tycho::EditPtcl


Inherits: ::tycho::EditItcl - Source File - Contents: itk_option - public methods - protected method - protected variable
This class defines a text widget with an emacs-like editor with some context-specific features for editing Ptolemy Tcl files. Tcl is an interpreted language developed by John Ousterhout of Berkeley. Ptolemy extends Tcl with new commands, these commands are called ptcl commands.

This editor is like the Tcl editor, but it can also use the oct2ptcl binary to convert Octtools facets to ptcl commands.


Itk_option

-facet
Use oct2ptcl to convert a facet from Oct to Ptcl format. If you configure this option after construction, you must invoke reload to view the facet.

Public constructs

Public Methods

help
Open a help window.
openFacet
Bring up a file browser, allow the user to select an octtools facet, then run oct2ptcl on the facet. Grab the output of oct2ptcl and put it into a buffer.
parseNow start stop
Invoke the base class parser to color comments and the strings "NOTE" and "FIXME". Then tag and color procedure names.
retarget
Open a retarget window.
run iterations
Evaluate the contents of the text window as Tcl commands in the global context. Display and return the result of the evaluation.
stars
Return a list of the stars in the file, organized as { {DOMAIN star} ...}.
tagLinks
This method tags identifiers in the file that are defined elsewhere and are registered for auto-loading in the global array "auto_index". A binding is attached to the tag to perform a hyper jump to the file given in the auto_index array, annotated with the name of the identifier.
universeName
Return the name of the universe.

Protected constructs

Protected Method

commentRegexp
Return the regular expression used to identify line-oriented comments.

Protected Variable

hypcount 0
Counter for hyperlinks.

Index of classes



Author: Christopher Hylands
Version: @(#)EditPtcl.itcl 1.15 11/15/96
Copyright: (c) 1996 The Regents of the University of California.