::tycho::Edit
-
Related constructs -
Source File -
Contents:
itk_options
- public methods
- public proc
- protected methods
- protected variable
-directory
-size
2
altFile
appletViewer
back
clear
execTcl
x y
help
hyperJump
filename {point {}} {push 1}
Displayer
object, then open it in
this same window. If the filename is the empty string, then move the
view to a location within the same file. If filename is relative
(does not begin with "/", "~", or "$"), then prepend the directory of
the file currently being viewed. Then, expand the filename using
::tycho::expandPath
and open the resulting file with
::tycho::File::openContext
, which will choose an editor
based on the filename extension. Finally, invoke
seeFragment
to view the specified point within the file.
The format for the point argument depends on the type of file
being opened. For HTML files, it will normally be the name of an
anchor in the file or specified "yview" location within the file. For
text files, it will normally be either "{line linenumber}" or
"{range start end}", where start and end
have the form linenumber.characternumber. If the third
argument, which is optional, has value 0, then the jump is not
recorded for backtracking.
NOTE: This method really should support the syntax "filename#fragment" in the filename argument. Someday.
insertData
data
isRendering
lastDirectory
linkEnter
xpos ypos
openSource
print
raiseWindow
reload
insertData
.
seeFragment
point
{line linenumber} {range startindex endindex} {yview fraction} nameIn the first three forms, the point is a list beginning with the keyword "line", "range", or "yview". If the point has neither of these forms, then it is interpreted as the name of named anchor in the HTML file. In all cases, the background color of the matching text is changed temporarily. Notice that this will not be visible if the "range" form is used and the two indices are equal. As a side effect, the selection (if there is one) is cleared.
setRendering
val
stopRendering
textWinName
windowMenuAddAll
label
windowMenuRemoveAll
filename
render
obj {html {}}
HTML
window.
If the given HTML text is not given or is a null string, then use the
value of the -data option for the given object as the text.
This is a procedure rather than a method because the object it operates
on may be destroyed during the rendering process. It should be invoked
in the background, using "after", not in the constructor!
Otherwise, the constructor does not complete until rendering is
finished. Moreover, the "update" calls in the rendering are dangerous
in a constructor.
preference
mode args
configureContextMenu
isrendering
0