
SHORT OffBordervecs[] = { 0,0, 43,0, 43,9, 0,9, 0,0, 43,9 };
struct Border OffBorder = { -2,-1, 2,2,JAM2, 6, OffBordervecs, NULL };

SHORT OnBordervecs[] = { 0,0, 43,0, 43,9, 0,9, 0,0};
struct Border OnBorder = { -2,-1, 3,3,JAM2, 5, OnBordervecs, NULL };


/*********************************************************************/
/* DF3 gadget */
/***************************/

struct IntuiText DF3Text = { 1,0,JAM2, 8,0, NULL, "DF3", NULL };

struct Gadget df3gag = {
        NULL, 595,87, 40,9, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&OffBorder, NULL, &DF3Text, NULL, NULL, 11, NULL
};
/*********************************************************************/
/* DF2 gadget */
/****************************/

struct IntuiText DF2Text = { 1,0,JAM2, 8,0, NULL, "DF2", NULL };

struct Gadget df2gag = {
        NULL, 545,87, 40,9, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&OffBorder, NULL, &DF2Text, NULL, NULL, 12, NULL
};
/*********************************************************************/
/* DF1 gadget */
/***************************/
struct IntuiText DF1Text = { 1,0,JAM2, 8,0, NULL, "DF1", NULL };

struct Gadget df1gag = {
        NULL, 595,75, 40,9, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&OffBorder, NULL, &DF1Text, NULL, NULL, 13, NULL
};
/*********************************************************************/
/* DF0 gadget */
/****************************/
struct IntuiText DF0Text = { 1,0,JAM2, 8,0, NULL, "DF0", NULL };

struct Gadget df0gag = {
        NULL, 545,75, 40,9, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&OffBorder, NULL, &DF0Text, NULL, NULL, 14, NULL
};
/**********************/
#define STRINGSIZE 80
unsigned char StringBuffer[STRINGSIZE] = {""};
unsigned char UndoBuffer  [STRINGSIZE];

struct StringInfo StringInfo =
    { StringBuffer,UndoBuffer,0,STRINGSIZE,0,0,0,0,0,0,NULL,0,NULL, };


struct Gadget StringGadget =
   {
   &df0gag, 96, 26, 439, 10, GADGHCOMP, RELVERIFY, STRGADGET, NULL,
   NULL, NULL, NULL, (APTR)&StringInfo, 15, NULL,
};
/*********************************************************************/
/* Comment select */
/****************************/

SHORT CommentBorderVecs[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
struct Border CommentBorder =
                        { -2,-1, 3,0,JAM1, 5, CommentBorderVecs, NULL };
struct IntuiText CommentTex = { 1,0,JAM2, 21,0, NULL, "Comment", NULL };
struct Gadget CommentGadget = {
    &StringGadget, 540,123, 96,8, NULL, RELVERIFY+TOGGLESELECT, BOOLGADGET,
    (APTR)&CommentBorder, NULL, &CommentTex, NULL, NULL, 10, NULL
};

/*********************************************************************/
/* pickup standard gadget */
/**************************/
SHORT StanBordervecs[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
struct Border StanBorder = { -2,-1, 3,0,JAM1, 5, StanBordervecs, NULL };

struct IntuiText PickStanTex = { 1,0,JAM2, 18,0, NULL, "Standard", NULL };

struct Gadget PickStan = {
        &CommentGadget, 540,100, 95,8, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&StanBorder, NULL, &PickStanTex, NULL, NULL, 9, NULL
};

/*********************************************************************/
/* pickup noboot-bootblock gadget */
/**********************************/
SHORT NobootBorderVecs[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
struct Border NobootBorder =  { -2,-1, 3,0,JAM1, 5, NobootBorderVecs, NULL };

struct IntuiText NobootTex = { 1,0,JAM2, 24,0, NULL, "Noboot", NULL };

struct Gadget PickNoboot = {
        &PickStan, 540,112, 95,8, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&NobootBorder, NULL, &NobootTex, NULL, NULL, 8, NULL
};

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

/***************/
/* Quit gadget */
/***************/

SHORT QuitBorderVecs[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
struct Border QuitBorder = { -2,-1, 3,0,JAM1, 5, QuitBorderVecs, NULL };

struct IntuiText QuitTex = { 1,0,JAM2, 17,0, NULL, "  Quit  ", NULL };

struct Gadget Quitter = {
        &PickNoboot, 540,160, 95,8, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&QuitBorder, NULL, &QuitTex, NULL, NULL, 7, NULL
};
/*********************************************************************/
/* Automatic read bootblock */
/****************************/

SHORT BorderVectors1[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
struct Border Border1 = { -2,-1, 3,0,JAM1, 5, BorderVectors1, NULL };

struct IntuiText IText1 = { 1,0,JAM2, 13,0, NULL, "Auto Read", NULL };

struct Gadget AutoR = {
        &Quitter, 540,135, 96,8, NULL, RELVERIFY+TOGGLESELECT, BOOLGADGET,
        (APTR)&Border1, NULL, &IText1, NULL, NULL, 6, NULL
};

/*********************************************************************/
/* Automatic compare gadget */
/****************************/

SHORT BorderVectors2[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
struct Border Border2  = { -2,-1, 3,0,JAM1, 5, BorderVectors2, NULL };

struct IntuiText IText2 = { 1,0,JAM2, 0,0, NULL, "Auto Compare", NULL };

struct Gadget AutoC = {
        &AutoR, 540,147, 96,8, NULL, RELVERIFY+TOGGLESELECT, BOOLGADGET,
        (APTR)&Border2, NULL, &IText2, NULL, NULL, 5, NULL
};

/*********************************************************************/
/* write bb to file gadget */
/***************************/

SHORT BorderVectors3[] = { 0,0, 43,0, 43,10, 0,10, 0,0 };
struct Border Border3 = { -2,-1, 3,0,JAM1, 5, BorderVectors3, NULL };

struct IntuiText IText3 = { 1,0,JAM2, -1,1, NULL, "write", NULL };

struct Gadget WriteF = {
        &AutoC, 595,60, 40,9, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&Border3, NULL, &IText3, NULL, NULL, 4, NULL
};

/*********************************************************************/
/* read bb from file gadget */
/****************************/

SHORT BorderVectors4[] = { 0,0, 43,0, 43,10, 0,10, 0,0 };
struct Border Border4 = { -2,-1, 3,0,JAM1, 5, BorderVectors4, NULL };

struct IntuiText IText4 = { 1,0,JAM2, 3,1, NULL, "read", NULL };

struct Gadget ReadF = {
        &WriteF, 545,60, 40,9, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&Border4, NULL, &IText4, NULL, NULL, 3, NULL
};

/*********************************************************************/
/* Write bootblock gadget */
/**************************/
SHORT BorderVectors5[] = { 0,0, 43,0, 43,10, 0,10, 0,0 };
struct Border Border5 = { -2,-1, 3,0,JAM1, 5, BorderVectors5, NULL };

struct IntuiText IText5 = { 1,0,JAM2, -1,1, NULL, "write", NULL };

struct Gadget WriteBB = {
        &ReadF, 595,30, 40,9, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&Border5, NULL, &IText5, NULL, NULL, 2, NULL
};

/*********************************************************************/
/* Read bootblock gadget */
/*************************/
SHORT BorderVectors6[] = { 0,0, 43,0, 43,10, 0,10, 0,0 };
struct Border Border6 =  { -2,-1, 3,0,JAM1, 5, BorderVectors6, NULL };

struct IntuiText IText6 = { 1,0,JAM2, 3,1, NULL, "read", NULL };

struct Gadget ReadBB = {
        &WriteBB, 545,30, 40,9, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&Border6, NULL, &IText6, NULL, NULL, 1, NULL
};

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

struct NewScreen ns =
{ 0,0, 640,256, 2, 0,1, HIRES, WBENCHSCREEN, NULL, "Bootbase Screen", NULL };

/* NOTICE : The screen is declared as a WBENCHSCREEN because
            I wanted the requesters like NOT A DOS DISK or Please insert ...
            on my own screen.
            This is a little confusing because windows
            opened when my screen is upfront will open on my screen.
*/

struct NewWindow FirstNewWindow = {
   0, 0, 640, 256, -1, -1,
   CLOSEWINDOW | RAWKEY | MOUSEBUTTONS | DISKINSERTED | GADGETUP,
   BACKDROP | BORDERLESS | ACTIVATE | SMART_REFRESH | RMBTRAP,
   &ReadBB, NULL, (UBYTE *)"", NULL, NULL, 0, 0, 0, 0, WBENCHSCREEN
};

SHORT  NoBorderVec[] = { 0,0, 28,0, 28,10, 0,10, 0,0 };
struct Border NoBorder =  { -2,-1, 3,0,JAM1, 5, NoBorderVec, NULL };

struct IntuiText NoText = { 1,0,JAM2, 4,1, NULL, "NO", NULL };

struct Gadget NoGad = {
        NULL, 260,61, 26,9, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&NoBorder, NULL, &NoText, NULL, NULL, 2, NULL
};

SHORT  YesBorderVec[] = { 0,0, 28,0, 28,10, 0,10, 0,0 };
struct Border YesBorder =  { -2,-1, 3,0,JAM1, 5, YesBorderVec, NULL };

struct IntuiText YesText = { 1,0,JAM2, 1,1, NULL, "YES", NULL };

struct Gadget First = {
        &NoGad, 260,13, 26,9, NULL, RELVERIFY, BOOLGADGET,
        (APTR)&YesBorder, NULL, &YesText, NULL, NULL, 1, NULL
};

struct NewWindow ReqWindow = {
   175, 100, 300, 75, 2, 1, CLOSEWINDOW | GADGETUP, WINDOWDRAG | WINDOWDEPTH |
   ACTIVATE | SMART_REFRESH,
   &First, NULL, (UBYTE *)"BB Request",
   NULL, NULL, 100, 20, 640, 256, WBENCHSCREEN
};

/****EOF****************************************************************/

