home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / bricon20.zip / bricons / gen.h < prev    next >
C/C++ Source or Header  |  1992-07-30  |  2KB  |  83 lines

  1. static char* sccs_gen_h = "%W%%G%";
  2.  
  3. #include <stdio.h>
  4. #include <sys/param.h>
  5. #include <sys/stat.h>
  6. #include <X11/Xos.h>
  7. #include <X11/Intrinsic.h>
  8. #include <X11/StringDefs.h>
  9. #include <X11/Xaw/Form.h>
  10. #include <X11/Xaw/Command.h>
  11. #include <X11/Xaw/MenuButton.h>
  12. #include <X11/Shell.h>
  13. #include <X11/Xaw/Cardinals.h>
  14. #include <stdlib.h> 
  15. #include <malloc.h>
  16. #include <ctype.h>
  17. #include <unistd.h>
  18.  
  19. /*
  20.     Macro for using prototypes if ANSI C is available.
  21. */
  22. #ifdef __STDC__
  23. #define PROTO(x) x
  24. #else
  25. #define PROTO(x) ()
  26. #endif
  27.  
  28. #define    MAXLINE        500    
  29. #define    MAXBUTTONS    16        /* max number of "buttons" */
  30. #define    MAXSUBBUTTONS    9    /* max number of sub menu buttons */
  31. #define NO_OF_COLS  18        /* default number of columns */
  32. #define    W_WIDTH        55        /* width of "button" widgets */
  33. #define    W_HEIGHT    55        /* height of "button" widgets */
  34.  
  35. #define    EDITOR        "xterm -e "    /* editor used to edit icon file. */
  36. #define    FORMATTER    "xterm -e vi "  /* text formatter for help file */
  37. #define    HELP_VIEWER    " "        /* viewer for help file */
  38.  
  39. #define    MAXPROCS    20
  40.  
  41. #define    ICON        1    
  42. #define    TEXT        2
  43. #define    SUB_MENU    3
  44. #define    END_SUB_MENU    4
  45. #define    UNKNOWN        5
  46. #define    END        6
  47. #define    TEXTPLUS    7
  48. #define    ICONPLUS    8
  49.  
  50. #ifndef MAXPATHLEN
  51. #define MAXPATHLEN    1024
  52. #endif
  53.  
  54. #define    RESOURCE_NAME    ".bitmapFilePath: "
  55. #define    RESOURCE_VALUE    "/bitmaps"
  56. /*
  57.     structure for holding info on number of buttons created, number of
  58.     columns & file to be read.
  59. */
  60. typedef struct    info{
  61.         int    no_of_buttons;
  62.         int    no_of_columns;
  63.         Boolean    sensitive;
  64.         Boolean    default_buttons;
  65.         char    *editor;
  66.         char    *icon_file;
  67.         char    *help_file;
  68. }Info;
  69.  
  70. typedef struct    c_id{
  71.         int    child_id;
  72.         Widget    w_id;
  73. }ChildInfo;
  74.  
  75. ChildInfo    ci_ptr[MAXPROCS];
  76.  
  77. /* forward declarations */
  78. int    fprintf(), ungetc(), fclose(), fscanf();
  79. char    *strcpy(), *getenv(), *malloc(); 
  80.  
  81. typedef int     bool_t;
  82.  
  83.