4. Viewing and editing the tree structure and attributes

TrEd can be controlled either by keyboard or mouse. There are several pre-defined keyboard hotkeys to move the active-node (cursor) along the tree, to cut or paste subtrees and nodes (i.e modify the structure) and to open the dialog where attributes for the active node can be edited. Trees can also be easily modified by clicking and drag-and-drop. Both of these approaches are described bellow:

4.1. Mouse Control

  • Clicking left or right mouse button on a node activates it.

  • Double clicking left mouse button on a node invokes Node->Edit Attribues command.

  • Double clicking left mouse button on the text of a node's attribute opens a prompt for editing the value of this attribute.

  • Dragging active node with left mouse button moves that node with its subtree to the new location. If user releases the button near another node, the active node becomes son of that node.

  • Dragging active node with right mouse button has the same effect but if the tree is too large to fit the window, the window “scrolls forward” as user gets near its edges.

  • Dragging mouse with the middle mouse button pressed has the same “scrolling effect” described above, but no node is moved.

4.2. Toolbar buttons

The following toolbar-buttons provide mouse-oriented shortcuts for standard menu-commands:

File->Open ...

File->Save

File->Print ...

Node->Find ...

Node->Find Next

Node->Find Previous

File->Previous File

File->Next File

View->Previous Tree

View->Next Tree

View->Customize Attributes...

View->List of sentences...

View->Split view horizontally

View->Split view vertically

View->Close current view

This may have two states. If pressed, all displayed views are tied together, so that pressing or buttons as well as invoking View->Previous tree or View->Next tree applies to all displayed views.

4.3. Keyboard Shortcuts

Cursor keys may be used to activate another node in the structure. Use left/right to activate the nearest left/right brother-node of the active node and up/down to activate the active node's ancestor (parent)/its leftmost son.

Tab and Shift+Tab keys activate the next/previous node on the way along the tree structure.

Enter runs the Node->Edit Attributes command.

To edit the tree structure with keyboard only, use the shortcuts bound to the User-defined menu commands. Most important of those are:

Ctrl+Insert (Cut Subtree)

Cuts the whole subtree of the active node and stores it in an iternal clipboard. It may be then pasted as a subtree of any of the remaining nodes with the Paste Subtree command.

Shift+Insert (Paste Subtree)

Pastes the tree saved in an internal clipboard during the last call of the Cut Subtree command as a subtree of the active node.

Alt+G (Go to...)

Promts user to enter an ordinal number of a tree and displays the tree.

, “comma” (View->Previous Tree)

Displayes the previous tree in the current file. Note, that this shorcuts operates on the focused view only, even if button is pressed and all views are tied.

. “dot” (View->Next Tree)

Displayes the next tree in the current file. Note, that this shorcuts operates on the focused view only, even if button is pressed and all views are tied.