Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gnt(1) — Solaris 2.4 x86 SDK

Media Vault

Software Library

Restoration Projects

Artifacts Sought

GNT(1)

NAME

gnt − Demo program that generates C and NeWS/TNT source code for user interface elements described in a GIL file

SYNOPSIS

gnt [ options ] filename

DESCRIPTION

gnt reads a Graphical Interface Language (GIL) file created by OpenWindows Developer’s Guide, a user interface design editor.  As it reads, gnt generates C and NeWS/TNT source code for the OpenWindows user interface elements. 

Note that GIL files all end with a .G extension.  gnt allows you to specify the filename with or without the extension: both filename.G and filename are acceptable names to specify filename.G to gnt. 

OPTIONS

−s Sets gnt so it works silently, producing no messages while generating source code. 

−v Sets gnt so it is verbose, producing a message each time it generates source code for a user interface element. 

−a Sets gnt so it writes ANSI C.  gnt will write the proper function prototypes for all functions.  The resulting code will work with most ANSI C compilers. This is the default for SVR4. 

−k Sets gnt so it writes K & R C. 

−n Prohibits gnt from saving code from old .c file

−p myproj
Sets gnt so it will generate code for project myproj

−h Sets gnt so it generates only the help text file (the .info file). 

−i Sets gnt to generate a localized PostScript interface file (no string substitution)

−H Print out a help message explaining all gnt options. 

−C Generates C++ compatible code

−m Tells gnt not to execute make as part of gnt

−S Use subclassing for TNT Classes

−u Do not include PostScript files in executable (useful for debugging by modifying the PostScript file)

−I Create message file for localization

−L locale
Argument is the locale code

−d Download entire interface on startup

−x Sets gnt to generate only the strings text file

DIRECTORIES

./src This directory contains files that are created but never modified by gnt

./tmp This directory contains files that are recreated each time that gnt is run. Existing files will be overwritten. 

FILES

project.c<c>
This file contains the initialization routines and client side callbacks generated by gnt.  If this file already exists, the custom code between #ifdef PROTO and #else will be saved to the new version of the file. 

filename.po
This file contains sets of strings to be used for localization.

./tmp/filename.PS
This is the TNT interface file

./tmp/filename_C.cps
This is the client to server communications file

./tmp/filename.h
This is the header file

./tmp/filename_s.c
This contains the strings extracted from the interface.

./src/filename.ps
This file will be loaded before ./tmp/filename.PS.  Typically this file contains subclassing information.

./src/filename_I.ps
This file will be loaded after ./tmp/filename.PS.  Typically this file is used for initialization.

./src/filename_c.cps
This file is for custom client to server routines.

./src/filename_m.c<c>
This file contains main()

./src/filename_p.h<c>
This file is available for custom headers

SEE ALSO

The OpenWindows Developer’s Guide User’s Manual

BUGS

None

SunOS   —  Last change: 16 Oct 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026