home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / printer / supr_lab.lha / SRwindow.h < prev    next >
C/C++ Source or Header  |  1990-02-21  |  30KB  |  937 lines

  1.  
  2. UBYTE UNDOBUFFER[24];
  3.  
  4. SHORT BorderVectors2[] = {
  5.     0,0,
  6.     189,0,
  7.     189,15,
  8.     0,15,
  9.     0,0
  10. };
  11. struct Border Border2 = {
  12.     20,130,    /* XY origin relative to container TopLeft */
  13.     2,0,JAM1,    /* front pen, back pen and drawmode */
  14.     5,    /* number of XY vectors */
  15.     BorderVectors2,    /* pointer to XY vectors */
  16.     NULL    /* next border in list */
  17. };
  18.  
  19. SHORT BorderVectors1[] = {
  20.     0,0,
  21.     78,0,
  22.     78,57,
  23.     0,57,
  24.     0,0
  25. };
  26. struct Border Border1 = {
  27.     244,49,    /* XY origin relative to container TopLeft */
  28.     2,0,JAM1,    /* front pen, back pen and drawmode */
  29.     5,    /* number of XY vectors */
  30.     BorderVectors1,    /* pointer to XY vectors */
  31.     &Border2    /* next border in list */
  32. };
  33.  
  34. struct Gadget Gadget14 = {
  35.     NULL,    /* next gadget */
  36.     0,0,    /* origin XY of hit box relative to window TopLeft */
  37.     1,1,    /* hit box width and height */
  38.     GADGHBOX+GADGHIMAGE,    /* gadget flags */
  39.     NULL,    /* activation flags */
  40.     BOOLGADGET,    /* gadget type flags */
  41.     (APTR)&Border1,    /* gadget border or image to be rendered */
  42.     NULL,    /* alternate imagery for selection */
  43.     NULL,    /* first IntuiText structure */
  44.     NULL,    /* gadget mutual-exclude long word */
  45.     NULL,    /* SpecialInfo structure */
  46.     NULL,    /* user-definable data */
  47.     NULL    /* pointer to user-definable data */
  48. };
  49.  
  50. SHORT BorderVectors3[] = {
  51.     0,0,
  52.     53,0,
  53.     53,13,
  54.     0,13,
  55.     0,0
  56. };
  57. struct Border Border3 = {
  58.     -2,-1,    /* XY origin relative to container TopLeft */
  59.     3,0,JAM1,    /* front pen, back pen and drawmode */
  60.     5,    /* number of XY vectors */
  61.     BorderVectors3,    /* pointer to XY vectors */
  62.     NULL    /* next border in list */
  63. };
  64.  
  65. struct TextAttr TOPAZ60 = {
  66.     (STRPTR)"topaz.font",
  67.     TOPAZ_SIXTY,0,0
  68. };
  69. struct IntuiText IText1 = {
  70.     2,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  71.     7,2,    /* XY origin relative to container TopLeft */
  72.     &TOPAZ60,    /* font pointer or NULL for default */
  73.     (UBYTE *)"STOP",    /* pointer to text */
  74.     NULL    /* next IntuiText structure */
  75. };
  76.  
  77. struct Gadget Stop_Gad = {
  78.     &Gadget14,    /* next gadget */
  79.     259,132,    /* origin XY of hit box relative to window TopLeft */
  80.     50,12,    /* hit box width and height */
  81.     NULL,    /* gadget flags */
  82.     RELVERIFY,    /* activation flags */
  83.     BOOLGADGET,    /* gadget type flags */
  84.     (APTR)&Border3,    /* gadget border or image to be rendered */
  85.     NULL,    /* alternate imagery for selection */
  86.     &IText1,    /* first IntuiText structure */
  87.     NULL,    /* gadget mutual-exclude long word */
  88.     NULL,    /* SpecialInfo structure */
  89.     NULL,    /* user-definable data */
  90.     NULL    /* pointer to user-definable data */
  91. };
  92.  
  93. SHORT BorderVectors4[] = {
  94.     0,0,
  95.     53,0,
  96.     53,13,
  97.     0,13,
  98.     0,0
  99. };
  100. struct Border Border4 = {
  101.     -2,-1,    /* XY origin relative to container TopLeft */
  102.     3,0,JAM1,    /* front pen, back pen and drawmode */
  103.     5,    /* number of XY vectors */
  104.     BorderVectors4,    /* pointer to XY vectors */
  105.     NULL    /* next border in list */
  106. };
  107.  
  108. struct TextAttr TOPAZ80 = {
  109.     (STRPTR)"topaz.font",
  110.     TOPAZ_EIGHTY,0,0
  111. };
  112. struct IntuiText IText2 = {
  113.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  114.     7,2,    /* XY origin relative to container TopLeft */
  115.     &TOPAZ80,    /* font pointer or NULL for default */
  116.     (UBYTE *)"PRINT",    /* pointer to text */
  117.     NULL    /* next IntuiText structure */
  118. };
  119.  
  120. struct Gadget Print_Gad = {
  121.     &Stop_Gad,    /* next gadget */
  122.     259,114,    /* origin XY of hit box relative to window TopLeft */
  123.     50,12,    /* hit box width and height */
  124.     NULL,    /* gadget flags */
  125.     RELVERIFY,    /* activation flags */
  126.     BOOLGADGET,    /* gadget type flags */
  127.     (APTR)&Border4,    /* gadget border or image to be rendered */
  128.     NULL,    /* alternate imagery for selection */
  129.     &IText2,    /* first IntuiText structure */
  130.     NULL,    /* gadget mutual-exclude long word */
  131.     NULL,    /* SpecialInfo structure */
  132.     NULL,    /* user-definable data */
  133.     NULL    /* pointer to user-definable data */
  134. };
  135.  
  136. SHORT BorderVectors5[] = {
  137.     0,0,
  138.     73,0,
  139.     73,13,
  140.     0,13,
  141.     0,0
  142. };
  143. struct Border Border5 = {
  144.     -2,-1,    /* XY origin relative to container TopLeft */
  145.     3,0,JAM1,    /* front pen, back pen and drawmode */
  146.     5,    /* number of XY vectors */
  147.     BorderVectors5,    /* pointer to XY vectors */
  148.     NULL    /* next border in list */
  149. };
  150.  
  151. struct IntuiText IText3 = {
  152.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  153.     12,2,    /* XY origin relative to container TopLeft */
  154.     &TOPAZ80,    /* font pointer or NULL for default */
  155.     (UBYTE *)"5-LINE",    /* pointer to text */
  156.     NULL    /* next IntuiText structure */
  157. };
  158.  
  159. struct Gadget Line5_Gad = {
  160.     &Print_Gad,    /* next gadget */
  161.     248,91,    /* origin XY of hit box relative to window TopLeft */
  162.     70,12,    /* hit box width and height */
  163.     NULL,    /* gadget flags */
  164.     GADGIMMEDIATE,    /* activation flags */
  165.     BOOLGADGET,    /* gadget type flags */
  166.     (APTR)&Border5,    /* gadget border or image to be rendered */
  167.     NULL,    /* alternate imagery for selection */
  168.     &IText3,    /* first IntuiText structure */
  169.     NULL,    /* gadget mutual-exclude long word */
  170.     NULL,    /* SpecialInfo structure */
  171.     NULL,    /* user-definable data */
  172.     NULL    /* pointer to user-definable data */
  173. };
  174.  
  175. SHORT BorderVectors6[] = {
  176.     0,0,
  177.     73,0,
  178.     73,13,
  179.     0,13,
  180.     0,0
  181. };
  182. struct Border Border6 = {
  183.     -2,-1,    /* XY origin relative to container TopLeft */
  184.     3,0,JAM1,    /* front pen, back pen and drawmode */
  185.     5,    /* number of XY vectors */
  186.     BorderVectors6,    /* pointer to XY vectors */
  187.     NULL    /* next border in list */
  188. };
  189.  
  190. struct IntuiText IText4 = {
  191.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  192.     12,2,    /* XY origin relative to container TopLeft */
  193.     &TOPAZ80,    /* font pointer or NULL for default */
  194.     (UBYTE *)"4-LINE",    /* pointer to text */
  195.     NULL    /* next IntuiText structure */
  196. };
  197.  
  198. struct Gadget Line4_Gad = {
  199.     &Line5_Gad,    /* next gadget */
  200.     248,72,    /* origin XY of hit box relative to window TopLeft */
  201.     70,12,    /* hit box width and height */
  202.     NULL,    /* gadget flags */
  203.     GADGIMMEDIATE,    /* activation flags */
  204.     BOOLGADGET,    /* gadget type flags */
  205.     (APTR)&Border6,    /* gadget border or image to be rendered */
  206.     NULL,    /* alternate imagery for selection */
  207.     &IText4,    /* first IntuiText structure */
  208.     NULL,    /* gadget mutual-exclude long word */
  209.     NULL,    /* SpecialInfo structure */
  210.     NULL,    /* user-definable data */
  211.     NULL    /* pointer to user-definable data */
  212. };
  213.  
  214. SHORT BorderVectors7[] = {
  215.     0,0,
  216.     73,0,
  217.     73,13,
  218.     0,13,
  219.     0,0
  220. };
  221. struct Border Border7 = {
  222.     -2,-1,    /* XY origin relative to container TopLeft */
  223.     3,0,JAM1,    /* front pen, back pen and drawmode */
  224.     5,    /* number of XY vectors */
  225.     BorderVectors7,    /* pointer to XY vectors */
  226.     NULL    /* next border in list */
  227. };
  228.  
  229. struct IntuiText IText5 = {
  230.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  231.     12,2,    /* XY origin relative to container TopLeft */
  232.     &TOPAZ80,    /* font pointer or NULL for default */
  233.     (UBYTE *)"3-LINE",    /* pointer to text */
  234.     NULL    /* next IntuiText structure */
  235. };
  236.  
  237. struct Gadget Line3_Gad = {
  238.     &Line4_Gad,    /* next gadget */
  239.     248,53,    /* origin XY of hit box relative to window TopLeft */
  240.     70,12,    /* hit box width and height */
  241.     SELECTED,    /* gadget flags */
  242.     GADGIMMEDIATE,    /* activation flags */
  243.     BOOLGADGET,    /* gadget type flags */
  244.     (APTR)&Border7,    /* gadget border or image to be rendered */
  245.     NULL,    /* alternate imagery for selection */
  246.     &IText5,    /* first IntuiText structure */
  247.     NULL,    /* gadget mutual-exclude long word */
  248.     NULL,    /* SpecialInfo structure */
  249.     NULL,    /* user-definable data */
  250.     NULL    /* pointer to user-definable data */
  251. };
  252.  
  253. UBYTE Copies_GadSIBuff[5] =
  254.     "1";
  255. struct StringInfo Copies_GadSInfo = {
  256.     Copies_GadSIBuff,    /* buffer where text will be edited */
  257.     UNDOBUFFER,    /* optional undo buffer */
  258.     0,    /* character position in buffer */
  259.     5,    /* maximum number of characters to allow */
  260.     0,    /* first displayed character buffer position */
  261.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  262.     0,    /* Rastport of gadget */
  263.     0,    /* initial value for integer gadgets */
  264.     NULL    /* alternate keymap (fill in if you set the flag) */
  265. };
  266.  
  267. SHORT BorderVectors8[] = {
  268.     0,0,
  269.     73,0,
  270.     73,15,
  271.     0,15,
  272.     0,1
  273. };
  274. struct Border Border8 = {
  275.     -1,-4,    /* XY origin relative to container TopLeft */
  276.     3,0,JAM1,    /* front pen, back pen and drawmode */
  277.     5,    /* number of XY vectors */
  278.     BorderVectors8,    /* pointer to XY vectors */
  279.     NULL    /* next border in list */
  280. };
  281.  
  282. struct Gadget Copies_Gad = {
  283.     &Line3_Gad,    /* next gadget */
  284.     246,28,    /* origin XY of hit box relative to window TopLeft */
  285.     64,10,    /* hit box width and height */
  286.     NULL,    /* gadget flags */
  287.     STRINGCENTER+LONGINT,    /* activation flags */
  288.     STRGADGET,    /* gadget type flags */
  289.     (APTR)&Border8,    /* gadget border or image to be rendered */
  290.     NULL,    /* alternate imagery for selection */
  291.     NULL,    /* first IntuiText structure */
  292.     NULL,    /* gadget mutual-exclude long word */
  293.     (APTR)&Copies_GadSInfo,    /* SpecialInfo structure */
  294.     NULL,    /* user-definable data */
  295.     NULL    /* pointer to user-definable data */
  296. };
  297.  
  298. SHORT BorderVectors9[] = {
  299.     0,0,
  300.     83,0,
  301.     83,11,
  302.     0,11,
  303.     0,0
  304. };
  305. struct Border Border9 = {
  306.     -2,-1,    /* XY origin relative to container TopLeft */
  307.     3,0,JAM1,    /* front pen, back pen and drawmode */
  308.     5,    /* number of XY vectors */
  309.     BorderVectors9,    /* pointer to XY vectors */
  310.     NULL    /* next border in list */
  311. };
  312.  
  313. struct IntuiText IText6 = {
  314.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  315.     12,1,    /* XY origin relative to container TopLeft */
  316.     &TOPAZ80,    /* font pointer or NULL for default */
  317.     (UBYTE *)"19-CHAR",    /* pointer to text */
  318.     NULL    /* next IntuiText structure */
  319. };
  320.  
  321. struct Gadget Char19_Gad = {
  322.     &Copies_Gad,    /* next gadget */
  323.     124,133,    /* origin XY of hit box relative to window TopLeft */
  324.     80,10,    /* hit box width and height */
  325.     NULL,    /* gadget flags */
  326.     GADGIMMEDIATE,    /* activation flags */
  327.     BOOLGADGET,    /* gadget type flags */
  328.     (APTR)&Border9,    /* gadget border or image to be rendered */
  329.     NULL,    /* alternate imagery for selection */
  330.     &IText6,    /* first IntuiText structure */
  331.     NULL,    /* gadget mutual-exclude long word */
  332.     NULL,    /* SpecialInfo structure */
  333.     NULL,    /* user-definable data */
  334.     NULL    /* pointer to user-definable data */
  335. };
  336.  
  337. SHORT BorderVectors10[] = {
  338.     0,0,
  339.     83,0,
  340.     83,11,
  341.     0,11,
  342.     0,0
  343. };
  344. struct Border Border10 = {
  345.     -2,-1,    /* XY origin relative to container TopLeft */
  346.     3,0,JAM1,    /* front pen, back pen and drawmode */
  347.     5,    /* number of XY vectors */
  348.     BorderVectors10,    /* pointer to XY vectors */
  349.     NULL    /* next border in list */
  350. };
  351.  
  352. struct IntuiText IText7 = {
  353.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  354.     12,1,    /* XY origin relative to container TopLeft */
  355.     &TOPAZ80,    /* font pointer or NULL for default */
  356.     (UBYTE *)"23-CHAR",    /* pointer to text */
  357.     NULL    /* next IntuiText structure */
  358. };
  359.  
  360. struct Gadget Char23_Gad = {
  361.     &Char19_Gad,    /* next gadget */
  362.     26,133,    /* origin XY of hit box relative to window TopLeft */
  363.     80,10,    /* hit box width and height */
  364.     SELECTED,    /* gadget flags */
  365.     GADGIMMEDIATE,    /* activation flags */
  366.     BOOLGADGET,    /* gadget type flags */
  367.     (APTR)&Border10,    /* gadget border or image to be rendered */
  368.     NULL,    /* alternate imagery for selection */
  369.     &IText7,    /* first IntuiText structure */
  370.     NULL,    /* gadget mutual-exclude long word */
  371.     NULL,    /* SpecialInfo structure */
  372.     NULL,    /* user-definable data */
  373.     NULL    /* pointer to user-definable data */
  374. };
  375.  
  376. UBYTE TextL5_GadSIBuff[24];
  377. struct StringInfo TextL5_GadSInfo = {
  378.     TextL5_GadSIBuff,    /* buffer where text will be edited */
  379.     UNDOBUFFER,    /* optional undo buffer */
  380.     0,    /* character position in buffer */
  381.     24,    /* maximum number of characters to allow */
  382.     0,    /* first displayed character buffer position */
  383.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  384.     0,    /* Rastport of gadget */
  385.     0,    /* initial value for integer gadgets */
  386.     NULL    /* alternate keymap (fill in if you set the flag) */
  387. };
  388.  
  389. SHORT BorderVectors11[] = {
  390.     0,0,
  391.     202,0,
  392.     202,15,
  393.     0,15,
  394.     0,1
  395. };
  396. struct Border Border11 = {
  397.     -2,-4,    /* XY origin relative to container TopLeft */
  398.     3,0,COMPLEMENT,    /* front pen, back pen and drawmode */
  399.     5,    /* number of XY vectors */
  400.     BorderVectors11,    /* pointer to XY vectors */
  401.     NULL    /* next border in list */
  402. };
  403.  
  404. struct Gadget TextL5_Gad = {
  405.     &Char23_Gad,    /* next gadget */
  406.     17,110,    /* origin XY of hit box relative to window TopLeft */
  407.     197,8,    /* hit box width and height */
  408.     GADGDISABLED,    /* gadget flags */
  409.     NULL,    /* activation flags */
  410.     STRGADGET,    /* gadget type flags */
  411.     (APTR)&Border11,    /* gadget border or image to be rendered */
  412.     NULL,    /* alternate imagery for selection */
  413.     NULL,    /* first IntuiText structure */
  414.     NULL,    /* gadget mutual-exclude long word */
  415.     (APTR)&TextL5_GadSInfo,    /* SpecialInfo structure */
  416.     NULL,    /* user-definable data */
  417.     NULL    /* pointer to user-definable data */
  418. };
  419.  
  420. UBYTE TextL4_GadSIBuff[24];
  421. struct StringInfo TextL4_GadSInfo = {
  422.     TextL4_GadSIBuff,    /* buffer where text will be edited */
  423.     UNDOBUFFER,    /* optional undo buffer */
  424.     0,    /* character position in buffer */
  425.     24,    /* maximum number of characters to allow */
  426.     0,    /* first displayed character buffer position */
  427.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  428.     0,    /* Rastport of gadget */
  429.     0,    /* initial value for integer gadgets */
  430.     NULL    /* alternate keymap (fill in if you set the flag) */
  431. };
  432.  
  433. SHORT BorderVectors12[] = {
  434.     0,0,
  435.     202,0,
  436.     202,15,
  437.     0,15,
  438.     0,1
  439. };
  440. struct Border Border12 = {
  441.     -2,-4,    /* XY origin relative to container TopLeft */
  442.     3,0,COMPLEMENT,    /* front pen, back pen and drawmode */
  443.     5,    /* number of XY vectors */
  444.     BorderVectors12,    /* pointer to XY vectors */
  445.     NULL    /* next border in list */
  446. };
  447.  
  448. struct Gadget TextL4_Gad = {
  449.     &TextL5_Gad,    /* next gadget */
  450.     17,90,    /* origin XY of hit box relative to window TopLeft */
  451.     197,8,    /* hit box width and height */
  452.     GADGDISABLED,    /* gadget flags */
  453.     NULL,    /* activation flags */
  454.     STRGADGET,    /* gadget type flags */
  455.     (APTR)&Border12,    /* gadget border or image to be rendered */
  456.     NULL,    /* alternate imagery for selection */
  457.     NULL,    /* first IntuiText structure */
  458.     NULL,    /* gadget mutual-exclude long word */
  459.     (APTR)&TextL4_GadSInfo,    /* SpecialInfo structure */
  460.     NULL,    /* user-definable data */
  461.     NULL    /* pointer to user-definable data */
  462. };
  463.  
  464. UBYTE TextL3_GadSIBuff[24];
  465. struct StringInfo TextL3_GadSInfo = {
  466.     TextL3_GadSIBuff,    /* buffer where text will be edited */
  467.     UNDOBUFFER,    /* optional undo buffer */
  468.     0,    /* character position in buffer */
  469.     24,    /* maximum number of characters to allow */
  470.     0,    /* first displayed character buffer position */
  471.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  472.     0,    /* Rastport of gadget */
  473.     0,    /* initial value for integer gadgets */
  474.     NULL    /* alternate keymap (fill in if you set the flag) */
  475. };
  476.  
  477. SHORT BorderVectors13[] = {
  478.     0,0,
  479.     202,0,
  480.     202,15,
  481.     0,15,
  482.     0,1
  483. };
  484. struct Border Border13 = {
  485.     -2,-4,    /* XY origin relative to container TopLeft */
  486.     3,0,COMPLEMENT,    /* front pen, back pen and drawmode */
  487.     5,    /* number of XY vectors */
  488.     BorderVectors13,    /* pointer to XY vectors */
  489.     NULL    /* next border in list */
  490. };
  491.  
  492. struct Gadget TextL3_Gad = {
  493.     &TextL4_Gad,    /* next gadget */
  494.     17,70,    /* origin XY of hit box relative to window TopLeft */
  495.     197,8,    /* hit box width and height */
  496.     NULL,    /* gadget flags */
  497.     NULL,    /* activation flags */
  498.     STRGADGET,    /* gadget type flags */
  499.     (APTR)&Border13,    /* gadget border or image to be rendered */
  500.     NULL,    /* alternate imagery for selection */
  501.     NULL,    /* first IntuiText structure */
  502.     NULL,    /* gadget mutual-exclude long word */
  503.     (APTR)&TextL3_GadSInfo,    /* SpecialInfo structure */
  504.     NULL,    /* user-definable data */
  505.     NULL    /* pointer to user-definable data */
  506. };
  507.  
  508. UBYTE TextL2_GadSIBuff[24];
  509. struct StringInfo TextL2_GadSInfo = {
  510.     TextL2_GadSIBuff,    /* buffer where text will be edited */
  511.     UNDOBUFFER,    /* optional undo buffer */
  512.     0,    /* character position in buffer */
  513.     24,    /* maximum number of characters to allow */
  514.     0,    /* first displayed character buffer position */
  515.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  516.     0,    /* Rastport of gadget */
  517.     0,    /* initial value for integer gadgets */
  518.     NULL    /* alternate keymap (fill in if you set the flag) */
  519. };
  520.  
  521. SHORT BorderVectors14[] = {
  522.     0,0,
  523.     202,0,
  524.     202,15,
  525.     0,15,
  526.     0,1
  527. };
  528. struct Border Border14 = {
  529.     -2,-4,    /* XY origin relative to container TopLeft */
  530.     3,0,COMPLEMENT,    /* front pen, back pen and drawmode */
  531.     5,    /* number of XY vectors */
  532.     BorderVectors14,    /* pointer to XY vectors */
  533.     NULL    /* next border in list */
  534. };
  535.  
  536. struct Gadget TextL2_Gad = {
  537.     &TextL3_Gad,    /* next gadget */
  538.     17,49,    /* origin XY of hit box relative to window TopLeft */
  539.     197,8,    /* hit box width and height */
  540.     NULL,    /* gadget flags */
  541.     NULL,    /* activation flags */
  542.     STRGADGET,    /* gadget type flags */
  543.     (APTR)&Border14,    /* gadget border or image to be rendered */
  544.     NULL,    /* alternate imagery for selection */
  545.     NULL,    /* first IntuiText structure */
  546.     NULL,    /* gadget mutual-exclude long word */
  547.     (APTR)&TextL2_GadSInfo,    /* SpecialInfo structure */
  548.     NULL,    /* user-definable data */
  549.     NULL    /* pointer to user-definable data */
  550. };
  551.  
  552. UBYTE TextL1_GadSIBuff[24];
  553. struct StringInfo TextL1_GadSInfo = {
  554.     TextL1_GadSIBuff,    /* buffer where text will be edited */
  555.     UNDOBUFFER,    /* optional undo buffer */
  556.     0,    /* character position in buffer */
  557.     24,    /* maximum number of characters to allow */
  558.     0,    /* first displayed character buffer position */
  559.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  560.     0,    /* Rastport of gadget */
  561.     0,    /* initial value for integer gadgets */
  562.     NULL    /* alternate keymap (fill in if you set the flag) */
  563. };
  564.  
  565. SHORT BorderVectors15[] = {
  566.     0,0,
  567.     202,0,
  568.     202,15,
  569.     0,15,
  570.     0,1
  571. };
  572. struct Border Border15 = {
  573.     -2,-4,    /* XY origin relative to container TopLeft */
  574.     3,0,COMPLEMENT,    /* front pen, back pen and drawmode */
  575.     5,    /* number of XY vectors */
  576.     BorderVectors15,    /* pointer to XY vectors */
  577.     NULL    /* next border in list */
  578. };
  579.  
  580. struct Gadget TextL1_Gad = {
  581.     &TextL2_Gad,    /* next gadget */
  582.     17,28,    /* origin XY of hit box relative to window TopLeft */
  583.     197,8,    /* hit box width and height */
  584.     NULL,    /* gadget flags */
  585.     NULL,    /* activation flags */
  586.     STRGADGET,    /* gadget type flags */
  587.     (APTR)&Border15,    /* gadget border or image to be rendered */
  588.     NULL,    /* alternate imagery for selection */
  589.     NULL,    /* first IntuiText structure */
  590.     NULL,    /* gadget mutual-exclude long word */
  591.     (APTR)&TextL1_GadSInfo,    /* SpecialInfo structure */
  592.     NULL,    /* user-definable data */
  593.     NULL    /* pointer to user-definable data */
  594. };
  595.  
  596. #define GadgetList1 TextL1_Gad
  597.  
  598. struct IntuiText IText8 = {
  599.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  600.     19,0,    /* XY origin relative to container TopLeft */
  601.     NULL,    /* font pointer or NULL for default */
  602.     (UBYTE *)"Epson",    /* pointer to text */
  603.     NULL    /* next IntuiText structure */
  604. };
  605.  
  606. struct MenuItem SubItem2 = {
  607.     NULL,    /* next SubItem structure */
  608.     75,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  609.     69,8,    /* hit box width and height */
  610.     CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  611.     1,    /* each bit mutually-excludes a same-level Item */
  612.     (APTR)&IText8,    /* Item render  (IntuiText or Image or NULL) */
  613.     NULL,    /* Select render */
  614.     NULL,    /* alternate command-key */
  615.     NULL,    /* no SubItem list for SubItems */
  616.     MENUNULL    /* filled in by Intuition for drag selections */
  617. };
  618.  
  619. struct IntuiText IText9 = {
  620.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  621.     19,0,    /* XY origin relative to container TopLeft */
  622.     NULL,    /* font pointer or NULL for default */
  623.     (UBYTE *)"Amiga",    /* pointer to text */
  624.     NULL    /* next IntuiText structure */
  625. };
  626.  
  627. struct MenuItem SubItem1 = {
  628.     &SubItem2,    /* next SubItem structure */
  629.     75,-8,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  630.     69,8,    /* hit box width and height */
  631.     CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP+CHECKED,    /* Item flags */
  632.     2,    /* each bit mutually-excludes a same-level Item */
  633.     (APTR)&IText9,    /* Item render  (IntuiText or Image or NULL) */
  634.     NULL,    /* Select render */
  635.     NULL,    /* alternate command-key */
  636.     NULL,    /* no SubItem list for SubItems */
  637.     MENUNULL    /* filled in by Intuition for drag selections */
  638. };
  639.  
  640. struct IntuiText IText10 = {
  641.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  642.     0,0,    /* XY origin relative to container TopLeft */
  643.     NULL,    /* font pointer or NULL for default */
  644.     (UBYTE *)"Printer",    /* pointer to text */
  645.     NULL    /* next IntuiText structure */
  646. };
  647.  
  648. struct MenuItem MenuItem2 = {
  649.     NULL,    /* next MenuItem structure */
  650.     0,9,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  651.     90,8,    /* hit box width and height */
  652.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  653.     0,    /* each bit mutually-excludes a same-level Item */
  654.     (APTR)&IText10,    /* Item render  (IntuiText or Image or NULL) */
  655.     NULL,    /* Select render */
  656.     NULL,    /* alternate command-key */
  657.     &SubItem1,    /* SubItem list */
  658.     MENUNULL    /* filled in by Intuition for drag selections */
  659. };
  660.  
  661. struct IntuiText IText11 = {
  662.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  663.     19,0,    /* XY origin relative to container TopLeft */
  664.     NULL,    /* font pointer or NULL for default */
  665.     (UBYTE *)"Off",    /* pointer to text */
  666.     NULL    /* next IntuiText structure */
  667. };
  668.  
  669. struct MenuItem SubItem4 = {
  670.     NULL,    /* next SubItem structure */
  671.     75,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  672.     49,8,    /* hit box width and height */
  673.     CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP+CHECKED,    /* Item flags */
  674.     1,    /* each bit mutually-excludes a same-level Item */
  675.     (APTR)&IText11,    /* Item render  (IntuiText or Image or NULL) */
  676.     NULL,    /* Select render */
  677.     NULL,    /* alternate command-key */
  678.     NULL,    /* no SubItem list for SubItems */
  679.     MENUNULL    /* filled in by Intuition for drag selections */
  680. };
  681.  
  682. struct IntuiText IText12 = {
  683.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  684.     19,0,    /* XY origin relative to container TopLeft */
  685.     NULL,    /* font pointer or NULL for default */
  686.     (UBYTE *)"On",    /* pointer to text */
  687.     NULL    /* next IntuiText structure */
  688. };
  689.  
  690. struct MenuItem SubItem3 = {
  691.     &SubItem4,    /* next SubItem structure */
  692.     75,-8,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  693.     49,8,    /* hit box width and height */
  694.     CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  695.     2,    /* each bit mutually-excludes a same-level Item */
  696.     (APTR)&IText12,    /* Item render  (IntuiText or Image or NULL) */
  697.     NULL,    /* Select render */
  698.     NULL,    /* alternate command-key */
  699.     NULL,    /* no SubItem list for SubItems */
  700.     MENUNULL    /* filled in by Intuition for drag selections */
  701. };
  702.  
  703. struct IntuiText IText13 = {
  704.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  705.     0,0,    /* XY origin relative to container TopLeft */
  706.     NULL,    /* font pointer or NULL for default */
  707.     (UBYTE *)"Centering",    /* pointer to text */
  708.     NULL    /* next IntuiText structure */
  709. };
  710.  
  711. struct MenuItem MenuItem1 = {
  712.     &MenuItem2,    /* next MenuItem structure */
  713.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  714.     90,8,    /* hit box width and height */
  715.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  716.     0,    /* each bit mutually-excludes a same-level Item */
  717.     (APTR)&IText13,    /* Item render  (IntuiText or Image or NULL) */
  718.     NULL,    /* Select render */
  719.     NULL,    /* alternate command-key */
  720.     &SubItem3,    /* SubItem list */
  721.     MENUNULL    /* filled in by Intuition for drag selections */
  722. };
  723.  
  724. struct Menu Menu2 = {
  725.     NULL,    /* next Menu structure */
  726.     82,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  727.     75,0,    /* Menu hit box width and height */
  728.     MENUENABLED,    /* Menu flags */
  729.     "Options",    /* text of Menu name */
  730.     &MenuItem1    /* MenuItem linked list pointer */
  731. };
  732.  
  733. struct IntuiText IText14 = {
  734.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  735.     0,0,    /* XY origin relative to container TopLeft */
  736.     NULL,    /* font pointer or NULL for default */
  737.     (UBYTE *)"Quit",    /* pointer to text */
  738.     NULL    /* next IntuiText structure */
  739. };
  740.  
  741. struct MenuItem MenuItem5 = {
  742.     NULL,    /* next MenuItem structure */
  743.     0,18,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  744.     90,8,    /* hit box width and height */
  745.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  746.     0,    /* each bit mutually-excludes a same-level Item */
  747.     (APTR)&IText14,    /* Item render  (IntuiText or Image or NULL) */
  748.     NULL,    /* Select render */
  749.     NULL,    /* alternate command-key */
  750.     NULL,    /* SubItem list */
  751.     MENUNULL    /* filled in by Intuition for drag selections */
  752. };
  753.  
  754. struct IntuiText IText15 = {
  755.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  756.     0,0,    /* XY origin relative to container TopLeft */
  757.     NULL,    /* font pointer or NULL for default */
  758.     (UBYTE *)"About",    /* pointer to text */
  759.     NULL    /* next IntuiText structure */
  760. };
  761.  
  762. struct MenuItem MenuItem4 = {
  763.     &MenuItem5,    /* next MenuItem structure */
  764.     0,9,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  765.     90,8,    /* hit box width and height */
  766.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  767.     0,    /* each bit mutually-excludes a same-level Item */
  768.     (APTR)&IText15,    /* Item render  (IntuiText or Image or NULL) */
  769.     NULL,    /* Select render */
  770.     'a',    /* alternate command-key */
  771.     NULL,    /* SubItem list */
  772.     MENUNULL    /* filled in by Intuition for drag selections */
  773. };
  774.  
  775. struct IntuiText IText16 = {
  776.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  777.     0,0,    /* XY origin relative to container TopLeft */
  778.     NULL,    /* font pointer or NULL for default */
  779.     (UBYTE *)"Help",    /* pointer to text */
  780.     NULL    /* next IntuiText structure */
  781. };
  782.  
  783. struct MenuItem MenuItem3 = {
  784.     &MenuItem4,    /* next MenuItem structure */
  785.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  786.     90,8,    /* hit box width and height */
  787.     ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,    /* Item flags */
  788.     0,    /* each bit mutually-excludes a same-level Item */
  789.     (APTR)&IText16,    /* Item render  (IntuiText or Image or NULL) */
  790.     NULL,    /* Select render */
  791.     'h',    /* alternate command-key */
  792.     NULL,    /* SubItem list */
  793.     MENUNULL    /* filled in by Intuition for drag selections */
  794. };
  795.  
  796. struct Menu Menu1 = {
  797.     &Menu2,    /* next Menu structure */
  798.     0,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  799.     75,0,    /* Menu hit box width and height */
  800.     MENUENABLED,    /* Menu flags */
  801.     "Project",    /* text of Menu name */
  802.     &MenuItem3    /* MenuItem linked list pointer */
  803. };
  804.  
  805. #define MenuList1 Menu1
  806.  
  807. struct IntuiText IText23 = {
  808.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  809.     260,13,    /* XY origin relative to container TopLeft */
  810.     &TOPAZ80,    /* font pointer or NULL for default */
  811.     (UBYTE *)"Copies",    /* pointer to text */
  812.     NULL    /* next IntuiText structure */
  813. };
  814.  
  815. struct IntuiText IText22 = {
  816.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  817.     4,110,    /* XY origin relative to container TopLeft */
  818.     &TOPAZ60,    /* font pointer or NULL for default */
  819.     (UBYTE *)"5",    /* pointer to text */
  820.     &IText23    /* next IntuiText structure */
  821. };
  822.  
  823. struct IntuiText IText21 = {
  824.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  825.     4,90,    /* XY origin relative to container TopLeft */
  826.     &TOPAZ60,    /* font pointer or NULL for default */
  827.     (UBYTE *)"4",    /* pointer to text */
  828.     &IText22    /* next IntuiText structure */
  829. };
  830.  
  831. struct IntuiText IText20 = {
  832.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  833.     4,71,    /* XY origin relative to container TopLeft */
  834.     &TOPAZ60,    /* font pointer or NULL for default */
  835.     (UBYTE *)"3",    /* pointer to text */
  836.     &IText21    /* next IntuiText structure */
  837. };
  838.  
  839. struct IntuiText IText19 = {
  840.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  841.     4,50,    /* XY origin relative to container TopLeft */
  842.     &TOPAZ60,    /* font pointer or NULL for default */
  843.     (UBYTE *)"2",    /* pointer to text */
  844.     &IText20    /* next IntuiText structure */
  845. };
  846.  
  847. struct IntuiText IText18 = {
  848.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  849.     4,27,    /* XY origin relative to container TopLeft */
  850.     &TOPAZ60,    /* font pointer or NULL for default */
  851.     (UBYTE *)"1",    /* pointer to text */
  852.     &IText19    /* next IntuiText structure */
  853. };
  854.  
  855. struct IntuiText IText17 = {
  856.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  857.     50,13,    /* XY origin relative to container TopLeft */
  858.     &TOPAZ60,    /* font pointer or NULL for default */
  859.     (UBYTE *)"Lines of Text",    /* pointer to text */
  860.     &IText18    /* next IntuiText structure */
  861. };
  862.  
  863. #define IntuiTextList1 IText17
  864.  
  865. struct NewWindow NewWindowStructure1 = {
  866.     77,40,    /* window XY origin relative to TopLeft of screen */
  867.     338,156,    /* window width and height */
  868.     0,1,    /* detail and block pens */
  869.     GADGETDOWN+GADGETUP+MENUPICK+CLOSEWINDOW,    /* IDCMP flags */
  870.     WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE,    /* other window flags */
  871.     &TextL1_Gad,    /* first gadget in gadget list */
  872.     NULL,    /* custom CHECKMARK imagery */
  873.     (UBYTE *)"Super Return Labels",    /* window title */
  874.     NULL,    /* custom screen pointer */
  875.     NULL,    /* custom bitmap */
  876.     5,5,    /* minimum width and height */
  877.     640,200,    /* maximum width and height */
  878.     WBENCHSCREEN    /* destination screen type */
  879. };
  880.  
  881. SHORT BorderVectors16[] = {
  882.     0,0,
  883.     80,0,
  884.     80,17,
  885.     0,17,
  886.     0,0
  887. };
  888. struct Border Border16 = {
  889.     -2,-1,    /* XY origin relative to container TopLeft */
  890.     3,0,JAM1,    /* front pen, back pen and drawmode */
  891.     5,    /* number of XY vectors */
  892.     BorderVectors16,    /* pointer to XY vectors */
  893.     NULL    /* next border in list */
  894. };
  895.  
  896. struct IntuiText IText24 = {
  897.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  898.     20,4,    /* XY origin relative to container TopLeft */
  899.     &TOPAZ60,    /* font pointer or NULL for default */
  900.     (UBYTE *)"DONE",    /* pointer to text */
  901.     NULL    /* next IntuiText structure */
  902. };
  903.  
  904. struct Gadget HelpDone_Gad = {
  905.     NULL,    /* next gadget */
  906.     283,157,    /* origin XY of hit box relative to window TopLeft */
  907.     77,16,    /* hit box width and height */
  908.     NULL,    /* gadget flags */
  909.     RELVERIFY,    /* activation flags */
  910.     BOOLGADGET,    /* gadget type flags */
  911.     (APTR)&Border16,    /* gadget border or image to be rendered */
  912.     NULL,    /* alternate imagery for selection */
  913.     &IText24,    /* first IntuiText structure */
  914.     NULL,    /* gadget mutual-exclude long word */
  915.     NULL,    /* SpecialInfo structure */
  916.     NULL,    /* user-definable data */
  917.     NULL    /* pointer to user-definable data */
  918. };
  919.  
  920. #define GadgetList2 HelpDone_Gad
  921.  
  922. struct NewWindow NewWindowStructure2 = {
  923.     0,11,    /* window XY origin relative to TopLeft of screen */
  924.     640,185,    /* window width and height */
  925.     0,1,    /* detail and block pens */
  926.     GADGETUP,    /* IDCMP flags */
  927.     WINDOWDRAG+WINDOWDEPTH,    /* other window flags */
  928.     &HelpDone_Gad,    /* first gadget in gadget list */
  929.     NULL,    /* custom CHECKMARK imagery */
  930.     (UBYTE *)"Super Return Labels Help",    /* window title */
  931.     NULL,    /* custom screen pointer */
  932.     NULL,    /* custom bitmap */
  933.     5,5,    /* minimum width and height */
  934.     640,200,    /* maximum width and height */
  935.     WBENCHSCREEN    /* destination screen type */
  936. };
  937.