home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 329.lha / MultiPlot / source / howto2.h < prev    next >
C/C++ Source or Header  |  1990-01-05  |  12KB  |  308 lines

  1. UBYTE Gadget48SIBuff[3] = "1";
  2.  
  3. struct StringInfo Gadget48SInfo = {
  4.         Gadget48SIBuff, /* buffer where text will be edited */
  5.         NULL,   /* optional undo buffer */
  6.         0,      /* character position in buffer */
  7.         3,      /* 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.         1,      /* initial value for integer gadgets */
  12.         NULL    /* alternate keymap (fill in if you set the flag) */
  13. };
  14.  
  15. SHORT BorderVectors11[] = {
  16.         0,0,
  17.         31,0,
  18.         31,17,
  19.         0,17,
  20.         0,1
  21. };
  22. struct Border Border11 = {
  23.         -5,-5,  /* XY origin relative to container TopLeft */
  24.         3,0,COMPLEMENT, /* front pen, back pen and drawmode */
  25.         5,      /* number of XY vectors */
  26.         BorderVectors11,        /* pointer to XY vectors */
  27.         NULL    /* next border in list */
  28. };
  29.  
  30. struct Gadget Gadget48 = {
  31.         NULL,   /* next gadget */
  32.         215,120,        /* origin XY of hit box relative to window TopLeft */
  33.         26,16,  /* hit box width and height */
  34.         NULL,   /* gadget flags */
  35.         STRINGCENTER+LONGINT,     /* activation flags */
  36.         STRGADGET,      /* gadget type flags */
  37.         (APTR)&Border11,        /* gadget border or image to be rendered */
  38.         NULL,   /* alternate imagery for selection */
  39.         NULL,   /* first IntuiText structure */
  40.         NULL,   /* gadget mutual-exclude long word */
  41.         (APTR)&Gadget48SInfo,   /* SpecialInfo structure */
  42.         NULL,   /* user-definable data */
  43.         NULL    /* pointer to user-definable data */
  44. };
  45.  
  46. /* Line selection Gadget */
  47.  
  48. struct Image Image13 = {
  49.         0,0,    /* XY origin relative to container TopLeft */
  50.         60,17,  /* Image width and height in pixels */
  51.         2,      /* number of bitplanes in Image */
  52.         ImageData6,    /* pointer to ImageData */
  53.         0x0005,0x0000,  /* PlanePick and PlaneOnOff */
  54.         NULL    /* next Image structure */
  55. };
  56.  
  57.  
  58. struct Image Image14 = {
  59.         -1,0,   /* XY origin relative to container TopLeft */
  60.         58,15,  /* Image width and height in pixels */
  61.         2,      /* number of bitplanes in Image */
  62.         ImageData7,    /* pointer to ImageData */
  63.         0x0005,0x0000,  /* PlanePick and PlaneOnOff */
  64.         NULL    /* next Image structure */
  65. };
  66.  
  67. struct Gadget Gadget47 = {
  68.         &Gadget48,      /* next gadget */
  69.         209,152,        /* origin XY of hit box relative to window TopLeft */
  70.         60,17,  /* hit box width and height */
  71.         GADGHIMAGE+GADGIMAGE,   /* gadget flags */
  72.         GADGIMMEDIATE+TOGGLESELECT, /* activation flags */
  73.         BOOLGADGET,     /* gadget type flags */
  74.         (APTR)&Image13, /* gadget border or image to be rendered */
  75.         (APTR)&Image14, /* alternate imagery for selection */
  76.         NULL,   /* first IntuiText structure */
  77.         NULL,   /* gadget mutual-exclude long word */
  78.         NULL,   /* SpecialInfo structure */
  79.         NULL,   /* user-definable data */
  80.         NULL    /* pointer to user-definable data */
  81. };
  82.  
  83. UBYTE Gadget46SIBuff[3] = "4";
  84. struct StringInfo Gadget46SInfo = {
  85.         Gadget46SIBuff, /* buffer where text will be edited */
  86.         NULL,   /* optional undo buffer */
  87.         0,      /* character position in buffer */
  88.         3,      /* maximum number of characters to allow */
  89.         0,      /* first displayed character buffer position */
  90.         0,0,0,0,0,      /* Intuition initialized and maintained variables */
  91.         0,      /* Rastport of gadget */
  92.         4,      /* initial value for integer gadgets */
  93.         NULL    /* alternate keymap (fill in if you set the flag) */
  94. };
  95.  
  96. SHORT BorderVectors12[] = {
  97.         0,0,
  98.         31,0,
  99.         31,17,
  100.         0,17,
  101.         0,1
  102. };
  103. struct Border Border12 = {
  104.         -5,-5,  /* XY origin relative to container TopLeft */
  105.         3,0,COMPLEMENT, /* front pen, back pen and drawmode */
  106.         5,      /* number of XY vectors */
  107.         BorderVectors12,        /* pointer to XY vectors */
  108.         NULL    /* next border in list */
  109. };
  110.  
  111. struct Gadget Gadget46 = {
  112.         &Gadget47,      /* next gadget */
  113.         216,190,        /* origin XY of hit box relative to window TopLeft */
  114.         26,16,  /* hit box width and height */
  115.         NULL,   /* gadget flags */
  116.         STRINGCENTER+LONGINT,     /* activation flags */
  117.         STRGADGET,      /* gadget type flags */
  118.         (APTR)&Border12,        /* gadget border or image to be rendered */
  119.         NULL,   /* alternate imagery for selection */
  120.         NULL,   /* first IntuiText structure */
  121.         NULL,   /* gadget mutual-exclude long word */
  122.         (APTR)&Gadget46SInfo,   /* SpecialInfo structure */
  123.         NULL,   /* user-definable data */
  124.         NULL    /* pointer to user-definable data */
  125. };
  126.  
  127. /* Tick Gadget */
  128.  
  129. struct Image Image15 = {
  130.         0,0,    /* XY origin relative to container TopLeft */
  131.         36,34,  /* Image width and height in pixels */
  132.         2,      /* number of bitplanes in Image */
  133.         ImageData3,    /* pointer to ImageData */
  134.         0x0003,0x0000,  /* PlanePick and PlaneOnOff */
  135.         NULL    /* next Image structure */
  136. };
  137.  
  138. /* Cross Gadget */
  139.  
  140. struct Image Image16 = {
  141.         0,0,    /* XY origin relative to container TopLeft */
  142.         37,35,  /* Image width and height in pixels */
  143.         2,      /* number of bitplanes in Image */
  144.         ImageData4,    /* pointer to ImageData */
  145.         0x0003,0x0000,  /* PlanePick and PlaneOnOff */
  146.         NULL    /* next Image structure */
  147. };
  148.  
  149. struct Gadget Gadget45 = {
  150.         &Gadget46,      /* next gadget */
  151.         57,53,  /* origin XY of hit box relative to window TopLeft */
  152.         25,26,  /* hit box width and height */
  153.         GADGHIMAGE+GADGIMAGE,   /* gadget flags */
  154.         GADGIMMEDIATE,     /* activation flags */
  155.         BOOLGADGET,     /* gadget type flags */
  156.         (APTR)&Image16, /* gadget border or image to be rendered */
  157.         (APTR)&Image15, /* alternate imagery for selection */
  158.         NULL,   /* first IntuiText structure */
  159.         NULL,   /* gadget mutual-exclude long word */
  160.         NULL,   /* SpecialInfo structure */
  161.         NULL,   /* user-definable data */
  162.         NULL    /* pointer to user-definable data */
  163. };
  164.  
  165. /* Tick Gadget */
  166.  
  167. struct Image Image17 = {
  168.         0,0,    /* XY origin relative to container TopLeft */
  169.         36,34,  /* Image width and height in pixels */
  170.         2,      /* number of bitplanes in Image */
  171.         ImageData3,    /* pointer to ImageData */
  172.         0x0003,0x0000,  /* PlanePick and PlaneOnOff */
  173.         NULL    /* next Image structure */
  174. };
  175.  
  176. /* Cross Gadget */
  177.  
  178. struct Image Image18 = {
  179.         0,0,    /* XY origin relative to container TopLeft */
  180.         37,35,  /* Image width and height in pixels */
  181.         2,      /* number of bitplanes in Image */
  182.         ImageData4,    /* pointer to ImageData */
  183.         0x0003,0x0000,  /* PlanePick and PlaneOnOff */
  184.         NULL    /* next Image structure */
  185. };
  186.  
  187. struct Gadget Gadget44 = {
  188.         &Gadget45,      /* next gadget */
  189.         247,54, /* origin XY of hit box relative to window TopLeft */
  190.         25,26,  /* hit box width and height */
  191.         GADGHIMAGE+GADGIMAGE,   /* gadget flags */
  192.         GADGIMMEDIATE,     /* activation flags */
  193.         BOOLGADGET,     /* gadget type flags */
  194.         (APTR)&Image18, /* gadget border or image to be rendered */
  195.         (APTR)&Image17, /* alternate imagery for selection */
  196.         NULL,   /* first IntuiText structure */
  197.         NULL,   /* gadget mutual-exclude long word */
  198.         NULL,   /* SpecialInfo structure */
  199.         NULL,   /* user-definable data */
  200.         NULL    /* pointer to user-definable data */
  201. };
  202.  
  203.  
  204. /* Data for the "Continue" Arrow */
  205.  
  206. extern USHORT chip ImageData1[];
  207.  
  208. struct Image Image19 = {
  209.         -10,-10,        /* XY origin relative to container TopLeft */
  210.         117,68, /* Image width and height in pixels */
  211.         2,      /* number of bitplanes in Image */
  212.         ImageData1,    /* pointer to ImageData */
  213.         0x0001,0x0000,  /* PlanePick and PlaneOnOff */
  214.         NULL    /* next Image structure */
  215. };
  216.  
  217. struct Gadget Gadget43 = {
  218.         &Gadget44,      /* next gadget */
  219.         331,184,        /* origin XY of hit box relative to window TopLeft */
  220.         99,43,  /* hit box width and height */
  221.         GADGHBOX+GADGHIMAGE+GADGIMAGE,  /* gadget flags */
  222.         GADGIMMEDIATE,  /* activation flags */
  223.         BOOLGADGET,     /* gadget type flags */
  224.         (APTR)&Image19, /* gadget border or image to be rendered */
  225.         NULL,   /* alternate imagery for selection */
  226.         NULL,   /* first IntuiText structure */
  227.         NULL,   /* gadget mutual-exclude long word */
  228.         NULL,   /* SpecialInfo structure */
  229.         NULL,   /* user-definable data */
  230.         NULL    /* pointer to user-definable data */
  231. };
  232.  
  233. #define GadgetList4 Gadget43
  234.  
  235. struct IntuiText IText21 = {
  236.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  237.         301,63, /* XY origin relative to container TopLeft */
  238.         NULL,   /* font pointer or NULL for default */
  239.         "Skip Data Set",        /* pointer to text */
  240.         NULL    /* next IntuiText structure */
  241. };
  242.  
  243. struct IntuiText IText20 = {
  244.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  245.         117,65, /* XY origin relative to container TopLeft */
  246.         NULL,   /* font pointer or NULL for default */
  247.         "Default Plot", /* pointer to text */
  248.         &IText21        /* next IntuiText structure */
  249. };
  250.  
  251. struct IntuiText IText19 = {
  252.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  253.         52,190, /* XY origin relative to container TopLeft */
  254.         NULL,   /* font pointer or NULL for default */
  255.         "Point Size (1-10)",    /* pointer to text */
  256.         &IText20        /* next IntuiText structure */
  257. };
  258.  
  259. struct IntuiText IText18 = {
  260.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  261.         94,157, /* XY origin relative to container TopLeft */
  262.         NULL,   /* font pointer or NULL for default */
  263.         "Plot Data as", /* pointer to text */
  264.         &IText19        /* next IntuiText structure */
  265. };
  266.  
  267. struct IntuiText IText17 = {
  268.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  269.         39,121, /* XY origin relative to container TopLeft */
  270.         NULL,   /* font pointer or NULL for default */
  271.         "Select Colour (0-9)",  /* pointer to text */
  272.         &IText18        /* next IntuiText structure */
  273. };
  274.  
  275. struct IntuiText IText16 = {
  276.         1,0,JAM1,       /* front and back text pens, drawmode and fill byte */
  277.         152,22, /* XY origin relative to container TopLeft */
  278.         NULL,   /* font pointer or NULL for default */
  279.         NULL,       /* pointer to text */
  280.         &IText17        /* next IntuiText structure */
  281. };
  282.  
  283. char title1[]="                Custom Plot Window              ";
  284.  
  285. char SetText[20][18]={"First Data Set",
  286.                     "Second Data Set",
  287.                     "Third Data Set",
  288.                     "Fourth Data Set",
  289.                     "Fifth Data Set",
  290.                     "Sixth Data Set",
  291.                     "Seventh Data Set",
  292.                     "Eighth Data Set",
  293.                     "Nineth Data Set",
  294.                     "Tenth Data Set",
  295.                     "Eleventh Data Set",
  296.                     "Twelfth Data Set",
  297.                     "Thirteenth Set",
  298.                     "Fourteenth Set",
  299.                     "Fifteenth Set",
  300.                     "Sixteenth Set",
  301.                     "Seventeenth Set",
  302.                     "Eighteenth Set",
  303.                     "Nineteenth Set",
  304.                     "Twentieth Set"};
  305.  
  306.  
  307.  
  308.