/*
(c) Copyright 1988-1994 Microsoft Corporation.

Microsoft Bars&Pipes Professional Source Code License

This License governs use of the accompanying Software.  
Microsoft hopes you find this Software useful.

You are licensed to do anything you want with the Software. 

In return, we simply require that you agree:

1.      Not to remove any copyright notices from the Software.

2.      That the Software comes "as is", with no warranties.  
        None whatsoever. This means no implied warranty of merchantability or 
        fitness for a particular purpose or any warranty of non-infringement.  
        Also, you must pass this disclaimer on whenever you distribute the Software.

3.      That we will not be liable for any of those types of damages known as indirect, 
        special, consequential, or incidental related to the Software or this License, 
        to the maximum extent the law permits. Also, you must pass this limitation of 
        liability on whenever you distribute the Software.

4.      That if you sue anyone over patents that you think may apply to the Software 
        for that person’s use of the Software, your license to the Software ends automatically.

5.      That the patent rights Microsoft is licensing only apply to the Software, 
        not to any derivatives you make.

6.      That your rights under the License end automatically if you breach this in any way.
*/

#include "/CompilerSpecific.h"
#include <intuition/intuition.h>


static UBYTE tooltraytooltrayGadget2SIBuff[30];
static struct StringInfo tooltraytooltrayGadget2SInfo = {
        tooltraytooltrayGadget2SIBuff,
        NULL,
        0,
        30,
        0,
        0,0,0,0,0,
        0,
        0,
        NULL
};

static struct Gadget tooltrayGadget2 = {
        NULL,
        8,14,
        192,8,
        NULL,
        RELVERIFY+GADGIMMEDIATE,
        STRGADGET,
        NULL,
        NULL,
        NULL,
        NULL,
        (APTR)&tooltraytooltrayGadget2SInfo,
        1,
        NULL
};

static struct Gadget tooltrayGadget1 = {
        &tooltrayGadget2,
        8,24,
        192,24,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        NULL,
        NULL,
        NULL,
        2,
        NULL
};

#define tooltrayGadgetList1 tooltrayGadget1

static struct IntuiText tooltrayIText1 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "Remove Tool",
        NULL
};

static struct MenuItem tooltrayMenuItem6 = {
        NULL,
        0,40,
        152,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&tooltrayIText1,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText tooltrayIText2 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "Save Tool...",
        NULL
};

static struct MenuItem tooltrayMenuItem5 = {
        &tooltrayMenuItem6,
        0,32,
        152,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&tooltrayIText2,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText tooltrayIText3 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "Load Tool...",
        NULL
};

static struct MenuItem tooltrayMenuItem4 = {
        &tooltrayMenuItem5,
        0,24,
        152,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&tooltrayIText3,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText tooltrayIText4 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "Rename Tool Tray...",
        NULL
};

static struct MenuItem tooltrayMenuItem3 = {
        &tooltrayMenuItem4,
        0,16,
        152,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&tooltrayIText4,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText tooltrayIText5 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "Save Tool Tray...",
        NULL
};

static struct MenuItem tooltrayMenuItem2 = {
        &tooltrayMenuItem3,
        0,8,
        152,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&tooltrayIText5,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText tooltrayIText6 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "Load Tool Tray...",
        NULL
};

static struct MenuItem tooltrayMenuItem1 = {
        &tooltrayMenuItem2,
        0,0,
        152,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&tooltrayIText6,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct Menu tooltrayMenu1 = {
        NULL,
        0,0,
        79,0,
        MENUENABLED,
        "Tool Tray",
        &tooltrayMenuItem1
};

#define tooltrayMenuList1 tooltrayMenu1

static struct NewWindow tooltrayNewWindowStructure1 = {
        404,15,
        209,51,
        0,1,
        GADGETDOWN+MENUPICK+CLOSEWINDOW+RAWKEY+INTUITICKS,
        WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH,
        &tooltrayGadget1,
        NULL,
        "Tool Tray",
        NULL,
        NULL,
        5,5,
        -1,-1,
        CUSTOMSCREEN
};

static struct IntuiText nameIText7 = {
        4,2,JAM1,
        10,1,
        NULL,
        "Okay",
        NULL
};

static struct Gadget nameGadget5 = {
        NULL,
        154,39,
        53,10,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &nameIText7,
        NULL,
        NULL,
        3,
        NULL
};

static struct IntuiText nameIText8 = {
        4,2,JAM1,
        3,1,
        NULL,
        "Cancel",
        NULL
};

static struct Gadget nameGadget4 = {
        &nameGadget5,
        211,39,
        53,10,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &nameIText8,
        NULL,
        NULL,
        4,
        NULL
};

static UBYTE namenameGadget3SIBuff[16];
static struct StringInfo namenameGadget3SInfo = {
        namenameGadget3SIBuff,
        NULL,
        0,
        16,
        0,
        0,0,0,0,0,
        0,
        0,
        NULL
};

static struct IntuiText nameIText9 = {
        0,2,JAM2,
        -120,0,
        NULL,
        "Tool Tray Name:",
        NULL
};

static struct Gadget nameGadget3 = {
        &nameGadget4,
        136,24,
        128,8,
        NULL,
        RELVERIFY+GADGIMMEDIATE,
        STRGADGET,
        NULL,
        NULL,
        &nameIText9,
        NULL,
        (APTR)&namenameGadget3SInfo,
        2,
        NULL
};

#define nameGadgetList2 nameGadget3

static struct NewWindow nameNewWindowStructure2 = {
        0,13,
        283,58,
        4,4,
        GADGETDOWN+GADGETUP,
        ACTIVATE+NOCAREREFRESH,
        &nameGadget3,
        NULL,
        NULL,
        NULL,
        NULL,
        5,5,
        -1,-1,
        CUSTOMSCREEN
};

static SHORT removeBorderVectors1[] = {
        0,0,
        63,0,
        63,10,
        0,10,
        0,0
};
static struct Border removeBorder1 = {
        -1,-1,
        3,0,JAM1,
        5,
        removeBorderVectors1,
        NULL
};

static struct IntuiText removeIText10 = {
        4,0,JAM1,
        22,1,
        NULL,
        "No",
        NULL
};

static struct Gadget removeGadget7 = {
        NULL,
        306,52,
        62,9,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        (APTR)&removeBorder1,
        NULL,
        &removeIText10,
        NULL,
        NULL,
        2,
        NULL
};

static SHORT removeBorderVectors2[] = {
        0,0,
        63,0,
        63,10,
        0,10,
        0,0
};
static struct Border removeBorder2 = {
        -1,-1,
        3,0,JAM1,
        5,
        removeBorderVectors2,
        NULL
};

static struct IntuiText removeIText13 = {
        4,2,JAM2,
        19,1,
        NULL,
        "Yes",
        NULL
};

static struct IntuiText removeIText12 = {
        0,2,JAM2,
        -224,-17,
        NULL,
        "Do you still wish to remove it?",
        &removeIText13
};

static struct IntuiText removeIText11 = {
        0,2,JAM2,
        -224,-32,
        NULL,
        "The Falooopinheimer Frabble is still in use",
        &removeIText12
};

static struct Gadget removeGadget6 = {
        &removeGadget7,
        240,52,
        62,9,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        (APTR)&removeBorder2,
        NULL,
        &removeIText11,
        NULL,
        NULL,
        1,
        NULL
};

#define removeGadgetList3 removeGadget6

static struct NewWindow removeNewWindowStructure3 = {
        0,73,
        384,69,
        0,1,
        GADGETDOWN+GADGETUP,
        ACTIVATE+NOCAREREFRESH,
        &removeGadget6,
        NULL,
        NULL,
        NULL,
        NULL,
        5,5,
        -1,-1,
        CUSTOMSCREEN
};
