home *** CD-ROM | disk | FTP | other *** search
- static char* sccs_gen_h = "%W%%G%";
-
- #include <stdio.h>
- #include <sys/param.h>
- #include <sys/stat.h>
- #include <X11/Xos.h>
- #include <X11/Intrinsic.h>
- #include <X11/StringDefs.h>
- #include <X11/Xaw/Form.h>
- #include <X11/Xaw/Command.h>
- #include <X11/Xaw/MenuButton.h>
- #include <X11/Shell.h>
- #include <X11/Xaw/Cardinals.h>
- #include <stdlib.h>
- #include <malloc.h>
- #include <ctype.h>
- #include <unistd.h>
-
- /*
- Macro for using prototypes if ANSI C is available.
- */
- #ifdef __STDC__
- #define PROTO(x) x
- #else
- #define PROTO(x) ()
- #endif
-
- #define MAXLINE 500
- #define MAXBUTTONS 16 /* max number of "buttons" */
- #define MAXSUBBUTTONS 9 /* max number of sub menu buttons */
- #define NO_OF_COLS 18 /* default number of columns */
- #define W_WIDTH 55 /* width of "button" widgets */
- #define W_HEIGHT 55 /* height of "button" widgets */
-
- #define EDITOR "xterm -e vi " /* editor used to edit icon file. */
- #define FORMATTER "xterm -e vi " /* text formatter for help file */
- #define HELP_VIEWER " " /* viewer for help file */
-
- #define MAXPROCS 20
-
- #define ICON 1
- #define TEXT 2
- #define SUB_MENU 3
- #define END_SUB_MENU 4
- #define UNKNOWN 5
- #define END 6
- #define TEXTPLUS 7
- #define ICONPLUS 8
-
- #ifndef MAXPATHLEN
- #define MAXPATHLEN 1024
- #endif
-
- #define RESOURCE_NAME ".bitmapFilePath: "
- #define RESOURCE_VALUE "/bitmaps"
- /*
- structure for holding info on number of buttons created, number of
- columns & file to be read.
- */
- typedef struct info{
- int no_of_buttons;
- int no_of_columns;
- Boolean sensitive;
- Boolean default_buttons;
- char *icon_file;
- char *help_file;
- }Info;
-
- typedef struct c_id{
- int child_id;
- Widget w_id;
- }ChildInfo;
-
- ChildInfo ci_ptr[MAXPROCS];
-
- /* forward declarations */
- int fprintf(), ungetc(), fclose(), fscanf();
- char *strcpy(), *getenv(), *malloc();
-
- typedef int bool_t;
-
-