home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d502 / cells.lha / CELLS / CELLSSource.lzh / cReqLS.h < prev    next >
C/C++ Source or Header  |  1991-04-20  |  3KB  |  146 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:  cReqLS.h             Defines for the Load/Save file requester
  12.  */
  13.  
  14.  
  15. /*
  16.  *  Gadget IDs and array positions
  17.  */
  18.  
  19. #define LS_LOAD     0
  20. #define LS_DRIVE    1
  21. #define LS_INFO     2
  22. #define LS_DELETE   3
  23. #define LS_MAKEDIR  4
  24. #define LS_CANCEL   5
  25. #define LS_NAME     6
  26. #define LS_NLIST    7
  27. #define LS_SLIDE    8
  28. #define LS_UARROW   9
  29. #define LS_DARROW   10
  30. #define LS_DIR      11
  31. #define LS_DLARROW  12
  32. #define LS_CHECK    13
  33. #define LS_MESSAGE  14
  34. #define LS_BRDRGADG 15
  35. #define LS_IMGADG   16
  36. #define LS_SAVE     17
  37. #define LS_REWRITE  18
  38.  
  39. /*
  40.  *  Array positions
  41.  */
  42.  
  43. #define LSB_PANEL   0
  44. #define LSB_FRAME1  2
  45. #define LSB_FRAME2  4
  46. #define LSB_NAME    6
  47. #define LSB_SLIDE   8
  48. #define LSB_CHECK   10
  49. #define LSB_MESSAGE 12
  50. #define LSB_DIR     14
  51. #define LSB_NLIST   16
  52. #define LSB_BUTTON  18
  53.  
  54. #define LSI_NAME    0
  55. #define LSI_SLIDE   1
  56. #define LSI_SBACK   2
  57. #define LSI_BLANK   3
  58. #define LSI_SELECT  4
  59. #define LSI_DLARROW 5
  60. #define LSI_CHECK   6
  61. #define LSI_NOCHECK 7
  62. #define LSI_MESSAGE 8
  63. #define LSI_DIR     9
  64.  
  65. #define LSI_UARROW  3
  66. #define LSI_DARROW  4
  67.  
  68. #define LST_LOAD    0
  69. #define LST_DRIVE   1
  70. #define LST_INFO    2
  71. #define LST_DELETE  3
  72. #define LST_MAKEDIR 4
  73. #define LST_CANCEL  5
  74. #define LST_DIR     6
  75. #define LST_CHECK   7
  76. #define LST_TITLE   8
  77. #define LST_MESS1   9
  78. #define LST_MESS2   10
  79. #define LST_NLIST0  11
  80. #define LST_NLIST7  18
  81.  
  82.  
  83. /*
  84.  * Sizes and screen positions
  85.  */
  86.  
  87. #define LS_PANELW   212
  88. #define LS_PANELH   160
  89.  
  90. #define LS_FRAME1X  3
  91. #define LS_FRAME1Y  11
  92. #define LS_FRAME1W  (LS_NAMEW+6)
  93. #define LS_FRAME1H  (LS_NLISTH+LS_DIRH+LS_NAMEH+8)
  94.  
  95. #define LS_FRAME2X  (LS_FRAME1W+LS_FRAME1X+2)
  96. #define LS_FRAME2Y  LS_FRAME1Y
  97. #define LS_FRAME2W  (LS_BUTTONW+6)
  98. #define LS_FRAME2H  LS_FRAME1H
  99.  
  100. #define LS_NAMEX    (LS_FRAME1X+3)
  101. #define LS_NAMEY    (LS_FRAME1Y+3)
  102. #define LS_NAMEW    (LS_NLISTW+LS_SLIDEW)
  103. #define LS_NAMEH    TEXTH
  104.  
  105. #define LS_NLISTX   LS_NAMEX
  106. #define LS_NLISTY   (LS_NAMEY+LS_NAMEH+LS_DIRH+2)
  107. #define LS_NLISTW   128
  108. #define LS_NLISTH   82
  109.  
  110. #define LS_SLIDEX   (LS_NLISTX+LS_NLISTW)
  111. #define LS_SLIDEY   (LS_NLISTY+SLIDEWH)
  112. #define LS_SLIDEW   SLIDEWH
  113. #define LS_SLIDEH   (LS_NLISTH-2*SLIDEWH)
  114.  
  115. #define LS_MESSAGEX LS_FRAME1X
  116. #define LS_MESSAGEY (LS_PANELH-LS_MESSAGEH-3)
  117. #define LS_MESSAGEW (LS_PANELW-6)
  118. #define LS_MESSAGEH 20
  119.  
  120. #define LS_DIRX     (LS_NAMEX+TEXTH)
  121. #define LS_DIRY     (LS_NAMEY+LS_NAMEH+2)
  122. #define LS_DIRW     (LS_NAMEW-TEXTH)
  123. #define LS_DIRH     TEXTH
  124.  
  125. #define LS_BUTTONX  (LS_FRAME2X+3)
  126. #define LS_BUTTONY  (LS_FRAME2Y+4)
  127. #define LS_BUTTONW  54
  128. #define LS_BUTTONH  16
  129. #define LS_BUTSEP   (LS_BUTTONH+2)
  130.  
  131. #define LS_UARROWX  LS_SLIDEX
  132. #define LS_UARROWY  LS_NLISTY
  133. #define LS_DARROWX  LS_SLIDEX
  134. #define LS_DARROWY  (LS_NLISTY+LS_NLISTH-SLIDEWH)
  135. #define LS_DLARROWX LS_NLISTX
  136. #define LS_DLARROWY LS_DIRY
  137.  
  138. #define LS_CHECKX   (LS_FRAME1X+6)
  139. #define LS_CHECKY   (LS_FRAME1Y+LS_FRAME1H+2)
  140. #define LS_CHECKW   8
  141. #define LS_CHECKH   8
  142. #define LS_CTEXTW   (30*CHAR_WIDTH)
  143.  
  144. extern struct ExtRequest LSRequest;
  145. extern struct ListInfo LSListInfo;
  146.