- Redraw
-
Force TrEd to immediately redraw the current window. Hence TrEd
redraws the tree right after an interactively invoked macro finishes,
explicit calls to Redraw macro are needed rather rearly (for example
from a hook).
- Redraw_FSFile
-
Force TrEd to immediately redraw all windows displaying current
file.
- Redraw_FSFile_Tree
-
Force TrEd to immediately redraw all windows displaying current
tree.
- Redraw_All
-
Force TrEd to immediately redraw all windows.
- RedrawStatusLine
-
Force TrEd to immediately redraw status line.
- StandardTredFont
-
Return a string or Tk::Font object representation of the font used in
TrEd to label tree-nodes.
- StandardTredValueLineFont
-
Return a string or Tk::Font object representation of the font used in
TrEd to display the ``sentence'' above the tree.
- SetCurrentNodeInOtherWin (win, node)
-
Set active node for a given window.
- CenterOtherWinTo (win, node)
-
Center given window to a given node.
- SetDisplayAttrs
-
Use the given list of TrEd's patterns for displaying attributes.
- SetBalloonPattern
-
Use the given pattern as a new hint pattern
- GetDisplayAttrs
-
Get the current list of patterns used by TrEd to display attributes.
- GetBalloonPattern
-
Get TrEd's current hint pattern.
- SwitchContext
-
Switch to given macro context.
- SwitchContextForWindow
-
Switch given window to given macro context.
- CurrentContext
-
Return the name of the current macro context.
- GotoTree (n)
-
Display the n'th tree in the current file.
- TieGotoTree (n)
-
Go to n'th tree in all tied windows.
- TieNextTree
-
Display the next tree in all tied windows.
- TiePrevTree
-
Display the previous tree in all tied windows.
- NextTree
-
Display the next tree in the current file.
- PrevTree
-
Display the previous tree in the current file.
- GetOrd (node)
-
Return value of the special numbering FS attribute. This macro
actually returns the same value as
$node-
{$grp->{FSFile}->FS->order()}>
- PasteNode (node, new-parent)
-
Paste the subtree of the node under the new-parent. The root of the
subtree is placed among other children of new-parent with respect to
the numbering attribute.
- CutPaste (node, new-parent)
-
Cut given node and paste it to a new parent. This macro is safer than
PasteNode since it checks that new-parent isn't a descendant of node
or node itself. This macro dies on error before any change is made.
- CloneSubtree (node)
-
Return an identical copy (except that only declared attributes are
preserved) of the given subtree.
- CopyNode (node)
-
Return an identical copy (except that only declared attributes are
preserved) of the given node.
- CutNode (node)
-
Cut the node's subtree off the tree and return it. By cuttin a subtree
we mean disconnecting it from the rest of the tree. Use PasteNode to
attach it to some node again.
- NewTree
-
Create a new tree before the current tree. The new tree consists of
exactly one node. This node is activated and a reference to its FSNode
object is returned.
- NewTreeAfter
-
Create a new tree after the current tree. The new tree consists of
exactly one node. This node is activated and a reference to its FSNode
object is returned.
- Open ($filename)
-
Open given file.
- Save
-
Save the current file.
- GotoFileNo ($n)
-
Goto n'th file in the current filelist.
- LastFileNo
-
Return the index of the last file in the current filelist.
- CurrentFileNo
-
Return the index of the current file in the current filelist.
- SaveAndNextFile
-
Save the current file and open the next file in the current file-list.
- NextFile
-
Goto next file in the file-list.
- SaveAndPrevFile
-
Save the current file and open the previous file in the current
file-list.
- PrevFile
-
Goto previous file in the file-list.
- EditAttribute (node, attribute)
-
Open edit attribute GUI.
- Find
-
Open the Find Node by Attributes GUI dialog.
- FindNext
-
Searches for the first node matching the criteria of the previous use
of the Find... menu command or FindNode macro usage.
- FindPrev
-
Searches for the previous node matching the criteria of the previous
use of the Find... menu command or FindNode macro usage.
- ToplevelFrame
-
Returns the Tk::Toplevel object containing the current window.
- ErrorMessage (message)
-
In TrEd, show a dialog box containing the given error-message.
In BTrEd print the error message on standard output.
- NewRBrother (node)
-
Create a new brother of the given node and recalculate the special FS
numbering attribute values in the whole tree so that the new node is
the first right sibling of the given node.
-
If no node is given, this function operates on $this
and resets
$this
to the newly created node. If some node is given the value
of $this
is preserved.
- NewLBrother (node)
-
Create a new brother of the given node and recalculate the special FS
numbering attribute values in the whole tree so that the new node is
the first left sibling of the given node.
-
If no node is given, this function operates on $this
and resets
$this
to the newly created node. If some node is given the value
of $this
is preserved.
- NewSon (parent)
-
Create a new child of the given parent node and recalculate the
special FS numbering attribute values in the whole tree so that the
new node is the first node left to the given parent.
-
If no parent node is given, this function operates on $this
and
resets $this
to the newly created node. If a parent node is
given the value of $this
is preserved.
- NewParent (node)
-
Create a node between given node and its parent and recalculate the
special FS numbering attribute values in the whole tree so that the
new node is the first node left to the given node.
-
If no node is given, this function operates on $this
and
resets $this
to the newly created node. If a parent node is
given the value of $this
is preserved.
- DeleteThisNode
-
Delete the current (
$this
) node and recalculate the special FS
numbering attribute values in the whole tree so that there is no gap
in the numbering. If the current node is not a leaf or if it is the
root of the current tree, this macro does nothing.
- CopyValues
-
Copy the values of all the attributes except the special FS numbering
attribute of the current node to a global hash variable named
%ValuesClipboard.
- PasteValues
-
Replace the values of the current node's attributes by those stored in
the global hash variable named %ValuesClipboard.
- NextNode (node, top?)
-
Return the first displayed node following the given node in the
subtree of top. This function behaves in the same manner as the
node->
following(top)
method, except it works only on the nodes which
are actually visible according to the state of the View->Show Hidden
Nodes menu item.
- PrevNode (node,top?)
-
Return the first displayed node preceding the given node in the
subtree of top. This function behaves in the same manner as the
node->
previous(top)
method, except it works only on the nodes which
are actually visible according to the state of the View->Show Hidden
Nodes menu item.
- NextVisibleNode (node,top?)
-
Return the first visible node following the given node in the subtree
of top. This function behaves in the same manner as the
$node-
following($top)> method, except that nodes of hidden subtrees
are skipped.
- PrevVisibleNode (node,top?)
-
Return the first visible node preceding the given node in the subtree
of top. This function behaves in the same manner as the
$node-
previous($top)> method, except that nodes of hidden subtrees
are skipped.
- IsHidden (node)
-
Return true if the given node is member of a hidden subtree. This
macro is only an abbreviation for
$grp-
{FSFile}->FS->isHidden(node)>
- Hide (node)
-
Hide the given node.