home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 555a.lha / DrawMap_v3.1_src&libs / sources.LZH / sources / drawmap-help.h next >
Encoding:
C/C++ Source or Header  |  1991-09-14  |  2.7 KB  |  112 lines

  1. /* file drawmap-help.h */
  2.  
  3. #define HWIDTH  450
  4. #define HHEIGHT 340
  5. #define HLEFTEDGE   (WWIDTH-HWIDTH)/2
  6. #define HTOPEDGE    (WHEIGHT-HHEIGHT)/2
  7.  
  8. #define HELPBUFSIZE 10000              /* size of total help buffer */
  9.  
  10. char *helpbuffer = NULL;
  11.  
  12. char helpfilename[] = "drawmap.help";
  13.  
  14. struct Window *hw;
  15.  
  16. struct NewWindow newhelpw = {          /* help window */
  17.     HLEFTEDGE, HTOPEDGE,
  18.     HWIDTH, HHEIGHT,
  19.     WHITE, BLUE,
  20.     GADGETUP,                          /* idcmp */
  21.     SMART_REFRESH | ACTIVATE | BORDERLESS, /* flags */
  22.     NULL,
  23.     NULL,
  24.     NULL,                              /* title */
  25.     NULL,                              /* screen */
  26.     NULL,                              /* bitmap */
  27.     HWIDTH, HHEIGHT,                   /* min size */
  28.     HWIDTH, HHEIGHT,                   /* max size */
  29.     CUSTOMSCREEN
  30.    };
  31.  
  32. SHORT border_data1[] = {               /* border description for */
  33.     0,0,                               /*    help window         */
  34.     HWIDTH-1, 0,
  35.     HWIDTH-2, 1,
  36.     1, 1,
  37.     1, HHEIGHT-2,
  38.     0, HHEIGHT-1,
  39.     0,0
  40. };
  41.  
  42. SHORT border_data2[] = {
  43.     HWIDTH-1, 0,
  44.     HWIDTH-1, HHEIGHT-1,
  45.     0, HHEIGHT-1,
  46.     1, HHEIGHT-2,
  47.     HWIDTH-2, HHEIGHT-2,
  48.     HWIDTH-2, 1,
  49.     HWIDTH-1, 0
  50. };
  51.  
  52. struct Border border2 = {              /* border for help window */
  53.     0,0,
  54.     BLACK, BLUE, JAM1,
  55.     (sizeof(border_data2)/sizeof(SHORT))/2,
  56.     &border_data2[0],
  57.     NULL
  58. };
  59.  
  60. struct Border border1 = {
  61.     0,0,
  62.     WHITE, BLUE, JAM1,
  63.     (sizeof(border_data1)/sizeof(SHORT))/2,
  64.     &border_data1[0],
  65.     &border2
  66. };
  67.  
  68. struct gadget_and_disp  {              /* structure for help gadget */
  69.    char *text;                         /*   text linkage            */
  70.    int disp;
  71. };
  72.  
  73. struct gadget_and_disp gadgetlist[] = { /* list of gadget texts */
  74.  
  75.    { "Box",          -1 },
  76.    { "Box Zoom In",  -1 },
  77.    { "Box Zoom Out", -1 },
  78.    { "Clear Screen", -1 },
  79.    { "Draw Line",    -1 },
  80.    { "Flat",         -1 },
  81.    { "Flood Color",  -1 },
  82.    { "Flood Fill",   -1 },
  83.    { "Globe",        -1 },
  84.    { "Grid",         -1 },
  85.    { "Help",         -1 },
  86.    { "Line Color",   -1 },
  87.    { "Mercator",     -1 },
  88.    { "Orbital",      -1 },
  89.    { "Palette",      -1 },
  90.    { "Print Map",    -1 },
  91.    { "Quit",         -1 },
  92.    { "Reset Colors", -1 },
  93.    { "Save Config",  -1 },
  94.    { "Save Map",     -1 },
  95.    { "Shadow",       -1 },
  96.    { "Text",         -1 },
  97.    { "Text Color",   -1 },
  98.    { "Toggle Title", -1 },
  99.    { "Zoom In",      -1 },
  100.    { "Zoom Out",     -1 },
  101.    { "Exit Help",    -1 }
  102. };
  103.  
  104. #define NUMGADGETS (sizeof (gadgetlist) / sizeof (struct gadget_and_disp))
  105.  
  106. struct GadgetBlock gadgetblocks[NUMGADGETS];
  107.  
  108. #define HGADGETSTARTX 90
  109. #define HGADGETSTARTY 52
  110.  
  111. struct TRStructure trs;                /* structure for help requester */
  112.