home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d02xx / d0251.lha / DiskSpeed / DiskSpeed.h < prev    next >
Text File  |  1989-10-15  |  6KB  |  107 lines

  1. static char TabText[2]    ="\t";
  2.  
  3. static char Text1[8]    ="bytes/s";
  4. static char Text2[12]    ="32768 byte:";
  5. static char Text3[11]    ="4096 byte:";
  6. static char Text4[10]    ="512 byte:";
  7. static char Text5[16]    ="Raw Write Speed";
  8. static char Text6[15]    ="Raw Read Speed";
  9. static char Text7[13]    ="Seek & Read:";
  10. static char Text8[16]    ="Directory Scan:";
  11. static char Text9[13]    ="File Delete:";
  12. static char Text10[13]    ="File Create:";
  13. static char Text11[7]    ="Drive:";
  14.  
  15. static char MenuText1[12]    ="Version 0.1";
  16. static char MenuText2[17]    ="Copyright ⌐ 1989";
  17. static char MenuText3[16]    ="By Michael Sinz";
  18. static char MenuText4[11]    ="Start Test";
  19. static char MenuText5[5]    ="Save";
  20. static char MenuText6[6]    ="Print";
  21. static char MenuText7[23]    ="MKSoft Disk Speed Test";
  22. static char MenuText8[8]    ="Project";
  23.  
  24. static char WindowText[20]    ="Disk Speed Test 0.1";
  25.  
  26. static char File_Create[12];
  27. static char File_Delete[12];
  28. static char Directory_Scan[12];
  29. static char Seek_And_Read[12];
  30. static char Read_512[12];
  31. static char Read_4096[12];
  32. static char Read_32768[12];
  33. static char Write_512[12];
  34. static char Write_4096[12];
  35. static char Write_32768[12];
  36.  
  37. static UBYTE Device[32];
  38.  
  39. static char fontnam[11]    ="topaz.font";
  40.  
  41. static struct TextAttr TOPAZ60    ={fontnam,TOPAZ_SIXTY,0,0};
  42. static struct TextAttr TOPAZ80    ={fontnam,TOPAZ_EIGHTY,0,0};
  43.  
  44.  
  45. static SHORT BorderVectors1[]    ={0,0,230,0,230,40,0,40,0,0};
  46. static SHORT BorderVectors[]    ={0,0,177,0,177,9,0,9,0,0};
  47.  
  48. static struct Border Border6    ={4-56,24-13,1,0,JAM1,5,BorderVectors1,NULL};
  49. static struct Border Border5    ={5-56,25-13,2,0,JAM1,5,BorderVectors1,&Border6};
  50. static struct Border Border4    ={4-56,67-13,1,0,JAM1,5,BorderVectors1,&Border5};
  51. static struct Border Border3    ={5-56,68-13,2,0,JAM1,5,BorderVectors1,&Border4};
  52. static struct Border Border2    ={4-56,111-13,1,0,JAM1,5,BorderVectors1,&Border3};
  53. static struct Border Border1    ={5-56,112-13,2,0,JAM1,5,BorderVectors1,&Border2};
  54. static struct Border Border    ={-1,-1,1,0,JAM1,5,BorderVectors,&Border1};
  55.  
  56. static struct IntuiText IText25    ={1,0,JAM2,48,129,&TOPAZ60,Write_32768,NULL};
  57. static struct IntuiText IText24    ={1,0,JAM2,48,120,&TOPAZ60,Write_4096,&IText25};
  58. static struct IntuiText IText23    ={1,0,JAM2,48,111,&TOPAZ60,Write_512,&IText24};
  59. static struct IntuiText IText22    ={1,0,JAM2,48,85,&TOPAZ60,Read_32768,&IText23};
  60. static struct IntuiText IText21    ={1,0,JAM2,48,76,&TOPAZ60,Read_4096,&IText22};
  61. static struct IntuiText IText20    ={1,0,JAM2,48,67,&TOPAZ60,Read_512,&IText21};
  62. static struct IntuiText IText19    ={1,0,JAM2,78,41,&TOPAZ60,Seek_And_Read,&IText20};
  63. static struct IntuiText IText18    ={1,0,JAM2,78,32,&TOPAZ60,Directory_Scan,&IText19};
  64. static struct IntuiText IText17    ={1,0,JAM2,78,23,&TOPAZ60,File_Delete,&IText18};
  65. static struct IntuiText IText16    ={1,0,JAM2,78,14,&TOPAZ60,File_Create,&IText17};
  66.  
  67. static struct IntuiText IText15    ={3,0,JAM2,120,101,&TOPAZ80,Text1,&IText16};
  68. static struct IntuiText IText14    ={3,0,JAM2,120,57,&TOPAZ80,Text1,&IText15};
  69. static struct IntuiText IText13    ={1,0,JAM2,-49,129,&TOPAZ80,Text2,&IText14};
  70. static struct IntuiText IText12    ={1,0,JAM2,-41,120,&TOPAZ80,Text3,&IText13};
  71. static struct IntuiText IText11    ={1,0,JAM2,-33,111,&TOPAZ80,Text4,&IText12};
  72. static struct IntuiText IText10    ={1,0,JAM2,-49,101,&TOPAZ60,Text5,&IText11};
  73. static struct IntuiText IText9    ={1,0,JAM2,-49,85,&TOPAZ80,Text2,&IText10};
  74. static struct IntuiText IText8    ={1,0,JAM2,-41,76,&TOPAZ80,Text3,&IText9};
  75. static struct IntuiText IText7    ={1,0,JAM2,-33,67,&TOPAZ80,Text4,&IText8};
  76. static struct IntuiText IText6    ={1,0,JAM2,-49,57,&TOPAZ60,Text6,&IText7};
  77. static struct IntuiText IText5    ={1,0,JAM2,-50,41,&TOPAZ80,Text7,&IText6};
  78. static struct IntuiText IText4    ={1,0,JAM2,-49,32,&TOPAZ80,Text8,&IText5};
  79. static struct IntuiText IText3    ={1,0,JAM2,-49,23,&TOPAZ80,Text9,&IText4};
  80. static struct IntuiText IText2    ={1,0,JAM2,-49,14,&TOPAZ80,Text10,&IText3};
  81. static struct IntuiText IText1    ={1,0,JAM2,-50,0,&TOPAZ80,Text11,&IText2};
  82.  
  83. static struct IntuiText MText1    ={3,1,COMPLEMENT,61,1,&TOPAZ80,MenuText1,NULL};
  84. static struct IntuiText MText2    ={3,1,COMPLEMENT,41,1,&TOPAZ80,MenuText2,NULL};
  85. static struct IntuiText MText3    ={3,1,COMPLEMENT,45,1,&TOPAZ80,MenuText3,NULL};
  86.  
  87. static struct IntuiText MText4    ={3,1,COMPLEMENT,0,1,&TOPAZ80,MenuText4,NULL};
  88. static struct IntuiText MText5    ={3,1,COMPLEMENT,0,1,&TOPAZ80,MenuText5,NULL};
  89. static struct IntuiText MText6    ={3,1,COMPLEMENT,0,1,&TOPAZ80,MenuText6,NULL};
  90.  
  91. static struct StringInfo GadgetSInfo    ={Device,NULL,0,31,0,0,0,0,0,0,0,0,NULL};
  92.  
  93. static struct Gadget MyGadget    ={NULL,56,13,176,8,NULL,RELVERIFY,STRGADGET,(APTR)&Border,NULL,&IText1,NULL,(APTR)&GadgetSInfo,NULL,NULL};
  94.  
  95. static struct MenuItem MenuItem3    ={NULL,0,20,216,10,ITEMTEXT|ITEMENABLED|HIGHCOMP,0,(APTR)&MText1,NULL,NULL,NULL,MENUNULL};
  96. static struct MenuItem MenuItem2    ={&MenuItem3,0,10,216,10,ITEMTEXT|ITEMENABLED|HIGHCOMP,0,(APTR)&MText2,NULL,NULL,NULL,MENUNULL};
  97. static struct MenuItem MenuItem1    ={&MenuItem2,0,0,216,10,ITEMTEXT|ITEMENABLED|HIGHCOMP,0,(APTR)&MText3,NULL,NULL,NULL,MENUNULL};
  98.  
  99. static struct MenuItem MenuItem6    ={NULL,0,30,80,10,ITEMTEXT|ITEMENABLED|HIGHCOMP,0,(APTR)&MText6,NULL,NULL,NULL,MENUNULL};
  100. static struct MenuItem MenuItem5    ={&MenuItem6,0,15,80,10,ITEMTEXT|ITEMENABLED|HIGHCOMP,0,(APTR)&MText5,NULL,NULL,NULL,MENUNULL};
  101. static struct MenuItem MenuItem4    ={&MenuItem5,0,0,80,10,ITEMTEXT|ITEMENABLED|HIGHCOMP,0,(APTR)&MText4,NULL,NULL,NULL,MENUNULL};
  102.  
  103. static struct Menu Menu2    ={NULL,80,0,220,0,MENUENABLED,MenuText7,&MenuItem1};
  104. static struct Menu MyMenu    ={&Menu2,0,0,70,0,MENUENABLED,MenuText8,&MenuItem4};
  105.  
  106. static struct NewWindow NewWindowStructure    ={110,11,240,156,0,1,CLOSEWINDOW|ACTIVEWINDOW|MENUPICK,WINDOWDRAG|WINDOWDEPTH|WINDOWCLOSE|ACTIVATE|NOCAREREFRESH,&MyGadget,NULL,WindowText,NULL,NULL,0,0,0,0,WBENCHSCREEN};
  107.