08.06.2013 Views

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

18. The Menu System<br />

The keyword ENVIRONMENT is the interface for the <strong>Bernese</strong> environment variables. The environment<br />

variables listed in option “ENVIRONMENT VARIABLES” (”Menu>Configure>Menu variables”,<br />

see Figure 18.3) are the first column of the keyword values. The second column is the corresponding<br />

value of the environment variable at the moment when the input panel was<br />

saved.<br />

18.9.2.2 Menu Panels in the Input Files<br />

An arbitrary number of keywords delimited by at least one blank line creates the first part<br />

of the input file. However, this first part does not provide all the information needed by the<br />

menu program. The menu program must know how to organize the widgets for displaying<br />

them to the user. This information is stored in the second part of the input file that consists<br />

of an arbitrary number of so-called panels. An example the ASCII definition of a panel is<br />

given in Figure 18.5.<br />

Each panel consists of lines containing the hash mark (#) as the first non-blank character. It<br />

may be insightful to look at the resulting panel displayed in Figure 18.6. It can be seen that<br />

a part of the panel was directly printed to the canvas of the menu window. The rightmost<br />

part of the panel is not shown and the fields like > %%%%%%%% < (masks in our terminology)<br />

are replaced by the widgets.<br />

Nevertheless, we should add some comments:<br />

• The panel actually defines only the size and the position of the widget on the canvas.<br />

All remaining information (first of all the widget type) is given in the description line<br />

of the corresponding keyword.<br />

• The first line of the panel may contain a condition that has to be fulfilled to show<br />

the panel. This provides a mechanism to hide panels that are not necessary under a<br />

specific constellation of options. With NO CONDITION the panel is always displayed.<br />

• The second line of each panel provides a title line containing the program name, an<br />

unambiguous panel number, and a text describing the content of the panel.<br />

• Each panel consists of the lines that might contain the so-called masks. Each mask corresponds<br />

to one keyword. The keyword name is given at the same line in its rightmost<br />

part. There may be more than one masks per line.<br />

• The panel is never changed by the menu. It is a read-only part of the input file.<br />

The relationship between the panel and the keyword structure is given by the keywords (see<br />

Figure 18.4 in our example).<br />

18.9.3 Menu Configuration<br />

In interactive mode the menu command is executed with a single input argument<br />

${U}/PAN/MENU.INP as described in Section 18.2. The user-specific file MENU.INP (see Figure<br />

18.7) contains in a first section the names for files containing the processing defaults,<br />

the menu variables, and the campaign list. The second section stores the settings for the<br />

Page 374 AIUB

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!