Editing the Tree

See also: Tree, Types of Tree Branches, Tree Toolbar

The tree, which appears in the Analysis View, the Results View, and the Notes View is a hierarchical outline used to organize and edit the main data structures in a LEAP analysis. In most respects the tree works just like the ones in standard Windows tools such as the Windows Explorer. You can rename branches by clicking once on them and typing, and you can expand and collapse the outline by clicking on the +/- symbols to the left of each branch icon. Note that in addition to organizing data in a hierarchical tree, you can also use tags to assign your data to multiple categories.

Additional options to edit the tree can be accessed in a number of ways:

A few of the most common options are worth explaining further:

Select Visible Branches:  This option is available only in a multi-region area and is used to selectively show or hide branches in different regions.

Up and Down: These buttons are used to move relative to its immediate neighbors. Use these buttons to quickly reorder branches, or alternatively you can drag-and-drop branches as you would in Windows Explorer.

Properties (Ctrl-P) sets the properties of a tree branch. Different types of branches have different properties dialogs as follows:

Add (Ctrl-Ins) adds a new branch to the tree. In general new branches are added below the currently highlighted branch. However, when a "leaf" branch such as a Demand device or Transformation process , another branch at the same level will be added. When adding a branch you will be asked to specify the name and properties of the new branch using dialog boxes listed above.

Delete (Ctrl-Del) is used to delete the current highlighted branch and all branches underneath it. You will be asked to confirm the operation before the branch is deleted, but bear in mind that a delete cannot be undone. Note however that you can exit LEAP without saving you data set to restore it to its status prior to the previous Save operation.

Delete All Branches Below Current Branch: Deletes all branches below the current highlighted branch.  Note that locked branches and some other types of branches cannot be deleted.

Cut Branches (Ctrl-X) is used to used to mark a branch and all branches below it to be cut. Select Paste Branches () to move the cut branches to a new position in the tree. Notice that unlike a conventional cut operation in a standard Windows programme, the cut branches operation does not actually delete or copy the branches to the Windows clipboard.

Copy Branches (Ctrl-C) is similar to the Cut operation except that on the subsequent Paste command, branches are subsequently copied not moved. Note that restrictions exist on certain operations. For example, you cannot copy or move branches between the four major categories (Key Assumptions, Demand, Transformation, and Resources) and in most cases you cannot mix branches with different icons at a single level.

Insert Branches From Another Area is used to insert a set of branches located in another LEAP area into the current data set at the currently highlighted branch.

Print: previews and prints the tree. Only those branches that are expanded will be printed, so you may want to right-click on the tree and select Expand All before using the print option.

Find searches the tree for a named branch.

Find Again searches from the current branch for the next occurrence of the text entered in the Find dialog.

Find Fuels searches the branches of the tree for all branches consuming or producing a selected fuel. The results are shown in a separate dialog box as a list of branch names, any one of which can be clicked to jump directly to that branch in the main tree display. This option is only available in the Analysis View.

Font is used to change the typeface and size of displayed tree.

Lock/Unlock is used to lock or unlock a branch and optionally any branches below it. Once locked, a branch cannot be edited.

Drag-and-Drop Editing of Branches

When editing Current Accounts data, you can move a branch (and all branches below it) by dragging and dropping it onto another branch. To copy rather than move a branch, hold down the Ctrl key and then click and drag the branches. This approach allows you to rapidly create data sets, especially those containing many similar groups of branches (for example a household sector with many similar regionally disaggregated subsectors). There are various restrictions on which branches can be dragged and where they can be dropped.