/* These definitions created with Power Windows2.5, (c) Inovatronics, Inc.
 * I changed the structure names and some assignments to make them more
 * readable and to conform with some DEFINEs I have in my Filer.h file.
 */

struct IntuiText Viewtxt = {
	3,1,COMPLEMENT,	/* front and back text pens, drawmode and fill byte */
	0,0,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"View Record",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

struct MenuItem Viewitem = {
	NULL,	/* next MenuItem structure */
	0,8,	/* XY of Item hitbox relative to TopLeft of parent hitbox */
	136,8,	/* hit box width and height */
	ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,	/* Item flags */
	0,	/* each bit mutually-excludes a same-level Item */
	(APTR)&Viewtxt,	/* Item render  (IntuiText or Image or NULL) */
	NULL,	/* Select render */
	'V',	/* alternate command-key */
	NULL,	/* SubItem list */
	MENUNULL	/* filled in by Intuition for drag selections */
};

struct IntuiText Addtxt = {
	3,1,COMPLEMENT,	/* front and back text pens, drawmode and fill byte */
	0,0,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"Add Record",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

struct MenuItem Additem = {
	&Viewitem,	/* next MenuItem structure */
	0,0,	/* XY of Item hitbox relative to TopLeft of parent hitbox */
	136,8,	/* hit box width and height */
	ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,	/* Item flags */
	0,	/* each bit mutually-excludes a same-level Item */
	(APTR)&Addtxt,	/* Item render  (IntuiText or Image or NULL) */
	NULL,	/* Select render */
	'A',	/* alternate command-key */
	NULL,	/* SubItem list */
	MENUNULL	/* filled in by Intuition for drag selections */
};

struct Menu Editmenu = {
	NULL,	/* next Menu structure */
	64,0,	/* XY origin of Menu hit box relative to screen TopLeft */
	40,0,	/* Menu hit box width and height */
	MENUENABLED,	/* Menu flags */
	"Edit",	/* text of Menu name */
	&Additem	/* MenuItem linked list pointer */
};

struct IntuiText Quittxt = {
	3,1,COMPLEMENT,	/* front and back text pens, drawmode and fill byte */
	0,0,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"Quit",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

struct MenuItem Quititem = {
	NULL,	/* next MenuItem structure */
	0,32,	/* XY of Item hitbox relative to TopLeft of parent hitbox */
	128,8,	/* hit box width and height */
	ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,	/* Item flags */
	0,	/* each bit mutually-excludes a same-level Item */
	(APTR)&Quittxt,	/* Item render  (IntuiText or Image or NULL) */
	NULL,	/* Select render */
	'Q',	/* alternate command-key */
	NULL,	/* SubItem list */
	MENUNULL	/* filled in by Intuition for drag selections */
};

struct IntuiText Savetxt = {
	3,1,COMPLEMENT,	/* front and back text pens, drawmode and fill byte */
	0,0,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"Save... ",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

struct MenuItem Saveitem = {
	&Quititem,	/* next MenuItem structure */
	0,16,	/* XY of Item hitbox relative to TopLeft of parent hitbox */
	128,8,	/* hit box width and height */
	ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,	/* Item flags */
	0,	/* each bit mutually-excludes a same-level Item */
	(APTR)&Savetxt,	/* Item render  (IntuiText or Image or NULL) */
	NULL,	/* Select render */
	'S',	/* alternate command-key */
	NULL,	/* SubItem list */
	MENUNULL	/* filled in by Intuition for drag selections */
};

struct IntuiText Opentxt = {
	3,1,COMPLEMENT,	/* front and back text pens, drawmode and fill byte */
	0,0,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"Open... ",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

struct MenuItem Openitem = {
	&Saveitem,	/* next MenuItem structure */
	0,8,	/* XY of Item hitbox relative to TopLeft of parent hitbox */
	128,8,	/* hit box width and height */
	ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,	/* Item flags */
	0,	/* each bit mutually-excludes a same-level Item */
	(APTR)&Opentxt,	/* Item render  (IntuiText or Image or NULL) */
	NULL,	/* Select render */
	'O',	/* alternate command-key */
	NULL,	/* SubItem list */
	MENUNULL	/* filled in by Intuition for drag selections */
};

struct IntuiText Newtxt = {
	3,1,COMPLEMENT,	/* front and back text pens, drawmode and fill byte */
	0,0,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"New",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

struct MenuItem Newitem = {
	&Openitem,	/* next MenuItem structure */
	0,0,	/* XY of Item hitbox relative to TopLeft of parent hitbox */
	128,8,	/* hit box width and height */
	ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,	/* Item flags */
	0,	/* each bit mutually-excludes a same-level Item */
	(APTR)&Newtxt,	/* Item render  (IntuiText or Image or NULL) */
	NULL,	/* Select render */
	'N',	/* alternate command-key */
	NULL,	/* SubItem list */
	MENUNULL	/* filled in by Intuition for drag selections */
};

struct Menu Projectmenu = {
	&Editmenu,	/* next Menu structure */
	0,0,	/* XY origin of Menu hit box relative to screen TopLeft */
	63,0,	/* Menu hit box width and height */
	MENUENABLED,	/* Menu flags */
	"Project",	/* text of Menu name */
	&Newitem	/* MenuItem linked list pointer */
};

#define MenuList &Projectmenu


UBYTE NamegadgetSIBuff[11];
struct StringInfo NamegadgetSInfo = {
	NamegadgetSIBuff,	/* buffer where text will be edited */
	undobuf,	/* optional undo buffer */
	0,	/* character position in buffer */
	11,	/* maximum number of characters to allow */
	0,	/* first displayed character buffer position */
	0,0,0,0,0,	/* Intuition initialized and maintained variables */
	0,	/* Rastport of gadget */
	0,	/* initial value for integer gadgets */
	NULL	/* alternate keymap (fill in if you set the flag) */
};

SHORT Namevectors[] = {
	0,0,
	89,0,
	89,9,
	0,9,
	0,0
};
struct Border Nameborder = {
	-1,-1,	/* XY origin relative to container TopLeft */
	3,0,JAM1,	/* front pen, back pen and drawmode */
	5,	/* number of XY vectors */
	Namevectors,	/* pointer to XY vectors */
	NULL	/* next border in list */
};

struct Gadget Namegadget = {
	NULL,	/* next gadget */
	169,22,	/* origin XY of hit box relative to window TopLeft */
	88,8,	/* hit box width and height */
	NULL,	/* gadget flags */
	RELVERIFY,	/* activation flags */
	STRGADGET,	/* gadget type flags */
	(APTR)&Nameborder,	/* gadget border or image to be rendered */
	NULL,	/* alternate imagery for selection */
	NULL,	/* first IntuiText structure */
	NULL,	/* gadget mutual-exclude long word */
	(APTR)&NamegadgetSInfo,	/* SpecialInfo structure */
	NAME,	/* user-definable data */
	NULL	/* pointer to user-definable data */
};

UBYTE SizegadgetSIBuff[4];
struct StringInfo SizegadgetSInfo = {
	SizegadgetSIBuff,	/* buffer where text will be edited */
	undobuf,	/* optional undo buffer */
	0,	/* character position in buffer */
	4,	/* maximum number of characters to allow */
	0,	/* first displayed character buffer position */
	0,0,0,0,0,	/* Intuition initialized and maintained variables */
	0,	/* Rastport of gadget */
	0,	/* initial value for integer gadgets */
	NULL	/* alternate keymap (fill in if you set the flag) */
};

SHORT Sizevectors[] = {
	0,0,
	33,0,
	33,9,
	0,9,
	0,0
};
struct Border Sizeborder = {
	-1,-1,	/* XY origin relative to container TopLeft */
	3,0,JAM1,	/* front pen, back pen and drawmode */
	5,	/* number of XY vectors */
	Sizevectors,	/* pointer to XY vectors */
	NULL	/* next border in list */
};

struct Gadget Sizegadget = {
	&Namegadget,	/* next gadget */
	111,22,	/* origin XY of hit box relative to window TopLeft */
	32,8,	/* hit box width and height */
	NULL,	/* gadget flags */
	RELVERIFY+STRINGRIGHT+LONGINT,	/* activation flags */
	STRGADGET,	/* gadget type flags */
	(APTR)&Sizeborder,	/* gadget border or image to be rendered */
	NULL,	/* alternate imagery for selection */
	NULL,	/* first IntuiText structure */
	NULL,	/* gadget mutual-exclude long word */
	(APTR)&SizegadgetSInfo,	/* SpecialInfo structure */
	SIZE,	/* user-definable data */
	NULL	/* pointer to user-definable data */
};

SHORT RKvectors[] = {
	0,0,
	31,0,
	31,10,
	0,10,
	0,0
};
struct Border RKborder = {
	-1,-1,	/* XY origin relative to container TopLeft */
	3,0,JAM1,	/* front pen, back pen and drawmode */
	5,	/* number of XY vectors */
	RKvectors,	/* pointer to XY vectors */
	NULL	/* next border in list */
};

struct IntuiText Keytxt = {
	3,0,JAM2,	/* front and back text pens, drawmode and fill byte */
	3,1,	/* XY origin relative to container TopLeft */
	NULL,	/* font pointer or NULL for default */
	(UBYTE *)"KEY",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

struct Gadget Keygadget = {
	&Sizegadget,	/* next gadget */
	55,22,	/* origin XY of hit box relative to window TopLeft */
	30,9,	/* hit box width and height */
	NULL,	/* gadget flags */
	RELVERIFY,	/* activation flags */
	BOOLGADGET,	/* gadget type flags */
	(APTR)&RKborder,	/* gadget border or image to be rendered */
	NULL,	/* alternate imagery for selection */
	&Keytxt,	/* first IntuiText structure */
	NULL,	/* gadget mutual-exclude long word */
	NULL,	/* SpecialInfo structure */
	KEY,	/* user-definable data */
	NULL	/* pointer to user-definable data */
};

struct IntuiText Rawtxt = {
	3,0,JAM2,	/* front and back text pens, drawmode and fill byte */
	3,1,	/* XY origin relative to container TopLeft */
	NULL,	/* font pointer or NULL for default */
	(UBYTE *)"RAW",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

struct Gadget Rawgadget = {
	&Keygadget,	/* next gadget */
	20,22,	/* origin XY of hit box relative to window TopLeft */
	30,9,	/* hit box width and height */
	NULL,	/* gadget flags */
	RELVERIFY,	/* activation flags */
	BOOLGADGET,	/* gadget type flags */
	(APTR)&RKborder,	/* gadget border or image to be rendered */
	NULL,	/* alternate imagery for selection */
	&Rawtxt,	/* first IntuiText structure */
	NULL,	/* gadget mutual-exclude long word */
	NULL,	/* SpecialInfo structure */
	RAW,	/* user-definable data */
	NULL	/* pointer to user-definable data */
};

#define GadgetList Rawgadget

/* IntuiText structures for Type, Size and Name headings on New File window */
struct IntuiText Nametext = {
	FCOL,BCOL,JAM1,	/* front and back text pens, drawmode and fill byte */
	168,11,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"Name",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

struct IntuiText Sizetext = {
	FCOL,BCOL,JAM1,	/* front and back text pens, drawmode and fill byte */
	111,11,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"Size",	/* pointer to text */
	&Nametext	/* next IntuiText structure */
};

struct IntuiText Typetext = {
	FCOL,BCOL,JAM1,	/* front and back text pens, drawmode and fill byte */
	18,11,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"Type",	/* pointer to text */
	&Sizetext	/* next IntuiText structure */
};

#define HeadingTextList Typetext

SHORT CanxReqGadgVectors[] = {
	0,0,
	64,0,
	64,10,
	0,10,
	0,0
};
struct Border CRGBorder = {
	-1,-1,	/* XY origin relative to container TopLeft */
	1,0,JAM1,	/* front pen, back pen and drawmode */
	5,	/* number of XY vectors */
	CanxReqGadgVectors,	/* pointer to XY vectors */
	NULL	/* next border in list */
};

struct IntuiText CRGText = {
	1,0,JAM2,	/* front and back text pens, drawmode and fill byte */
	8,1,	/* XY origin relative to container TopLeft */
	NULL,	/* font pointer or NULL for default */
	(UBYTE *)"CANCEL",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

struct Gadget CancelReqGadget = {
	NULL,	/* next gadget */
	216,27,	/* origin XY of hit box relative to window TopLeft */
	63,9,	/* hit box width and height */
	NULL,	/* gadget flags */
	ENDGADGET,	/* activation flags */
	BOOLGADGET+REQGADGET,	/* gadget type flags */
	(APTR)&CRGBorder,	/* gadget border or image to be rendered */
	NULL,	/* alternate imagery for selection */
	&CRGText,	/* first IntuiText structure */
	NULL,	/* gadget mutual-exclude long word */
	NULL,	/* SpecialInfo structure */
	NULL,	/* user-definable data */
	NULL	/* pointer to user-definable data */
};

UBYTE FNGSIBuff[110];
struct StringInfo FNGStringInfo = {
	FNGSIBuff,	/* buffer where text will be edited */
	undobuf,	/* optional undo buffer */
	0,	/* character position in buffer */
	108,	/* maximum number of characters to allow */
	0,	/* first displayed character buffer position */
	0,0,0,0,0,	/* Intuition initialized and maintained variables */
	0,	/* Rastport of gadget */
	0,	/* initial value for integer gadgets */
	NULL	/* alternate keymap (fill in if you set the flag) */
};

SHORT FileNameGadgVectors[] = {
	0,0,
	278,0,
	278,9,
	0,9,
	0,0
};
struct Border FNGBorder = {
	-1,-1,	/* XY origin relative to container TopLeft */
	1,0,JAM1,	/* front pen, back pen and drawmode */
	5,	/* number of XY vectors */
	FileNameGadgVectors,	/* pointer to XY vectors */
	NULL	/* next border in list */
};

struct Gadget FileNameGadget = {
	&CancelReqGadget,	/* next gadget */
	5,10,	/* origin XY of hit box relative to window TopLeft */
	277,8,	/* hit box width and height */
	NULL,	/* gadget flags */
	ENDGADGET,	/* activation flags */
	STRGADGET+REQGADGET,	/* gadget type flags */
	(APTR)&FNGBorder,	/* gadget border or image to be rendered */
	NULL,	/* alternate imagery for selection */
	NULL,	/* first IntuiText structure */
	NULL,	/* gadget mutual-exclude long word */
	(APTR)&FNGStringInfo,	/* SpecialInfo structure */
	NULL,	/* user-definable data */
	NULL	/* pointer to user-definable data */
};

#define ReqGadgetList FileNameGadget

struct IntuiText ReqText = {
	1,0,JAM2,	/* front and back text pens, drawmode and fill byte */
	0,0,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	NULL,	/* pointer to text */
	NULL	/* next IntuiText structure */
};

#define IntuiTextList ReqText

struct Requester myReq = {
	NULL,	/* previous requester (filled in by Intuition) */
	10,15,	/* requester XY origin relative to TopLeft of window */
	321,50,	/* requester width and height */
	0,0,	/* relative to these mouse offsets if POINTREL is set */
	&ReqGadgetList,	/* gadget list */
	NULL,	/* box's border */
	&IntuiTextList,	/* requester text */
	NULL,	/* requester flags */
	0,	/* back-plane fill pen */
	NULL,	/* leave these alone */
	NULL,	/* custom bitmap if PREDRAWN is set */
	NULL	/* leave this alone */
};
