Outline window

Release:

…  • 4.6 •  5.0 •  5.1 •  5.2 •  5.3 •  5.4 •  6.0 •  6.1 •  6.2 •  6.3 •  6.4 •  6.5 •   •  6.6 •  7.0 •  7.1 •  7.2 •  7.3

The Outline window shows the module hierarchy as an expandable outline -- like an expandable list of folders and documents. It gives you an easy way view and navigate a large model containing many modules.

Opening the Outline window

To open the Outline window, click the Outline button in the toolbar . The Outline window highlights the entry for the selected module or variable.

Opening details from an outline

To display a module’s Diagram window, double-click its entry in the outline. To jump to a variable and open the Diagram containing it, double-click its entry in the outline. To display a variable’s Object window, select it and press the Object Window button in the toolbar (). These options are also found on the right-mouse context menu when you right-click on an item.

Hover icons

When the mouse rests briefly on a line of the outline, a small strip of icons appears at the right side of that line -- the same idea as the hover icons on a Diagram window node (see Hover icons). Each icon acts on the object on that line:

  • Diagram -- goes to the object's node in its parent diagram, selecting it. For a module, opens its diagram.
  • Object window -- opens the object's Object window.
  • Edit definition (x+y) -- shows the object's definition in the Attribute panel at the bottom of the Outline window, ready to edit. For a variable defined as a table, an Edit table icon (a grid) appears instead and opens its edit table (see To edit a table).
  • Result -- shows the object's result in a Result window.

An icon appears only when its action applies to that object: for example, there is no Result icon on a module or on a variable with no definition, and the editing and result icons are hidden while a computation is in progress. Clicking an icon first selects that line in the outline, then performs the action.

Expanding and contracting the outline

Each module line has a small triangle to its left. Click the triangle to expand the module (show its contents as an indented list beneath it) or to collapse it again. Alt+click the triangle to expand the module and all the modules inside it, or to collapse them all.

When a module is expanded, a small show-variables control (three short horizontal lines) appears just to the right of its module icon. It lets you choose, per module, whether the expanded module lists all of its contents or only the modules inside it:

  • Blue -- the module's variables, functions and other non-module objects are listed along with its modules.
  • Gray -- only its modules are listed. A gray, italic hint after the module's name, such as (3 objects hidden), tells you how many objects are not being shown.

Click the control to switch between the two. So each module line has three states: collapsed, expanded to show modules only, and fully expanded.

In this example, Costs has been switched to show modules only, so its three variables are hidden, while its submodule Labor still lists its own variables.

Each module remembers its own setting, even when you collapse it and expand it again. A module that you expand for the first time takes the setting of the nearest module above it that has one; at the top level, everything is shown. This per-module control replaces the single Modules Only checkbox of earlier releases, so you can, for example, list just the module structure of one large part of the model while still seeing the variables of another.

Namespaces

A module that is also a namespace (see Namespaces) shows a gray :: after its name, as with Sales plan and Finance in the screenshots above, and System Libraries. The marker reminds you that identifiers inside that module may need to be qualified with the module's identifier (as in Finance::Revenue) when referred to from outside it. The top-level model is always a namespace; any other module becomes one when its NamespaceDefaultScope attribute is set.

Keyboard navigation

When the Outline window has the focus, you can move around the outline with the keyboard:

  • Up / Down arrows move the selection to the previous or next line; Home and End go to the first or last line.
  • Right arrow expands a collapsed module, or, on an expanded module, moves to its first item. Left arrow collapses an expanded module, or otherwise moves to the line of the module that contains the selected item.
  • Shift+Right and Shift+Left turn the show-variables control on or off for the selected module (or for the module containing the selected item).
  • Enter does the same as double-clicking the selected line; Ctrl+Enter opens it in a new window.
  • Typing letters jumps to the next line whose title (or identifier, when identifiers are shown) starts with what you typed. Pausing for a second starts a new search; typing the same letter repeatedly cycles through the matching lines.

System Libraries

The System Libraries folder contains built-in functions, operators and system variables organized by category. Leaving this folder open can be a convenient way to locate the function you need when writing a definition.

Found objects

The Found objects folder contains the "found set" -- the set of objects matching the most recent Find Object results. When using Find Object, press the List button to populate this folder.

The folder actually contains the contents of the Sys_FoundSet system variable. If you want to use an Analytica expression to find a set of matching objects, you can set Sys_FoundSet from a button OnClick or from the Typescript window.

Viewing and editing attributes

The Attribute panel at the bottom of the Outline window works just like the Attribute panel available at the bottom of a Diagram window. To view the attributes of a listed node:

  1. Select the node by clicking it.
  2. Choose the attribute to examine from the Attribute popup menu

See Definitions.

If you edit attributes in this panel, the changes are propagated to any other Attribute panels and Object windows.


Viewing values

To see the Outline window with mid values, select Show With Values from the Object menu. Each variable whose mid value has been evaluated and is an atom displays in the window.

See Also


Comments
Loading comments...