home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
396.lha
/
'Liner_v2.0
/
Source
/
SearchWdws.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-07-03
|
10KB
|
601 lines
UBYTE UNDOBUFFER[80];
USHORT chip ImageData1[] = {
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0xF000,0x0000,
0x0380,0x0000,0x00E0,0x0000,0x0000,0x0800,0x8000,0x0001,
0x9800,0x0000,0x0180,0x0000,0x0060,0x0000,0x0000,0x0800,
0x8000,0x0001,0xC0F0,0xF3B0,0xF1B0,0x00F1,0xF061,0x9800,
0x0000,0x0800,0x8000,0x0000,0xE198,0x19D9,0x99D8,0x0199,
0x9861,0x9800,0x0000,0x0800,0x8000,0x0000,0x39F8,0x7999,
0x8198,0x0199,0x9861,0x9800,0x0000,0x0800,0x8000,0x0001,
0x9981,0x9981,0x9998,0x0199,0x9860,0xF000,0x0000,0x0800,
0x8000,0x0000,0xF0F0,0xEFC0,0xF398,0x00F1,0x98F0,0x6000,
0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0001,0xC000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
};
struct Image Image1 = {
0,0,
149,12,
2,
ImageData1,
0x0001,0x0000,
NULL
};
USHORT chip ImageData2[] = {
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0800,0x8000,0x0780,0x0000,0x001C,
0x007F,0x8000,0x0700,0x0000,0x0000,0x0800,0x8000,0x0CC0,
0x0000,0x000C,0x00CC,0xC000,0x0300,0x0000,0x0000,0x0800,
0x8000,0x0E07,0x879D,0x878D,0x818C,0xC79B,0x8307,0x8787,
0x8000,0x0800,0x8000,0x070C,0xC0CE,0xCCCE,0xC30F,0x8CCC,
0xC300,0xCCCC,0xC000,0x0800,0x8000,0x01CF,0xC3CC,0xCC0C,
0xC60D,0x8FCC,0xC303,0xCC0F,0xC000,0x0800,0x8000,0x0CCC,
0x0CCC,0x0CCC,0xCC0C,0xCC0F,0x830C,0xCCCC,0x0000,0x0800,
0x8000,0x0787,0x877E,0x079C,0xD81C,0x678C,0x0787,0x6787,
0x8000,0x0800,0x8000,0x0000,0x0000,0x0000,0x0000,0x001E,
0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
};
struct Image Image2 = {
0,0,
149,12,
2,
ImageData2,
0x0001,0x0000,
NULL
};
struct Gadget SrchRplc = {
NULL,
29,92,
149,12,
GADGHIMAGE+GADGIMAGE,
TOGGLESELECT,
BOOLGADGET,
(APTR)&Image1,
(APTR)&Image2,
NULL,
NULL,
NULL,
5,
NULL
};
USHORT chip ImageData3[] = {
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0800,0x8000,0x000F,0xC000,0x0081,
0x8003,0x8000,0x0000,0x00E0,0x0000,0x0800,0x8000,0x0006,
0x6000,0x0180,0x0001,0x8000,0x0000,0x0060,0x0000,0x0800,
0x8000,0x0006,0x63CE,0xC3E3,0x83C1,0x8006,0x33CE,0xC360,
0x0000,0x0800,0x8000,0x0007,0xC067,0x6181,0x8061,0x8006,
0xB667,0x66E0,0x0000,0x0800,0x8000,0x0006,0x01E6,0x6181,
0x81E1,0x8006,0xB666,0x6660,0x0000,0x0800,0x8000,0x0006,
0x0666,0x01A1,0x8661,0x8003,0x6666,0x0660,0x0000,0x0800,
0x8000,0x000F,0x03BF,0x00C3,0xC3B3,0xC003,0x63CF,0x03B0,
0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
};
struct Image Image3 = {
0,0,
149,12,
2,
ImageData3,
0x0001,0x0000,
NULL
};
USHORT chip ImageData4[] = {
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x18DC,0x0007,
0x0000,0x0000,0x0001,0xC000,0x0000,0x0800,0x8000,0x0000,
0x18CC,0x0003,0x0000,0x0000,0x0000,0xC000,0x0000,0x0800,
0x8000,0x0000,0x18CD,0x8783,0x0780,0x0C67,0x9D86,0xC000,
0x0000,0x0800,0x8000,0x0000,0x1ACE,0xCCC3,0x0CC0,0x0D6C,
0xCECD,0xC000,0x0000,0x0800,0x8000,0x0000,0x1FCC,0xCCC3,
0x0FC0,0x0D6C,0xCCCC,0xC000,0x0000,0x0800,0x8000,0x0000,
0x1DCC,0xCCC3,0x0C00,0x06CC,0xCC0C,0xC000,0x0000,0x0800,
0x8000,0x0000,0x18DC,0xC787,0x8780,0x06C7,0x9E07,0x6000,
0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
};
struct Image Image4 = {
0,0,
149,12,
2,
ImageData4,
0x0001,0x0000,
NULL
};
struct Gadget PartialWord = {
&SrchRplc,
29,77,
149,12,
GADGHIMAGE+GADGIMAGE,
TOGGLESELECT,
BOOLGADGET,
(APTR)&Image3,
(APTR)&Image4,
NULL,
NULL,
NULL,
4,
NULL
};
USHORT chip ImageData5[] = {
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0800,0x98C0,0x0100,0x0000,0x0000,
0x0000,0x0000,0x0003,0x0103,0x0000,0x0800,0x9CC0,0x0300,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0300,0x0000,0x0800,
0x9EC7,0x87C0,0x0787,0x87C7,0x8007,0xC78F,0x87C7,0x07C7,
0x0CC7,0x8800,0x9BCC,0xC300,0x0CC0,0xCC0C,0xC00C,0x0CCC,
0xCC03,0x0303,0x0CCC,0xC800,0x99CC,0xC300,0x0C03,0xC78F,
0xC007,0x8FCC,0xC783,0x0303,0x0CCF,0xC800,0x98CC,0xC340,
0x0CCC,0xC0CC,0x0000,0xCC0C,0xC0C3,0x0343,0x078C,0x0800,
0x98C7,0x8180,0x0787,0x6F87,0x800F,0x878C,0xCF87,0x8187,
0x8307,0x8800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
};
struct Image Image5 = {
0,0,
149,12,
2,
ImageData5,
0x0001,0x0000,
NULL
};
USHORT chip ImageData6[] = {
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xF800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0800,0x8000,0x03C0,0x0000,0x0000,
0x0000,0x0001,0x8081,0x8000,0x0000,0x0800,0x8000,0x0660,
0x0000,0x0000,0x0000,0x0000,0x0180,0x0000,0x0000,0x0800,
0x8000,0x0C03,0xC3E3,0xC003,0xE3C7,0xC3E3,0x83E3,0x8663,
0xC000,0x0800,0x8000,0x0C00,0x6606,0x6006,0x0666,0x6601,
0x8181,0x8666,0x6000,0x0800,0x8000,0x0C01,0xE3C7,0xE003,
0xC7E6,0x63C1,0x8181,0x8667,0xE000,0x0800,0x8000,0x0666,
0x6066,0x0000,0x6606,0x6061,0x81A1,0x83C6,0x0000,0x0800,
0x8000,0x03C3,0xB7C3,0xC007,0xC3C6,0x67C3,0xC0C3,0xC183,
0xC000,0x0800,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0800,0x8000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0800,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF800
};
struct Image Image6 = {
0,0,
149,12,
2,
ImageData6,
0x0001,0x0000,
NULL
};
struct Gadget CaseSensitive = {
&PartialWord,
29,62,
149,12,
GADGHIMAGE+GADGIMAGE,
TOGGLESELECT,
BOOLGADGET,
(APTR)&Image5,
(APTR)&Image6,
NULL,
NULL,
NULL,
3,
NULL
};
SHORT BorderVectors1[] = {
0,0,
56,0,
56,10,
0,10,
0,1
};
struct Border Border1 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors1,
NULL
};
struct IntuiText IText1 = {
1,0,JAM1,
20,1,
NULL,
"OK",
NULL
};
struct Gadget OK = {
&CaseSensitive,
10,112,
55,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border1,
NULL,
&IText1,
NULL,
NULL,
6,
NULL
};
SHORT BorderVectors2[] = {
0,0,
56,0,
56,10,
0,10,
0,1
};
struct Border Border2 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors2,
NULL
};
struct IntuiText IText2 = {
1,0,JAM1,
4,1,
NULL,
"Cancel",
NULL
};
struct Gadget Cancel = {
&OK,
140,112,
55,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border2,
NULL,
&IText2,
NULL,
NULL,
8,
NULL
};
SHORT BorderVectors3[] = {
0,0,
56,0,
56,10,
0,10,
0,1
};
struct Border Border3 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors3,
NULL
};
struct IntuiText IText3 = {
1,0,JAM1,
13,1,
NULL,
"Wait",
NULL
};
struct Gadget WaitGadg = {
&Cancel,
75,112,
55,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border3,
NULL,
&IText3,
NULL,
NULL,
7,
NULL
};
UBYTE ReplaceWithSIBuff[80];
struct StringInfo ReplaceWithSInfo = {
ReplaceWithSIBuff,
UNDOBUFFER,
0,
80,
0,
0,0,0,0,0,
0,
0,
NULL
};
SHORT BorderVectors4[] = {
0,0,
187,0,
187,9,
0,9,
0,0
};
struct Border Border4 = {
-2,-1,
1,0,JAM1,
5,
BorderVectors4,
NULL
};
struct Gadget ReplaceWith = {
&WaitGadg,
10,48,
184,8,
NULL,
RELVERIFY,
STRGADGET,
(APTR)&Border4,
NULL,
NULL,
NULL,
(APTR)&ReplaceWithSInfo,
2,
NULL
};
UBYTE SearchForSIBuff[80];
struct StringInfo SearchForSInfo = {
SearchForSIBuff,
UNDOBUFFER,
0,
80,
0,
0,0,0,0,0,
0,
0,
NULL
};
SHORT BorderVectors5[] = {
0,0,
187,0,
187,9,
0,9,
0,0
};
struct Border Border5 = {
-2,-1,
1,0,JAM1,
5,
BorderVectors5,
NULL
};
struct Gadget SearchFor = {
&ReplaceWith,
10,25,
184,8,
NULL,
RELVERIFY,
STRGADGET,
(APTR)&Border5,
NULL,
NULL,
NULL,
(APTR)&SearchForSInfo,
1,
NULL
};
#define GadgetList1 SearchFor
struct IntuiText IText5 = {
1,0,JAM1,
9,37,
NULL,
"Replace with:",
NULL
};
struct IntuiText IText4 = {
1,0,JAM1,
8,15,
NULL,
"Search for:",
&IText5
};
#define IntuiTextList1 IText4
struct NewWindow NewSearchWindow = {
219,14,
204,127,
0,1,
GADGETUP+CLOSEWINDOW,
WINDOWDRAG+WINDOWCLOSE+ACTIVATE,
&SearchFor,
NULL,
"Search/Replace",
NULL,
NULL,
5,5,
640,200,
CUSTOMSCREEN
};
SHORT BorderVectors6[] = {
0,0,
62,0,
62,10,
0,10,
0,1
};
struct Border Border6 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors6,
NULL
};
struct IntuiText IText6 = {
1,0,JAM1,
7,1,
NULL,
"Cancel",
NULL
};
struct Gadget RepAllCancel = {
NULL,
251,3,
61,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border6,
NULL,
&IText6,
NULL,
NULL,
FALSE,
NULL
};
SHORT BorderVectors7[] = {
0,0,
62,0,
62,10,
0,10,
0,1
};
struct Border Border7 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors7,
NULL
};
struct IntuiText IText7 = {
1,0,JAM1,
15,1,
NULL,
"Next",
NULL
};
struct Gadget RepAllNext = {
&RepAllCancel,
180,3,
61,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border7,
NULL,
&IText7,
NULL,
NULL,
10,
NULL
};
SHORT BorderVectors8[] = {
0,0,
62,0,
62,10,
0,10,
0,1
};
struct Border Border8 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors8,
NULL
};
struct IntuiText IText8 = {
1,0,JAM1,
3,1,
NULL,
"Replace",
NULL
};
struct Gadget RepAllRep = {
&RepAllNext,
109,3,
61,9,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border8,
NULL,
&IText8,
NULL,
NULL,
TRUE,
NULL
};
#define GadgetList2 RepAllRep
struct IntuiText IText9 = {
1,0,JAM1,
5,4,
NULL,
"Found word:",
NULL
};
#define IntuiTextList2 IText9
struct NewWindow NewWindowStructure2 = {
150,19,
319,15,
0,1,
GADGETUP,
NULL,
&RepAllRep,
NULL,
NULL,
NULL,
NULL,
5,5,
640,200,
CUSTOMSCREEN
};