SCREENDI.LST 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. Listing:
  2. 1 IMPLEMENTATION MODULE ScreenDisplay;
  3. 2 (*
  4. 3 * REPERTOIRE
  5. 4 * Release 1.6
  6. 5 * By Charles Bradford and Cole Brecheen
  7. 6 * (c) Copyright 1985-1992 PMI
  8. 7 * Green Bay, Wisconsin
  9. 8 * All rights reserved
  10. 9 * (414) 468-6040
  11. 10 *
  12. 11 * $Header: D:/logfiles/mods/screendi.mov 1.5 10 Mar 1991 15:31:48 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16
  18. 17 IMPORT DspFiles;
  19. 18 IMPORT ErrorManager;
  20. 19 IMPORT FramePainter;
  21. 20 IMPORT M2Strings;
  22. 21 IMPORT ScrnTypes;
  23. 22 IMPORT ScrnUtl2;
  24. 23 IMPORT StrConv;
  25. 24 IMPORT StrEdit;
  26. 25
  27. 26 VAR
  28. 27 Initialized : BOOLEAN;
  29. 28
  30. 29 PROCEDURE Init();
  31. 30 BEGIN
  32. 31 IF Initialized THEN
  33. 32 RETURN;
  34. 33 ELSE
  35. 34 Initialized := TRUE;
  36. 35 END;
  37. 36 DspFiles.Init();
  38. ***** ^ not supported yet
  39. ***** ^ not supported yet
  40. ***** ^ not supported yet
  41. 37 ErrorManager.Init();
  42. ***** ^ not supported yet
  43. ***** ^ not supported yet
  44. ***** ^ not supported yet
  45. 38 FramePainter.Init();
  46. ***** ^ not supported yet
  47. ***** ^ not supported yet
  48. ***** ^ not supported yet
  49. 39 M2Strings.Init();
  50. ***** ^ not supported yet
  51. ***** ^ not supported yet
  52. ***** ^ not supported yet
  53. 40 ScrnTypes.Init();
  54. ***** ^ not supported yet
  55. ***** ^ not supported yet
  56. ***** ^ not supported yet
  57. 41 ScrnUtl2.Init();
  58. ***** ^ not supported yet
  59. ***** ^ not supported yet
  60. ***** ^ not supported yet
  61. 42 StrConv.Init();
  62. ***** ^ not supported yet
  63. ***** ^ not supported yet
  64. ***** ^ not supported yet
  65. 43 StrEdit.Init();
  66. ***** ^ not supported yet
  67. ***** ^ not supported yet
  68. ***** ^ not supported yet
  69. 44 END Init;
  70. ***** ^ not supported yet
  71. 45
  72. 46 PROCEDURE CloseDisplayFile(VAR dfile : ScrnTypes.DisplayFile);
  73. ***** ^ not supported yet
  74. 47 BEGIN
  75. 48 DspFiles.CloseDisplayFile( dfile );
  76. ***** ^ not supported yet
  77. ***** ^ not supported yet
  78. ***** ^ not supported yet
  79. 49 END CloseDisplayFile;
  80. ***** ^ not supported yet
  81. 50
  82. 51 PROCEDURE OpenDisplayFile(VAR dfile : ScrnTypes.DisplayFile;
  83. ***** ^ not supported yet
  84. 52 fname : ARRAY OF CHAR);
  85. ***** ^ not supported yet
  86. 53 VAR
  87. 54 tmp: ARRAY [0..79] OF CHAR;
  88. ***** ^ not supported yet
  89. ***** ^ not supported yet
  90. 55 BEGIN
  91. 56 IF NOT DspFiles.OpenDisplayFile( dfile, fname ) THEN
  92. ***** ^ not supported yet
  93. ***** ^ not supported yet
  94. ***** ^ not supported yet
  95. ***** ^ not supported yet
  96. 57 M2Strings.Assign( fname, tmp );
  97. ***** ^ not supported yet
  98. ***** ^ not supported yet
  99. ***** ^ not supported yet
  100. ***** ^ not supported yet
  101. 58 StrEdit.Append( tmp, ' not found' );
  102. ***** ^ not supported yet
  103. ***** ^ not supported yet
  104. ***** ^ not supported yet
  105. ***** ^ not supported yet
  106. 59 ErrorManager.WARN(tmp);
  107. ***** ^ not supported yet
  108. ***** ^ not supported yet
  109. ***** ^ not supported yet
  110. 60 END;
  111. 61 END OpenDisplayFile;
  112. ***** ^ not supported yet
  113. 62
  114. 63 PROCEDURE ReadDisplayFrame(VAR dfile : ScrnTypes.DisplayFile;
  115. ***** ^ not supported yet
  116. 64 VAR FrameRec : ScrnTypes.DisplayFrame; FrameNum : ScrnTypes.FrameKey);
  117. ***** ^ not supported yet
  118. ***** ^ not supported yet
  119. 65 VAR
  120. 66 FrameName: ScrnTypes.AFrameName;
  121. ***** ^ not supported yet
  122. 67 BEGIN
  123. 68 StrConv.IntegerToStr( FrameNum, 0, FrameName );
  124. ***** ^ not supported yet
  125. ***** ^ not supported yet
  126. ***** ^ not supported yet
  127. ***** ^ not supported yet
  128. 69 DspFiles.ReadDisplayFrame( dfile, FrameRec, FrameName );
  129. ***** ^ not supported yet
  130. ***** ^ not supported yet
  131. ***** ^ not supported yet
  132. ***** ^ not supported yet
  133. ***** ^ not supported yet
  134. 70 END ReadDisplayFrame;
  135. ***** ^ not supported yet
  136. 71
  137. 72 PROCEDURE ReadFrame(VAR dfile : ScrnTypes.DisplayFile;
  138. ***** ^ not supported yet
  139. 73 VAR FrameRec : ScrnTypes.DisplayFrame; FrameNum : ScrnTypes.FrameKey);
  140. ***** ^ not supported yet
  141. ***** ^ not supported yet
  142. 74 VAR
  143. 75 FrameName: ScrnTypes.AFrameName;
  144. ***** ^ not supported yet
  145. 76 BEGIN
  146. 77 StrConv.IntegerToStr( FrameNum, 0, FrameName );
  147. ***** ^ not supported yet
  148. ***** ^ not supported yet
  149. ***** ^ not supported yet
  150. ***** ^ not supported yet
  151. 78 DspFiles.ReadFrame( dfile, FrameRec, FrameName );
  152. ***** ^ not supported yet
  153. ***** ^ not supported yet
  154. ***** ^ not supported yet
  155. ***** ^ not supported yet
  156. ***** ^ not supported yet
  157. 79 END ReadFrame;
  158. ***** ^ not supported yet
  159. 80
  160. 81 PROCEDURE ShowDisplayFrame(VAR FrameRec :
  161. 82 ScrnTypes.DisplayFrame; Col1, Row1, ColX, RowX : CARDINAL);
  162. ***** ^ not supported yet
  163. 83 BEGIN
  164. 84 FramePainter.ShowDisplayFrame( FrameRec, Col1, Row1, ColX,
  165. ***** ^ not supported yet
  166. ***** ^ not supported yet
  167. ***** ^ not supported yet
  168. 85 RowX );
  169. ***** ^ not supported yet
  170. 86 END ShowDisplayFrame;
  171. ***** ^ not supported yet
  172. 87
  173. 88 PROCEDURE WriteToFrame( FrameRec: ScrnTypes.DisplayFrame; col,
  174. ***** ^ not supported yet
  175. 89 row: CARDINAL; text: ARRAY OF CHAR );
  176. ***** ^ not supported yet
  177. 90 BEGIN
  178. 91 ScrnUtl2.WriteToFrame( FrameRec, col, row, text );
  179. ***** ^ not supported yet
  180. ***** ^ not supported yet
  181. ***** ^ not supported yet
  182. ***** ^ not supported yet
  183. 92 END WriteToFrame;
  184. ***** ^ not supported yet
  185. 93
  186. 94 PROCEDURE Display( FrameNum : ScrnTypes.FrameKey );
  187. ***** ^ not supported yet
  188. 95 VAR
  189. 96 FrameName: ScrnTypes.AFrameName;
  190. ***** ^ not supported yet
  191. 97 BEGIN
  192. 98 StrConv.IntegerToStr( FrameNum, 0, FrameName );
  193. ***** ^ not supported yet
  194. ***** ^ not supported yet
  195. ***** ^ not supported yet
  196. ***** ^ not supported yet
  197. 99 ScrnUtl2.Display( DspFiles.MainFrame, FrameName );
  198. ***** ^ not supported yet
  199. ***** ^ not supported yet
  200. ***** ^ not supported yet
  201. ***** ^ not supported yet
  202. ***** ^ not supported yet
  203. 100 END Display;
  204. ***** ^ not supported yet
  205. 101
  206. 102 PROCEDURE CloseDisplayFrame(VAR FrameRec :
  207. 103 ScrnTypes.DisplayFrame);
  208. ***** ^ not supported yet
  209. 104 BEGIN
  210. 105 ScrnUtl2.CloseDisplayFrame( FrameRec );
  211. ***** ^ not supported yet
  212. ***** ^ not supported yet
  213. ***** ^ not supported yet
  214. 106 END CloseDisplayFrame;
  215. ***** ^ not supported yet
  216. 107
  217. 108 PROCEDURE PushFrame(VAR FrameRec : ScrnTypes.DisplayFrame);
  218. ***** ^ not supported yet
  219. 109 BEGIN
  220. 110 ScrnUtl2.PushFrame( FrameRec );
  221. ***** ^ not supported yet
  222. ***** ^ not supported yet
  223. ***** ^ not supported yet
  224. 111 END PushFrame;
  225. ***** ^ not supported yet
  226. 112
  227. 113 PROCEDURE PopFrame(VAR FrameRec : ScrnTypes.DisplayFrame);
  228. ***** ^ not supported yet
  229. 114 BEGIN
  230. 115 ScrnUtl2.PopFrame( FrameRec );
  231. ***** ^ not supported yet
  232. ***** ^ not supported yet
  233. ***** ^ not supported yet
  234. 116 END PopFrame;
  235. ***** ^ not supported yet
  236. 117
  237. 118 PROCEDURE PopZapFrame(VAR FrameRec : ScrnTypes.DisplayFrame);
  238. ***** ^ not supported yet
  239. 119 BEGIN
  240. 120 ScrnUtl2.PopZapFrame( FrameRec );
  241. ***** ^ not supported yet
  242. ***** ^ not supported yet
  243. ***** ^ not supported yet
  244. 121 END PopZapFrame;
  245. ***** ^ not supported yet
  246. 122
  247. 123 PROCEDURE ClearFrameStack(VAR FrameRec :
  248. 124 ScrnTypes.DisplayFrame);
  249. ***** ^ not supported yet
  250. 125 BEGIN
  251. 126 ScrnUtl2.ClearFrameStack( FrameRec );
  252. ***** ^ not supported yet
  253. ***** ^ not supported yet
  254. ***** ^ not supported yet
  255. 127 END ClearFrameStack;
  256. ***** ^ not supported yet
  257. 128
  258. 129 PROCEDURE RedrawArea( TheFrame: ScrnTypes.DisplayFrame; col1,
  259. ***** ^ not supported yet
  260. 130 row1, col2, row2: CARDINAL );
  261. 131 BEGIN
  262. 132 FramePainter.RedrawArea( TheFrame, col1, row1, col2, row2 );
  263. ***** ^ not supported yet
  264. ***** ^ not supported yet
  265. ***** ^ not supported yet
  266. ***** ^ not supported yet
  267. 133 END RedrawArea;
  268. ***** ^ not supported yet
  269. 134
  270. 135
  271. 136 BEGIN
  272. 137 Initialized := FALSE;
  273. 138 Init();
  274. ***** ^ not supported yet
  275. ***** ^ not supported yet
  276. 139 END ScreenDisplay.
  277. ***** ^ not supported yet
  278. 137 errors