OpenWindows Developer's Guide: Motif Conversion Utilities Guide
검색에만이 책은
PDF로 이 문서 다운로드

Using GUIL to Create a UIL File

5

This chapter describes how to create a User Interface Language (UIL) file by running GUIL on a Devguide-created GIL file. See the demo directory to see how to integrate a UIL file into a working prototype. More examples can also be found in MOTIFHOME/share/src.

Generating a UIL File

guil is the executable program that takes the Devguide GIL (.G) or project (.P) file and generates UIL files. The format of the guil command is as follows::

  % guil [option flags] <GIL_filename>  

where GIL_filename is the name of the GIL or project file for which you want to generate code.

Note - You must include the .G or .P suffix when running guil; the man page for guil states that you do not need to include the suffix.

GUIL Command-Line Options

guil provides the following command-line options:

-f

Forces overwrite of existing files; if you have previously run guil in this directory, the existing files will not be overwritten unless you include the -f flag.

-h

Displays a message describing guil usage and options.

-p project

Generates code for a project. When you use -p, GIL_filenmame must be a project name.

-s

Instructs guil to operate silently; no messages will appear.