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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18. The Menu System<br />

The MENUAUX-mechanism is initiated by the metacommand menuaux in association with a<br />

panel input field (see Section 18.9.2) specifying the auxiliary program to be executed (usually<br />

MENUAUX). Required is the additional metacommand action describing the requested action.<br />

The mechanism may be described by the following example associated with an input field<br />

allowing to select stations for datum definition in <strong>GPS</strong>EST:<br />

STALST 0<br />

## widget = selwin; menuaux = MENUAUX; action = OBS<br />

## menuauxkeys = CONST PSFILES CSFILES PZFILES CZFILES<br />

If the user presses the button related to the selwin widget the menu generates an input<br />

file for program MENUAUX specifying the action OBS and containing the actual values<br />

(corresponding to the current user selections) of the keywords in the <strong>GPS</strong>EST-panel listed in<br />

metacommand menuauxkeys. With this input file ${U}/WORK/MENUAUX.INP pid nnn (nnn<br />

is a running number) the auxiliary program is executed which processes the requested<br />

action (in the example extraction of the station names from the binary observation files<br />

listed in the menuauxkeys, action OBS) and returns the list of station names in a keyword<br />

MENUAUX RESULTS in the same file that acted as MENUAUX input file. The menu in its turn<br />

reads this file, checks for possible error messages (see below), and inserts the list of stations<br />

into the selwin widget which then is displayed to the user. The user does not realize that a<br />

Fortran program was executed in the background and selects the stations to be constrained<br />

from the selection window.<br />

A total of 50 actions are implemented in the menu auxiliary program for <strong>Version</strong> <strong>5.0</strong> ,<br />

see subroutine ${LG}/MENUAUXS.f90. They include all edit actions associated with <strong>Bernese</strong><br />

files (e.g., CRD EDIT, CRD SAVE for editing of <strong>Bernese</strong> coordinate files) and actions such<br />

as browsing of binary observation files, extraction of antenna names from observation file<br />

headers, extraction of header information from residual files, and many more.<br />

MENUAUX runs for each keyword associated with a menuaux metacommand<br />

• if a panel is opened containing the keyword (widgets lineedit or uniline),<br />

• if the user activates a widget associated with the keyword (widget selwin), or<br />

• if the input file is saved.<br />

The MENUAUX-mechanism represents a powerful generic tool allowing to handle a multitude<br />

of special actions that may depend in detail on a specific situation and processing<br />

options. All special actions are implemented in a separate auxiliary program and are activated<br />

through the program input files while the menu program itself keeps its generic<br />

nature.<br />

Special MENUAUX Metacommands<br />

A special mechanism is required to suppress the execution of MENUAUX in order that<br />

keywords retain the user-selected values when the user is returning to a panel containing<br />

menuaux-keywords.<br />

Page 378 AIUB

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

Saved successfully!

Ooh no, something went wrong!