Chapter 2. The Configuration Tool Window

Table of Contents
Configuration Pane
Properties Table
Documentation Pane
Output Pane

Configuration Pane

The Configuration Pane presents a hierarchical view of the configuration.

It behaves as other tree-based views do (such as the desktop explorer). For example, nodes may be expanded or collapsed by double-clicking the node label or by clicking on the left-hand button:

The configuration pane includes controls to change the configuration. Each configurable item is represented by one of the following controls:

Configurable items correspond to preprocessor macros in output header files. The two important attributes of a configurable item are whether the item is defined, and if so, what its value is.

An item is defined (will result in a #define output) if it is enabled. Enabled items are displayed normally; disabled items, and descendants of disabled items, are grayed (see the section called Child Items).

The value of an enabled configurable item is:

Table 2-1. Types of configurable items

TypeHeader File Output
Boolean#define MacroName or #undef MacroName
Radio#define MacroName or #undef MacroName
Integer#define MacroName Value
String#define MacroName Value
Enumeration#define MacroName Value

Child Items

Each boolean, radio and group item can be the ancestor of other items. The state of descendants of Boolean and Radio items depends on their ancestor — if the ancestor item is unset then descendants will be disabled. Disabled descendants are displayed using gray text:

Although the values of grayed items are still visible, they may not be changed unless you first enable the Boolean or Radio ancestor item.

Changing Configurable Item Values

You can change the value of configurable items in two ways — by clicking on the tree control, or by clicking on the cells to the right of the tree.

Using the Tree Control

In-Cell Editing

On the right side of the configuration pane is a vertical gray dividing line which divides the item values from the rest of the tree. This line acts as thin splitter bar and may be dragged left or right as desired. To the right of the divider is a cell for each configurable item.

Clicking on a cell allows you to edit its contents; after choosing or typing a value, click outside of the cell to enter your change.

Boolean, radio and enumeration items are edited using a combo box:

Integer items are edited using an edit box:

String items are of two types: multi-line and single-line strings (see below). Multi-line strings are edited using a pop-up dialog that is invoked by clicking the "edit" button:

Single-line strings are edited using an edit box, as for integer items:

Integer items' values may be specified in hexadecimal or decimal format. Hexadecimal format values may be specified using a leading "0x".

The manner in which integer items are specified using in-cell editing does not affect the header file output format, which is always decimal. All items are assumed to be 32 bits in width, although maximum and minimum values may be used to constrain the range.