SCRNTYPE.LST 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. Listing:
  2. 1 IMPLEMENTATION MODULE ScrnTypes;
  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/scrntype.mov 1.5 10 Mar 1991 15:32:10 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16
  18. 17 IMPORT ErrorNames;
  19. 18 IMPORT FrameManager;
  20. 19 IMPORT GenLists;
  21. 20 IMPORT LowLevel;
  22. 21 IMPORT MsColors;
  23. 22 IMPORT NdxTypes;
  24. 23 IMPORT SYSTEM;
  25. 24 IMPORT VStorage;
  26. 25 IMPORT VWindows;
  27. 26
  28. 27 VAR
  29. 28 Initialized : BOOLEAN;
  30. 29
  31. 30 PROCEDURE Init();
  32. 31 BEGIN
  33. 32 IF Initialized THEN
  34. 33 RETURN;
  35. 34 ELSE
  36. 35 Initialized := TRUE;
  37. 36 END;
  38. 37 ErrorNames.Init();
  39. ***** ^ not supported yet
  40. ***** ^ not supported yet
  41. ***** ^ not supported yet
  42. 38 FrameManager.Init();
  43. ***** ^ not supported yet
  44. ***** ^ not supported yet
  45. ***** ^ not supported yet
  46. 39 GenLists.Init();
  47. ***** ^ not supported yet
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. 40 LowLevel.Init();
  51. ***** ^ not supported yet
  52. ***** ^ not supported yet
  53. ***** ^ not supported yet
  54. 41 MsColors.Init();
  55. ***** ^ not supported yet
  56. ***** ^ not supported yet
  57. ***** ^ not supported yet
  58. 42 NdxTypes.Init();
  59. ***** ^ not supported yet
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. 43 VStorage.Init();
  63. ***** ^ not supported yet
  64. ***** ^ not supported yet
  65. ***** ^ not supported yet
  66. 44 VWindows.Init();
  67. ***** ^ not supported yet
  68. ***** ^ not supported yet
  69. ***** ^ not supported yet
  70. 45 END Init;
  71. ***** ^ not supported yet
  72. 46
  73. 47
  74. 48 (* The purpose of ScrnTypes is to allow other parts of
  75. 49 Repertoire to refer to data types in the screen system
  76. 50 without importing all screen system's code where it isn't
  77. 51 necessary. We do include initialization procedures here,
  78. 52 however, to prevent programs that do not use the screen
  79. 53 system from doing dangerous things with improperly
  80. 54 initialized or uninitialized data types.*)
  81. 55
  82. 56 PROCEDURE InitDisplayFrame( VAR FrameRec : DisplayFrame;
  83. ***** ^ undeclared identifier
  84. 57 AssociatedWindow: VWindows.AWindowHandle );
  85. ***** ^ not supported yet
  86. 58 (* Initializes a DisplayFrame before first use. *)
  87. 59 VAR
  88. 60 FrameSize: CARDINAL;
  89. 61 BEGIN (* procedure InitDisplayFrame *)
  90. 62 FrameSize := SYSTEM.TSIZE( DisplayFrameRec );
  91. ***** ^ not supported yet
  92. ***** ^ not supported yet
  93. ***** ^ undeclared identifier
  94. 63 VStorage.DosAlloc( FrameRec, FrameSize );
  95. ***** ^ not supported yet
  96. ***** ^ not supported yet
  97. ***** ^ not supported yet
  98. ***** ^ not supported yet
  99. 64 FrameManager.AddWindow( AssociatedWindow );
  100. ***** ^ not supported yet
  101. ***** ^ not supported yet
  102. ***** ^ not supported yet
  103. 65 (*Note that we don't call FrameActivated here because
  104. 66 FrameManager only begins to care about a frame once
  105. 67 part of it becomes visible.*)
  106. 68 WITH FrameRec^ DO
  107. ***** ^ not supported yet
  108. 69 ThisFrame[0] := 0C;
  109. ***** ^ undeclared identifier
  110. ***** ^ not supported yet
  111. 70 WindowHandle := AssociatedWindow;
  112. ***** ^ undeclared identifier
  113. ***** ^ not supported yet
  114. 71 PushedFrame := NIL;
  115. ***** ^ undeclared identifier
  116. 72 (*initialize the frame stack to empty*)
  117. 73 ClearFirst := TRUE;
  118. ***** ^ undeclared identifier
  119. 74 ClearAfter := FALSE;
  120. ***** ^ undeclared identifier
  121. 75 FrameChanged := FALSE;
  122. ***** ^ undeclared identifier
  123. 76 EntryBox := VWindows.DoubleBox;
  124. ***** ^ undeclared identifier
  125. ***** ^ not supported yet
  126. ***** ^ not supported yet
  127. 77 ExitBox := VWindows.SingleBox;
  128. ***** ^ undeclared identifier
  129. ***** ^ not supported yet
  130. ***** ^ not supported yet
  131. 78 Caption[0] := 0C;
  132. ***** ^ undeclared identifier
  133. ***** ^ not supported yet
  134. 79 (*changed in 1.5a*)
  135. 80 SelfSharedWithFile := FALSE;
  136. ***** ^ undeclared identifier
  137. 81 (*changed in 1.5b*)
  138. 82 GenLists.NewList( self );
  139. ***** ^ not supported yet
  140. ***** ^ not supported yet
  141. ***** ^ undeclared identifier
  142. 83 GenLists.NilList( DataList );
  143. ***** ^ not supported yet
  144. ***** ^ not supported yet
  145. ***** ^ undeclared identifier
  146. 84 GenLists.NilList( PromptList );
  147. ***** ^ not supported yet
  148. ***** ^ not supported yet
  149. ***** ^ undeclared identifier
  150. 85 GenLists.NilList( HelpList );
  151. ***** ^ not supported yet
  152. ***** ^ not supported yet
  153. ***** ^ undeclared identifier
  154. 86 GenLists.NilList( EdFieldList );
  155. ***** ^ not supported yet
  156. ***** ^ not supported yet
  157. ***** ^ undeclared identifier
  158. 87 GenLists.NilList( FieldList );
  159. ***** ^ not supported yet
  160. ***** ^ not supported yet
  161. ***** ^ undeclared identifier
  162. 88 GenLists.NilList( ImageList );
  163. ***** ^ not supported yet
  164. ***** ^ not supported yet
  165. ***** ^ undeclared identifier
  166. 89 GenLists.NilList( LinkedFrames );
  167. ***** ^ not supported yet
  168. ***** ^ not supported yet
  169. ***** ^ undeclared identifier
  170. 90
  171. 91 (*Now we set up the odd structure of the self; see
  172. 92 the manual for explanation.*)
  173. 93 GenLists.ListInsert( '', GenLists.StrCode, self, 1 );
  174. ***** ^ not supported yet
  175. ***** ^ not supported yet
  176. ***** ^ not supported yet
  177. ***** ^ not supported yet
  178. ***** ^ undeclared identifier
  179. ***** ^ not supported yet
  180. 94 (*Insert null at position of the HelpFrame.*)
  181. 95 GenLists.ListInsert( '', GenLists.StrCode, self, 2 );
  182. ***** ^ not supported yet
  183. ***** ^ not supported yet
  184. ***** ^ not supported yet
  185. ***** ^ not supported yet
  186. ***** ^ undeclared identifier
  187. ***** ^ not supported yet
  188. 96 (*Insert null at position of the ParentFrame.*)
  189. 97 GenLists.ListInsert( '', GenLists.StrCode, self, 3 );
  190. ***** ^ not supported yet
  191. ***** ^ not supported yet
  192. ***** ^ not supported yet
  193. ***** ^ not supported yet
  194. ***** ^ undeclared identifier
  195. ***** ^ not supported yet
  196. 98 (*Insert null at position of the NormalNextFrame.*)
  197. 99 GenLists.ListInsert( '', GenLists.StrCode, self, 4 );
  198. ***** ^ not supported yet
  199. ***** ^ not supported yet
  200. ***** ^ not supported yet
  201. ***** ^ not supported yet
  202. ***** ^ undeclared identifier
  203. ***** ^ not supported yet
  204. 100 (*Insert null at position of the DisplayFrameRec.*)
  205. 101 GenLists.ListInsert( DataList, GenLists.ListCode, self, 5 );
  206. ***** ^ not supported yet
  207. ***** ^ not supported yet
  208. ***** ^ undeclared identifier
  209. ***** ^ not supported yet
  210. ***** ^ not supported yet
  211. ***** ^ undeclared identifier
  212. ***** ^ not supported yet
  213. 102 GenLists.ListInsert( PromptList, GenLists.ListCode, self, 6 );
  214. ***** ^ not supported yet
  215. ***** ^ not supported yet
  216. ***** ^ undeclared identifier
  217. ***** ^ not supported yet
  218. ***** ^ not supported yet
  219. ***** ^ undeclared identifier
  220. ***** ^ not supported yet
  221. 103 GenLists.ListInsert( HelpList, GenLists.ListCode, self, 7 );
  222. ***** ^ not supported yet
  223. ***** ^ not supported yet
  224. ***** ^ undeclared identifier
  225. ***** ^ not supported yet
  226. ***** ^ not supported yet
  227. ***** ^ undeclared identifier
  228. ***** ^ not supported yet
  229. 104 GenLists.ListInsert( EdFieldList, GenLists.ListCode, self, 8 );
  230. ***** ^ not supported yet
  231. ***** ^ not supported yet
  232. ***** ^ undeclared identifier
  233. ***** ^ not supported yet
  234. ***** ^ not supported yet
  235. ***** ^ undeclared identifier
  236. ***** ^ not supported yet
  237. 105 GenLists.ListInsert( FieldList, GenLists.ListCode, self, 9 );
  238. ***** ^ not supported yet
  239. ***** ^ not supported yet
  240. ***** ^ undeclared identifier
  241. ***** ^ not supported yet
  242. ***** ^ not supported yet
  243. ***** ^ undeclared identifier
  244. ***** ^ not supported yet
  245. 106 GenLists.ListInsert( ImageList, GenLists.ListCode, self, 10 );
  246. ***** ^ not supported yet
  247. ***** ^ not supported yet
  248. ***** ^ undeclared identifier
  249. ***** ^ not supported yet
  250. ***** ^ not supported yet
  251. ***** ^ undeclared identifier
  252. ***** ^ not supported yet
  253. 107 GenLists.ListInsert( LinkedFrames, GenLists.ListCode, self, 11 );
  254. ***** ^ not supported yet
  255. ***** ^ not supported yet
  256. ***** ^ undeclared identifier
  257. ***** ^ not supported yet
  258. ***** ^ not supported yet
  259. ***** ^ undeclared identifier
  260. ***** ^ not supported yet
  261. 108
  262. 109 HelpFrame[0] := 0C;
  263. ***** ^ undeclared identifier
  264. ***** ^ not supported yet
  265. 110 (* initialize the screen fields area to empty *)
  266. 111 startcol := 0;
  267. ***** ^ undeclared identifier
  268. 112 startrow := 0;
  269. ***** ^ undeclared identifier
  270. 113 endcol := VWindows.EndCol(AssociatedWindow) - 1;
  271. ***** ^ undeclared identifier
  272. ***** ^ not supported yet
  273. ***** ^ not supported yet
  274. ***** ^ not supported yet
  275. 114 endrow := VWindows.EndRow(AssociatedWindow) - 1;
  276. ***** ^ undeclared identifier
  277. ***** ^ not supported yet
  278. ***** ^ not supported yet
  279. ***** ^ not supported yet
  280. 115 RowsScrolled := 0;
  281. ***** ^ undeclared identifier
  282. 116 ColsScrolled := 0;
  283. ***** ^ undeclared identifier
  284. 117 CurrentField := 0;
  285. ***** ^ undeclared identifier
  286. 118 VirtualWidth := 0;
  287. ***** ^ undeclared identifier
  288. 119 VirtualHeight := 0;
  289. ***** ^ undeclared identifier
  290. 120 headline := 0;
  291. ***** ^ undeclared identifier
  292. 121 action := 'W';
  293. ***** ^ undeclared identifier
  294. 122 (*Wait for any key.*)
  295. 123 parent[0] := 0C;
  296. ***** ^ undeclared identifier
  297. ***** ^ not supported yet
  298. 124 normlnext[0] := 0C;
  299. ***** ^ undeclared identifier
  300. ***** ^ not supported yet
  301. 125 (* Now, initialize defaults for colors & mono attributes: *)
  302. 126 normatrb := MsColors.plain;
  303. ***** ^ undeclared identifier
  304. ***** ^ not supported yet
  305. ***** ^ not supported yet
  306. 127 normfor := MsColors.lightgrey;
  307. ***** ^ undeclared identifier
  308. ***** ^ not supported yet
  309. ***** ^ not supported yet
  310. 128 normbak := MsColors.blue;
  311. ***** ^ undeclared identifier
  312. ***** ^ not supported yet
  313. ***** ^ not supported yet
  314. 129 (* Normal text *)
  315. 130 bordatrb := MsColors.plain;
  316. ***** ^ undeclared identifier
  317. ***** ^ not supported yet
  318. ***** ^ not supported yet
  319. 131 bordfor := MsColors.lightcyan;
  320. ***** ^ undeclared identifier
  321. ***** ^ not supported yet
  322. ***** ^ not supported yet
  323. 132 bordbak := MsColors.blue;
  324. ***** ^ undeclared identifier
  325. ***** ^ not supported yet
  326. ***** ^ not supported yet
  327. 133 (* Border colors *)
  328. 134 selatrb := MsColors.bold;
  329. ***** ^ undeclared identifier
  330. ***** ^ not supported yet
  331. ***** ^ not supported yet
  332. 135 selfor := MsColors.lightmagenta;
  333. ***** ^ undeclared identifier
  334. ***** ^ not supported yet
  335. ***** ^ not supported yet
  336. 136 selbak := MsColors.blue;
  337. ***** ^ undeclared identifier
  338. ***** ^ not supported yet
  339. ***** ^ not supported yet
  340. 137 (* Selected text *)
  341. 138 pbatrb := MsColors.ReverseVideo;
  342. ***** ^ undeclared identifier
  343. ***** ^ not supported yet
  344. ***** ^ not supported yet
  345. 139 pbfor := MsColors.black;
  346. ***** ^ undeclared identifier
  347. ***** ^ not supported yet
  348. ***** ^ not supported yet
  349. 140 pbbak := MsColors.red;
  350. ***** ^ undeclared identifier
  351. ***** ^ not supported yet
  352. ***** ^ not supported yet
  353. 141 (* Pointer Bar Colors *)
  354. 142 msgatrb := MsColors.plain;
  355. ***** ^ undeclared identifier
  356. ***** ^ not supported yet
  357. ***** ^ not supported yet
  358. 143 msgfor := MsColors.black;
  359. ***** ^ undeclared identifier
  360. ***** ^ not supported yet
  361. ***** ^ not supported yet
  362. 144 msgbak := MsColors.lightgrey;
  363. ***** ^ undeclared identifier
  364. ***** ^ not supported yet
  365. ***** ^ not supported yet
  366. 145 (* Message Box Colors *)
  367. 146 promatrb := MsColors.ReverseVideo;
  368. ***** ^ undeclared identifier
  369. ***** ^ not supported yet
  370. ***** ^ not supported yet
  371. 147 promfor := MsColors.black;
  372. ***** ^ undeclared identifier
  373. ***** ^ not supported yet
  374. ***** ^ not supported yet
  375. 148 prombak := MsColors.cyan;
  376. ***** ^ undeclared identifier
  377. ***** ^ not supported yet
  378. ***** ^ not supported yet
  379. 149 (* Prompt Line Colors *)
  380. 150 FromFile := NIL;
  381. ***** ^ undeclared identifier
  382. 151 END;
  383. ***** ^ not supported yet
  384. 152 END InitDisplayFrame;
  385. ***** ^ not supported yet
  386. 153
  387. 154
  388. 155 PROCEDURE InitField( VAR TheField: InputFieldRecord );
  389. ***** ^ undeclared identifier
  390. 156 BEGIN
  391. 157 LowLevel.Fill( SYSTEM.ADR(TheField),
  392. ***** ^ not supported yet
  393. ***** ^ not supported yet
  394. ***** ^ not supported yet
  395. ***** ^ not supported yet
  396. ***** ^ not supported yet
  397. 158 SYSTEM.TSIZE(InputFieldRecord), 0C );
  398. ***** ^ not supported yet
  399. ***** ^ not supported yet
  400. ***** ^ undeclared identifier
  401. ***** ^ not supported yet
  402. 159 TheField.typ := DispCode;
  403. ***** ^ not supported yet
  404. ***** ^ not supported yet
  405. ***** ^ undeclared identifier
  406. 160 END InitField;
  407. ***** ^ not supported yet
  408. 161
  409. 162
  410. 163 BEGIN
  411. 164 Initialized := FALSE;
  412. 165 Init();
  413. ***** ^ not supported yet
  414. ***** ^ not supported yet
  415. 166 END ScrnTypes.
  416. ***** ^ not supported yet
  417. 249 errors