home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / aniptrs3_394.lzh / 'Liner / Source / SearchWdws.h < prev    next >
C/C++ Source or Header  |  1990-10-28  |  10KB  |  601 lines

  1.  
  2. UBYTE UNDOBUFFER[80];
  3.  
  4. USHORT chip ImageData1[] = {
  5.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
  6.     0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  7.     0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0xF000,0x0000,
  8.     0x0380,0x0000,0x00E0,0x0000,0x0000,0x0800,0x8000,0x0001,
  9.     0x9800,0x0000,0x0180,0x0000,0x0060,0x0000,0x0000,0x0800,
  10.     0x8000,0x0001,0xC0F0,0xF3B0,0xF1B0,0x00F1,0xF061,0x9800,
  11.     0x0000,0x0800,0x8000,0x0000,0xE198,0x19D9,0x99D8,0x0199,
  12.     0x9861,0x9800,0x0000,0x0800,0x8000,0x0000,0x39F8,0x7999,
  13.     0x8198,0x0199,0x9861,0x9800,0x0000,0x0800,0x8000,0x0001,
  14.     0x9981,0x9981,0x9998,0x0199,0x9860,0xF000,0x0000,0x0800,
  15.     0x8000,0x0000,0xF0F0,0xEFC0,0xF398,0x00F1,0x98F0,0x6000,
  16.     0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  17.     0x0001,0xC000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
  18.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
  19.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
  20. };
  21.  
  22. struct Image Image1 = {
  23.     0,0,
  24.     149,12,
  25.     2,
  26.     ImageData1,
  27.     0x0001,0x0000,
  28.     NULL
  29. };
  30.  
  31. USHORT chip ImageData2[] = {
  32.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
  33.     0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  34.     0x0000,0x0000,0x0000,0x0800,0x8000,0x0780,0x0000,0x001C,
  35.     0x007F,0x8000,0x0700,0x0000,0x0000,0x0800,0x8000,0x0CC0,
  36.     0x0000,0x000C,0x00CC,0xC000,0x0300,0x0000,0x0000,0x0800,
  37.     0x8000,0x0E07,0x879D,0x878D,0x818C,0xC79B,0x8307,0x8787,
  38.     0x8000,0x0800,0x8000,0x070C,0xC0CE,0xCCCE,0xC30F,0x8CCC,
  39.     0xC300,0xCCCC,0xC000,0x0800,0x8000,0x01CF,0xC3CC,0xCC0C,
  40.     0xC60D,0x8FCC,0xC303,0xCC0F,0xC000,0x0800,0x8000,0x0CCC,
  41.     0x0CCC,0x0CCC,0xCC0C,0xCC0F,0x830C,0xCCCC,0x0000,0x0800,
  42.     0x8000,0x0787,0x877E,0x079C,0xD81C,0x678C,0x0787,0x6787,
  43.     0x8000,0x0800,0x8000,0x0000,0x0000,0x0000,0x0000,0x001E,
  44.     0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
  45.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
  46.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
  47. };
  48.  
  49. struct Image Image2 = {
  50.     0,0,
  51.     149,12,
  52.     2,
  53.     ImageData2,
  54.     0x0001,0x0000,
  55.     NULL
  56. };
  57.  
  58. struct Gadget SrchRplc = {
  59.     NULL,
  60.     29,92,
  61.     149,12,
  62.     GADGHIMAGE+GADGIMAGE,
  63.     TOGGLESELECT,
  64.     BOOLGADGET,
  65.     (APTR)&Image1,
  66.     (APTR)&Image2,
  67.     NULL,
  68.     NULL,
  69.     NULL,
  70.     5,
  71.     NULL
  72. };
  73.  
  74. USHORT chip ImageData3[] = {
  75.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
  76.     0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  77.     0x0000,0x0000,0x0000,0x0800,0x8000,0x000F,0xC000,0x0081,
  78.     0x8003,0x8000,0x0000,0x00E0,0x0000,0x0800,0x8000,0x0006,
  79.     0x6000,0x0180,0x0001,0x8000,0x0000,0x0060,0x0000,0x0800,
  80.     0x8000,0x0006,0x63CE,0xC3E3,0x83C1,0x8006,0x33CE,0xC360,
  81.     0x0000,0x0800,0x8000,0x0007,0xC067,0x6181,0x8061,0x8006,
  82.     0xB667,0x66E0,0x0000,0x0800,0x8000,0x0006,0x01E6,0x6181,
  83.     0x81E1,0x8006,0xB666,0x6660,0x0000,0x0800,0x8000,0x0006,
  84.     0x0666,0x01A1,0x8661,0x8003,0x6666,0x0660,0x0000,0x0800,
  85.     0x8000,0x000F,0x03BF,0x00C3,0xC3B3,0xC003,0x63CF,0x03B0,
  86.     0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  87.     0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
  88.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
  89.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
  90. };
  91.  
  92. struct Image Image3 = {
  93.     0,0,
  94.     149,12,
  95.     2,
  96.     ImageData3,
  97.     0x0001,0x0000,
  98.     NULL
  99. };
  100.  
  101. USHORT chip ImageData4[] = {
  102.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
  103.     0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  104.     0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x18DC,0x0007,
  105.     0x0000,0x0000,0x0001,0xC000,0x0000,0x0800,0x8000,0x0000,
  106.     0x18CC,0x0003,0x0000,0x0000,0x0000,0xC000,0x0000,0x0800,
  107.     0x8000,0x0000,0x18CD,0x8783,0x0780,0x0C67,0x9D86,0xC000,
  108.     0x0000,0x0800,0x8000,0x0000,0x1ACE,0xCCC3,0x0CC0,0x0D6C,
  109.     0xCECD,0xC000,0x0000,0x0800,0x8000,0x0000,0x1FCC,0xCCC3,
  110.     0x0FC0,0x0D6C,0xCCCC,0xC000,0x0000,0x0800,0x8000,0x0000,
  111.     0x1DCC,0xCCC3,0x0C00,0x06CC,0xCC0C,0xC000,0x0000,0x0800,
  112.     0x8000,0x0000,0x18DC,0xC787,0x8780,0x06C7,0x9E07,0x6000,
  113.     0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  114.     0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
  115.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
  116.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
  117. };
  118.  
  119. struct Image Image4 = {
  120.     0,0,
  121.     149,12,
  122.     2,
  123.     ImageData4,
  124.     0x0001,0x0000,
  125.     NULL
  126. };
  127.  
  128. struct Gadget PartialWord = {
  129.     &SrchRplc,
  130.     29,77,
  131.     149,12,
  132.     GADGHIMAGE+GADGIMAGE,
  133.     TOGGLESELECT,
  134.     BOOLGADGET,
  135.     (APTR)&Image3,
  136.     (APTR)&Image4,
  137.     NULL,
  138.     NULL,
  139.     NULL,
  140.     4,
  141.     NULL
  142. };
  143.  
  144. USHORT chip ImageData5[] = {
  145.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
  146.     0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  147.     0x0000,0x0000,0x0000,0x0800,0x98C0,0x0100,0x0000,0x0000,
  148.     0x0000,0x0000,0x0003,0x0103,0x0000,0x0800,0x9CC0,0x0300,
  149.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0300,0x0000,0x0800,
  150.     0x9EC7,0x87C0,0x0787,0x87C7,0x8007,0xC78F,0x87C7,0x07C7,
  151.     0x0CC7,0x8800,0x9BCC,0xC300,0x0CC0,0xCC0C,0xC00C,0x0CCC,
  152.     0xCC03,0x0303,0x0CCC,0xC800,0x99CC,0xC300,0x0C03,0xC78F,
  153.     0xC007,0x8FCC,0xC783,0x0303,0x0CCF,0xC800,0x98CC,0xC340,
  154.     0x0CCC,0xC0CC,0x0000,0xCC0C,0xC0C3,0x0343,0x078C,0x0800,
  155.     0x98C7,0x8180,0x0787,0x6F87,0x800F,0x878C,0xCF87,0x8187,
  156.     0x8307,0x8800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  157.     0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
  158.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
  159.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
  160. };
  161.  
  162. struct Image Image5 = {
  163.     0,0,
  164.     149,12,
  165.     2,
  166.     ImageData5,
  167.     0x0001,0x0000,
  168.     NULL
  169. };
  170.  
  171. USHORT chip ImageData6[] = {
  172.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
  173.     0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  174.     0x0000,0x0000,0x0000,0x0800,0x8000,0x03C0,0x0000,0x0000,
  175.     0x0000,0x0001,0x8081,0x8000,0x0000,0x0800,0x8000,0x0660,
  176.     0x0000,0x0000,0x0000,0x0000,0x0180,0x0000,0x0000,0x0800,
  177.     0x8000,0x0C03,0xC3E3,0xC003,0xE3C7,0xC3E3,0x83E3,0x8663,
  178.     0xC000,0x0800,0x8000,0x0C00,0x6606,0x6006,0x0666,0x6601,
  179.     0x8181,0x8666,0x6000,0x0800,0x8000,0x0C01,0xE3C7,0xE003,
  180.     0xC7E6,0x63C1,0x8181,0x8667,0xE000,0x0800,0x8000,0x0666,
  181.     0x6066,0x0000,0x6606,0x6061,0x81A1,0x83C6,0x0000,0x0800,
  182.     0x8000,0x03C3,0xB7C3,0xC007,0xC3C6,0x67C3,0xC0C3,0xC183,
  183.     0xC000,0x0800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
  184.     0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
  185.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
  186.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
  187. };
  188.  
  189. struct Image Image6 = {
  190.     0,0,
  191.     149,12,
  192.     2,
  193.     ImageData6,
  194.     0x0001,0x0000,
  195.     NULL
  196. };
  197.  
  198. struct Gadget CaseSensitive = {
  199.     &PartialWord,
  200.     29,62,
  201.     149,12,
  202.     GADGHIMAGE+GADGIMAGE,
  203.     TOGGLESELECT,
  204.     BOOLGADGET,
  205.     (APTR)&Image5,
  206.     (APTR)&Image6,
  207.     NULL,
  208.     NULL,
  209.     NULL,
  210.     3,
  211.     NULL
  212. };
  213.  
  214. SHORT BorderVectors1[] = {
  215.     0,0,
  216.     56,0,
  217.     56,10,
  218.     0,10,
  219.     0,1
  220. };
  221. struct Border Border1 = {
  222.     -1,-1,
  223.     1,0,JAM1,
  224.     5,
  225.     BorderVectors1,
  226.     NULL
  227. };
  228.  
  229. struct IntuiText IText1 = {
  230.     1,0,JAM1,
  231.     20,1,
  232.     NULL,
  233.     "OK",
  234.     NULL
  235. };
  236.  
  237. struct Gadget OK = {
  238.     &CaseSensitive,
  239.     10,112,
  240.     55,9,
  241.     NULL,
  242.     RELVERIFY,
  243.     BOOLGADGET,
  244.     (APTR)&Border1,
  245.     NULL,
  246.     &IText1,
  247.     NULL,
  248.     NULL,
  249.     6,
  250.     NULL
  251. };
  252.  
  253. SHORT BorderVectors2[] = {
  254.     0,0,
  255.     56,0,
  256.     56,10,
  257.     0,10,
  258.     0,1
  259. };
  260. struct Border Border2 = {
  261.     -1,-1,
  262.     1,0,JAM1,
  263.     5,
  264.     BorderVectors2,
  265.     NULL
  266. };
  267.  
  268. struct IntuiText IText2 = {
  269.     1,0,JAM1,
  270.     4,1,
  271.     NULL,
  272.     "Cancel",
  273.     NULL
  274. };
  275.  
  276. struct Gadget Cancel = {
  277.     &OK,
  278.     140,112,
  279.     55,9,
  280.     NULL,
  281.     RELVERIFY,
  282.     BOOLGADGET,
  283.     (APTR)&Border2,
  284.     NULL,
  285.     &IText2,
  286.     NULL,
  287.     NULL,
  288.     8,
  289.     NULL
  290. };
  291.  
  292. SHORT BorderVectors3[] = {
  293.     0,0,
  294.     56,0,
  295.     56,10,
  296.     0,10,
  297.     0,1
  298. };
  299. struct Border Border3 = {
  300.     -1,-1,
  301.     1,0,JAM1,
  302.     5,
  303.     BorderVectors3,
  304.     NULL
  305. };
  306.  
  307. struct IntuiText IText3 = {
  308.     1,0,JAM1,
  309.     13,1,
  310.     NULL,
  311.     "Wait",
  312.     NULL
  313. };
  314.  
  315. struct Gadget WaitGadg = {
  316.     &Cancel,
  317.     75,112,
  318.     55,9,
  319.     NULL,
  320.     RELVERIFY,
  321.     BOOLGADGET,
  322.     (APTR)&Border3,
  323.     NULL,
  324.     &IText3,
  325.     NULL,
  326.     NULL,
  327.     7,
  328.     NULL
  329. };
  330.  
  331. UBYTE ReplaceWithSIBuff[80];
  332. struct StringInfo ReplaceWithSInfo = {
  333.     ReplaceWithSIBuff,
  334.     UNDOBUFFER,
  335.     0,
  336.     80,
  337.     0,
  338.     0,0,0,0,0,
  339.     0,
  340.     0,
  341.     NULL
  342. };
  343.  
  344. SHORT BorderVectors4[] = {
  345.     0,0,
  346.     187,0,
  347.     187,9,
  348.     0,9,
  349.     0,0
  350. };
  351. struct Border Border4 = {
  352.     -2,-1,
  353.     1,0,JAM1,
  354.     5,
  355.     BorderVectors4,
  356.     NULL
  357. };
  358.  
  359. struct Gadget ReplaceWith = {
  360.     &WaitGadg,
  361.     10,48,
  362.     184,8,
  363.     NULL,
  364.     RELVERIFY,
  365.     STRGADGET,
  366.     (APTR)&Border4,
  367.     NULL,
  368.     NULL,
  369.     NULL,
  370.     (APTR)&ReplaceWithSInfo,
  371.     2,
  372.     NULL
  373. };
  374.  
  375. UBYTE SearchForSIBuff[80];
  376. struct StringInfo SearchForSInfo = {
  377.     SearchForSIBuff,
  378.     UNDOBUFFER,
  379.     0,
  380.     80,
  381.     0,
  382.     0,0,0,0,0,
  383.     0,
  384.     0,
  385.     NULL
  386. };
  387.  
  388. SHORT BorderVectors5[] = {
  389.     0,0,
  390.     187,0,
  391.     187,9,
  392.     0,9,
  393.     0,0
  394. };
  395. struct Border Border5 = {
  396.     -2,-1,
  397.     1,0,JAM1,
  398.     5,
  399.     BorderVectors5,
  400.     NULL
  401. };
  402.  
  403. struct Gadget SearchFor = {
  404.     &ReplaceWith,
  405.     10,25,
  406.     184,8,
  407.     NULL,
  408.     RELVERIFY,
  409.     STRGADGET,
  410.     (APTR)&Border5,
  411.     NULL,
  412.     NULL,
  413.     NULL,
  414.     (APTR)&SearchForSInfo,
  415.     1,
  416.     NULL
  417. };
  418.  
  419. #define GadgetList1 SearchFor
  420.  
  421. struct IntuiText IText5 = {
  422.     1,0,JAM1,
  423.     9,37,
  424.     NULL,
  425.     "Replace with:",
  426.     NULL
  427. };
  428.  
  429. struct IntuiText IText4 = {
  430.     1,0,JAM1,
  431.     8,15,
  432.     NULL,
  433.     "Search for:",
  434.     &IText5
  435. };
  436.  
  437. #define IntuiTextList1 IText4
  438.  
  439. struct NewWindow NewSearchWindow = {
  440.     219,14,
  441.     204,127,
  442.     0,1,
  443.     GADGETUP+CLOSEWINDOW,
  444.     WINDOWDRAG+WINDOWCLOSE+ACTIVATE,
  445.     &SearchFor,
  446.     NULL,
  447.     "Search/Replace",
  448.     NULL,
  449.     NULL,
  450.     5,5,
  451.     640,200,
  452.     CUSTOMSCREEN
  453. };
  454.  
  455. SHORT BorderVectors6[] = {
  456.     0,0,
  457.     62,0,
  458.     62,10,
  459.     0,10,
  460.     0,1
  461. };
  462. struct Border Border6 = {
  463.     -1,-1,
  464.     1,0,JAM1,
  465.     5,
  466.     BorderVectors6,
  467.     NULL
  468. };
  469.  
  470. struct IntuiText IText6 = {
  471.     1,0,JAM1,
  472.     7,1,
  473.     NULL,
  474.     "Cancel",
  475.     NULL
  476. };
  477.  
  478. struct Gadget RepAllCancel = {
  479.     NULL,
  480.     251,3,
  481.     61,9,
  482.     NULL,
  483.     RELVERIFY,
  484.     BOOLGADGET,
  485.     (APTR)&Border6,
  486.     NULL,
  487.     &IText6,
  488.     NULL,
  489.     NULL,
  490.     FALSE,
  491.     NULL
  492. };
  493.  
  494. SHORT BorderVectors7[] = {
  495.     0,0,
  496.     62,0,
  497.     62,10,
  498.     0,10,
  499.     0,1
  500. };
  501. struct Border Border7 = {
  502.     -1,-1,
  503.     1,0,JAM1,
  504.     5,
  505.     BorderVectors7,
  506.     NULL
  507. };
  508.  
  509. struct IntuiText IText7 = {
  510.     1,0,JAM1,
  511.     15,1,
  512.     NULL,
  513.     "Next",
  514.     NULL
  515. };
  516.  
  517. struct Gadget RepAllNext = {
  518.     &RepAllCancel,
  519.     180,3,
  520.     61,9,
  521.     NULL,
  522.     RELVERIFY,
  523.     BOOLGADGET,
  524.     (APTR)&Border7,
  525.     NULL,
  526.     &IText7,
  527.     NULL,
  528.     NULL,
  529.     10,
  530.     NULL
  531. };
  532.  
  533. SHORT BorderVectors8[] = {
  534.     0,0,
  535.     62,0,
  536.     62,10,
  537.     0,10,
  538.     0,1
  539. };
  540. struct Border Border8 = {
  541.     -1,-1,
  542.     1,0,JAM1,
  543.     5,
  544.     BorderVectors8,
  545.     NULL
  546. };
  547.  
  548. struct IntuiText IText8 = {
  549.     1,0,JAM1,
  550.     3,1,
  551.     NULL,
  552.     "Replace",
  553.     NULL
  554. };
  555.  
  556. struct Gadget RepAllRep = {
  557.     &RepAllNext,
  558.     109,3,
  559.     61,9,
  560.     NULL,
  561.     RELVERIFY,
  562.     BOOLGADGET,
  563.     (APTR)&Border8,
  564.     NULL,
  565.     &IText8,
  566.     NULL,
  567.     NULL,
  568.    TRUE,
  569.     NULL
  570. };
  571.  
  572. #define GadgetList2 RepAllRep
  573.  
  574. struct IntuiText IText9 = {
  575.     1,0,JAM1,
  576.     5,4,
  577.     NULL,
  578.     "Found word:",
  579.     NULL
  580. };
  581.  
  582. #define IntuiTextList2 IText9
  583.  
  584. struct NewWindow NewWindowStructure2 = {
  585.     150,19,
  586.     319,15,
  587.     0,1,
  588.     GADGETUP,
  589.     NULL,
  590.     &RepAllRep,
  591.     NULL,
  592.     NULL,
  593.     NULL,
  594.     NULL,
  595.     5,5,
  596.     640,200,
  597.     CUSTOMSCREEN
  598. };
  599.  
  600.  
  601.