home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d502 / cells.lha / CELLS / CELLSSource.lzh / cReqHelp.h < prev    next >
C/C++ Source or Header  |  1991-04-20  |  4KB  |  171 lines

  1. /*
  2.  *  CELLS       An Implementation of the WireWorld cellular automata
  3.  *              as described in Scientific American, Jan 1990.
  4.  *
  5.  *              Copyright 1990 by Davide P. Cervone.
  6.  *  You may use this code, provided this copyright notice is kept intact.
  7.  *  See the CELLS.HELP file for complete information on distribution conditions.
  8.  */
  9.  
  10. /*
  11.  *  File:  cReqHelp.h       Defines for the HELP and ABOUT requesters
  12.  */
  13.  
  14.  
  15. /*
  16.  *  Gadget IDs and array positions
  17.  */
  18.  
  19. #define HLP_DONE    0
  20. #define HLP_HELP    1
  21. #define HLP_PARENT  2
  22. #define HLP_TOPICS  3
  23. #define HLP_MORE    4
  24. #define HLP_LIST    5
  25. #define HLP_NAME    6
  26. #define HLP_SLIDE   7
  27. #define HLP_UARROW  8
  28. #define HLP_DARROW  9
  29. #define HLP_TITLE   10
  30. #define HLP_IMGADG  11
  31.  
  32. #define HLP_TEXT    12
  33.  
  34. /*
  35.  *  Array positions
  36.  */
  37.  
  38. #define HLPB_PANEL  0
  39. #define HLPB_FRAME  2
  40. #define HLPB_LIST   4
  41. #define HLPB_NAME   6
  42. #define HLPB_SLIDE  8
  43. #define HLPB_BUTTON 10
  44.  
  45. #define HLPI_NAME   0
  46. #define HLPI_TITLE  1
  47. #define HLPI_SLIDE  2
  48. #define HLPI_BLANK  3
  49. #define HLPI_SELECT 4
  50. #define HLPI_BACK   5
  51.  
  52. #define HLPI_UARROW 3
  53. #define HLPI_DARROW 4
  54.  
  55. #define HLPT_DONE   0
  56. #define HLPT_HELP   1
  57. #define HLPT_PARENT 2
  58. #define HLPT_TOPICS 3
  59. #define HLPT_MORE   4
  60. #define HLPT_TITLE  5
  61. #define HLPT_LIST0  6
  62. #define HLPT_LIST11 17
  63.  
  64. /*
  65.  *  Sizes and screen positions
  66.  */
  67.  
  68. #define HLP_PANELW  237
  69. #define HLP_PANELH  170
  70.  
  71. #define HLP_FRAMEX  3
  72. #define HLP_FRAMEY  11
  73. #define HLP_FRAMEW  (HLP_PANELW-6)
  74. #define HLP_FRAMEH  (HLP_PANELH-14)
  75.  
  76. #define HLP_TITLEX  1
  77. #define HLP_TITLEY  1
  78. #define HLP_TITLEW  (HLP_PANELW-2)
  79. #define HLP_TITLEH  LNAMEH
  80.  
  81. #define HLP_LISTX   (HLP_FRAMEX+3)
  82. #define HLP_LISTY   (HLP_FRAMEY+3)
  83. #define HLP_LISTW   (HLP_NAMEW-SLIDEWH)
  84. #define HLP_LISTH   (12*LNAMEH+2)
  85.  
  86. #define HLP_NAMEX   HLP_LISTX
  87. #define HLP_NAMEY   (HLP_LISTY+HLP_LISTH+2)
  88. #define HLP_NAMEW   (HLP_FRAMEW-6)
  89. #define HLP_NAMEH   TEXTH
  90.  
  91. #define HLP_UARROWX (HLP_LISTX+HLP_LISTW)
  92. #define HLP_UARROWY HLP_LISTY
  93. #define HLP_DARROWX HLP_UARROWX
  94. #define HLP_DARROWY (HLP_SLIDEY+HLP_SLIDEH)
  95.  
  96. #define HLP_SLIDEX  HLP_UARROWX
  97. #define HLP_SLIDEY  (HLP_UARROWY+SLIDEWH)
  98. #define HLP_SLIDEW  SLIDEWH
  99. #define HLP_SLIDEH  (HLP_LISTH-2*SLIDEWH)
  100.  
  101. #define HLP_BUTTONX HLP_NAMEX
  102. #define HLP_BUTTONY (HLP_NAMEY+HLP_NAMEH+2)
  103. #define HLP_BUTTONW 45
  104. #define HLP_BUTTONH TEXTH
  105.  
  106. #define TOPICPEN    BACKGROUND
  107.  
  108. extern struct ExtRequest HLPRequest;        /* the Help Requester */
  109. extern struct ListInfo HlpListInfo;         /* the Help List Gadget info */
  110. extern struct HelpItem DefaultHelp;         /* main (static) default help */
  111. extern struct HelpItem *DefaultHelpTopic;   /* default help (from file) */
  112.  
  113.  
  114. /*
  115.  *  About Box Defines:
  116.  */
  117.  
  118. #define ABT_OK      0
  119. #define ABT_DAVE    1
  120.  
  121. #define ABTB_PANEL  0
  122. #define ABTB_FRAME  2
  123. #define ABTB_BUTTON 4
  124.  
  125. #define ABTT_TITLE  0
  126. #define ABTT_COPYRT 1
  127. #define ABTT_NAME   2
  128. #define ABTT_ADDR   3
  129. #define ABTT_CITY   4
  130. #define ABTT_FREE   5
  131. #define ABTT_OK     6
  132.  
  133. #define ABT_PANELW  191
  134. #define ABT_PANELH  81
  135.  
  136. #define ABT_FRAMEX  3
  137. #define ABT_FRAMEY  11
  138. #define ABT_FRAMEW  (ABT_PANELW-6)
  139. #define ABT_FRAMEH  (ABT_PANELH-14)
  140.  
  141. #define ABT_BUTTONX (ABT_PANELW-ABT_BUTTONW-6)
  142. #define ABT_BUTTONY (ABT_PANELH-ABT_BUTTONH-6)
  143. #define ABT_BUTTONW 25
  144. #define ABT_BUTTONH (TEXTH+2)
  145.  
  146. #define ABT_TITLEY  2
  147. #define ABT_TITLEX  9
  148.  
  149. #define ABT_DAVEX   (ABT_FRAMEX+4)
  150. #define ABT_DAVEY   (ABT_FRAMEY+4)
  151. #define ABT_DAVEW   45
  152. #define ABT_DAVEH   47
  153.  
  154. #define ABT_TEXTX   (ABT_DAVEX+ABT_DAVEW+6)
  155. #define ABT_TEXTY   (ABT_DAVEY+5)
  156. #define ABT_TEXTH   LNAMEH
  157.  
  158. #define ABT_FREEX   (ABT_DAVEX+3)
  159. #define ABT_FREEY   (ABT_PANELH-TEXTH-3)
  160.  
  161. #define ATEXT(n,s,x,y,c)    {c,FOREGROUND,JAM2, x,y, NULL, s, &ABTText[n+1]}
  162. #define ALAST(n,s,x,y,c)    {c,FOREGROUND,JAM2, x,y, NULL, s, NULL}
  163. #define ALINE(n,s)\
  164.    {TEXTPEN,FOREGROUND,JAM2, ABT_TEXTX,ABT_TEXTY+(n-ABTT_COPYRT)*ABT_TEXTH,\
  165.     NULL, s, &ABTText[n+1]}
  166.  
  167. #define TITLEPEN    HIGHLIGHT
  168. #define FREEPEN     BACKGROUND
  169.  
  170. extern struct ExtRequest ABTRequest;
  171.