/* GaugeMenu.c **************************************************************
*
*	GaugeMenu - Externe Definitionen für Menü & AutoRequest.
*	            Dieses Programmfragment wurden mit dem R.C.T.
*	            (Requester Construction Tool) erzeugt und
*	            anschließend nachbearbeitet (sogar sehr kräftig
*	            nachbearbeitet! das R.C.T. hat noch sehr große
*	            Macken und läßt sich noch nicht einmal von
*	            meiner Festplatte starten!).
*
*	Pardon...   Alle Texte sind noch in Englisch. Ich habe das Programm
*	            geschrieben, nachdem ich das Originalprogramm von
*	            Peter da Silva sah, aber nicht allzuviel damit anfangen
*	            konnte (was zeigt es eigentlich an? den Speicher, der
*	            nach dem Programmstart freigegeben wurde?) und sah,
*	            daß kein Quellcode mitgeliefert wurde. Ich konnte mich
*	            nicht dafür entscheiden, in welcher Sprache ich es
*	            verfassen sollte. Deshalb sind die Programmtexte in
*	            Englisch, die Kommentare in Deutsch.
*
****************************************************************************/

#include <intuition/intuition.h>

	/* Standardfont für alle folgenden Textdefinitionen. */

struct TextAttr GaugeFont[3] =
{
	{(UBYTE *)"topaz.font",8,FS_NORMAL ,FPF_ROMFONT},
	{(UBYTE *)"topaz.font",8,FSF_BOLD  ,FPF_ROMFONT},
	{(UBYTE *)"topaz.font",8,FSF_ITALIC,FPF_ROMFONT}
};

	/* Textdefinitionen für AutoRequest (BodyText). */

struct IntuiText AboutTxt[7] =
{
	{3,1,JAM1,8, 4,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"MemGauge v1.4",			(struct IntuiText *)&AboutTxt[ 1]},

	{2,1,JAM1,8,14,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Was  inspired  by  a  similar",	(struct IntuiText *)&AboutTxt[ 2]},
	{2,1,JAM1,8,22,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"program by  Peter  da  Silva.",	(struct IntuiText *)&AboutTxt[ 3]},
	{2,1,JAM1,8,30,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"This version was reprogrammed",	(struct IntuiText *)&AboutTxt[ 4]},
	{2,1,JAM1,8,38,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"by Olaf 'Olsen' Barthel.",		(struct IntuiText *)&AboutTxt[ 5]},

	{0,1,JAM1,8,50,(struct TextAttr *)&GaugeFont[2],(UBYTE *)"(C) Copyright 1989 by...",	(struct IntuiText *)&AboutTxt[ 6]},
	{0,1,JAM1,8,58,(struct TextAttr *)&GaugeFont[2],(UBYTE *)"ED Electronic Design Hannover",	(struct IntuiText *)NULL},
};

	/* Textdefinitionen für Autorequest (NegativeText). */

struct IntuiText Proceed =
{
	2,1,JAM1,5,3,
	(struct TextAttr *)&GaugeFont[0],
	(UBYTE *)"Understood",
	(struct IntuiText *)NULL
};

	/* Textdefinitionen für die einzelnen Menüelemente. */

struct IntuiText GaugeTxt[11] =
{
	{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"About MemGauge...       ",(struct IntuiText *)NULL},
	{2,0,0,0,0,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"------------------------",(struct IntuiText *)NULL},
	{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Window to front         ",(struct IntuiText *)NULL},
	{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Window to back          ",(struct IntuiText *)NULL},
	{2,0,0,0,0,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"------------------------",(struct IntuiText *)NULL},
	{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Close window            ",(struct IntuiText *)NULL},
	{2,0,0,0,0,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"------------------------",(struct IntuiText *)NULL},
	{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)" 1 Second  update       ",(struct IntuiText *)NULL},
	{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)" 2 Seconds update       ",(struct IntuiText *)NULL},
	{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)" 5 Seconds update       ",(struct IntuiText *)NULL},
	{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"10 Seconds update       ",(struct IntuiText *)NULL}
};

	/* Substrukturen für das eigentliche Menü. */

struct MenuItem GaugeItem[11] =
{
	{(struct MenuItem *)&GaugeItem[ 1], 1,  1, 192, 8,  86, 0, (APTR)&GaugeTxt[ 0], (LONG)0, 65, (struct MenuItem *)NULL, 65535},
	{(struct MenuItem *)&GaugeItem[ 2], 0, 10, 192, 8, 210, 0, (APTR)&GaugeTxt[ 1], (LONG)0,  0, (struct MenuItem *)NULL, 65535},
	{(struct MenuItem *)&GaugeItem[ 3], 1, 18, 192, 8,  86, 0, (APTR)&GaugeTxt[ 2], (LONG)0, 70, (struct MenuItem *)NULL, 65535},
	{(struct MenuItem *)&GaugeItem[ 4], 0, 27, 192, 8,  86, 0, (APTR)&GaugeTxt[ 3], (LONG)0, 66, (struct MenuItem *)NULL, 65535},
	{(struct MenuItem *)&GaugeItem[ 5], 0, 36, 192, 8, 210, 0, (APTR)&GaugeTxt[ 4], (LONG)0,  0, (struct MenuItem *)NULL, 65535},
	{(struct MenuItem *)&GaugeItem[ 6], 0, 44, 192, 8,  86, 0, (APTR)&GaugeTxt[ 5], (LONG)0, 67, (struct MenuItem *)NULL, 65535},
	{(struct MenuItem *)&GaugeItem[ 7], 0, 53, 192, 8, 210, 0, (APTR)&GaugeTxt[ 6], (LONG)0,  0, (struct MenuItem *)NULL, 65535},
	{(struct MenuItem *)&GaugeItem[ 8], 0, 61, 192, 8,  86, 0, (APTR)&GaugeTxt[ 7], (LONG)0, 49, (struct MenuItem *)NULL, 65535},
	{(struct MenuItem *)&GaugeItem[ 9], 0, 70, 192, 8,  86, 0, (APTR)&GaugeTxt[ 8], (LONG)0, 50, (struct MenuItem *)NULL, 65535},
	{(struct MenuItem *)&GaugeItem[10], 0, 79, 192, 8,  86, 0, (APTR)&GaugeTxt[ 9], (LONG)0, 53, (struct MenuItem *)NULL, 65535},
	{(struct MenuItem *)NULL,           0, 88, 192, 8,  86, 0, (APTR)&GaugeTxt[10], (LONG)0, 48, (struct MenuItem *)NULL, 65535}
};

	/* Diese Menüstruktur vereinigt alle oberen Definitionen. */

struct Menu GaugeMenu = {(struct Menu *)NULL, 0, 0, 112, 0, 257, "MemGauge v1.4", (struct MenuItem *)&GaugeItem[0]};
