
UBYTE UNDOBUFFER[150];

SHORT BorderVectors1[] = {
   0,0,
   74,0,
   74,11,
   0,11,
   0,0
};
struct Border Border1 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors1,
   NULL
};

struct IntuiText IText1 = {
   3,0,JAM2,
   15,1,
   NULL,
   (UBYTE *)"Trace",
   NULL
};

struct Gadget trace = {
   &element[3][3],
   555,82,
   71,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border1,
   NULL,
   &IText1,
   NULL,
   NULL,
   125,
   NULL
};

SHORT BorderVectors2[] = {
   0,0,
   35,0,
   35,11,
   0,11,
   0,0
};
struct Border Border2 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors2,
   NULL
};

struct IntuiText IText2 = {
   3,0,JAM2,
   6,1,
   NULL,
   (UBYTE *)"Rot",
   NULL
};

struct Gadget rotations = {
   &trace,
   594,69,
   32,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border2,
   NULL,
   &IText2,
   NULL,
   NULL,
   122,
   NULL
};

USHORT ImageData1[] = {
   0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0080,0x0000,
   0x00E0,0x0000,0x00FC,0x0000,0x00FF,0x0000,0x00FF,0xE000,
   0x00FF,0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
   0xFFFF,0xFFF8,0x8000,0x0008,0x8000,0x0008,0x8080,0x0008,
   0x80E0,0x0008,0x80FC,0x0008,0x80FF,0x0008,0x80FF,0xE008,
   0x80FF,0xF808,0x8000,0x0008,0x8000,0x0008,0xFFFF,0xFFF8
};

struct Image Image1 = {
   -2,-1,
   29,12,
   2,
   ImageData1,
   0x0003,0x0000,
   NULL
};

struct Gadget unteredreieck = {
   &rotations,
   569,43,
   25,10,
   GADGIMAGE,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Image1,
   NULL,
   NULL,
   NULL,
   NULL,
   121,
   NULL
};

USHORT ImageData2[] = {
   0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x00FF,0xF800,
   0x003F,0xF800,0x0007,0xF800,0x0001,0xF800,0x0000,0x3800,
   0x0000,0x0800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
   0xFFFF,0xFFF8,0x8000,0x0008,0x8000,0x0008,0x80FF,0xF808,
   0x803F,0xF808,0x8007,0xF808,0x8001,0xF808,0x8000,0x3808,
   0x8000,0x0808,0x8000,0x0008,0x8000,0x0008,0xFFFF,0xFFF8
};

struct Image Image2 = {
   -2,-1,
   29,12,
   2,
   ImageData2,
   0x0003,0x0000,
   NULL
};

struct Gadget oberedreieck = {
   &unteredreieck,
   601,43,
   25,10,
   GADGIMAGE,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Image2,
   NULL,
   NULL,
   NULL,
   NULL,
   120,
   NULL
};

UBYTE befstringSIBuff[150];
struct StringInfo befstringSInfo = {
   befstringSIBuff,
   UNDOBUFFER,
   0,
   150,
   0,
   0,0,0,0,0,
   0,
   0,
   NULL
};

SHORT BorderVectors3[] = {
   0,0,
   438,0,
   438,11,
   0,11,
   0,0
};
struct Border Border3 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors3,
   NULL
};

struct Gadget befstring = {
   &oberedreieck,
   18,115,
   435,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   STRGADGET,
   (APTR)&Border3,
   NULL,
   NULL,
   NULL,
   (APTR)&befstringSInfo,
   23,
   NULL
};

SHORT BorderVectors4[] = {
   0,0,
   47,0,
   47,11,
   0,11,
   0,0
};
struct Border Border4 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors4,
   NULL
};

struct IntuiText IText3 = {
   3,0,JAM2,
   2,1,
   NULL,
   (UBYTE *)"Clear",
   NULL
};

struct Gadget clear = {
   &befstring,
   582,115,
   44,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border4,
   NULL,
   &IText3,
   NULL,
   NULL,
   22,
   NULL
};

SHORT BorderVectors5[] = {
   0,0,
   47,0,
   47,11,
   0,11,
   0,0
};
struct Border Border5 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors5,
   NULL
};

struct IntuiText IText4 = {
   3,0,JAM2,
   6,1,
   NULL,
   (UBYTE *)"Undo",
   NULL
};

struct Gadget undo = {
   &clear,
   529,115,
   44,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border5,
   NULL,
   &IText4,
   NULL,
   NULL,
   117,
   NULL
};

SHORT BorderVectors6[] = {
   0,0,
   47,0,
   47,11,
   0,11,
   0,0
};
struct Border Border6 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors6,
   NULL
};

struct IntuiText IText5 = {
   3,0,JAM2,
   10,1,
   NULL,
   (UBYTE *)"XEQ",
   NULL
};

struct Gadget xeq = {
   &undo,
   476,115,
   44,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border6,
   NULL,
   &IText5,
   NULL,
   NULL,
   21,
   NULL
};

UBYTE precSIBuff[3] =
   "3";
struct StringInfo precSInfo = {
   precSIBuff,
   NULL,
   0,
   3,
   0,
   0,0,0,0,0,
   0,
   3L,
   NULL
};

SHORT BorderVectors7[] = {
   0,0,
   63,0,
   63,9,
   0,9,
   0,0
};
struct Border Border7 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors7,
   NULL
};

struct Gadget prec = {
   &xeq,
   566,99,
   60,8,
   NULL,
   RELVERIFY+GADGIMMEDIATE+STRINGCENTER+LONGINT,
   STRGADGET,
   (APTR)&Border7,
   NULL,
   NULL,
   NULL,
   (APTR)&precSInfo,
   20,
   NULL
};

SHORT BorderVectors8[] = {
   0,0,
   35,0,
   35,11,
   0,11,
   0,0
};
struct Border Border8 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors8,
   NULL
};

struct IntuiText IText6 = {
   3,0,JAM2,
   7,1,
   NULL,
   (UBYTE *)"Tr",
   NULL
};

struct Gadget transp = {
   &prec,
   515,69,
   32,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border8,
   NULL,
   &IText6,
   NULL,
   NULL,
   19,
   NULL
};

SHORT BorderVectors9[] = {
   0,0,
   74,0,
   74,11,
   0,11,
   0,0
};
struct Border Border9 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors9,
   NULL
};

struct IntuiText IText7 = {
   3,0,JAM2,
   25,1,
   NULL,
   (UBYTE *)"Det",
   NULL
};

struct Gadget det = {
   &transp,
   476,82,
   71,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border9,
   NULL,
   &IText7,
   NULL,
   NULL,
   18,
   NULL
};

SHORT BorderVectors10[] = {
   0,0,
   28,0,
   28,11,
   0,11,
   0,0
};
struct Border Border10 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors10,
   NULL
};

struct IntuiText IText8 = {
   3,0,JAM2,
   8,1,
   NULL,
   (UBYTE *)"/",
   NULL
};

struct Gadget skaldiv = {
   &det,
   538,56,
   25,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border10,
   NULL,
   &IText8,
   NULL,
   NULL,
   110,
   NULL
};

SHORT BorderVectors11[] = {
   0,0,
   28,0,
   28,11,
   0,11,
   0,0
};
struct Border Border11 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors11,
   NULL
};

struct IntuiText IText9 = {
   3,0,JAM2,
   8,1,
   NULL,
   (UBYTE *)")",
   NULL
};

struct Gadget klammerzu = {
   &skaldiv,
   601,56,
   25,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border11,
   NULL,
   &IText9,
   NULL,
   NULL,
   17,
   NULL
};

SHORT BorderVectors12[] = {
   0,0,
   28,0,
   28,11,
   0,11,
   0,0
};
struct Border Border12 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors12,
   NULL
};

struct IntuiText IText10 = {
   3,0,JAM2,
   8,1,
   NULL,
   (UBYTE *)"(",
   NULL
};

struct Gadget klammerauf = {
   &klammerzu,
   569,56,
   25,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border12,
   NULL,
   &IText10,
   NULL,
   NULL,
   16,
   NULL
};

SHORT BorderVectors13[] = {
   0,0,
   28,0,
   28,11,
   0,11,
   0,0
};
struct Border Border13 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors13,
   NULL
};

struct IntuiText IText11 = {
   3,0,JAM2,
   8,1,
   NULL,
   (UBYTE *)"+",
   NULL
};

struct Gadget plus = {
   &klammerauf,
   476,56,
   25,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border13,
   NULL,
   &IText11,
   NULL,
   NULL,
   15,
   NULL
};

SHORT BorderVectors14[] = {
   0,0,
   35,0,
   35,11,
   0,11,
   0,0
};
struct Border Border14 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors14,
   NULL
};

struct IntuiText IText12 = {
   3,0,JAM2,
   5,1,
   NULL,
   (UBYTE *)"Inv",
   NULL
};

struct Gadget division = {
   &plus,
   476,69,
   32,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border14,
   NULL,
   &IText12,
   NULL,
   NULL,
   14,
   NULL
};

SHORT BorderVectors15[] = {
   0,0,
   28,0,
   28,11,
   0,11,
   0,0
};
struct Border Border15 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors15,
   NULL
};

struct IntuiText IText13 = {
   3,0,JAM2,
   8,1,
   NULL,
   (UBYTE *)"-",
   NULL
};

struct Gadget minus = {
   &division,
   507,56,
   25,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border15,
   NULL,
   &IText13,
   NULL,
   NULL,
   13,
   NULL
};

SHORT BorderVectors16[] = {
   0,0,
   35,0,
   35,11,
   0,11,
   0,0
};
struct Border Border16 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors16,
   NULL
};

struct IntuiText IText14 = {
   3,0,JAM2,
   12,1,
   NULL,
   (UBYTE *)"*",
   NULL
};

struct Gadget mult = {
   &minus,
   555,69,
   32,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border16,
   NULL,
   &IText14,
   NULL,
   NULL,
   12,
   NULL
};

SHORT BorderVectors17[] = {
   0,0,
   47,0,
   47,11,
   0,11,
   0,0
};
struct Border Border17 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors17,
   NULL
};

struct IntuiText IText15 = {
   3,0,JAM2,
   6,1,
   NULL,
   (UBYTE *)"Save",
   NULL
};

struct Gadget gadwrite = {
   &mult,
   529,26,
   44,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border17,
   NULL,
   &IText15,
   NULL,
   NULL,
   11,
   NULL
};

SHORT BorderVectors18[] = {
   0,0,
   47,0,
   47,11,
   0,11,
   0,0
};
struct Border Border18 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors18,
   NULL
};

struct IntuiText IText16 = {
   3,0,JAM2,
   10,1,
   NULL,
   (UBYTE *)"Del",
   NULL
};

struct Gadget del = {
   &gadwrite,
   582,26,
   44,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border18,
   NULL,
   &IText16,
   NULL,
   NULL,
   10,
   NULL
};

SHORT BorderVectors19[] = {
   0,0,
   47,0,
   47,11,
   0,11,
   0,0
};
struct Border Border19 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors19,
   NULL
};

struct IntuiText IText17 = {
   3,0,JAM2,
   7,1,
   NULL,
   (UBYTE *)"Read",
   NULL
};

struct Gadget gadread = {
   &del,
   476,26,
   44,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border19,
   NULL,
   &IText17,
   NULL,
   NULL,
   9,
   NULL
};

SHORT BorderVectors20[] = {
   0,0,
   28,0,
   28,11,
   0,11,
   0,0
};
struct Border Border20 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors20,
   NULL
};

struct IntuiText IText18 = {
   3,0,JAM2,
   8,1,
   NULL,
   (UBYTE *)"I",
   NULL
};

struct Gadget einheits = {
   &gadread,
   538,43,
   25,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border20,
   NULL,
   &IText18,
   NULL,
   NULL,
   116,
   NULL
};

SHORT BorderVectors21[] = {
   0,0,
   28,0,
   28,11,
   0,11,
   0,0
};
struct Border Border21 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors21,
   NULL
};

struct IntuiText IText19 = {
   3,0,JAM2,
   9,1,
   NULL,
   (UBYTE *)"0",
   NULL
};

struct Gadget matrix = {
   &einheits,
   507,43,
   25,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border21,
   NULL,
   &IText19,
   NULL,
   NULL,
   8,
   NULL
};

SHORT BorderVectors22[] = {
   0,0,
   28,0,
   28,11,
   0,11,
   0,0
};
struct Border Border22 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors22,
   NULL
};

struct IntuiText IText20 = {
   3,0,JAM2,
   1,1,
   NULL,
   (UBYTE *)"Sym",
   NULL
};

struct Gadget skal = {
   &matrix,
   476,43,
   25,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   BOOLGADGET,
   (APTR)&Border22,
   NULL,
   &IText20,
   NULL,
   NULL,
   7,
   NULL
};

SHORT BorderVectors23[] = {
   0,0,
   47,0,
   47,11,
   0,11,
   0,0
};
struct Border Border23 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors23,
   NULL
};

struct IntuiText IText21 = {
   3,0,JAM2,
   6,1,
   NULL,
   (UBYTE *)"File",
   NULL
};

struct Gadget file = {
   &skal,
   529,13,
   44,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE+TOGGLESELECT,
   BOOLGADGET,
   (APTR)&Border23,
   NULL,
   &IText21,
   NULL,
   NULL,
   6,
   NULL
};

SHORT BorderVectors24[] = {
   0,0,
   47,0,
   47,11,
   0,11,
   0,0
};
struct Border Border24 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors24,
   NULL
};

struct IntuiText IText22 = {
   3,0,JAM2,
   7,1,
   NULL,
   (UBYTE *)"Ram:",
   NULL
};

struct Gadget con = {
   &file,
   476,13,
   44,10,
   SELECTED,
   RELVERIFY+GADGIMMEDIATE+TOGGLESELECT,
   BOOLGADGET,
   (APTR)&Border24,
   NULL,
   &IText22,
   NULL,
   NULL,
   5,
   NULL
};

SHORT BorderVectors25[] = {
   0,0,
   47,0,
   47,11,
   0,11,
   0,0
};
struct Border Border25 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors25,
   NULL
};

struct IntuiText IText23 = {
   3,0,JAM2,
   7,1,
   NULL,
   (UBYTE *)"Prt:",
   NULL
};

struct Gadget prt = {
   &con,
   582,13,
   44,10,
   NULL,
   RELVERIFY+GADGIMMEDIATE+TOGGLESELECT,
   BOOLGADGET,
   (APTR)&Border25,
   NULL,
   &IText23,
   NULL,
   NULL,
   4,
   NULL
};

UBYTE Gadget23SIBuff[4] =
   "3";
struct StringInfo Gadget23SInfo = {
   Gadget23SIBuff,
   NULL,
   0,
   4,
   0,
   0,0,0,0,0,
   0,
   3L,
   NULL
};

SHORT BorderVectors26[] = {
   0,0,
   81,0,
   81,9,
   0,9,
   0,0
};
struct Border Border26 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors26,
   NULL
};

struct Gadget Gadget23 = {
   &prt,
   443,141,
   78,8,
   NULL,
   RELVERIFY+GADGIMMEDIATE+STRINGCENTER+LONGINT,
   STRGADGET,
   (APTR)&Border26,
   NULL,
   NULL,
   NULL,
   (APTR)&Gadget23SInfo,
   62,
   NULL
};

UBYTE zeilenSIBuff[4] =
   "3";
struct StringInfo zeilenSInfo = {
   zeilenSIBuff,
   NULL,
   0,
   4,
   0,
   0,0,0,0,0,
   0,
   3L,
   NULL
};

SHORT BorderVectors27[] = {
   0,0,
   81,0,
   81,9,
   0,9,
   0,0
};
struct Border Border27 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors27,
   NULL
};

struct Gadget zeilen = {
   &Gadget23,
   252,141,
   78,8,
   NULL,
   RELVERIFY+GADGIMMEDIATE+STRINGCENTER+LONGINT,
   STRGADGET,
   (APTR)&Border27,
   NULL,
   NULL,
   NULL,
   (APTR)&zeilenSInfo,
   61,
   NULL
};

UBYTE nameSIBuff[19];
struct StringInfo nameSInfo = {
   nameSIBuff,
   NULL,
   0,
   19,
   0,
   0,0,0,0,0,
   0,
   0,
   NULL
};

SHORT BorderVectors28[] = {
   0,0,
   81,0,
   81,9,
   0,9,
   0,0
};
struct Border Border28 = {
   -2,-1,
   2,0,JAM1,
   5,
   BorderVectors28,
   NULL
};

struct Gadget name = {
   &zeilen,
   75,141,
   78,8,
   NULL,
   RELVERIFY+GADGIMMEDIATE,
   STRGADGET,
   (APTR)&Border28,
   NULL,
   NULL,
   NULL,
   (APTR)&nameSInfo,
   59,
   NULL
};

#define GadgetList1 name

struct IntuiText IText24 = {
   3,1,COMPLEMENT,
   19,0,
   NULL,
   (UBYTE *)"Rad",
   NULL
};

struct MenuItem MenuItem3 = {
   NULL,
   0,18,
   83,8,
   ITEMTEXT+ITEMENABLED+HIGHCOMP+CHECKIT,
   3,
   (APTR)&IText24,
   NULL,
   NULL,
   NULL,
   MENUNULL
};

struct IntuiText IText25 = {
   3,1,COMPLEMENT,
   19,0,
   NULL,
   (UBYTE *)"Grad",
   NULL
};

struct MenuItem MenuItem2 = {
   &MenuItem3,
   0,9,
   83,8,
   ITEMTEXT+ITEMENABLED+HIGHCOMP+CHECKIT+CHECKED,
   5,
   (APTR)&IText25,
   NULL,
   NULL,
   NULL,
   MENUNULL
};

struct IntuiText IText26 = {
   3,1,COMPLEMENT,
   19,0,
   NULL,
   (UBYTE *)"Deg",
   NULL
};

struct MenuItem MenuItem1 = {
   &MenuItem2,
   0,0,
   83,8,
   ITEMTEXT+ITEMENABLED+HIGHCOMP+CHECKIT,
   6L,
   (APTR)&IText26,
   NULL,
   NULL,
   NULL,
   MENUNULL
};

struct Menu Menu1 = {
   NULL,
   0,0,
   66,0,
   MENUENABLED,
   "Angles",
   &MenuItem1
};

#define MenuList1 Menu1

struct IntuiText IText32 = {
   3,0,JAM1,
   17,104,
   NULL,
   (UBYTE *)"Command:",
   NULL
};

struct IntuiText IText31 = {
   3,0,JAM1,
   20,15,
   NULL,
   (UBYTE *)"Available:",
   &IText32
};

struct IntuiText IText30 = {
   3,0,JAM1,
   477,100,
   NULL,
   (UBYTE *)"Precision:",
   &IText31
};

struct IntuiText IText29 = {
   3,0,JAM1,
   377,141,
   NULL,
   (UBYTE *)"Columns",
   &IText30
};

struct IntuiText IText28 = {
   3,0,JAM1,
   211,141,
   NULL,
   (UBYTE *)"Rows",
   &IText29
};

struct IntuiText IText27 = {
   3,0,JAM1,
   34,141,
   NULL,
   (UBYTE *)"Name",
   &IText28
};

#define IntuiTextList1 IText27

struct NewWindow NewWindowStructure1 = {
   0,0,
   640,249,
   0,1,
   MENUPICK+GADGETDOWN+GADGETUP+CLOSEWINDOW,
   WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE,
   &name,
   NULL,
   (UBYTE *)" Matrix 1.5 ",
   NULL,
   NULL,
   5,5,
   640,250,
   WBENCHSCREEN
};
