Help - Old:Main menu (until 2.0.22)

From TreeGraph help
ArticleOnOlderVersion.png This article describes this feature for TreeGraph 2.0.22 or (not necessaryly all) earlier versions. See here for the article on the latest version and a list on other available article versions.


The main menu is the major way to access all functions of TreeGraph 2. (Note that most functions can also be accessed by the tool bar, the context menu or a keyboard shortcut.)

An option followed by "..." means that a dialog will be displayed which asks you for further parameters for this function (e.g. Save as...). Other options do not need further parameters (e.g. Select all).

File menu

The file menu contains all options related to opening and saving of tree files and graphic files.

Option: Function:
New Creates a new (unsaved) tree document and opens it in the editor.
Open... Displays a dialog to open a tree file. This option can either be used to open a TreeGraph 2-document (*.xtg) or to import a document in another tree format (e.g. Nexus). (See Open files for details.)
Save Saves the tree file which is currently focused. If this file has just been created you will be asked to specify a file name (same as Save as..).
Save as... Displays a dialog to save the tree file which is currently focused at a new position.
Close Saves the tree file which is currently focused. If that file is unsaved you will be asked whether to save recent changes.
Export to graphic/PDF... Allows you to export the tree in the currently focused file to a graphic file or a PDF. (See Exporting trees as graphics for details.)
Export to Newick/Nexus... Allows you to export the tree in the currently focused file to a Newick or Nexus tree file. (See Exporting trees as Newick/Nexus files for details.)
Add support values... Allows you to import additional node/branch data (e.g. support values) from another tree file into the currently focused tree. (See Adding support values for details.)
Exit Terminates TreeGraph 2. (You will be asked whether to save open tree files.)

Select menu

The options of this menu allow you to select different parts of the currently focused tree. All options can be combined, i.e. all elements selected by an option of this menu are added to previous selection. (See Selecting elements for details on the options describes here.)

Option: Function:
Select all Selects all elements in the tree (including all legends and the scale bar if present).
Select subtree(s) Selects all elements in the subtree(s) under the currently selected elements (not including any legends).
Search text... Selects all text elements which contain a certain text. (See Search text for details. This option is also contained in the Edit menu.)
Select this type(s) in document Selects all elements in the whole document which have the same type as the currently selected elements.
Select this type(s) in subtree(s) Selects all elements in the subtree(s) under the previously selected elements which have the same type as the respective selected root elements.
Select leafs in document Selects all leaf-nodes of the tree.
Select leafs in subtree(s) Selects all leaf-nodes that are contained in one of the subtrees under the currently selected elements.
Select labels with this ID Selects all labels that have the same ID as one of the currently selected labels.
Select labels in subtree(s) Selects all labels that are contained in one of the subtrees under the currently selected elements.
Select all legends Selects all legends in the document.
Select legends with the same position index Selects only such legends that have the same position index as the currently selected legend(s). (See the Legend article to find out what the position index is.)

Edit menu

This menu contains all options that manipulate the structure of a TreeGraph document like or the adding, deleting or moving document elements or changing the contents on any node/branch data.

Undo/Redo

Option: Function:
Undo Restores the state the document had before the last operation (e.g. the change of a format or the deletion of a document element) was executed on it.
Redo Restores the state the document had before the last undo operation was performed (only possible if the last operation was Undo).

Insert/ copy/ delete

Option: Function:
Copy Copies the currently selected element to the clipboard. (See Copying/cutting document elements for details.)
Copy all labels Copies all labels on the currently selected branch to the clipboard. (See Copying/cutting document elements for details.)
Cut Copies the currently selected element to the clipboard and removes it from the document. (See Copying/cutting document elements for details.)
Paste Inserts the content of the clipboard at the selected position. (See Copying/cutting document elements, Inserting nodes or Inserting legends for details.)
Delete Removes the currently selected elements including their subtrees. (See Deleting document elements for details. Use Collapse node if you want to remove a node without deleting its subtree.)

Add elements

Option: Function:
New node Inserts a new node at the selected position. (See Inserting nodes for details.)
New text label... Adds a new text label to the currently selected branch.
New legend Inserts a new legend into the document which is anchored at the currently selected node(s). (See Anchoring legends for details.)

Change the global tree structure

Option: Function:
Move subtree up Moves the currently selected node (including its subtree) upwards. (See Moving nodes for details.)
Move subtree down Moves the currently selected node (including its subtree) downwards. (See Moving nodes for details.)
Ladderize up Sorts all nodes in the subtree of the currently selected node by the number of leafs contained in their subtrees. (See Ladderizing for details.)
Ladderize down Sorts all nodes in the subtree of the currently selected node by the number of leafs contained in their subtrees. (See Ladderizing for details.)
Root here Reroots the tree at the currently selected position. (See Rerooting for details.)

Change the local tree structure

Delete subelements Deletes all subtrees under the currently selected node so that the selected node becomes a leaf.(See Deleting subelements for details.)
Collapse node Deletes the currently selected node and adds all its child nodes to its parent node. (See Collapsing nodes for details.)
Separate branch Separates the currently selected branch into to branches which are separated by a new node. (See Separating branches for details.)

Change text and ID elements

Option: Function:
Edit text... Displays a dialog to edit the text of the currently selected text element. (See Editing text element values for details.)
Change branch length... Displays a dialog to change the branch length of the currently selected branch. Here you can also define if a branch length shall be stored at all. (See Changing branch lengths for details.)
Change ID... Displays a dialog to change the ID of a label or legend. (See Changing a document element ID for details.)
Assign label IDs Automatically assign IDs to all labels in the document which currently have no ID defined. (See the tutorial Automatically assign label IDs for details.)

Node/branch data

Option: Function:
Search text... Selects all text elements which contain a certain text. (See Search text for details. This option is also contained in the Select menu.)
Replace text in node/branch data... Replaces a text in a column of node/branch data. (See Replace text in node/branch data for details. This option is also available in the "Edit branch/node data"-dialog.)
Edit branch/node data... Opens the "Edit branch/node data"-dialog which displays the data of the tree in a table and allows you to edit the data columns. This option is a key feature of TreeGraph 2 which allows a very efficient management of node/branch data. (See Old:Edit node/branch data for details.)
Apply name table to node data... Allows you to translate a node/branch data column with a table (e.g. to transform lab codes to real taxon names). (See Applying name tables for details. This option is also available in the "Edit branch/node data"-dialog.)

Format menu

This menu contains all functionalities to change the formats of tree elements (e.g. color, line width, font etc.).

Option: Function:
Document formats... Displays a dialog to change the document formats (e.g. leaf margin).
Element formats... Displays a dialog to change the element formats of the currently selected documents. This option is the key format option in TreeGraph 2. Together with the selection options you can adjust the layout of your tree very efficiently.
Reanchor legend Sets the currently selected node(s) as the new anchors for the selected legend. (See Anchoring legends for details.)
Set branch widths by node/branch data... Displays a dialog to adjust all branch widths in the document by the values of a node/branch data column. (See Old:Set branch widths by node/branch data for details.)
Set line colors by node/branch data... Displays a dialog to adjust all line colors in the document by the values of a node/branch data column. (See Old:Set line colors by node/branch data for details.)

View menu

Options contained here allow you to change the view on the tree document.

Option: Function:
Zoom to original size Displays the tree in original size. (See Zoom for details.)
Fit zoom to width and height The zoom is changed so that the document fits to the current size of the window. (See Zoom for details.)
Fit zoom to width The zoom is changed so that the tree width equals the current width of the window. (See Zoom for details.)
Fit zoom to height The zoom is changed so that the tree height equals the current height of the window. (See Zoom for details.)
Set zoom... Displays a dialog to specify a user defined zoom factor.
Rectangular cladogram Changes the view mode to Rectangular cladogram (See View modes for details.)
Phylogram/Chronogram Changes the view mode to Phylogram/Chronogram (See View modes for details.)

Window menu

This windows contains options to arrange the document windows automatically as well as a link to all opened documents which brings the according window to the front.

Option: Function:
Tile vertical Arranges all windows in rows. Windows are usually higher than wide which is in most cases the best for way to view trees. (See example below.)
Tile horizontal Arranges all windows in columns. Windows are usually wider than high. (See example below.)
Cascade Arranges all windows on top of each other. (See example below.)

Window arrangements

Help menu

This menu allows you to access this help system and information about your TreeGraph 2 installation.

Option: Function:
Contents Takes you to the Main Page of this help system.
Index Takes you to the alphabetical index of this help system.
Help about this main menu Takes you to this article.
About Displays the About-dialog of TreeGraph 2 which contains information about the program (including version information and the licence).

See also