File Selection Window
Introduction
The File Selection Window appears when the Select button on the
spectrum reading window is operated. It is used to browse through
directories in order to select a file for reading from. It is a
slightly repackaged form of the standard Motif FileSelection Widget.
Description
The window contains ( in top to bottom, left to right order ):
-
A TEXT AREA which is used to specify the directory to be
searched and a pattern to match filenames to. For example,
/home/pcs/X/Motif/*dat
means search directory /home/pcs/X/Motif for files with names
ending in 'dat'.
-
A LIST of directories contained in the directory last searched.
-
A LIST of files matching the pattern last searched for in the
directory last searched.
- A TEXT AREA containing the name of the currently selected file.
Any changes to this name are also echoed in the relevant areas
of the Spectrum Reading Window.
- A set of buttons: Read, Filter, Cancel and Help. The effects of
these are described below.
Operation
To carry out a directory search:
operate the Filter button ( it is called filter because it
filters the filenames in the directory ).
OR
press RETURN while the Filter button is the default button
( this will happen when the current directory or directories
list items have the keyboard focus ).
OR
double click the left mouse button on a directory in the
directories list.
To change the directory to be searched:
edit the 'Current search directory and file search pattern'
area
OR
click the left mouse button on a directory in the directories
list
To change the filename search pattern:
edit the 'Current search directory and file search pattern'
area
To select a file for reading:
click the left mouse button on a filename in the files list
OR
edit the 'Currently Selected File is:' area
In both cases the filename and directory areas of the Spectrum
Reading Window will both be updated.
To read a file:
operate the Read button
OR
press RETURN when the Read button is the default button ( this
will happen when either the files list or the selected file
item has the keyboard focus )
OR
double click on an item in the files list
In each case the file read is the one currently selected. The
other information for the read ( file type, column numbers and
so on ) is taken from the current values of the Spectrum Reading
Window.