home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff222.lzh / MemGauge / GaugeMenu.c < prev    next >
C/C++ Source or Header  |  1989-06-19  |  5KB  |  82 lines

  1. /* GaugeMenu.c **************************************************************
  2. *
  3. *    GaugeMenu -----    External definitions for menu and auto-request.
  4. *            These structures were generated using a
  5. *            PowerWindows-like program called R.C.T.
  6. *
  7. ****************************************************************************/
  8.  
  9. #include <intuition/intuition.h>
  10.  
  11.     /* Default font for all following text definitions. */
  12.  
  13. struct TextAttr GaugeFont[3] =
  14. {
  15.     {(UBYTE *)"topaz.font",8,FS_NORMAL ,FPF_ROMFONT},
  16.     {(UBYTE *)"topaz.font",8,FSF_BOLD  ,FPF_ROMFONT},
  17.     {(UBYTE *)"topaz.font",8,FSF_ITALIC,FPF_ROMFONT}
  18. };
  19.  
  20.     /* Textdefinitions for the AutoRequest (BodyText). */
  21.  
  22. struct IntuiText AboutTxt[7] =
  23. {
  24.     {3,1,JAM1,8, 4,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"MemGauge v1.4",            (struct IntuiText *)&AboutTxt[ 1]},
  25.  
  26.     {2,1,JAM1,8,14,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Was  inspired  by  a  similar",    (struct IntuiText *)&AboutTxt[ 2]},
  27.     {2,1,JAM1,8,22,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"program by  Peter  da  Silva.",    (struct IntuiText *)&AboutTxt[ 3]},
  28.     {2,1,JAM1,8,30,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"This version was reprogrammed",    (struct IntuiText *)&AboutTxt[ 4]},
  29.     {2,1,JAM1,8,38,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"by Olaf 'Olsen' Barthel.",        (struct IntuiText *)&AboutTxt[ 5]},
  30.  
  31.     {0,1,JAM1,8,50,(struct TextAttr *)&GaugeFont[2],(UBYTE *)"(C) Copyright 1989 by...",    (struct IntuiText *)&AboutTxt[ 6]},
  32.     {0,1,JAM1,8,58,(struct TextAttr *)&GaugeFont[2],(UBYTE *)"ED Electronic Design Hannover",    (struct IntuiText *)NULL},
  33. };
  34.  
  35.     /* Textdefinitions for the Autorequest (NegativeText). */
  36.  
  37. struct IntuiText Proceed =
  38. {
  39.     2,1,JAM1,5,3,
  40.     (struct TextAttr *)&GaugeFont[0],
  41.     (UBYTE *)"Understood",
  42.     (struct IntuiText *)NULL
  43. };
  44.  
  45.     /* Textdefinitions for each single menu entry. */
  46.  
  47. struct IntuiText GaugeTxt[11] =
  48. {
  49.     {2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"About MemGauge...       ",(struct IntuiText *)NULL},
  50.     {2,0,0,0,0,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"------------------------",(struct IntuiText *)NULL},
  51.     {2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Window to front         ",(struct IntuiText *)NULL},
  52.     {2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Window to back          ",(struct IntuiText *)NULL},
  53.     {2,0,0,0,0,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"------------------------",(struct IntuiText *)NULL},
  54.     {2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Close window            ",(struct IntuiText *)NULL},
  55.     {2,0,0,0,0,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"------------------------",(struct IntuiText *)NULL},
  56.     {2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)" 1 Second  update       ",(struct IntuiText *)NULL},
  57.     {2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)" 2 Seconds update       ",(struct IntuiText *)NULL},
  58.     {2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)" 5 Seconds update       ",(struct IntuiText *)NULL},
  59.     {2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"10 Seconds update       ",(struct IntuiText *)NULL}
  60. };
  61.  
  62.     /* Substructures for the real menu. */
  63.  
  64. struct MenuItem GaugeItem[11] =
  65. {
  66.     {(struct MenuItem *)&GaugeItem[ 1], 1,  1, 192, 8,  86, 0, (APTR)&GaugeTxt[ 0], (LONG)0, 65, (struct MenuItem *)NULL, 65535},
  67.     {(struct MenuItem *)&GaugeItem[ 2], 0, 10, 192, 8, 210, 0, (APTR)&GaugeTxt[ 1], (LONG)0,  0, (struct MenuItem *)NULL, 65535},
  68.     {(struct MenuItem *)&GaugeItem[ 3], 1, 18, 192, 8,  86, 0, (APTR)&GaugeTxt[ 2], (LONG)0, 70, (struct MenuItem *)NULL, 65535},
  69.     {(struct MenuItem *)&GaugeItem[ 4], 0, 27, 192, 8,  86, 0, (APTR)&GaugeTxt[ 3], (LONG)0, 66, (struct MenuItem *)NULL, 65535},
  70.     {(struct MenuItem *)&GaugeItem[ 5], 0, 36, 192, 8, 210, 0, (APTR)&GaugeTxt[ 4], (LONG)0,  0, (struct MenuItem *)NULL, 65535},
  71.     {(struct MenuItem *)&GaugeItem[ 6], 0, 44, 192, 8,  86, 0, (APTR)&GaugeTxt[ 5], (LONG)0, 67, (struct MenuItem *)NULL, 65535},
  72.     {(struct MenuItem *)&GaugeItem[ 7], 0, 53, 192, 8, 210, 0, (APTR)&GaugeTxt[ 6], (LONG)0,  0, (struct MenuItem *)NULL, 65535},
  73.     {(struct MenuItem *)&GaugeItem[ 8], 0, 61, 192, 8,  86, 0, (APTR)&GaugeTxt[ 7], (LONG)0, 49, (struct MenuItem *)NULL, 65535},
  74.     {(struct MenuItem *)&GaugeItem[ 9], 0, 70, 192, 8,  86, 0, (APTR)&GaugeTxt[ 8], (LONG)0, 50, (struct MenuItem *)NULL, 65535},
  75.     {(struct MenuItem *)&GaugeItem[10], 0, 79, 192, 8,  86, 0, (APTR)&GaugeTxt[ 9], (LONG)0, 53, (struct MenuItem *)NULL, 65535},
  76.     {(struct MenuItem *)NULL,           0, 88, 192, 8,  86, 0, (APTR)&GaugeTxt[10], (LONG)0, 48, (struct MenuItem *)NULL, 65535}
  77. };
  78.  
  79.     /* This will be the menu. */
  80.  
  81. struct Menu GaugeMenu = {(struct Menu *)NULL, 0, 0, 112, 0, 257, "MemGauge v1.4", (struct MenuItem *)&GaugeItem[0]};
  82.