/* *** specialwin.h *** */

/***  Gad-Numbers *************/

#define NR_MEM_GAD	1
#define NR_FILE_GAD	2
#define NR_MEM_B_GAD	3
#define NR_FILE_B_GAD	4
#define NR_BORDER_GAD	5
#define NR_RECT_GAD	6
#define NR_INT_GAD	7
#define NR_TOICON_GAD	8



static SHORT brd_arr[10] = { 0,0, 52,0, 52,12, 0,12, 0,0 };

static struct Border brd =
 { -2, -2, 1, 0, JAM1, 5, brd_arr, NULL };

static struct IntuiText Memory_Title =
 {
	1, 0, JAM2, 1, 1, &txtAttr, (UBYTE*)"Memory",
	(struct IntuiText*)NULL
 };

static struct Gadget Memory_Gad =
 {
	(struct Gadget*)NULL, 20, 15,
	50, 10, GADGHCOMP, RELVERIFY,
	BOOLGADGET, (APTR)&brd, (APTR)NULL,
	&Memory_Title, 0L, (APTR)NULL,
	NR_MEM_GAD, (APTR)NULL
 };

static struct IntuiText File_Title =
 {
	1, 0, JAM2, 1, 1, &txtAttr, (UBYTE*)"File",
	(struct IntuiText*)NULL
 };

static struct Gadget File_Gad =
 {
	&Memory_Gad, 20, 30,
	50, 10, GADGHCOMP, RELVERIFY,
	BOOLGADGET, (APTR)&brd, (APTR)NULL,
	&File_Title, 0L, (APTR)NULL,
	NR_FILE_GAD, (APTR)NULL
 };

static struct IntuiText Memory_B_Title =
 {
	1, 0, JAM2, 5, 1, &txtAttr, (UBYTE*)"Mem-B",
	(struct IntuiText*)NULL
 };

static struct Gadget Memory_B_Gad =
 {
	&File_Gad, 80, 15,
	50, 10, GADGHCOMP, RELVERIFY,
	BOOLGADGET, (APTR)&brd, (APTR)NULL,
	&Memory_B_Title, 0L, (APTR)NULL,
	NR_MEM_B_GAD, (APTR)NULL
 };

static struct IntuiText File_B_Title =
 {
	1, 0, JAM2, 1, 1, &txtAttr, (UBYTE*)"File-B",
	(struct IntuiText*)NULL
 };

static struct Gadget File_B_Gad =
 {
	&Memory_B_Gad, 80, 30,
	50, 10, GADGHCOMP, RELVERIFY,
	BOOLGADGET, (APTR)&brd, (APTR)NULL,
	&File_B_Title, 0L, (APTR)NULL,
	NR_FILE_B_GAD, (APTR)NULL
 };

static struct IntuiText Border_Title =
 {
	1, 0, JAM2, 1, 1, &txtAttr, (UBYTE*)"Border",
	(struct IntuiText*)NULL
 };

static struct Gadget Border_Gad =
 {
	&File_B_Gad, 140, 15,
	50, 10, GADGHCOMP, RELVERIFY,
	BOOLGADGET, (APTR)&brd, (APTR)NULL,
	&Border_Title, 0L, (APTR)NULL,
	NR_BORDER_GAD, (APTR)NULL
 };

static struct IntuiText Rect_Title =
 {
	1, 0, JAM2, 1, 1, &txtAttr, (UBYTE*)"Rect.",
	(struct IntuiText*)NULL
 };

static struct Gadget Rect_Gad =
 {
	&Border_Gad, 140, 30,
	50, 10, GADGHCOMP, RELVERIFY,
	BOOLGADGET, (APTR)&brd, (APTR)NULL,
	&Rect_Title, 0L, (APTR)NULL,
	NR_RECT_GAD, (APTR)NULL
 };


static UBYTE	int_buffer[5],
		int_buffer_undo[5];

static SHORT int_brd_arr[10] = { 0,0, 35,0, 35,11, 0,11, 0,0 };

static struct Border int_brd =
 { -2, -2, 1, 0, JAM1, 5, int_brd_arr, NULL };

static struct IntuiText Bdpi_Title =
 {
	1, 0, JAM2, -15,-11, &txtAttr, (UBYTE*)"base dpi",
	(struct IntuiText*)NULL
 };

static struct StringInfo int_strInfo =
 {
	int_buffer, int_buffer_undo, 0, 4, 0, 0, 0, 0,
	0, 0, (struct Layer*)NULL, 0L,
	(struct KeyMap*)NULL
 };

static struct Gadget Bdpi_Gad = 
 {
	&Rect_Gad, 230, 28,
	32, 10, GADGHCOMP, RELVERIFY | LONGINT,
	STRGADGET, (APTR)&int_brd, (APTR)NULL,
	(struct IntuiText*)&Bdpi_Title, 0L,
	(APTR)&int_strInfo,
	NR_INT_GAD, (APTR)NULL
 };


static struct IntuiText toIcon_Title =
 {
	1, 0, JAM2, 8, 1, &txtAttr, (UBYTE*)"Icon",
	(struct IntuiText*)NULL
 };

static struct Gadget toIcon_Gad =
 {
	&Bdpi_Gad, 310, 24,
	50, 10, GADGHCOMP, RELVERIFY,
	BOOLGADGET, (APTR)&brd, (APTR)NULL,
	&toIcon_Title, 0L, (APTR)NULL,
	NR_TOICON_GAD, (APTR)NULL
 };
