3.3. Node

New Node

Creates a new node and connects it as a child of the active node. All the attribute values of this node are left empty.

Remove Active Node

Passes all the children of the active node to its parent and deletes the active node. Does nothing if the active node is the root of the tree.

Insert New Tree

Inserts new tree before the current tree. The new tree consists of one empty node (its root) only.

Insert New Tree After

Inserts new tree after the current tree. The new tree consists of one empty node (its root) only.

Remove Whole Current Tree

Removes the current tree from the file and displays the following tree (or the preceding tree, in case the current tree was the last one in the file).

Copy Trees

Displays a dialog allowing user to copy trees from the current file into another file currently opened in TrEd. The trees are selected by a comma separated list of ranges. The format of the list is the same as in the Print dialog.

Edit Attributes

Displays the Edit Node Attributes dialog box with the list of all attributes defined for the file and the values assigned to them in the active node. There are two types of attributes and therefore two ways to edit them:

  1. In case of an attribute where no fixed set of possible values is given (see FS-format description for details about types of attributes) the values of the attributes are displayed in a editable line and user may change simply edit them. The usual keyboard-shortcuts for Cut (Ctrl+X), Copy (Ctrl+C) and Paste (Ctrl+V) operations may be used during the editing of the values.

  2. In case of attribute where a fixed set of possible values is given, user cannot simply edit the value entry, but to change it he/she must press the button [...] on the right of the value entry. A dialog box displays where user may select one or more (depending on the status of the multiple select check-box) values for the given attribute within the list of values from the predefined set.

Find ...

This command displays a dialog box in which user may specify a search criterion for a node search. The search is based on regular expressions, wild-card patterns or literal strings matching the desired nodes values. In the dialog, there is an entry for each defined attribute into which user may enter a regular expression, exhaustive regular expression (i.e. the pattern must match the whole value being searched), wild-card pattern (where ? matches any character and * matches any number of any characters) or a literal string (depending on the value of the Search method option-menu).

In the Search file-list option-menu, the user may choose a file-list to search through.

When user presses Find button, TrEd searches for the first matching node in the selected file-list (or current file in case the [Current file only] option was selected from the Search file-list menu). A node matches if and only if all its attributes match the given patterns. (If no pattern is given for a certain attributes, these attributes are always considered to match). If a matching node is found, this node is displayed and made active.

Find Next ...

Searches for the first node matching the criteria of the previous use of the Find ... command.

Find Previous ...

Searches for the first preceding node matching the criterion given in a previous use of the Find ... command.