home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Audio 4.94 - Over 11,000 Files
/
audio-11000.iso
/
amiga
/
midi
/
mstuffpr.zoo
/
MIDIstuff
/
src
/
RecPOW.c
< prev
Wrap
C/C++ Source or Header
|
1990-08-16
|
3KB
|
296 lines
SHORT BorderVectors1[] = {
0,0,
71,0,
71,17,
0,17,
0,0
};
struct Border Border1 = {
-2,-1,
3,0,JAM1,
5,
BorderVectors1,
NULL
};
struct IntuiText IText1 = {
2,0,JAM2,
9,4,
NULL,
(UBYTE *)"Rewind",
NULL
};
struct Gadget g_Rewind = {
NULL,
7,12,
68,16,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border1,
NULL,
&IText1,
NULL,
NULL,
NULL,
NULL
};
SHORT BorderVectors2[] = {
0,0,
71,0,
71,17,
0,17,
0,0
};
struct Border Border2 = {
-2,-1,
3,0,JAM1,
5,
BorderVectors2,
NULL
};
struct IntuiText IText2 = {
2,0,JAM2,
8,4,
NULL,
(UBYTE *)"Record",
NULL
};
struct Gadget g_Record = {
&g_Rewind,
81,12,
68,16,
NULL,
RELVERIFY+TOGGLESELECT,
BOOLGADGET,
(APTR)&Border2,
NULL,
&IText2,
NULL,
NULL,
NULL,
NULL
};
#define GadgetList1 g_Record
struct IntuiText IText3 = {
3,1,COMPLEMENT,
0,0,
NULL,
(UBYTE *)"Toggle Thru",
NULL
};
struct MenuItem MenuItem2 = {
NULL,
0,9,
128,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHBOX,
0,
(APTR)&IText3,
NULL,
'`',
NULL,
MENUNULL
};
struct IntuiText IText4 = {
3,1,COMPLEMENT,
0,0,
NULL,
(UBYTE *)"Help",
NULL
};
struct MenuItem MenuItem1 = {
&MenuItem2,
0,0,
128,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHBOX,
0,
(APTR)&IText4,
NULL,
'.',
NULL,
MENUNULL
};
struct Menu Menu2 = {
NULL,
82,0,
57,0,
MENUENABLED,
"Tools",
&MenuItem1
};
struct IntuiText IText5 = {
3,1,COMPLEMENT,
0,0,
NULL,
(UBYTE *)" are you sure? ",
NULL
};
struct MenuItem SubItem1 = {
NULL,
33,3,
120,8,
ITEMTEXT+ITEMENABLED+HIGHBOX,
0,
(APTR)&IText5,
NULL,
NULL,
NULL,
MENUNULL
};
struct IntuiText IText6 = {
3,1,COMPLEMENT,
0,0,
NULL,
(UBYTE *)"Quit",
NULL
};
struct MenuItem MenuItem7 = {
NULL,
0,36,
104,8,
ITEMTEXT+ITEMENABLED+HIGHBOX,
0,
(APTR)&IText6,
NULL,
NULL,
&SubItem1,
MENUNULL
};
struct IntuiText IText7 = {
3,1,COMPLEMENT,
0,0,
NULL,
(UBYTE *)"Write",
NULL
};
struct MenuItem MenuItem6 = {
&MenuItem7,
0,27,
104,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHBOX,
0,
(APTR)&IText7,
NULL,
'w',
NULL,
MENUNULL
};
struct IntuiText IText8 = {
3,1,COMPLEMENT,
0,0,
NULL,
(UBYTE *)"Save as ",
NULL
};
struct MenuItem MenuItem5 = {
&MenuItem6,
0,18,
104,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHBOX,
0,
(APTR)&IText8,
NULL,
's',
NULL,
MENUNULL
};
struct IntuiText IText9 = {
3,1,COMPLEMENT,
0,0,
NULL,
(UBYTE *)"Re-read",
NULL
};
struct MenuItem MenuItem4 = {
&MenuItem5,
0,9,
104,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHBOX,
0,
(APTR)&IText9,
NULL,
'r',
NULL,
MENUNULL
};
struct IntuiText IText10 = {
3,1,COMPLEMENT,
0,0,
NULL,
(UBYTE *)"Load",
NULL
};
struct MenuItem MenuItem3 = {
&MenuItem4,
0,0,
104,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHBOX,
0,
(APTR)&IText10,
NULL,
'l',
NULL,
MENUNULL
};
struct Menu Menu1 = {
&Menu2,
0,0,
75,0,
MENUENABLED,
"Project",
&MenuItem3
};
#define MenuList1 Menu1
struct NewWindow NewWindowStructure1 = {
485,50,
155,31,
0,2,
GADGETUP+MENUPICK+CLOSEWINDOW,
WINDOWDRAG+WINDOWCLOSE+ACTIVATE,
&g_Record,
NULL,
(UBYTE *)" MIDI Recorder ",
NULL,
NULL,
5,5,
640,200,
WBENCHSCREEN
};
void HandleEvent(object)
APTR object;
{
if (object == (APTR)&g_Record) { Record(object); return; }
if (object == (APTR)&g_Rewind) { Rewind(object); return; }
}
#define HANDLEEVENT HandleEvent
/* end of PowerWindows source generation */