/************************************************************************
*																								*
*		gadgets.c																			*
*																								*
*-----------------------------------------------------------------------*
*																								*
*		Gadget definitions.																*
*																								*
************************************************************************/

#include <exec/types.h>
#include <intuition/intuition.h>

/***************************************

				External references

***************************************/

IMPORT	struct Image		PreInit_uns_image,
									PreInit_sel_image,
									PPW_uns_image,
									PPW_sel_image,
									PrAll_uns_image,
									PrAll_sel_image;

/************************************************************************
*																								*
*		Gadgets 0 - 9 ( Name : Num0 - Num9 )( Linked to the first list )	*
*																								*
************************************************************************/

struct Gadget		Num9	=
{
	NULL, 199, 0, 21, 13, GADGHNONE, RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 9, NULL
};
struct Gadget		Num8	=
{
	&Num9, 178, 0, 21, 13, GADGHNONE, RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 8, NULL
};
struct Gadget		Num7	=
{
	&Num8, 157, 0, 21, 13, GADGHNONE, RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 7, NULL
};
struct Gadget		Num6	=
{
	&Num7, 136, 0, 21, 13, GADGHNONE, RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 6, NULL
};
struct Gadget		Num5	=
{
	&Num6, 115, 0, 21, 13, GADGHNONE, RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 5, NULL
};
struct Gadget		Num4	=
{
	&Num5, 94, 0, 21, 13, GADGHNONE, RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 4, NULL
};
struct Gadget		Num3	=
{
	&Num4, 73, 0, 21, 13, GADGHNONE, RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 3, NULL
};
struct Gadget		Num2	=
{
	&Num3, 52, 0, 21, 13, GADGHNONE, RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 2, NULL
};
struct Gadget		Num1	=
{
	&Num2, 31, 0, 21, 13, GADGHNONE, RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 1, NULL
};
struct Gadget		Num0	=
{
	&Num1, 10, 0, 21, 13, GADGHNONE, RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 0, NULL
};

/************************************************************************
*																								*
*		*** First List *** ( Displayed as the default )							*
*																								*
*		Gadgets:			Style ( Elite, Pica, Prop ), Cond, Letter, LineSP,	*
*							Num0 - Num9														*
*		Stringgadgets: LMarg, RMarg, TSize											*
*		Actiongadgets:	Pre, PPW, PrAll												*
*		Special:			Switch1	( ID #1000 )										*
*		List start:		Switch1															*
*																								*
************************************************************************/

/***************************************
			Buffers and Special infos
***************************************/

UBYTE					TSize_buf[10];
struct StringInfo	TSize_info	=
{
	&TSize_buf[0], &TSize_buf[5],
	0, 4, 0, 0, 0, 0, 0, 0, NULL, 0L, NULL
};
UBYTE					LMarg_buf[10];
struct StringInfo	LMarg_info	=
{
	&LMarg_buf[0], &LMarg_buf[5],
	0, 4, 0, 0, 0, 0, 0, 0, NULL, 0L, NULL
};
UBYTE					RMarg_buf[10];
struct StringInfo	RMarg_info	=
{
	&RMarg_buf[0], &RMarg_buf[5],
	0, 4, 0, 0, 0, 0, 0, 0, NULL, 0L, NULL
};

/***************************************
						Gadgets
***************************************/

struct Gadget		TSize		=
{
	&Num0,
	500, 0, 41, 8, GADGHCOMP,
	RELVERIFY | LONGINT | STRINGRIGHT, STRGADGET, NULL, NULL,
	NULL, NULL, ( APTR )&TSize_info, 16, NULL
};
struct Gadget		LMarg		=
{
	&TSize,
	238, 0, 41, 8, GADGHCOMP,
	RELVERIFY | LONGINT | STRINGRIGHT, STRGADGET, NULL, NULL,
	NULL, NULL, ( APTR )&LMarg_info, 15, NULL
};
struct Gadget		RMarg		=
{
	&LMarg,
	382, 0, 41, 8, GADGHCOMP,
	RELVERIFY | LONGINT | STRINGRIGHT, STRGADGET, NULL, NULL,
	NULL, NULL, ( APTR )&RMarg_info, 14, NULL
};
struct Gadget		LineSP	=
{
	&RMarg,
	11, 0, 135, 13, GADGHNONE,
	RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 13, NULL
};
struct Gadget		Letter	=
{
	&LineSP,
	439, 0, 105, 13, GADGHNONE,
	RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 12, NULL
};
struct Gadget		Cond	=
{
	&Letter,
	332, 0, 105, 13, GADGHNONE,
	RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 11, NULL
};
struct Gadget		Style	=
{
	&Cond,
	231, 0, 99, 13, GADGHNONE,
	RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 10, NULL
};
struct Gadget		PrAll	=
{
	&Style,
	399, 0, 76, 15, GADGHIMAGE | GADGIMAGE,
	RELVERIFY, BOOLGADGET, (APTR)&PrAll_uns_image, (APTR)&PrAll_sel_image,
	NULL, NULL, NULL, 2002, NULL
};
struct Gadget		PPW	=
{
	&PrAll,
	221, 0, 137, 15, GADGHIMAGE | GADGIMAGE,
	RELVERIFY, BOOLGADGET, (APTR)&PPW_uns_image, (APTR)&PPW_sel_image,
	NULL, NULL, NULL, 2001, NULL
};
struct Gadget		Pre	=
{
	&PPW,
	99, 0, 81, 15, GADGHIMAGE | GADGIMAGE,
	RELVERIFY, BOOLGADGET, (APTR)&PreInit_uns_image, (APTR)&PreInit_sel_image,
	NULL, NULL, NULL, 2000, NULL
};
struct Gadget		Switch1	=
{
	&Pre,
	617,0, 17, 13, GADGHNONE,
	RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 1000, NULL
};

/************************************************************************
*																								*
*		*** Second List ***																*
*																								*
*		Gadgets:				Numing ( No, Top, Bottom, Title )					*
*		Stringgadgets:		PWidth, PHeight											*
*		Special:				Switch2	( ID #1001 )									*
*		List Start:			Switch2														*
*																								*
************************************************************************/

/***************************************
			Buffers and Special infos
***************************************/

UBYTE					PWidth_buf[10];
struct StringInfo	PWidth_info	=
{
	&PWidth_buf[0], &PWidth_buf[5],
	0, 4, 0, 0, 0, 0, 0, 0, NULL, 0L, NULL
};
UBYTE					PLength_buf[10];
struct StringInfo	PLength_info	=
{
	&PLength_buf[0], &PLength_buf[5],
	0, 4, 0, 0, 0, 0, 0, 0, NULL, 0L, NULL
};

/***************************************
						Gadgets
***************************************/

struct Gadget		PWidth		=
{
	NULL,
	98, 0, 41, 8, GADGHCOMP,
	RELVERIFY | LONGINT | STRINGRIGHT, STRGADGET, NULL, NULL,
	NULL, NULL, ( APTR )&PWidth_info, 102, NULL
};
struct Gadget		PLength		=
{
	&PWidth,
	98, 0, 41, 8, GADGHCOMP,
	RELVERIFY | LONGINT | STRINGRIGHT, STRGADGET, NULL, NULL,
	NULL, NULL, ( APTR )&PLength_info, 101, NULL
};
struct Gadget		Numing	=
{
	&PLength,
	151, 0, 200, 13, GADGHNONE,
	RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 100, NULL
};
struct Gadget		Switch2	=
{
	&Numing,
	617, 0, 17, 13, GADGHNONE,
	RELVERIFY, BOOLGADGET, NULL, NULL,
	NULL, NULL, NULL, 1001, NULL
};
