home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d536 / chemesthetics.lha / Chemesthetics / Source / Source.LZH / eingabe.h < prev    next >
C/C++ Source or Header  |  1991-03-12  |  30KB  |  941 lines

  1. #define Add_width 48
  2. #define Add_height 16
  3. #define Add_num_planes 4
  4.  
  5. #ifdef ENGLISH
  6. USHORT Add_data[4][16][3] = {               /* Englisch */
  7.     {
  8.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0x0000,0x0000,
  9.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  10.     0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,
  11.     0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,
  12.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  13.     0x0000,0x0001,0x0000,0x0000,0x0001,0x7fff,0xffff,0xffff
  14.     },
  15.     {
  16.     0xffff,0xffff,0xfffe,0x8000,0x0000,0x0000,0x8000,0x0000,
  17.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  18.     0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,
  19.     0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,
  20.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  21.     0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000
  22.     },
  23.     {
  24.     0x0000,0x0000,0x0000,0x7fff,0xffff,0xfffe,0x7fff,0xffff,
  25.     0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,
  26.     0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,
  27.     0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,
  28.     0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,
  29.     0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x0000,0x0000,0x0000
  30.     },
  31.     {
  32.     0xffff,0xffff,0xfffe,0xffff,0xffff,0xfffe,0xffff,0xffff,
  33.     0xfffe,0xffff,0xffff,0xfffe,0xfffe,0x7070,0x7ffe,0xfffc,
  34.     0x3939,0x3ffe,0xfffc,0x3999,0x9ffe,0xfff9,0x9999,0x9ffe,
  35.     0xfff8,0x1999,0x9ffe,0xfff3,0xc939,0x3ffe,0xfff3,0xc070,
  36.     0x7ffe,0xffff,0xffff,0xfffe,0xffff,0xffff,0xfffe,0xffff,
  37.     0xffff,0xfffe,0xffff,0xffff,0xfffe,0x0000,0x0000,0x0000
  38.     },
  39. };
  40. #endif
  41. #ifdef GERMAN
  42. USHORT Add_data[4][16][3] = {        /* Deutsch */
  43.     {
  44.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0x0000,0x0000,
  45.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  46.     0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,
  47.     0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,
  48.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  49.     0x0000,0x0001,0x0000,0x0000,0x0001,0x7fff,0xffff,0xffff
  50.     },
  51.     {
  52.     0xffff,0xffff,0xfffe,0x8000,0x0000,0x0000,0x8000,0x0000,
  53.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  54.     0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,
  55.     0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,
  56.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  57.     0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000
  58.     },
  59.     {
  60.     0x0000,0x0000,0x0000,0x7fff,0xffff,0xfffe,0x7fff,0xffff,
  61.     0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,
  62.     0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,
  63.     0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,
  64.     0xfffe,0x7fff,0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x7fff,
  65.     0xffff,0xfffe,0x7fff,0xffff,0xfffe,0x0000,0x0000,0x0000
  66.     },
  67.     {
  68.     0xffff,0xffff,0xfffe,0xffff,0xffff,0xfffe,0xffff,0xffff,
  69.     0xfffe,0xffff,0xffff,0xfffe,0xffe7,0x3901,0x99fe,0xffc3,
  70.     0x1999,0xfffe,0xffc3,0x099f,0x99fe,0xff99,0x2187,0x99fe,
  71.     0xff81,0x319f,0x99fe,0xff3c,0x399f,0x99fe,0xff3c,0x390f,
  72.     0xc1fe,0xffff,0xffff,0xfffe,0xffff,0xffff,0xfffe,0xffff,
  73.     0xffff,0xfffe,0xffff,0xffff,0xfffe,0x0000,0x0000,0x0000
  74.     },
  75. };
  76. #endif
  77. struct Image NeuImage2 =
  78. {
  79.   0,0,Add_width,Add_height,Add_num_planes,(USHORT *)Add_data,0xF,0,NULL
  80. };
  81.  
  82. #define Edit_width 48
  83. #define Edit_height 16
  84. #define Edit_num_planes 4
  85.  
  86. USHORT Edit_data[4][16][3] = {
  87.     {
  88.     0xffff,0xffff,0xfffe,0x8000,0x0000,0x0000,0x8000,0x0000,
  89.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  90.     0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,
  91.     0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,
  92.     0x0000,0x8000,0x0000,0x0000,0x8000,0x0000,0x0000,0x8000,
  93.     0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000
  94.     },
  95.     {
  96.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0x0000,0x0000,
  97.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  98.     0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,
  99.     0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,
  100.     0x0001,0x0000,0x0000,0x0001,0x0000,0x0000,0x0001,0x0000,
  101.     0x0000,0x0001,0x0000,0x0000,0x0001,0x7fff,0xffff,0xffff
  102.     },
  103.     {
  104.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  105.     0x0000,0x0000,0x0000,0x0000,0x00fe,0xf87e,0x7e00,0x0066,
  106.     0x6c18,0x5a00,0x0060,0x6618,0x1800,0x0078,0x6618,0x1800,
  107.     0x0060,0x6618,0x1800,0x0066,0x6c18,0x1800,0x00fe,0xf87e,
  108.     0x3c00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  109.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000
  110.     },
  111.     {
  112.     0x0000,0x0000,0x0000,0x7fff,0xffff,0xffff,0x7fff,0xffff,
  113.     0xffff,0x7fff,0xffff,0xffff,0x7f01,0x0781,0x81ff,0x7f99,
  114.     0x93e7,0xa5ff,0x7f9f,0x99e7,0xe7ff,0x7f87,0x99e7,0xe7ff,
  115.     0x7f9f,0x99e7,0xe7ff,0x7f99,0x93e7,0xe7ff,0x7f01,0x0781,
  116.     0xc3ff,0x7fff,0xffff,0xffff,0x7fff,0xffff,0xffff,0x7fff,
  117.     0xffff,0xffff,0x7fff,0xffff,0xffff,0x7fff,0xffff,0xffff
  118.     },
  119. };
  120.  
  121. struct Image NeuImage1 =
  122. {
  123.   0,0,Edit_width,Edit_height,Edit_num_planes,(USHORT *)Edit_data,0xF,0,NULL
  124. };
  125.  
  126. struct Gadget Neu = {
  127.     NULL,    /* next gadget */
  128.     530,130,    /* origin XY of hit box relative to window TopLeft */
  129.     48,16,    /* hit box width and height */
  130.     GADGIMAGE|GADGHIMAGE,    /* gadget flags */
  131.     RELVERIFY|TOGGLESELECT,      /* activation flags */
  132.     BOOLGADGET,    /* gadget type flags */
  133.     (APTR)&NeuImage1, /* gadget border or image to be rendered */
  134.     (APTR)&NeuImage2,   /* alternate imagery for selection */
  135.     NULL,         /* first IntuiText structure */
  136.     NULL,    /* gadget mutual-exclude long word */
  137.     NULL,    /* SpecialInfo structure */
  138.     19,    /* user-definable data */
  139.     NULL    /* pointer to user-definable data */
  140. };
  141.  
  142. SHORT BorderVectors1[] = {
  143.     0,0,
  144.     91,0,
  145.     91,17,
  146.     0,17,
  147.     0,0
  148. };
  149. struct Border Border1 = {
  150.     -1,-1,    /* XY origin relative to container TopLeft */
  151.     3,0,JAM1,    /* front pen, back pen and drawmode */
  152.     5,    /* number of XY vectors */
  153.     BorderVectors1, /* pointer to XY vectors */
  154.     NULL    /* next border in list */
  155. };
  156.  
  157. struct IntuiText AbbruchText = {
  158.     1,0,JAM1,    /* front and back text pens, drawmode and fill byte */
  159.     CANCEL_XPOS,4,     /* XY origin relative to container TopLeft */
  160.     NULL,    /* font pointer or NULL for default */
  161.     (UBYTE *)CANCEL_TEXT,     /* pointer to text */
  162.     NULL    /* next IntuiText structure */
  163. };
  164.  
  165. struct Gadget Abbruch = {
  166.     &Neu,    /* next gadget */
  167.     530,181,    /* origin XY of hit box relative to window TopLeft */
  168.     90,16,    /* hit box width and height */
  169.     NULL,    /* gadget flags */
  170.     RELVERIFY,    /* activation flags */
  171.     BOOLGADGET,    /* gadget type flags */
  172.     (APTR)&Border1, /* gadget border or image to be rendered */
  173.     NULL,    /* alternate imagery for selection */
  174.     &AbbruchText,         /* first IntuiText structure */
  175.     NULL,    /* gadget mutual-exclude long word */
  176.     NULL,    /* SpecialInfo structure */
  177.     18,    /* user-definable data */
  178.     NULL    /* pointer to user-definable data */
  179. };
  180.  
  181. extern struct Border OKBorder;
  182. extern struct IntuiText OKText;
  183.  
  184. struct Gadget OK = {
  185.     &Abbruch,    /* next gadget */
  186.     530,162,    /* origin XY of hit box relative to window TopLeft */
  187.     90,16,    /* hit box width and height */
  188.     NULL,    /* gadget flags */
  189.     RELVERIFY,    /* activation flags */
  190.     BOOLGADGET,    /* gadget type flags */
  191.     (APTR)&OKBorder, /* gadget border or image to be rendered */
  192.     NULL,    /* alternate imagery for selection */
  193.     &OKText,    /* first IntuiText structure */
  194.     NULL,    /* gadget mutual-exclude long word */
  195.     NULL,    /* SpecialInfo structure */
  196.     17,    /* user-definable data */
  197.     NULL    /* pointer to user-definable data */
  198. };
  199.  
  200. UBYTE RadiusSIBuff[4];
  201. struct StringInfo RadiusSInfo = {
  202.     RadiusSIBuff,    /* buffer where text will be edited */
  203.     NULL,    /* optional undo buffer */
  204.     0,    /* character position in buffer */
  205.     4,    /* maximum number of characters to allow */
  206.     0,    /* first displayed character buffer position */
  207.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  208.     0,    /* Rastport of gadget */
  209.     0,    /* initial value for integer gadgets */
  210.     NULL    /* alternate keymap (fill in if you set the flag) */
  211. };
  212.  
  213. SHORT BorderVectors3[] = {
  214.     0,0,
  215.     33,0,
  216.     33,9,
  217.     0,9,
  218.     0,0
  219. };
  220. struct Border Border3 = {
  221.     -1,-1,    /* XY origin relative to container TopLeft */
  222.     3,0,JAM1,    /* front pen, back pen and drawmode */
  223.     5,    /* number of XY vectors */
  224.     BorderVectors3, /* pointer to XY vectors */
  225.     NULL    /* next border in list */
  226. };
  227.  
  228. struct Gadget Radius = {
  229.     &OK,    /* next gadget */
  230.     450,130,    /* origin XY of hit box relative to window TopLeft */
  231.     32,8,    /* hit box width and height */
  232.     NULL,    /* gadget flags */
  233.     RELVERIFY|LONGINT,    /* activation flags */
  234.     STRGADGET,    /* gadget type flags */
  235.     (APTR)&Border3, /* gadget border or image to be rendered */
  236.     NULL,    /* alternate imagery for selection */
  237.     NULL,    /* first IntuiText structure */
  238.     NULL,    /* gadget mutual-exclude long word */
  239.     (APTR)&RadiusSInfo,     /* SpecialInfo structure */
  240.     16,    /* user-definable data */
  241.     NULL    /* pointer to user-definable data */
  242. };
  243.  
  244. UBYTE PosZSIBuff[6];
  245. struct StringInfo PosZSInfo = {
  246.     PosZSIBuff,    /* buffer where text will be edited */
  247.     NULL,    /* optional undo buffer */
  248.     0,    /* character position in buffer */
  249.     6,    /* maximum number of characters to allow */
  250.     0,    /* first displayed character buffer position */
  251.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  252.     0,    /* Rastport of gadget */
  253.     0,    /* initial value for integer gadgets */
  254.     NULL    /* alternate keymap (fill in if you set the flag) */
  255. };
  256.  
  257. SHORT BorderVectors4[] = {
  258.     0,0,
  259.     49,0,
  260.     49,9,
  261.     0,9,
  262.     0,0
  263. };
  264. struct Border Border4 = {
  265.     -1,-1,    /* XY origin relative to container TopLeft */
  266.     3,0,JAM1,    /* front pen, back pen and drawmode */
  267.     5,    /* number of XY vectors */
  268.     BorderVectors4, /* pointer to XY vectors */
  269.     NULL    /* next border in list */
  270. };
  271.  
  272. struct Gadget PosZ = {
  273.     &Radius,    /* next gadget */
  274.     384,130,    /* origin XY of hit box relative to window TopLeft */
  275.     48,8,    /* hit box width and height */
  276.     NULL,    /* gadget flags */
  277.     RELVERIFY|LONGINT,    /* activation flags */
  278.     STRGADGET,    /* gadget type flags */
  279.     (APTR)&Border4, /* gadget border or image to be rendered */
  280.     NULL,    /* alternate imagery for selection */
  281.     NULL,    /* first IntuiText structure */
  282.     NULL,    /* gadget mutual-exclude long word */
  283.     (APTR)&PosZSInfo,       /* SpecialInfo structure */
  284.     15,    /* user-definable data */
  285.     NULL    /* pointer to user-definable data */
  286. };
  287.  
  288. UBYTE PosYSIBuff[6];
  289. struct StringInfo PosYSInfo = {
  290.     PosYSIBuff,    /* buffer where text will be edited */
  291.     NULL,    /* optional undo buffer */
  292.     0,    /* character position in buffer */
  293.     6,    /* maximum number of characters to allow */
  294.     0,    /* first displayed character buffer position */
  295.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  296.     0,    /* Rastport of gadget */
  297.     0,    /* initial value for integer gadgets */
  298.     NULL    /* alternate keymap (fill in if you set the flag) */
  299. };
  300.  
  301. SHORT BorderVectors5[] = {
  302.     0,0,
  303.     49,0,
  304.     49,9,
  305.     0,9,
  306.     0,0
  307. };
  308. struct Border Border5 = {
  309.     -1,-1,    /* XY origin relative to container TopLeft */
  310.     3,0,JAM1,    /* front pen, back pen and drawmode */
  311.     5,    /* number of XY vectors */
  312.     BorderVectors5, /* pointer to XY vectors */
  313.     NULL    /* next border in list */
  314. };
  315.  
  316. struct Gadget PosY = {
  317.     &PosZ,    /* next gadget */
  318.     328,130,    /* origin XY of hit box relative to window TopLeft */
  319.     48,8,    /* hit box width and height */
  320.     NULL,    /* gadget flags */
  321.     RELVERIFY|LONGINT,    /* activation flags */
  322.     STRGADGET,    /* gadget type flags */
  323.     (APTR)&Border5, /* gadget border or image to be rendered */
  324.     NULL,    /* alternate imagery for selection */
  325.     NULL,    /* first IntuiText structure */
  326.     NULL,    /* gadget mutual-exclude long word */
  327.     (APTR)&PosYSInfo,       /* SpecialInfo structure */
  328.     14,    /* user-definable data */
  329.     NULL    /* pointer to user-definable data */
  330. };
  331.  
  332. UBYTE PosXSIBuff[6];
  333. struct StringInfo PosXSInfo = {
  334.     PosXSIBuff,    /* buffer where text will be edited */
  335.     NULL,    /* optional undo buffer */
  336.     0,    /* character position in buffer */
  337.     6,    /* maximum number of characters to allow */
  338.     0,    /* first displayed character buffer position */
  339.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  340.     0,    /* Rastport of gadget */
  341.     0,    /* initial value for integer gadgets */
  342.     NULL    /* alternate keymap (fill in if you set the flag) */
  343. };
  344.  
  345. SHORT BorderVectors6[] = {
  346.     0,0,
  347.     49,0,
  348.     49,9,
  349.     0,9,
  350.     0,0
  351. };
  352. struct Border Border6 = {
  353.     -1,-1,    /* XY origin relative to container TopLeft */
  354.     3,0,JAM1,    /* front pen, back pen and drawmode */
  355.     5,    /* number of XY vectors */
  356.     BorderVectors6, /* pointer to XY vectors */
  357.     NULL    /* next border in list */
  358. };
  359.  
  360. struct Gadget PosX = {
  361.     &PosY,    /* next gadget */
  362.     272,130,    /* origin XY of hit box relative to window TopLeft */
  363.     48,8,    /* hit box width and height */
  364.     NULL,    /* gadget flags */
  365.     RELVERIFY|LONGINT,    /* activation flags */
  366.     STRGADGET,    /* gadget type flags */
  367.     (APTR)&Border6, /* gadget border or image to be rendered */
  368.     NULL,    /* alternate imagery for selection */
  369.     NULL,    /* first IntuiText structure */
  370.     NULL,    /* gadget mutual-exclude long word */
  371.     (APTR)&PosXSInfo,       /* SpecialInfo structure */
  372.     13,    /* user-definable data */
  373.     NULL    /* pointer to user-definable data */
  374. };
  375.  
  376. UBYTE AtomSIBuff[4];
  377. struct StringInfo AtomSInfo = {
  378.     AtomSIBuff,    /* buffer where text will be edited */
  379.     NULL,    /* optional undo buffer */
  380.     0,    /* character position in buffer */
  381.     4,    /* 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 BorderVectors7[] = {
  390.     0,0,
  391.     25,0,
  392.     25,9,
  393.     0,9,
  394.     0,0
  395. };
  396. struct Border Border7 = {
  397.     -1,-1,    /* XY origin relative to container TopLeft */
  398.     3,0,JAM1,    /* front pen, back pen and drawmode */
  399.     5,    /* number of XY vectors */
  400.     BorderVectors7, /* pointer to XY vectors */
  401.     NULL    /* next border in list */
  402. };
  403.  
  404. struct Gadget Atom = {
  405.     &PosX,    /* next gadget */
  406.     64,130, /* origin XY of hit box relative to window TopLeft */
  407.     24,8,    /* hit box width and height */
  408.     NULL,    /* gadget flags */
  409.     RELVERIFY,    /* activation flags */
  410.     STRGADGET,    /* gadget type flags */
  411.     (APTR)&Border7, /* 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)&AtomSInfo,       /* SpecialInfo structure */
  416.     12,    /* user-definable data */
  417.     NULL    /* pointer to user-definable data */
  418. };
  419.  
  420. UBYTE ReflexSIBuff[4];
  421. struct StringInfo ReflexSInfo = {
  422.     ReflexSIBuff,    /* buffer where text will be edited */
  423.     NULL,    /* optional undo buffer */
  424.     0,    /* character position in buffer */
  425.     4,    /* 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 BorderVectors8[] = {
  434.     0,0,
  435.     33,0,
  436.     33,9,
  437.     0,9,
  438.     0,0
  439. };
  440. struct Border Border8 = {
  441.     -1,-1,    /* XY origin relative to container TopLeft */
  442.     3,0,JAM1,    /* front pen, back pen and drawmode */
  443.     5,    /* number of XY vectors */
  444.     BorderVectors8, /* pointer to XY vectors */
  445.     NULL    /* next border in list */
  446. };
  447.  
  448. struct Gadget Reflex = {
  449.     &Atom,    /* next gadget */
  450.     474,162,    /* origin XY of hit box relative to window TopLeft */
  451.     32,8,    /* hit box width and height */
  452.     NULL,    /* gadget flags */
  453.     RELVERIFY|LONGINT,    /* activation flags */
  454.     STRGADGET,    /* gadget type flags */
  455.     (APTR)&Border8, /* 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)&ReflexSInfo,     /* SpecialInfo structure */
  460.     11,    /* user-definable data */
  461.     NULL    /* pointer to user-definable data */
  462. };
  463.  
  464. UBYTE LichtZSIBuff[8];
  465. struct StringInfo LichtZSInfo = {
  466.     LichtZSIBuff,    /* buffer where text will be edited */
  467.     NULL,    /* optional undo buffer */
  468.     0,    /* character position in buffer */
  469.     8,    /* 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 BorderVectors9[] = {
  478.     0,0,
  479.     65,0,
  480.     65,9,
  481.     0,9,
  482.     0,0
  483. };
  484. struct Border Border9 = {
  485.     -1,-1,    /* XY origin relative to container TopLeft */
  486.     3,0,JAM1,    /* front pen, back pen and drawmode */
  487.     5,    /* number of XY vectors */
  488.     BorderVectors9, /* pointer to XY vectors */
  489.     NULL    /* next border in list */
  490. };
  491.  
  492. struct IntuiText LichtZText = {
  493.     5,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  494.     -52,0,    /* XY origin relative to container TopLeft */
  495.     NULL,    /* font pointer or NULL for default */
  496.     (UBYTE *)"aus Z:",      /* pointer to text */
  497.     NULL    /* next IntuiText structure */
  498. };
  499.  
  500. struct Gadget LichtZ = {
  501.     &Reflex,    /* next gadget */
  502.     301,186,    /* origin XY of hit box relative to window TopLeft */
  503.     64,8,    /* hit box width and height */
  504.     NULL,    /* gadget flags */
  505.     RELVERIFY,    /* activation flags */
  506.     STRGADGET,    /* gadget type flags */
  507.     (APTR)&Border9, /* gadget border or image to be rendered */
  508.     NULL,    /* alternate imagery for selection */
  509.     &LichtZText,        /* first IntuiText structure */
  510.     NULL,    /* gadget mutual-exclude long word */
  511.     (APTR)&LichtZSInfo,     /* SpecialInfo structure */
  512.     10,    /* user-definable data */
  513.     NULL    /* pointer to user-definable data */
  514. };
  515.  
  516. UBYTE LichtYSIBuff[8];
  517. struct StringInfo LichtYSInfo = {
  518.     LichtYSIBuff,    /* buffer where text will be edited */
  519.     NULL,    /* optional undo buffer */
  520.     0,    /* character position in buffer */
  521.     8,    /* maximum number of characters to allow */
  522.     0,    /* first displayed character buffer position */
  523.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  524.     0,    /* Rastport of gadget */
  525.     0,    /* initial value for integer gadgets */
  526.     NULL    /* alternate keymap (fill in if you set the flag) */
  527. };
  528.  
  529. SHORT BorderVectors10[] = {
  530.     0,0,
  531.     65,0,
  532.     65,9,
  533.     0,9,
  534.     0,0
  535. };
  536. struct Border Border10 = {
  537.     -1,-1,    /* XY origin relative to container TopLeft */
  538.     3,0,JAM1,    /* front pen, back pen and drawmode */
  539.     5,    /* number of XY vectors */
  540.     BorderVectors10,    /* pointer to XY vectors */
  541.     NULL    /* next border in list */
  542. };
  543.  
  544. struct IntuiText LichtYText = {
  545.     5,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  546.     -52,0,    /* XY origin relative to container TopLeft */
  547.     NULL,    /* font pointer or NULL for default */
  548.     (UBYTE *)"aus Y:",      /* pointer to text */
  549.     NULL    /* next IntuiText structure */
  550. };
  551.  
  552. struct Gadget LichtY = {
  553.     &LichtZ,    /* next gadget */
  554.     301,174,    /* origin XY of hit box relative to window TopLeft */
  555.     64,8,    /* hit box width and height */
  556.     NULL,    /* gadget flags */
  557.     RELVERIFY,    /* activation flags */
  558.     STRGADGET,    /* gadget type flags */
  559.     (APTR)&Border10,        /* gadget border or image to be rendered */
  560.     NULL,    /* alternate imagery for selection */
  561.     &LichtYText,        /* first IntuiText structure */
  562.     NULL,    /* gadget mutual-exclude long word */
  563.     (APTR)&LichtYSInfo,     /* SpecialInfo structure */
  564.     9,    /* user-definable data */
  565.     NULL    /* pointer to user-definable data */
  566. };
  567.  
  568. UBYTE LichtXSIBuff[8];
  569. struct StringInfo LichtXSInfo = {
  570.     LichtXSIBuff,    /* buffer where text will be edited */
  571.     NULL,    /* optional undo buffer */
  572.     0,    /* character position in buffer */
  573.     8,    /* maximum number of characters to allow */
  574.     0,    /* first displayed character buffer position */
  575.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  576.     0,    /* Rastport of gadget */
  577.     0,    /* initial value for integer gadgets */
  578.     NULL    /* alternate keymap (fill in if you set the flag) */
  579. };
  580.  
  581. SHORT BorderVectors11[] = {
  582.     0,0,
  583.     65,0,
  584.     65,9,
  585.     0,9,
  586.     0,0
  587. };
  588. struct Border Border11 = {
  589.     -1,-1,    /* XY origin relative to container TopLeft */
  590.     3,0,JAM1,    /* front pen, back pen and drawmode */
  591.     5,    /* number of XY vectors */
  592.     BorderVectors11,    /* pointer to XY vectors */
  593.     NULL    /* next border in list */
  594. };
  595.  
  596. struct IntuiText LichtXText = {
  597.     5,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  598.     -52,0,    /* XY origin relative to container TopLeft */
  599.     NULL,    /* font pointer or NULL for default */
  600.     (UBYTE *)"aus X:",      /* pointer to text */
  601.     NULL    /* next IntuiText structure */
  602. };
  603.  
  604. struct Gadget LichtX = {
  605.     &LichtY,    /* next gadget */
  606.     301,162,    /* origin XY of hit box relative to window TopLeft */
  607.     64,8,    /* hit box width and height */
  608.     NULL,    /* gadget flags */
  609.     RELVERIFY,    /* activation flags */
  610.     STRGADGET,    /* gadget type flags */
  611.     (APTR)&Border11,        /* gadget border or image to be rendered */
  612.     NULL,    /* alternate imagery for selection */
  613.     &LichtXText,        /* first IntuiText structure */
  614.     NULL,    /* gadget mutual-exclude long word */
  615.     (APTR)&LichtXSInfo,     /* SpecialInfo structure */
  616.     8,    /* user-definable data */
  617.     NULL    /* pointer to user-definable data */
  618. };
  619.  
  620. UBYTE DrehZSIBuff[4];
  621. struct StringInfo DrehZSInfo = {
  622.     DrehZSIBuff,    /* buffer where text will be edited */
  623.     NULL,    /* optional undo buffer */
  624.     0,    /* character position in buffer */
  625.     4,    /* maximum number of characters to allow */
  626.     0,    /* first displayed character buffer position */
  627.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  628.     0,    /* Rastport of gadget */
  629.     0,    /* initial value for integer gadgets */
  630.     NULL    /* alternate keymap (fill in if you set the flag) */
  631. };
  632.  
  633. SHORT BorderVectors12[] = {
  634.     0,0,
  635.     33,0,
  636.     33,9,
  637.     0,9,
  638.     0,0
  639. };
  640. struct Border Border12 = {
  641.     -1,-1,    /* XY origin relative to container TopLeft */
  642.     3,0,JAM1,    /* front pen, back pen and drawmode */
  643.     5,    /* number of XY vectors */
  644.     BorderVectors12,    /* pointer to XY vectors */
  645.     NULL    /* next border in list */
  646. };
  647.  
  648. struct IntuiText DrehZText = {
  649.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  650.     -25,0,    /* XY origin relative to container TopLeft */
  651.     NULL,    /* font pointer or NULL for default */
  652.     (UBYTE *)"Z:",  /* pointer to text */
  653.     NULL    /* next IntuiText structure */
  654. };
  655.  
  656. struct Gadget DrehZ = {
  657.     &LichtX,    /* next gadget */
  658.     129,186,    /* origin XY of hit box relative to window TopLeft */
  659.     32,8,    /* hit box width and height */
  660.     NULL,    /* gadget flags */
  661.     RELVERIFY|LONGINT,    /* activation flags */
  662.     STRGADGET,    /* gadget type flags */
  663.     (APTR)&Border12,        /* gadget border or image to be rendered */
  664.     NULL,    /* alternate imagery for selection */
  665.     &DrehZText,       /* first IntuiText structure */
  666.     NULL,    /* gadget mutual-exclude long word */
  667.     (APTR)&DrehZSInfo,      /* SpecialInfo structure */
  668.     7,    /* user-definable data */
  669.     NULL    /* pointer to user-definable data */
  670. };
  671.  
  672. UBYTE DrehYSIBuff[4];
  673. struct StringInfo DrehYSInfo = {
  674.     DrehYSIBuff,    /* buffer where text will be edited */
  675.     NULL,    /* optional undo buffer */
  676.     0,    /* character position in buffer */
  677.     4,    /* maximum number of characters to allow */
  678.     0,    /* first displayed character buffer position */
  679.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  680.     0,    /* Rastport of gadget */
  681.     0,    /* initial value for integer gadgets */
  682.     NULL    /* alternate keymap (fill in if you set the flag) */
  683. };
  684.  
  685. SHORT BorderVectors13[] = {
  686.     0,0,
  687.     33,0,
  688.     33,9,
  689.     0,9,
  690.     0,0
  691. };
  692. struct Border Border13 = {
  693.     -1,-1,    /* XY origin relative to container TopLeft */
  694.     3,0,JAM1,    /* front pen, back pen and drawmode */
  695.     5,    /* number of XY vectors */
  696.     BorderVectors13,    /* pointer to XY vectors */
  697.     NULL    /* next border in list */
  698. };
  699.  
  700. struct IntuiText DrehYText = {
  701.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  702.     -25,0,    /* XY origin relative to container TopLeft */
  703.     NULL,    /* font pointer or NULL for default */
  704.     (UBYTE *)"Y:",  /* pointer to text */
  705.     NULL    /* next IntuiText structure */
  706. };
  707.  
  708. struct Gadget DrehY = {
  709.     &DrehZ, /* next gadget */
  710.     129,174,    /* origin XY of hit box relative to window TopLeft */
  711.     32,8,    /* hit box width and height */
  712.     NULL,    /* gadget flags */
  713.     RELVERIFY|LONGINT,    /* activation flags */
  714.     STRGADGET,    /* gadget type flags */
  715.     (APTR)&Border13,        /* gadget border or image to be rendered */
  716.     NULL,    /* alternate imagery for selection */
  717.     &DrehYText,       /* first IntuiText structure */
  718.     NULL,    /* gadget mutual-exclude long word */
  719.     (APTR)&DrehYSInfo,      /* SpecialInfo structure */
  720.     6,    /* user-definable data */
  721.     NULL    /* pointer to user-definable data */
  722. };
  723.  
  724. UBYTE DrehXSIBuff[4];
  725. struct StringInfo DrehXSInfo = {
  726.     DrehXSIBuff,    /* buffer where text will be edited */
  727.     NULL,    /* optional undo buffer */
  728.     0,    /* character position in buffer */
  729.     4,    /* maximum number of characters to allow */
  730.     0,    /* first displayed character buffer position */
  731.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  732.     0,    /* Rastport of gadget */
  733.     0,    /* initial value for integer gadgets */
  734.     NULL    /* alternate keymap (fill in if you set the flag) */
  735. };
  736.  
  737. SHORT BorderVectors14[] = {
  738.     0,0,
  739.     33,0,
  740.     33,9,
  741.     0,9,
  742.     0,0
  743. };
  744. struct Border Border14 = {
  745.     -1,-1,    /* XY origin relative to container TopLeft */
  746.     3,0,JAM1,    /* front pen, back pen and drawmode */
  747.     5,    /* number of XY vectors */
  748.     BorderVectors14,    /* pointer to XY vectors */
  749.     NULL    /* next border in list */
  750. };
  751.  
  752. struct IntuiText DrehXText = {
  753.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  754.     -25,0,    /* XY origin relative to container TopLeft */
  755.     NULL,    /* font pointer or NULL for default */
  756.     (UBYTE *)"X:",  /* pointer to text */
  757.     NULL    /* next IntuiText structure */
  758. };
  759.  
  760. struct Gadget DrehX = {
  761.     &DrehY, /* next gadget */
  762.     129,162,    /* origin XY of hit box relative to window TopLeft */
  763.     32,8,    /* hit box width and height */
  764.     NULL,    /* gadget flags */
  765.     RELVERIFY|LONGINT,    /* activation flags */
  766.     STRGADGET,    /* gadget type flags */
  767.     (APTR)&Border14,        /* gadget border or image to be rendered */
  768.     NULL,    /* alternate imagery for selection */
  769.     &DrehXText,       /* first IntuiText structure */
  770.     NULL,    /* gadget mutual-exclude long word */
  771.     (APTR)&DrehXSInfo,      /* SpecialInfo structure */
  772.     5,    /* user-definable data */
  773.     NULL    /* pointer to user-definable data */
  774. };
  775.  
  776. UBYTE VergrSIBuff[4];
  777. struct StringInfo VergrSInfo = {
  778.     VergrSIBuff,    /* buffer where text will be edited */
  779.     NULL,    /* optional undo buffer */
  780.     0,    /* character position in buffer */
  781.     4,    /* maximum number of characters to allow */
  782.     0,    /* first displayed character buffer position */
  783.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  784.     0,    /* Rastport of gadget */
  785.     0,    /* initial value for integer gadgets */
  786.     NULL    /* alternate keymap (fill in if you set the flag) */
  787. };
  788.  
  789. SHORT BorderVectors15[] = {
  790.     0,0,
  791.     33,0,
  792.     33,9,
  793.     0,9,
  794.     0,0
  795. };
  796. struct Border Border15 = {
  797.     -1,-1,    /* XY origin relative to container TopLeft */
  798.     3,0,JAM1,    /* front pen, back pen and drawmode */
  799.     5,    /* number of XY vectors */
  800.     BorderVectors15,    /* pointer to XY vectors */
  801.     NULL    /* next border in list */
  802. };
  803.  
  804. struct Gadget Vergr = {
  805.     &DrehX, /* next gadget */
  806.     15,162, /* origin XY of hit box relative to window TopLeft */
  807.     32,8,    /* hit box width and height */
  808.     NULL,    /* gadget flags */
  809.     RELVERIFY,    /* activation flags */
  810.     STRGADGET,    /* gadget type flags */
  811.     (APTR)&Border15,        /* gadget border or image to be rendered */
  812.     NULL,    /* alternate imagery for selection */
  813.     NULL,    /* first IntuiText structure */
  814.     NULL,    /* gadget mutual-exclude long word */
  815.     (APTR)&VergrSInfo,      /* SpecialInfo structure */
  816.     4,    /* user-definable data */
  817.     NULL    /* pointer to user-definable data */
  818. };
  819.  
  820. USHORT Dn_data[4][8][1] = {
  821.     {
  822.     0x0000,0x03e0,0x03e0,0x03e0,0x1ffc,0x07f0,0x01c0,0x0000
  823.     },
  824.     {
  825.     0x0000,0x0020,0x0020,0x0020,0x0004,0x0010,0x0040,0x0000
  826.     },
  827.     {
  828.     0x0000,0x7fde,0x7fde,0x7fde,0x7ffa,0x7fee,0x7fbe,0x0000
  829.     },
  830.     {
  831.     0xffff,0x8021,0x8021,0x8021,0x8005,0x8011,0x8041,0xffff
  832.     },
  833. };
  834.  
  835. struct Image DnImage =
  836. {
  837.   0,0,16,8,4,(USHORT *)Dn_data,0xF,0,NULL
  838. };
  839.  
  840. struct Gadget Down = {
  841.     &Vergr, /* next gadget */
  842.     617,119,    /* origin XY of hit box relative to window TopLeft */
  843.     16,8,    /* hit box width and height */
  844.     GADGIMAGE|GADGHCOMP,   /* gadget flags */
  845.     RELVERIFY,    /* activation flags */
  846.     BOOLGADGET,    /* gadget type flags */
  847.     (APTR)&DnImage,        /* gadget border or image to be rendered */
  848.     NULL,    /* alternate imagery for selection */
  849.     NULL,    /* first IntuiText structure */
  850.     NULL,    /* gadget mutual-exclude long word */
  851.     NULL,    /* SpecialInfo structure */
  852.     3,    /* user-definable data */
  853.     NULL    /* pointer to user-definable data */
  854. };
  855.  
  856. USHORT Up_data[4][8][1] = {
  857.     {
  858.     0x0000,0x01c0,0x07f0,0x1ffc,0x03e0,0x03e0,0x03e0,0x0000
  859.     },
  860.     {
  861.     0x0000,0x0040,0x0010,0x0004,0x0020,0x0020,0x0020,0x0000
  862.     },
  863.     {
  864.     0x0000,0x7fbe,0x7fee,0x7ffa,0x7fde,0x7fde,0x7fde,0x0000
  865.     },
  866.     {
  867.     0xffff,0x8041,0x8011,0x8005,0x8021,0x8021,0x8021,0xffff
  868.     },
  869. };
  870.  
  871. struct Image UpImage =
  872. {
  873.   0,0,16,8,4,(USHORT *)Up_data,0xF,0,NULL
  874. };
  875.  
  876. struct Gadget Up = {
  877.     &Down,    /* next gadget */
  878.     618,29, /* origin XY of hit box relative to window TopLeft */
  879.     16,8,    /* hit box width and height */
  880.     GADGIMAGE|GADGHCOMP,   /* gadget flags */
  881.     RELVERIFY,    /* activation flags */
  882.     BOOLGADGET,    /* gadget type flags */
  883.     (APTR)&UpImage,        /* gadget border or image to be rendered */
  884.     NULL,    /* alternate imagery for selection */
  885.     NULL,    /* first IntuiText structure */
  886.     NULL,    /* gadget mutual-exclude long word */
  887.     NULL,    /* SpecialInfo structure */
  888.     2,    /* user-definable data */
  889.     NULL    /* pointer to user-definable data */
  890. };
  891.  
  892. struct PropInfo PropSInfo = {
  893.     AUTOKNOB+FREEVERT,    /* PropInfo flags */
  894.     -1,-1,    /* horizontal and vertical pot values */
  895.     -1,-1,    /* horizontal and vertical body values */
  896. };
  897.  
  898. struct Image Image1 = {
  899.     0,0,    /* XY origin relative to container TopLeft */
  900.     8,76,    /* Image width and height in pixels */
  901.     0,    /* number of bitplanes in Image */
  902.     NULL,    /* pointer to ImageData */
  903.     0x0000,0x0000,    /* PlanePick and PlaneOnOff */
  904.     NULL    /* next Image structure */
  905. };
  906.  
  907. struct Gadget Prop = {
  908.     &Up,    /* next gadget */
  909.     618,38, /* origin XY of hit box relative to window TopLeft */
  910.     16,80,    /* hit box width and height */
  911.     NULL,    /* gadget flags */
  912.     RELVERIFY,    /* activation flags */
  913.     PROPGADGET,    /* gadget type flags */
  914.     (APTR)&Image1,  /* gadget border or image to be rendered */
  915.     NULL,    /* alternate imagery for selection */
  916.     NULL,    /* first IntuiText structure */
  917.     NULL,    /* gadget mutual-exclude long word */
  918.     (APTR)&PropSInfo,       /* SpecialInfo structure */
  919.     1,    /* user-definable data */
  920.     NULL    /* pointer to user-definable data */
  921. };
  922.  
  923. struct NewWindow EingabeFenster = {
  924.     0,0,    /* window XY origin relative to TopLeft of screen */
  925.     640,200,    /* window width and height */
  926.     0,1,    /* detail and block pens */
  927.     GADGETUP+CLOSEWINDOW+MOUSEBUTTONS,   /* IDCMP flags */
  928.     WINDOWDRAG+WINDOWCLOSE+ACTIVATE,    /* other window flags */
  929.     &Prop,    /* first gadget in gadget list */
  930.     NULL,    /* custom CHECKMARK imagery */
  931.     (UBYTE *)ENTER_DATA,        /* window title */
  932.     NULL,    /* custom screen pointer */
  933.     NULL,    /* custom bitmap */
  934.     5,5,    /* minimum width and height */
  935.     -1,-1,    /* maximum width and height */
  936.     CUSTOMSCREEN    /* destination screen type */
  937. };
  938.  
  939.  
  940. /* end of PowerWindows source generation */
  941.