/*
(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 IntuiText chordsIText1 = {
        4,0,JAM1,
        5,2,
        NULL,
        "Remove",
        NULL
};

static struct Gadget chordsGadget5 = {
        NULL,
        13,61,
        58,11,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &chordsIText1,
        NULL,
        NULL,
        5,
        NULL
};

static struct Gadget chordsGadget4 = {
        &chordsGadget5,
        82,29,
        198,43,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        NULL,
        NULL,
        NULL,
        4,
        NULL
};

static UBYTE chordschordsGadget3SIBuff[100];
static struct StringInfo chordschordsGadget3SInfo = {
        chordschordsGadget3SIBuff,
        NULL,
        0,
        100,
        0,
        0,0,0,0,0,
        0,
        0,
        NULL
};

static struct IntuiText chordsIText2 = {
        2,0,JAM1,
        -40,0,
        NULL,
        "Name:",
        NULL
};

static struct Gadget chordsGadget3 = {
        &chordsGadget4,
        51,15,
        229,9,
        NULL,
        RELVERIFY+GADGIMMEDIATE,
        STRGADGET,
        NULL,
        NULL,
        &chordsIText2,
        NULL,
        (APTR)&chordschordsGadget3SInfo,
        3,
        NULL
};

static struct IntuiText chordsIText3 = {
        4,0,JAM1,
        14,2,
        NULL,
        "Add",
        NULL
};

static struct Gadget chordsGadget2 = {
        &chordsGadget3,
        13,29,
        58,11,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &chordsIText3,
        NULL,
        NULL,
        1,
        NULL
};

static struct IntuiText chordsIText4 = {
        4,0,JAM1,
        5,2,
        NULL,
        "Select",
        NULL
};

static struct Gadget chordsGadget1 = {
        &chordsGadget2,
        13,45,
        58,11,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &chordsIText4,
        NULL,
        NULL,
        2,
        NULL
};

#define chordsGadgetList1 chordsGadget1

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

static struct MenuItem chordsMenuItem2 = {
        NULL,
        0,8,
        104,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&chordsIText5,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

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

static struct MenuItem chordsMenuItem1 = {
        &chordsMenuItem2,
        0,0,
        104,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&chordsIText6,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

struct Menu chordsMenu1 = {
        NULL,
        0,0,
        111,0,
        MENUENABLED,
        "Define Chords",
        &chordsMenuItem1
};

#define chordsMenuList1 chordsMenu1

struct NewWindow chordsNewWindowStructure1 = {
        28,9,
        293,78,
        4,1,
        GADGETDOWN+GADGETUP+MENUPICK+CLOSEWINDOW,
        WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH,
        &chordsGadget1,
        NULL,
        "Define Chords",
        NULL,
        NULL,
        5,5,
        -1,-1,
        CUSTOMSCREEN
};

static struct IntuiText scalesIText7 = {
        4,0,JAM1,
        5,2,
        NULL,
        "Remove",
        NULL
};

static struct Gadget scalesGadget18 = {
        NULL,
        13,61,
        58,11,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &scalesIText7,
        NULL,
        NULL,
        5,
        NULL
};

static struct Gadget scalesGadget17 = {
        &scalesGadget18,
        82,29,
        100,43,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        NULL,
        NULL,
        NULL,
        4,
        NULL
};

static UBYTE scalesscalesGadget16SIBuff[100];
static struct StringInfo scalesscalesGadget16SInfo = {
        scalesscalesGadget16SIBuff,
        NULL,
        0,
        100,
        0,
        0,0,0,0,0,
        0,
        0,
        NULL
};

static struct IntuiText scalesIText8 = {
        2,0,JAM1,
        -40,0,
        NULL,
        "Name:",
        NULL
};

static struct Gadget scalesGadget16 = {
        &scalesGadget17,
        51,15,
        131,9,
        NULL,
        RELVERIFY+GADGIMMEDIATE,
        STRGADGET,
        NULL,
        NULL,
        &scalesIText8,
        NULL,
        (APTR)&scalesscalesGadget16SInfo,
        3,
        NULL
};

static struct IntuiText scalesIText9 = {
        4,0,JAM1,
        14,2,
        NULL,
        "Add",
        NULL
};

static struct Gadget scalesGadget15 = {
        &scalesGadget16,
        13,29,
        58,11,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &scalesIText9,
        NULL,
        NULL,
        1,
        NULL
};

static struct IntuiText scalesIText10 = {
        4,0,JAM1,
        5,2,
        NULL,
        "Select",
        NULL
};

static struct Gadget scalesGadget14 = {
        &scalesGadget15,
        13,45,
        58,11,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &scalesIText10,
        NULL,
        NULL,
        2,
        NULL
};

#define scalesGadgetList2 scalesGadget14

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

static struct MenuItem scalesMenuItem4 = {
        NULL,
        0,8,
        104,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&scalesIText11,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

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

static struct MenuItem scalesMenuItem3 = {
        &scalesMenuItem4,
        0,0,
        104,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&scalesIText12,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

struct Menu scalesMenu2 = {
        NULL,
        0,0,
        111,0,
        MENUENABLED,
        "Define Scales",
        &scalesMenuItem3
};

#define scalesMenuList2 scalesMenu2

struct NewWindow scalesNewWindowStructure2 = {
        377,10,
        194,78,
        4,1,
        GADGETDOWN+GADGETUP+MENUPICK+CLOSEWINDOW,
        WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+REPORTMOUSE+ACTIVATE+NOCAREREFRESH,
        &scalesGadget14,
        NULL,
        "Define Scales",
        NULL,
        NULL,
        5,5,
        -1,-1,
        CUSTOMSCREEN
};

static struct IntuiText rhythmIText13 = {
        4,0,JAM1,
        18,2,
        NULL,
        "Add",
        NULL
};

static struct Gadget rhythmGadget25 = {
        NULL,
        13,75,
        60,11,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &rhythmIText13,
        NULL,
        NULL,
        7,
        NULL
};

static struct IntuiText rhythmIText14 = {
        4,0,JAM1,
        22,2,
        NULL,
        "Grab Clip from Track",
        NULL
};

static struct Gadget rhythmGadget24 = {
        &rhythmGadget25,
        13,59,
        206,11,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &rhythmIText14,
        NULL,
        NULL,
        4,
        NULL
};

static struct IntuiText rhythmIText15 = {
        2,0,JAM1,
        -96,0,
        NULL,
        "Loop Length:",
        NULL
};

static struct Gadget rhythmGadget23 = {
        &rhythmGadget24,
        107,29,
        112,8,
        GADGHBOX+GADGHIMAGE,
        GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &rhythmIText15,
        NULL,
        NULL,
        2,
        NULL
};

static struct IntuiText rhythmIText16 = {
        4,0,JAM1,
        7,2,
        NULL,
        "Remove",
        NULL
};

static struct Gadget rhythmGadget22 = {
        &rhythmGadget23,
        159,75,
        60,11,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &rhythmIText16,
        NULL,
        NULL,
        6,
        NULL
};

static UBYTE rhythmrhythmGadget21SIBuff[100];
static struct StringInfo rhythmrhythmGadget21SInfo = {
        rhythmrhythmGadget21SIBuff,
        NULL,
        0,
        100,
        0,
        0,0,0,0,0,
        0,
        0,
        NULL
};

static struct IntuiText rhythmIText17 = {
        2,0,JAM1,
        -40,0,
        NULL,
        "Name:",
        NULL
};

static struct Gadget rhythmGadget21 = {
        &rhythmGadget22,
        51,15,
        168,9,
        NULL,
        RELVERIFY+GADGIMMEDIATE,
        STRGADGET,
        NULL,
        NULL,
        &rhythmIText17,
        NULL,
        (APTR)&rhythmrhythmGadget21SInfo,
        1,
        NULL
};

static struct IntuiText rhythmIText18 = {
        4,0,JAM1,
        7,2,
        NULL,
        "Grab Clip from ClipBoard",
        NULL
};

static struct Gadget rhythmGadget20 = {
        &rhythmGadget21,
        13,43,
        206,11,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &rhythmIText18,
        NULL,
        NULL,
        3,
        NULL
};

static struct IntuiText rhythmIText19 = {
        4,0,JAM1,
        7,2,
        NULL,
        "Select",
        NULL
};

static struct Gadget rhythmGadget19 = {
        &rhythmGadget20,
        86,75,
        60,11,
        GADGHBOX+GADGHIMAGE,
        RELVERIFY+GADGIMMEDIATE,
        BOOLGADGET,
        NULL,
        NULL,
        &rhythmIText19,
        NULL,
        NULL,
        5,
        NULL
};

#define rhythmGadgetList3 rhythmGadget19

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

static struct MenuItem rhythmMenuItem6 = {
        NULL,
        0,8,
        112,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&rhythmIText20,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

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

static struct MenuItem rhythmMenuItem5 = {
        &rhythmMenuItem6,
        0,0,
        112,8,
        ITEMTEXT+ITEMENABLED+HIGHCOMP,
        0,
        (APTR)&rhythmIText21,
        NULL,
        NULL,
        NULL,
        MENUNULL
};

struct Menu rhythmMenu3 = {
        NULL,
        0,0,
        119,0,
        MENUENABLED,
        "Define Rhythms",
        &rhythmMenuItem5
};

#define rhythmMenuList3 rhythmMenu3

struct NewWindow rhythmNewWindowStructure3 = {
        88,92,
        232,92,
        4,1,
        NEWSIZE+GADGETDOWN+GADGETUP+MENUPICK+CLOSEWINDOW,
        WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+REPORTMOUSE+ACTIVATE+NOCAREREFRESH,
        &rhythmGadget19,
        NULL,
        "Define Rhythms",
        NULL,
        NULL,
        5,5,
        -1,-1,
        CUSTOMSCREEN
};
