/*
(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 struct Gadget toolboxGadget2 = {
        NULL,
        6,15,
        -23,-24,
        GADGHBOX+GADGHIMAGE+GRELWIDTH+GRELHEIGHT,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        NULL,
        NULL,
        NULL,
        2,
        NULL
};

static CHIP USHORT toolboxImageData1[] = {
        0xFFFF,0xFF00,0xC000,0x0300,0xC000,0x0300,0xC000,0x0300,
        0xC000,0x0300,0xC000,0x0300,0xC000,0x0300,0xC000,0x0300,
        0xC000,0x0300,0xC000,0x0300,0xC000,0x0300,0xFFFF,0xFF00,
        0x0000,0x0100,0x3FFF,0xFF00,0x3F81,0xFF00,0x3E7E,0x7F00,
        0x3CFE,0x7F00,0x3FFC,0xFF00,0x3FF3,0xFF00,0x3FE7,0xFF00,
        0x3FFF,0xFF00,0x3FE7,0xFF00,0x3FFF,0xFF00,0x7FFF,0xFF00,
        0x0000,0x0000,0x0000,0x0000,0x007E,0x0000,0x0181,0x8000,
        0x0301,0x8000,0x0003,0x0000,0x000C,0x0000,0x0018,0x0000,
        0x0000,0x0000,0x0018,0x0000,0x0000,0x0000,0x0000,0x0000
};

static struct Image toolboxImage1 = {
        0,0,
        24,12,
        3,
        toolboxImageData1,
        0x0007,0x0000,
        NULL
};

static struct Gadget toolboxGadget1 = {
        &toolboxGadget2,
        6,14,
        24,12,
        GADGHBOX+GADGHIMAGE+GADGIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        (APTR)&toolboxImage1,
        NULL,
        NULL,
        NULL,
        NULL,
        1,
        NULL
};

#define toolboxGadgetList1 toolboxGadget1

static struct IntuiText toolboxIText1 = {
        3,1,COMPLEMENT,
        19,0,
        NULL,
        "Alphabetize",
        NULL
};

static struct MenuItem toolboxMenuItem2 = {
        NULL,
        0,8,
        163,8,
        CHECKIT+ITEMTEXT+MENUTOGGLE+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText1,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText toolboxIText2 = {
        3,1,COMPLEMENT,
        19,0,
        NULL,
        "Display Tool Names",
        NULL
};

static struct MenuItem toolboxMenuItem1 = {
        &toolboxMenuItem2,
        0,0,
        163,8,
        CHECKIT+ITEMTEXT+MENUTOGGLE+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText2,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct Menu toolboxMenu3 = {
        NULL,
        156,0,
        95,0,
        MENUENABLED,
        "Preferences",
        &toolboxMenuItem1
};

static struct IntuiText toolboxIText3 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "",
        NULL
};

static struct MenuItem toolboxMenuItem10 = {
        NULL,
        0,56,
        128,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText3,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText toolboxIText4 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "",
        NULL
};

static struct MenuItem toolboxMenuItem9 = {
        &toolboxMenuItem10,
        0,48,
        128,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText4,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText toolboxIText5 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "",
        NULL
};

static struct MenuItem toolboxMenuItem8 = {
        &toolboxMenuItem9,
        0,40,
        128,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText5,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText toolboxIText6 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "",
        NULL
};

static struct MenuItem toolboxMenuItem7 = {
        &toolboxMenuItem8,
        0,32,
        128,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText6,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText toolboxIText7 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "",
        NULL
};

static struct MenuItem toolboxMenuItem6 = {
        &toolboxMenuItem7,
        0,24,
        128,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText7,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText toolboxIText8 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "",
        NULL
};

static struct MenuItem toolboxMenuItem5 = {
        &toolboxMenuItem6,
        0,16,
        128,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText8,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText toolboxIText9 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "",
        NULL
};

static struct MenuItem toolboxMenuItem4 = {
        &toolboxMenuItem5,
        0,8,
        128,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText9,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText toolboxIText10 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "1234567890123456",
        NULL
};

static struct MenuItem toolboxMenuItem3 = {
        &toolboxMenuItem4,
        0,0,
        128,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText10,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct Menu toolboxMenu2 = {
        &toolboxMenu3,
        70,0,
        79,0,
        MENUENABLED,
        "ToolTrays",
        &toolboxMenuItem3
};

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

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

static struct IntuiText toolboxIText12 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "Edit MacroTool...",
        NULL
};

static struct MenuItem toolboxMenuItem15 = {
        &toolboxMenuItem16,
        0,32,
        152,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText12,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText toolboxIText13 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "Create MacroTool...",
        NULL
};

static struct MenuItem toolboxMenuItem14 = {
        &toolboxMenuItem15,
        0,24,
        152,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText13,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct IntuiText toolboxIText14 = {
        3,1,COMPLEMENT,
        0,0,
        NULL,
        "-------------------",
        NULL
};

static struct MenuItem toolboxMenuItem13 = {
        &toolboxMenuItem14,
        0,16,
        152,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText14,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

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

static struct MenuItem toolboxMenuItem12 = {
        &toolboxMenuItem13,
        0,8,
        152,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText15,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

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

static struct MenuItem toolboxMenuItem11 = {
        &toolboxMenuItem12,
        0,0,
        152,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&toolboxIText16,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

static struct Menu toolboxMenu1 = {
        &toolboxMenu2,
        0,0,
        63,0,
        MENUENABLED,
        "ToolBox",
        &toolboxMenuItem11
};

#define toolboxMenuList1 toolboxMenu1

static struct NewWindow toolboxNewWindowStructure1 = {
        130,32,
        260,110,
        0,1,
        GADGETDOWN+MENUPICK+CLOSEWINDOW+INTUITICKS,
        WINDOWSIZING+WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH,
        &toolboxGadget1,
        NULL,
        "ToolBox",
        NULL,
        NULL,
        5,5,
        -1,-1,
        CUSTOMSCREEN
};
