home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 378.lha / MemEater_v1.0 / MemEater-pw.h < prev    next >
C/C++ Source or Header  |  1990-05-02  |  11KB  |  331 lines

  1.  
  2. UBYTE totalAvailGadgetSIBuff[12];
  3. struct StringInfo totalAvailGadgetSInfo = {
  4.   totalAvailGadgetSIBuff,  /* buffer where text will be edited */
  5.   NULL,  /* optional undo buffer */
  6.   0,  /* character position in buffer */
  7.   12,  /* maximum number of characters to allow */
  8.   0,  /* first displayed character buffer position */
  9.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  10.   0,  /* Rastport of gadget */
  11.   0,  /* initial value for integer gadgets */
  12.   NULL  /* alternate keymap (fill in if you set the flag) */
  13. };
  14.  
  15. SHORT BorderVectors1[] = {
  16.   0,0,
  17.   66,0,
  18.   66,9,
  19.   0,9,
  20.   0,0
  21. };
  22. struct Border Border1 = {
  23.   -1,-1,  /* XY origin relative to container TopLeft */
  24.   3,0,JAM1,  /* front pen, back pen and drawmode */
  25.   5,  /* number of XY vectors */
  26.   BorderVectors1,  /* pointer to XY vectors */
  27.   NULL  /* next border in list */
  28. };
  29.  
  30. struct Gadget totalAvailGadget = {
  31.   NULL,  /* next gadget */
  32.   150,60,  /* origin XY of hit box relative to window TopLeft */
  33.   65,8,  /* hit box width and height */
  34.   GADGHBOX+GADGHIMAGE,  /* gadget flags */
  35.   STRINGRIGHT+LONGINT,  /* activation flags */
  36.   STRGADGET,  /* gadget type flags */
  37.   (APTR)&Border1,  /* gadget border or image to be rendered */
  38.   NULL,  /* alternate imagery for selection */
  39.   NULL,  /* first IntuiText structure */
  40.   0,  /* gadget mutual-exclude long word */
  41.   (APTR)&totalAvailGadgetSInfo,  /* SpecialInfo structure */
  42.   TOTAL_AVAIL_GADGET,  /* user-definable data */
  43.   NULL  /* pointer to user-definable data */
  44. };
  45.  
  46. UBYTE fastAvailGadgetSIBuff[12];
  47. struct StringInfo fastAvailGadgetSInfo = {
  48.   fastAvailGadgetSIBuff,  /* buffer where text will be edited */
  49.   NULL,  /* optional undo buffer */
  50.   0,  /* character position in buffer */
  51.   12,  /* maximum number of characters to allow */
  52.   0,  /* first displayed character buffer position */
  53.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  54.   0,  /* Rastport of gadget */
  55.   0,  /* initial value for integer gadgets */
  56.   NULL  /* alternate keymap (fill in if you set the flag) */
  57. };
  58.  
  59. SHORT BorderVectors2[] = {
  60.   0,0,
  61.   66,0,
  62.   66,9,
  63.   0,9,
  64.   0,0
  65. };
  66. struct Border Border2 = {
  67.   -1,-1,  /* XY origin relative to container TopLeft */
  68.   3,0,JAM1,  /* front pen, back pen and drawmode */
  69.   5,  /* number of XY vectors */
  70.   BorderVectors2,  /* pointer to XY vectors */
  71.   NULL  /* next border in list */
  72. };
  73.  
  74. struct Gadget fastAvailGadget = {
  75.   &totalAvailGadget,  /* next gadget */
  76.   150,45,  /* origin XY of hit box relative to window TopLeft */
  77.   65,8,  /* hit box width and height */
  78.   GADGHBOX+GADGHIMAGE,  /* gadget flags */
  79.   STRINGRIGHT+LONGINT,  /* activation flags */
  80.   STRGADGET,  /* gadget type flags */
  81.   (APTR)&Border2,  /* gadget border or image to be rendered */
  82.   NULL,  /* alternate imagery for selection */
  83.   NULL,  /* first IntuiText structure */
  84.   0,  /* gadget mutual-exclude long word */
  85.   (APTR)&fastAvailGadgetSInfo,  /* SpecialInfo structure */
  86.   FAST_AVAIL_GADGET,  /* user-definable data */
  87.   NULL  /* pointer to user-definable data */
  88. };
  89.  
  90. UBYTE chipAvailGadgetSIBuff[12];
  91. struct StringInfo chipAvailGadgetSInfo = {
  92.   chipAvailGadgetSIBuff,  /* buffer where text will be edited */
  93.   NULL,  /* optional undo buffer */
  94.   0,  /* character position in buffer */
  95.   12,  /* maximum number of characters to allow */
  96.   0,  /* first displayed character buffer position */
  97.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  98.   0,  /* Rastport of gadget */
  99.   0,  /* initial value for integer gadgets */
  100.   NULL  /* alternate keymap (fill in if you set the flag) */
  101. };
  102.  
  103. SHORT BorderVectors3[] = {
  104.   0,0,
  105.   66,0,
  106.   66,9,
  107.   0,9,
  108.   0,0
  109. };
  110. struct Border Border3 = {
  111.   -1,-1,  /* XY origin relative to container TopLeft */
  112.   3,0,JAM1,  /* front pen, back pen and drawmode */
  113.   5,  /* number of XY vectors */
  114.   BorderVectors3,  /* pointer to XY vectors */
  115.   NULL  /* next border in list */
  116. };
  117.  
  118. struct Gadget chipAvailGadget = {
  119.   &fastAvailGadget,  /* next gadget */
  120.   150,30,  /* origin XY of hit box relative to window TopLeft */
  121.   65,8,  /* hit box width and height */
  122.   GADGHBOX+GADGHIMAGE,  /* gadget flags */
  123.   STRINGRIGHT+LONGINT,  /* activation flags */
  124.   STRGADGET,  /* gadget type flags */
  125.   (APTR)&Border3,  /* gadget border or image to be rendered */
  126.   NULL,  /* alternate imagery for selection */
  127.   NULL,  /* first IntuiText structure */
  128.   0,  /* gadget mutual-exclude long word */
  129.   (APTR)&chipAvailGadgetSInfo,  /* SpecialInfo structure */
  130.   CHIP_AVAIL_GADGET,  /* user-definable data */
  131.   NULL  /* pointer to user-definable data */
  132. };
  133.  
  134. UBYTE totalWantedGadgetSIBuff[12] =
  135.   "0";
  136. struct StringInfo totalWantedGadgetSInfo = {
  137.   totalWantedGadgetSIBuff,  /* buffer where text will be edited */
  138.   NULL,  /* optional undo buffer */
  139.   0,  /* character position in buffer */
  140.   12,  /* maximum number of characters to allow */
  141.   0,  /* first displayed character buffer position */
  142.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  143.   0,  /* Rastport of gadget */
  144.   0,  /* initial value for integer gadgets */
  145.   NULL  /* alternate keymap (fill in if you set the flag) */
  146. };
  147.  
  148. SHORT BorderVectors4[] = {
  149.   0,0,
  150.   66,0,
  151.   66,9,
  152.   0,9,
  153.   0,0
  154. };
  155. struct Border Border4 = {
  156.   -1,-1,  /* XY origin relative to container TopLeft */
  157.   3,0,JAM1,  /* front pen, back pen and drawmode */
  158.   5,  /* number of XY vectors */
  159.   BorderVectors4,  /* pointer to XY vectors */
  160.   NULL  /* next border in list */
  161. };
  162.  
  163. struct IntuiText IText1 = {
  164.   3,0,JAM2,  /* front and back text pens, drawmode and fill byte */
  165.   -43,0,  /* XY origin relative to container TopLeft */
  166.   NULL,  /* font pointer or NULL for default */
  167.   (UBYTE *)"Total",  /* pointer to text */
  168.   NULL  /* next IntuiText structure */
  169. };
  170.  
  171. struct Gadget totalWantedGadget = {
  172.   &chipAvailGadget,  /* next gadget */
  173.   50,60,  /* origin XY of hit box relative to window TopLeft */
  174.   65,8,  /* hit box width and height */
  175.   GADGHBOX+GADGHIMAGE,  /* gadget flags */
  176.   STRINGRIGHT+LONGINT,  /* activation flags */
  177.   STRGADGET,  /* gadget type flags */
  178.   (APTR)&Border4,  /* gadget border or image to be rendered */
  179.   NULL,  /* alternate imagery for selection */
  180.   &IText1,  /* first IntuiText structure */
  181.   0,  /* gadget mutual-exclude long word */
  182.   (APTR)&totalWantedGadgetSInfo,  /* SpecialInfo structure */
  183.   TOTAL_WANTED_GADGET,  /* user-definable data */
  184.   NULL  /* pointer to user-definable data */
  185. };
  186.  
  187. UBYTE fastWantedGadgetSIBuff[12] =
  188.   "0";
  189. struct StringInfo fastWantedGadgetSInfo = {
  190.   fastWantedGadgetSIBuff,  /* buffer where text will be edited */
  191.   NULL,  /* optional undo buffer */
  192.   0,  /* character position in buffer */
  193.   12,  /* maximum number of characters to allow */
  194.   0,  /* first displayed character buffer position */
  195.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  196.   0,  /* Rastport of gadget */
  197.   0,  /* initial value for integer gadgets */
  198.   NULL  /* alternate keymap (fill in if you set the flag) */
  199. };
  200.  
  201. SHORT BorderVectors5[] = {
  202.   0,0,
  203.   66,0,
  204.   66,9,
  205.   0,9,
  206.   0,0
  207. };
  208. struct Border Border5 = {
  209.   -1,-1,  /* XY origin relative to container TopLeft */
  210.   3,0,JAM1,  /* front pen, back pen and drawmode */
  211.   5,  /* number of XY vectors */
  212.   BorderVectors5,  /* pointer to XY vectors */
  213.   NULL  /* next border in list */
  214. };
  215.  
  216. struct IntuiText IText2 = {
  217.   3,0,JAM2,  /* front and back text pens, drawmode and fill byte */
  218.   -35,0,  /* XY origin relative to container TopLeft */
  219.   NULL,  /* font pointer or NULL for default */
  220.   (UBYTE *)"Fast",  /* pointer to text */
  221.   NULL  /* next IntuiText structure */
  222. };
  223.  
  224. struct Gadget fastWantedGadget = {
  225.   &totalWantedGadget,  /* next gadget */
  226.   50,45,  /* origin XY of hit box relative to window TopLeft */
  227.   65,8,  /* hit box width and height */
  228.   NULL,  /* gadget flags */
  229.   RELVERIFY+ENDGADGET+STRINGRIGHT+LONGINT,  /* activation flags */
  230.   STRGADGET,  /* gadget type flags */
  231.   (APTR)&Border5,  /* gadget border or image to be rendered */
  232.   NULL,  /* alternate imagery for selection */
  233.   &IText2,  /* first IntuiText structure */
  234.   0,  /* gadget mutual-exclude long word */
  235.   (APTR)&fastWantedGadgetSInfo,  /* SpecialInfo structure */
  236.   FAST_WANTED_GADGET,  /* user-definable data */
  237.   NULL  /* pointer to user-definable data */
  238. };
  239.  
  240. UBYTE chipWantedGadgetSIBuff[12] =
  241.   "0";
  242. struct StringInfo chipWantedGadgetSInfo = {
  243.   chipWantedGadgetSIBuff,  /* buffer where text will be edited */
  244.   NULL,  /* optional undo buffer */
  245.   0,  /* character position in buffer */
  246.   12,  /* maximum number of characters to allow */
  247.   0,  /* first displayed character buffer position */
  248.   0,0,0,0,0,  /* Intuition initialized and maintained variables */
  249.   0,  /* Rastport of gadget */
  250.   0,  /* initial value for integer gadgets */
  251.   NULL  /* alternate keymap (fill in if you set the flag) */
  252. };
  253.  
  254. SHORT BorderVectors6[] = {
  255.   0,0,
  256.   66,0,
  257.   66,9,
  258.   0,9,
  259.   0,0
  260. };
  261. struct Border Border6 = {
  262.   -1,-1,  /* XY origin relative to container TopLeft */
  263.   3,0,JAM1,  /* front pen, back pen and drawmode */
  264.   5,  /* number of XY vectors */
  265.   BorderVectors6,  /* pointer to XY vectors */
  266.   NULL  /* next border in list */
  267. };
  268.  
  269. struct IntuiText IText3 = {
  270.   3,0,JAM2,  /* front and back text pens, drawmode and fill byte */
  271.   -35,0,  /* XY origin relative to container TopLeft */
  272.   NULL,  /* font pointer or NULL for default */
  273.   (UBYTE *)"Chip",  /* pointer to text */
  274.   NULL  /* next IntuiText structure */
  275. };
  276.  
  277. struct Gadget chipWantedGadget = {
  278.   &fastWantedGadget,  /* next gadget */
  279.   50,30,  /* origin XY of hit box relative to window TopLeft */
  280.   65,8,  /* hit box width and height */
  281.   NULL,  /* gadget flags */
  282.   RELVERIFY+ENDGADGET+STRINGRIGHT+LONGINT,  /* activation flags */
  283.   STRGADGET,  /* gadget type flags */
  284.   (APTR)&Border6,  /* gadget border or image to be rendered */
  285.   NULL,  /* alternate imagery for selection */
  286.   &IText3,  /* first IntuiText structure */
  287.   0,  /* gadget mutual-exclude long word */
  288.   (APTR)&chipWantedGadgetSInfo,  /* SpecialInfo structure */
  289.   CHIP_WANTED_GADGET,  /* user-definable data */
  290.   NULL  /* pointer to user-definable data */
  291. };
  292.  
  293. #define GadgetList1 chipWantedGadget
  294.  
  295. struct IntuiText IText5 = {
  296.   1,0,JAM2,  /* front and back text pens, drawmode and fill byte */
  297.   149,21,  /* XY origin relative to container TopLeft */
  298.   NULL,  /* font pointer or NULL for default */
  299.   (UBYTE *)"Current(K)",  /* pointer to text */
  300.   NULL  /* next IntuiText structure */
  301. };
  302.  
  303. struct IntuiText IText4 = {
  304.   1,0,JAM2,  /* front and back text pens, drawmode and fill byte */
  305.   50,21,  /* XY origin relative to container TopLeft */
  306.   NULL,  /* font pointer or NULL for default */
  307.   (UBYTE *)"Limits(K)",  /* pointer to text */
  308.   &IText5  /* next IntuiText structure */
  309. };
  310.  
  311. #define IntuiTextList1 IText4
  312.  
  313. struct NewWindow NewWindowStructure1 = {
  314.   56,29,  /* window XY origin relative to TopLeft of screen */
  315.   250,79,  /* window width and height */
  316.   0,1,  /* detail and block pens */
  317.   GADGETDOWN+GADGETUP+CLOSEWINDOW,  /* IDCMP flags */
  318.   WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+RMBTRAP+NOCAREREFRESH,  /* other window flags */
  319.   &chipWantedGadget,  /* first gadget in gadget list */
  320.   NULL,  /* custom CHECKMARK imagery */
  321.   (UBYTE *)"MemEater 1.0",  /* window title */
  322.   NULL,  /* custom screen pointer */
  323.   NULL,  /* custom bitmap */
  324.   5,5,  /* minimum width and height */
  325.   -1,-1,  /* maximum width and height */
  326.   WBENCHSCREEN  /* destination screen type */
  327. };
  328.  
  329.  
  330. /* end of PowerWindows source generation */
  331.