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

  1. /* Data for the ZZZ Pointer */
  2.  
  3.  
  4. USHORT chip WaitSprite [] = {
  5. 0x0000,   0x0000,
  6.  
  7. 0x0E00, 0x0E00,
  8. 0x1EC0, 0x1EC0,
  9. 0x7FE0, 0x7FE0,
  10. 0xFFE0, 0xC1E0,
  11. 0xFFF0, 0xFBF0,
  12. 0xFFF0, 0xF7F0,
  13. 0xFFF8, 0xEFF8,
  14. 0x7FF8, 0x41F8,
  15. 0x7FFC, 0x7E0C,
  16. 0xFFFC, 0xFFDC,
  17. 0xFFFC, 0xFFBC,
  18. 0xFFFC, 0xFF7C,
  19. 0x7FF8, 0x7E08,
  20. 0x7FF8, 0x7FF8,
  21. 0x1FE0, 0x1FE0,
  22. 0x0200, 0x0200,
  23. 0x0C00, 0x0C00,
  24. 0x1F80, 0x1F80,
  25. 0x1F80, 0x1F80,
  26. 0x0C00, 0x0C00,
  27. 0x00C0, 0x00C0,
  28. 0x00E0, 0x00E0,
  29. 0x0060, 0x0060,
  30.  
  31. 0x0000,   0x0000,
  32. };
  33.  
  34.  
  35.  
  36.  
  37.  
  38. /* Data for the "Continue" Arrow */
  39.  
  40. USHORT chip ImageData1[] = {
  41.         0x0000,0x0000,0x0000,0x0000,0x0000,0xF800,0x0000,0x07FF,
  42.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFC00,0x0000,0x07FF,
  43.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFE00,0x0000,0x07FF,
  44.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFF00,0x0000,0x07FF,
  45.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFF80,0x0000,0x07FF,
  46.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFFC0,0x0000,0x07FF,
  47.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFFE0,0x0000,0x07FF,
  48.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFFF0,0x0000,0x07FF,
  49.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFFF8,0x0000,0x07FF,
  50.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFFFC,0x0000,0x07FF,
  51.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFBFE,0x0000,0x07FF,
  52.         0x0000,0x0000,0x0000,0x0000,0x0000,0xF9FF,0x0000,0x07FF,
  53.         0x0000,0x0000,0x0000,0x0000,0x0000,0xF8FF,0x8000,0x07FF,
  54.         0x0000,0x0000,0x0000,0x0000,0x0000,0xF87F,0xC000,0x07FF,
  55.         0x0000,0x0000,0x0000,0x0000,0x0000,0xF83F,0xE000,0x07FF,
  56.         0x0000,0x0000,0x0000,0x0000,0x0000,0xF81F,0xF000,0x07FF,
  57.         0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF80F,0xF800,0x07FF,
  58.         0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF807,0xFC00,0x07FF,
  59.         0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF803,0xFE00,0x07FF,
  60.         0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF801,0xFF00,0x07FF,
  61.         0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800,0xFF80,0x07FF,
  62.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x7FC0,0x07FF,
  63.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x3FE0,0x07FF,
  64.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x1FF0,0x07FF,
  65.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0FF8,0x07FF,
  66.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x07FC,0x07FF,
  67.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x03FE,0x07FF,
  68.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x01FF,0x07FF,
  69.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x00FF,0x87FF,
  70.         0xF807,0xF400,0x0000,0x8060,0x0000,0x0000,0x007F,0xC7FF,
  71.         0xF80C,0x0C00,0x0001,0x8060,0x0000,0x0000,0x003F,0xE7FF,
  72.         0xF818,0x0400,0x0001,0x8000,0x0000,0x0000,0x001F,0xF7FF,
  73.         0xF818,0x007E,0x6F87,0xE0E3,0x7C71,0xC3F0,0x000F,0xFFFF,
  74.         0xF818,0x00C3,0x30C1,0x8061,0x8630,0xC618,0x0007,0xFFFF,
  75.         0xF818,0x00C3,0x30C1,0x8061,0x8630,0xC7F8,0x0003,0xFFFF,
  76.         0xF818,0x04C3,0x30C1,0x8061,0x8630,0xC600,0x0007,0xFFFF,
  77.         0xF80C,0x08C3,0x30C1,0x9861,0x8630,0xC608,0x000F,0xFFFF,
  78.         0xF807,0xF07E,0x79E0,0xF0F3,0xCF1F,0x63F0,0x001F,0xF7FF,
  79.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x003F,0xE7FF,
  80.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x007F,0xC7FF,
  81.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x00FF,0x87FF,
  82.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x01FF,0x07FF,
  83.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x03FE,0x07FF,
  84.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x07FC,0x07FF,
  85.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0FF8,0x07FF,
  86.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x1FF0,0x07FF,
  87.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x3FE0,0x07FF,
  88.         0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x7FC0,0x07FF,
  89.         0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800,0xFF80,0x07FF,
  90.         0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF801,0xFF00,0x07FF,
  91.         0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF803,0xFE00,0x07FF,
  92.         0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF807,0xFC00,0x07FF,
  93.         0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF80F,0xF800,0x07FF,
  94.         0x0000,0x0000,0x0000,0x0000,0x0000,0xF81F,0xF000,0x07FF,
  95.         0x0000,0x0000,0x0000,0x0000,0x0000,0xF83F,0xE000,0x07FF,
  96.         0x0000,0x0000,0x0000,0x0000,0x0000,0xF87F,0xC000,0x07FF,
  97.         0x0000,0x0000,0x0000,0x0000,0x0000,0xF8FF,0x8000,0x07FF,
  98.         0x0000,0x0000,0x0000,0x0000,0x0000,0xF9FF,0x0000,0x07FF,
  99.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFBFE,0x0000,0x07FF,
  100.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFFFC,0x0000,0x07FF,
  101.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFFF8,0x0000,0x07FF,
  102.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFFF0,0x0000,0x07FF,
  103.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFFE0,0x0000,0x07FF,
  104.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFFC0,0x0000,0x07FF,
  105.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFF80,0x0000,0x07FF,
  106.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFF00,0x0000,0x07FF,
  107.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFE00,0x0000,0x07FF,
  108.         0x0000,0x0000,0x0000,0x0000,0x0000,0xFC00,0x0000,0x07FF
  109. };
  110.  
  111. struct Image Image1 = {
  112.         -10,-10,        /* XY origin relative to container TopLeft */
  113.         117,68, /* Image width and height in pixels */
  114.         2,      /* number of bitplanes in Image */
  115.         ImageData1,     /* pointer to ImageData */
  116.         0x0001,0x0000,  /* PlanePick and PlaneOnOff */
  117.         NULL    /* next Image structure */
  118. };
  119.  
  120. struct Gadget Gadget6 = {
  121.         NULL,   /* next gadget */
  122.         331,184,        /* origin XY of hit box relative to window TopLeft */
  123.         99,43,  /* hit box width and height */
  124.         GADGHBOX+GADGHIMAGE+GADGIMAGE,  /* gadget flags */
  125.         GADGIMMEDIATE,  /* activation flags */
  126.         BOOLGADGET,     /* gadget type flags */
  127.         (APTR)&Image1,  /* gadget border or image to be rendered */
  128.         NULL,   /* alternate imagery for selection */
  129.         NULL,   /* 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 BorderVectors1[] = {
  137.         0,0,
  138.         39,0,
  139.         39,18,
  140.         0,18,
  141.         0,0
  142. };
  143. struct Border Border1 = {
  144.         -2,-1,  /* XY origin relative to container TopLeft */
  145.         3,0,COMPLEMENT,       /* front pen, back pen and drawmode */
  146.         5,      /* number of XY vectors */
  147.         BorderVectors1, /* pointer to XY vectors */
  148.         NULL    /* next border in list */
  149. };
  150.  
  151. struct IntuiText IText1 = {
  152.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  153.         1,4,    /* XY origin relative to container TopLeft */
  154.         NULL,   /* font pointer or NULL for default */
  155.         "Path", /* pointer to text */
  156.         NULL    /* next IntuiText structure */
  157. };
  158.  
  159. struct Gadget Gadget5 = {
  160.         &Gadget6,       /* next gadget */
  161.         56,92,  /* origin XY of hit box relative to window TopLeft */
  162.         36,17,  /* hit box width and height */
  163.         NULL,   /* gadget flags */
  164.         GADGIMMEDIATE,      /* activation flags */
  165.         BOOLGADGET,     /* gadget type flags */
  166.         (APTR)&Border1, /* gadget border or image to be rendered */
  167.         NULL,   /* alternate imagery for selection */
  168.         &IText1,        /* 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. UBYTE Gadget4SIBuff[150]="Plotme.dat";
  176. struct StringInfo Gadget4SInfo = {
  177.         Gadget4SIBuff,  /* buffer where text will be edited */
  178.         NULL,   /* optional undo buffer */
  179.         0,      /* character position in buffer */
  180.         30,     /* maximum number of characters to allow */
  181.         0,      /* first displayed character buffer position */
  182.         0,0,0,0,0,      /* Intuition initialized and maintained variables */
  183.         0,      /* Rastport of gadget */
  184.         0,      /* initial value for integer gadgets */
  185.         NULL    /* alternate keymap (fill in if you set the flag) */
  186. };
  187.  
  188. SHORT BorderVectors2[] = {
  189.         0,0,
  190.         236,0,
  191.         236,17,
  192.         0,17,
  193.         0,1
  194. };
  195. struct Border Border2 = {
  196.         -1,-5,  /* XY origin relative to container TopLeft */
  197.         3,0,COMPLEMENT, /* front pen, back pen and drawmode */
  198.         5,      /* number of XY vectors */
  199.         BorderVectors2, /* pointer to XY vectors */
  200.         NULL    /* next border in list */
  201. };
  202.  
  203. struct Gadget Gadget4 = {
  204.         &Gadget5,       /* next gadget */
  205.         108,97, /* origin XY of hit box relative to window TopLeft */
  206.         235,13, /* hit box width and height */
  207.         NULL,   /* gadget flags */
  208.         RELVERIFY+STRINGCENTER, /* activation flags */
  209.         STRGADGET,      /* gadget type flags */
  210.         (APTR)&Border2, /* gadget border or image to be rendered */
  211.         NULL,   /* alternate imagery for selection */
  212.         NULL,   /* first IntuiText structure */
  213.         NULL,   /* gadget mutual-exclude long word */
  214.         (APTR)&Gadget4SInfo,    /* SpecialInfo structure */
  215.         NULL,   /* user-definable data */
  216.         NULL    /* pointer to user-definable data */
  217. };
  218.  
  219. UBYTE Gadget3SIBuff[3]="0";
  220. struct StringInfo Gadget3SInfo = {
  221.         Gadget3SIBuff,  /* buffer where text will be edited */
  222.         NULL,   /* optional undo buffer */
  223.         0,      /* character position in buffer */
  224.         3,      /* maximum number of characters to allow */
  225.         0,      /* first displayed character buffer position */
  226.         0,0,0,0,0,      /* Intuition initialized and maintained variables */
  227.         0,      /* Rastport of gadget */
  228.         0,      /* initial value for integer gadgets */
  229.         NULL    /* alternate keymap (fill in if you set the flag) */
  230. };
  231.  
  232. SHORT BorderVectors3[] = {
  233.         0,0,
  234.         40,0,
  235.         40,17,
  236.         0,17,
  237.         0,1
  238. };
  239. struct Border Border3 = {
  240.         -1,-5,  /* XY origin relative to container TopLeft */
  241.         3,0,COMPLEMENT, /* front pen, back pen and drawmode */
  242.         5,      /* number of XY vectors */
  243.         BorderVectors3, /* pointer to XY vectors */
  244.         NULL    /* next border in list */
  245. };
  246.  
  247. struct Gadget Gadget3 = {
  248.         &Gadget4,       /* next gadget */
  249.         220,208,        /* origin XY of hit box relative to window TopLeft */
  250.         37,16,  /* hit box width and height */
  251.         NULL,   /* gadget flags */
  252.         RELVERIFY+LONGINT+STRINGCENTER, /* activation flags */
  253.         STRGADGET,      /* gadget type flags */
  254.         (APTR)&Border3, /* gadget border or image to be rendered */
  255.         NULL,   /* alternate imagery for selection */
  256.         NULL,   /* first IntuiText structure */
  257.         NULL,   /* gadget mutual-exclude long word */
  258.         (APTR)&Gadget3SInfo,    /* SpecialInfo structure */
  259.         NULL,   /* user-definable data */
  260.         NULL    /* pointer to user-definable data */
  261. };
  262.  
  263. UBYTE Gadget2SIBuff[3]="2";
  264. struct StringInfo Gadget2SInfo = {
  265.         Gadget2SIBuff,  /* buffer where text will be edited */
  266.         NULL,   /* optional undo buffer */
  267.         0,      /* character position in buffer */
  268.         3,      /* maximum number of characters to allow */
  269.         0,      /* first displayed character buffer position */
  270.         0,0,0,0,0,      /* Intuition initialized and maintained variables */
  271.         0,      /* Rastport of gadget */
  272.         2,      /* initial value for integer gadgets */
  273.         NULL    /* alternate keymap (fill in if you set the flag) */
  274. };
  275.  
  276. SHORT BorderVectors4[] = {
  277.         0,0,
  278.         40,0,
  279.         40,17,
  280.         0,17,
  281.         0,1
  282. };
  283. struct Border Border4 = {
  284.         -1,-5,  /* XY origin relative to container TopLeft */
  285.         3,0,COMPLEMENT, /* front pen, back pen and drawmode */
  286.         5,      /* number of XY vectors */
  287.         BorderVectors4, /* pointer to XY vectors */
  288.         NULL    /* next border in list */
  289. };
  290.  
  291. struct Gadget Gadget2 = {
  292.         &Gadget3,       /* next gadget */
  293.         220,188,        /* origin XY of hit box relative to window TopLeft */
  294.         37,16,  /* hit box width and height */
  295.         NULL,   /* gadget flags */
  296.         RELVERIFY+LONGINT+STRINGCENTER, /* activation flags */
  297.         STRGADGET,      /* gadget type flags */
  298.         (APTR)&Border4, /* gadget border or image to be rendered */
  299.         NULL,   /* alternate imagery for selection */
  300.         NULL,   /* first IntuiText structure */
  301.         NULL,   /* gadget mutual-exclude long word */
  302.         (APTR)&Gadget2SInfo,    /* SpecialInfo structure */
  303.         NULL,   /* user-definable data */
  304.         NULL    /* pointer to user-definable data */
  305. };
  306.  
  307. UBYTE Gadget1SIBuff[3]="1";
  308. struct StringInfo Gadget1SInfo = {
  309.         Gadget1SIBuff,  /* buffer where text will be edited */
  310.         NULL,   /* optional undo buffer */
  311.         0,      /* character position in buffer */
  312.         3,      /* maximum number of characters to allow */
  313.         0,      /* first displayed character buffer position */
  314.         0,0,0,0,0,      /* Intuition initialized and maintained variables */
  315.         0,      /* Rastport of gadget */
  316.         1,      /* initial value for integer gadgets */
  317.         NULL    /* alternate keymap (fill in if you set the flag) */
  318. };
  319.  
  320. SHORT BorderVectors5[] = {
  321.         0,0,
  322.         40,0,
  323.         40,17,
  324.         0,17,
  325.         0,1
  326. };
  327. struct Border Border5 = {
  328.         -1,-5,  /* XY origin relative to container TopLeft */
  329.         3,0,COMPLEMENT, /* front pen, back pen and drawmode */
  330.         5,      /* number of XY vectors */
  331.         BorderVectors5, /* pointer to XY vectors */
  332.         NULL    /* next border in list */
  333. };
  334.  
  335. struct Gadget Gadget1 = {
  336.         &Gadget2,       /* next gadget */
  337.         220,168,        /* origin XY of hit box relative to window TopLeft */
  338.         37,16,  /* hit box width and height */
  339.         NULL,   /* gadget flags */
  340.         RELVERIFY+LONGINT+STRINGCENTER, /* activation flags */
  341.         STRGADGET,      /* gadget type flags */
  342.         (APTR)&Border5, /* gadget border or image to be rendered */
  343.         NULL,   /* alternate imagery for selection */
  344.         NULL,   /* first IntuiText structure */
  345.         NULL,   /* gadget mutual-exclude long word */
  346.         (APTR)&Gadget1SInfo,    /* SpecialInfo structure */
  347.         NULL,   /* user-definable data */
  348.         NULL    /* pointer to user-definable data */
  349. };
  350.  
  351. #define GadgetList1 Gadget1
  352.  
  353. struct IntuiText IText5 = {
  354.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  355.         21,72,  /* XY origin relative to container TopLeft */
  356.         NULL,   /* font pointer or NULL for default */
  357.         "File to Plot:",        /* pointer to text */
  358.         NULL    /* next IntuiText structure */
  359. };
  360.  
  361. struct IntuiText IText4 = {
  362.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  363.         20,207, /* XY origin relative to container TopLeft */
  364.         NULL,   /* font pointer or NULL for default */
  365.         "Error in Y is in Column",      /* pointer to text */
  366.         &IText5 /* next IntuiText structure */
  367. };
  368.  
  369. struct IntuiText IText3 = {
  370.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  371.         23,188, /* XY origin relative to container TopLeft */
  372.         NULL,   /* font pointer or NULL for default */
  373.         "Y Data is in Column",  /* pointer to text */
  374.         &IText4 /* next IntuiText structure */
  375. };
  376.  
  377. struct IntuiText IText2 = {
  378.         1,0,JAM2,       /* front and back text pens, drawmode and fill byte */
  379.         22,168, /* XY origin relative to container TopLeft */
  380.         NULL,   /* font pointer or NULL for default */
  381.         "X Data is in Column",  /* pointer to text */
  382.         &IText3 /* next IntuiText structure */
  383. };
  384.  
  385.  
  386. struct NewWindow NewFrontWindow = {
  387.         70,59,  /* window XY origin relative to TopLeft of screen */
  388.         455,258,        /* window width and height */
  389.         2,1,    /* detail and block pens */
  390.         GADGETDOWN|RAWKEY,   /* IDCMP flags */
  391.         ACTIVATE|NOCAREREFRESH,   /*  flags */
  392.         &Gadget1,       /* first gadget in gadget list */
  393.         NULL,   /* custom CHECKMARK imagery */
  394.         "                Data Selection Window            ",    /* window title */
  395.         NULL,   /* custom screen pointer */
  396.         NULL,   /* custom bitmap */
  397.         5,5,    /* minimum width and height */
  398.         640,200,        /* maximum width and height */
  399.         CUSTOMSCREEN    /* destination screen type */
  400. };
  401.  
  402. struct Window *FrontWindow;
  403.