Google

CCP4 web logo CCP4i: Graphical User Interface
Documentation for Programmers
FileViewer

next button previous button top button

NAME

FileViewer - Display a file in appropriate viewer for the file format.

SYNOPSIS

FileViewer filename

FileViewer0 arrayname filenameVar

Optional Arguments:

-format file_format
-noquery
-viewer procedure

DESCRIPTION

Display the file filename in the appropriate file viewer for the file format. By default the format is derived from the file extension - see the comments on the procedure GetFileFormat. The argument -format can be used to specify the file format file_format. The argument -viewer can be used to specify the procedure which is used to display the file. If the input filename is null or the file does not exist, the FileViewer will query the user to select another file unless the argument -noquery is used.

The alternative version of the procedure FileViewer0 would normally be used in the context of a task interface where the arrayname is the array associated with the task interface and filenameVar is the name of the array element which contains the filename. If the parameters have been correctly defined in the task .def file, the file format for the file is defined and will be used for FileViewer0.

The FileViewer uses a series of different procedures to display the alternative file types. The usual name for a filetype-specific viewer procedure is FILETYPEViewer, so the viewer for filetype LOG is LOGViewer.

KEYWORDS