DSPFILES.LST 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848
  1. Listing:
  2. 1 IMPLEMENTATION MODULE DspFiles;
  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/dspfiles.mov 1.7 10 Mar 1991 15:26:32 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16
  18. 17 (*EntryDiag:
  19. 18 IMPORT Diagnostics;
  20. 19 :EntryDiag*)
  21. 20
  22. 21 IMPORT ErrorManager;
  23. 22 IMPORT ErrorNames;
  24. 23 IMPORT HandleIO;
  25. 24 IMPORT GenLists;
  26. 25 IMPORT M2Strings;
  27. 26 IMPORT MsColors;
  28. 27 IMPORT NdxBones;
  29. 28 IMPORT NdxTypes;
  30. 29 IMPORT PosUtils;
  31. 30 IMPORT ScrnTypes;
  32. 31 IMPORT ScrnUtl1;
  33. 32 IMPORT StrEdit;
  34. 33 IMPORT StringIO;
  35. 34 IMPORT SYSTEM;
  36. 35 IMPORT VStorage;
  37. 36 IMPORT VWindows;
  38. 37
  39. 38
  40. 39 VAR
  41. 40 Initialized : BOOLEAN;
  42. 41
  43. 42 PROCEDURE Init();
  44. 43 BEGIN
  45. 44 IF Initialized THEN
  46. 45 RETURN;
  47. 46 ELSE
  48. 47 Initialized := TRUE;
  49. 48 END;
  50. 49 (*EntryDiag:
  51. 50 Diagnostics.Init();
  52. 51 :EntryDiag*)
  53. 52
  54. 53 ErrorManager.Init();
  55. ***** ^ not supported yet
  56. ***** ^ not supported yet
  57. ***** ^ not supported yet
  58. 54 ErrorNames.Init();
  59. ***** ^ not supported yet
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. 55 HandleIO.Init();
  63. ***** ^ not supported yet
  64. ***** ^ not supported yet
  65. ***** ^ not supported yet
  66. 56 GenLists.Init();
  67. ***** ^ not supported yet
  68. ***** ^ not supported yet
  69. ***** ^ not supported yet
  70. 57 M2Strings.Init();
  71. ***** ^ not supported yet
  72. ***** ^ not supported yet
  73. ***** ^ not supported yet
  74. 58 MsColors.Init();
  75. ***** ^ not supported yet
  76. ***** ^ not supported yet
  77. ***** ^ not supported yet
  78. 59 NdxTypes.Init();
  79. ***** ^ not supported yet
  80. ***** ^ not supported yet
  81. ***** ^ not supported yet
  82. 60 NdxBones.Init();
  83. ***** ^ not supported yet
  84. ***** ^ not supported yet
  85. ***** ^ not supported yet
  86. 61 PosUtils.Init();
  87. ***** ^ not supported yet
  88. ***** ^ not supported yet
  89. ***** ^ not supported yet
  90. 62 ScrnTypes.Init();
  91. ***** ^ not supported yet
  92. ***** ^ not supported yet
  93. ***** ^ not supported yet
  94. 63 ScrnUtl1.Init();
  95. ***** ^ not supported yet
  96. ***** ^ not supported yet
  97. ***** ^ not supported yet
  98. 64 StrEdit.Init();
  99. ***** ^ not supported yet
  100. ***** ^ not supported yet
  101. ***** ^ not supported yet
  102. 65 StringIO.Init();
  103. ***** ^ not supported yet
  104. ***** ^ not supported yet
  105. ***** ^ not supported yet
  106. 66 VStorage.Init();
  107. ***** ^ not supported yet
  108. ***** ^ not supported yet
  109. ***** ^ not supported yet
  110. 67 VWindows.Init();
  111. ***** ^ not supported yet
  112. ***** ^ not supported yet
  113. ***** ^ not supported yet
  114. 68
  115. 69 (*EntryDiag:
  116. 70 Diagnostics.diagS( 'Entering DspFiles', '' );
  117. 71 :EntryDiag*)
  118. 72 MainFrame := NIL;
  119. ***** ^ undeclared identifier
  120. 73 (*EntryDiag:
  121. 74 Diagnostics.diagS( 'Exiting DspFiles', '' );
  122. 75 :EntryDiag*)
  123. 76 END Init;
  124. ***** ^ not supported yet
  125. 77
  126. 78
  127. 79
  128. 80 PROCEDURE ReMapCol( TheFrame: ScrnTypes.DisplayFrame;
  129. ***** ^ not supported yet
  130. 81 DspFileCol: CARDINAL ): CARDINAL;
  131. 82 VAR
  132. 83 diff: CARDINAL;
  133. 84 BEGIN
  134. 85 IF DspFileCol > VWindows.EndCol(TheFrame^.WindowHandle) THEN
  135. ***** ^ not supported yet
  136. ***** ^ not supported yet
  137. ***** ^ not supported yet
  138. ***** ^ not supported yet
  139. 86 IF DspFileCol <= 128 THEN
  140. 87 RETURN VWindows.EndCol(TheFrame^.WindowHandle) - 1;
  141. ***** ^ not supported yet
  142. ***** ^ not supported yet
  143. ***** ^ not supported yet
  144. ***** ^ not supported yet
  145. 88 ELSIF DspFileCol <= 256 THEN
  146. 89 diff := 256 - DspFileCol;
  147. 90 IF diff <= VWindows.EndCol(TheFrame^.WindowHandle) THEN
  148. ***** ^ not supported yet
  149. ***** ^ not supported yet
  150. ***** ^ not supported yet
  151. ***** ^ not supported yet
  152. 91 RETURN VWindows.EndCol(TheFrame^.WindowHandle) - diff - 1;
  153. ***** ^ not supported yet
  154. ***** ^ not supported yet
  155. ***** ^ not supported yet
  156. ***** ^ not supported yet
  157. 92 END;
  158. 93 END;
  159. 94 ErrorNames.WarningName( 'InvCrd' );
  160. ***** ^ not supported yet
  161. ***** ^ not supported yet
  162. ***** ^ not supported yet
  163. 95 END;
  164. 96 RETURN DspFileCol;
  165. 97 END ReMapCol;
  166. ***** ^ not supported yet
  167. 98
  168. 99 PROCEDURE ReMapRow( TheFrame: ScrnTypes.DisplayFrame;
  169. ***** ^ not supported yet
  170. 100 DspFileRow: CARDINAL ): CARDINAL;
  171. 101 VAR
  172. 102 diff: CARDINAL;
  173. 103 BEGIN
  174. 104 IF DspFileRow > VWindows.EndRow(TheFrame^.WindowHandle) THEN
  175. ***** ^ not supported yet
  176. ***** ^ not supported yet
  177. ***** ^ not supported yet
  178. ***** ^ not supported yet
  179. 105 IF DspFileRow <= 128 THEN
  180. 106 (* Some sort of mistake. Force it into acceptable range. *)
  181. 107 RETURN VWindows.EndRow(TheFrame^.WindowHandle) - 1;
  182. ***** ^ not supported yet
  183. ***** ^ not supported yet
  184. ***** ^ not supported yet
  185. ***** ^ not supported yet
  186. 108 ELSIF DspFileRow <= 256 THEN
  187. 109 (* They're trying to tell us to use EndRow, whatever it
  188. 110 happens to be. *)
  189. 111 diff := 256 - DspFileRow;
  190. 112 IF diff <= VWindows.EndRow(TheFrame^.WindowHandle) THEN
  191. ***** ^ not supported yet
  192. ***** ^ not supported yet
  193. ***** ^ not supported yet
  194. ***** ^ not supported yet
  195. 113 RETURN VWindows.EndRow(TheFrame^.WindowHandle) - diff - 1;
  196. ***** ^ not supported yet
  197. ***** ^ not supported yet
  198. ***** ^ not supported yet
  199. ***** ^ not supported yet
  200. 114 END;
  201. 115 END;
  202. 116 ErrorNames.WarningName( 'InvCrd' );
  203. ***** ^ not supported yet
  204. ***** ^ not supported yet
  205. ***** ^ not supported yet
  206. 117 END;
  207. 118 RETURN DspFileRow;
  208. 119 END ReMapRow;
  209. ***** ^ not supported yet
  210. 120
  211. 121
  212. 122 PROCEDURE OpenDisplayFile(VAR TheDspFile : ScrnTypes.DisplayFile;
  213. ***** ^ not supported yet
  214. 123 fname : ARRAY OF CHAR): BOOLEAN;
  215. ***** ^ not supported yet
  216. 124 VAR
  217. 125 tmpstr: ScrnTypes.AFrameName;
  218. ***** ^ not supported yet
  219. 126 RightVersion : BOOLEAN;
  220. 127 TypeCode: CARDINAL;
  221. 128 BEGIN (*OpenDisplayFile*)
  222. 129 IF (MainFrame = NIL) THEN
  223. ***** ^ undeclared identifier
  224. 130 ScrnTypes.InitDisplayFrame( MainFrame, VWindows.CurrentWindow );
  225. ***** ^ not supported yet
  226. ***** ^ not supported yet
  227. ***** ^ undeclared identifier
  228. ***** ^ not supported yet
  229. ***** ^ not supported yet
  230. 131 END;
  231. 132 (* find and open the file if it exists *)
  232. 133 IF NOT NdxBones.OpenNdxFile( TheDspFile, fname ) THEN
  233. ***** ^ not supported yet
  234. ***** ^ not supported yet
  235. ***** ^ not supported yet
  236. ***** ^ not supported yet
  237. 134 RETURN FALSE;
  238. 135 END;
  239. 136 IF NdxBones.InitBuffer( TheDspFile, 'RepVers' ) THEN
  240. ***** ^ not supported yet
  241. ***** ^ not supported yet
  242. ***** ^ not supported yet
  243. ***** ^ not supported yet
  244. 137 GenLists.GetElmt( TheDspFile^.ListBuf, 1, tmpstr, TypeCode );
  245. ***** ^ not supported yet
  246. ***** ^ not supported yet
  247. ***** ^ not supported yet
  248. ***** ^ not supported yet
  249. ***** ^ not supported yet
  250. ***** ^ not supported yet
  251. 138 IF PosUtils.Equal( '1.5c', tmpstr ) THEN
  252. ***** ^ not supported yet
  253. ***** ^ not supported yet
  254. ***** ^ not supported yet
  255. ***** ^ not supported yet
  256. 139 RightVersion := TRUE;
  257. 140 ELSE
  258. 141 RightVersion := FALSE;
  259. 142 END;
  260. 143 ELSE
  261. 144 RightVersion := FALSE;
  262. 145 END;
  263. 146 IF NOT RightVersion THEN
  264. 147 ErrorNames.WarningName( 'RecompileDsp' );
  265. ***** ^ not supported yet
  266. ***** ^ not supported yet
  267. ***** ^ not supported yet
  268. 148 END;
  269. 149 IF (MainFrame^.FromFile = NIL) THEN
  270. ***** ^ undeclared identifier
  271. ***** ^ not supported yet
  272. 150 MainFrame^.FromFile := TheDspFile;
  273. ***** ^ undeclared identifier
  274. ***** ^ not supported yet
  275. ***** ^ not supported yet
  276. 151 END;
  277. 152 RETURN TRUE;
  278. 153 END OpenDisplayFile;
  279. ***** ^ not supported yet
  280. 154
  281. 155
  282. 156 PROCEDURE CloseDisplayFile(VAR TheDspFile : ScrnTypes.DisplayFile);
  283. ***** ^ not supported yet
  284. 157 BEGIN
  285. 158 IF TheDspFile # NIL THEN
  286. ***** ^ not supported yet
  287. 159 WITH TheDspFile^ DO
  288. ***** ^ not supported yet
  289. 160 (*Note that we don't call CloseNdxFile here because it
  290. 161 pulls in code that updates the file's ndx if it's been
  291. 162 changed. Since we don't write to NdxFile's in the
  292. 163 basic screen system, we can avoid linking all that code
  293. 164 in by doing a few extra deallocations here.*)
  294. 165 GenLists.DisposeList( ListBuf);
  295. ***** ^ not supported yet
  296. ***** ^ not supported yet
  297. ***** ^ undeclared identifier
  298. 166 GenLists.DisposeList( StructLst);
  299. ***** ^ not supported yet
  300. ***** ^ not supported yet
  301. ***** ^ undeclared identifier
  302. 167 GenLists.DisposeList( Ndx );
  303. ***** ^ not supported yet
  304. ***** ^ not supported yet
  305. ***** ^ undeclared identifier
  306. 168 GenLists.DisposeList( AltKeys );
  307. ***** ^ not supported yet
  308. ***** ^ not supported yet
  309. ***** ^ undeclared identifier
  310. 169 (*Note that we don't dispose of the FileBufPtr because
  311. 170 it should always have been absorbed into the ListBuf.*)
  312. 171 IF handle # 0 THEN
  313. ***** ^ undeclared identifier
  314. 172 (*handle may be 0 if the NdxFile record was initialized
  315. 173 but never passed to OpenNdxFile.*)
  316. 174 StringIO.PrintMessage( HandleIO.CloseHandle( handle) );
  317. ***** ^ not supported yet
  318. ***** ^ not supported yet
  319. ***** ^ not supported yet
  320. ***** ^ not supported yet
  321. ***** ^ undeclared identifier
  322. 175 END;
  323. 176 END;
  324. ***** ^ not supported yet
  325. 177 VStorage.DosDealloc( TheDspFile, SYSTEM.TSIZE(NdxTypes.NdxRecord) );
  326. ***** ^ not supported yet
  327. ***** ^ not supported yet
  328. ***** ^ undeclared identifier
  329. ***** ^ not supported yet
  330. ***** ^ not supported yet
  331. ***** ^ not supported yet
  332. ***** ^ not supported yet
  333. 178 END;
  334. 179 END CloseDisplayFile;
  335. ***** ^ not supported yet
  336. 180
  337. 181
  338. 182 PROCEDURE UnPackFrame( PackedRec: ScrnTypes.PackedFrame; VAR FrameRec:
  339. ***** ^ not supported yet
  340. 183 ScrnTypes.DisplayFrame);
  341. ***** ^ not supported yet
  342. 184 BEGIN
  343. 185 WITH FrameRec^ DO
  344. ***** ^ not supported yet
  345. 186 (*
  346. 187 PushedFrame := NIL;
  347. 188 DO NOT set PushedFrame to NIL because we have to preserve
  348. 189 FrameRec's linked to any frames that may be pushed underneath
  349. 190 it.
  350. 191 *)
  351. 192 CurrentField := 1;
  352. ***** ^ undeclared identifier
  353. 193 RowsScrolled := 0;
  354. ***** ^ undeclared identifier
  355. 194 ColsScrolled := 0;
  356. ***** ^ undeclared identifier
  357. 195 FrameChanged := FALSE;
  358. ***** ^ undeclared identifier
  359. 196 ClearFirst := PackedRec^.ClearFirst;
  360. ***** ^ undeclared identifier
  361. ***** ^ not supported yet
  362. ***** ^ not supported yet
  363. 197 ClearAfter := PackedRec^.ClearAfter;
  364. ***** ^ undeclared identifier
  365. ***** ^ not supported yet
  366. ***** ^ not supported yet
  367. 198 EntryBox := PackedRec^.EntryBox;
  368. ***** ^ undeclared identifier
  369. ***** ^ not supported yet
  370. ***** ^ not supported yet
  371. 199 ExitBox := PackedRec^.ExitBox;
  372. ***** ^ undeclared identifier
  373. ***** ^ not supported yet
  374. ***** ^ not supported yet
  375. 200 M2Strings.Assign( PackedRec^.Caption, Caption );
  376. ***** ^ not supported yet
  377. ***** ^ not supported yet
  378. ***** ^ not supported yet
  379. ***** ^ not supported yet
  380. ***** ^ undeclared identifier
  381. 201 VirtualWidth := PackedRec^.VirtualWidth;
  382. ***** ^ undeclared identifier
  383. ***** ^ not supported yet
  384. ***** ^ not supported yet
  385. 202 VirtualHeight := PackedRec^.VirtualHeight;
  386. ***** ^ undeclared identifier
  387. ***** ^ not supported yet
  388. ***** ^ not supported yet
  389. 203 headline := PackedRec^.headline;
  390. ***** ^ undeclared identifier
  391. ***** ^ not supported yet
  392. ***** ^ not supported yet
  393. 204 startcol := PackedRec^.startcol;
  394. ***** ^ undeclared identifier
  395. ***** ^ not supported yet
  396. ***** ^ not supported yet
  397. 205 endcol := ReMapCol( FrameRec, PackedRec^.endcol );
  398. ***** ^ undeclared identifier
  399. ***** ^ not supported yet
  400. ***** ^ not supported yet
  401. ***** ^ not supported yet
  402. ***** ^ not supported yet
  403. 206 startrow := PackedRec^.startrow;
  404. ***** ^ undeclared identifier
  405. ***** ^ not supported yet
  406. ***** ^ not supported yet
  407. 207 endrow := ReMapRow( FrameRec, PackedRec^.endrow );
  408. ***** ^ undeclared identifier
  409. ***** ^ not supported yet
  410. ***** ^ not supported yet
  411. ***** ^ not supported yet
  412. ***** ^ not supported yet
  413. 208 action := PackedRec^.action;
  414. ***** ^ undeclared identifier
  415. ***** ^ not supported yet
  416. ***** ^ not supported yet
  417. 209 pbfor := PackedRec^.pbfor;
  418. ***** ^ undeclared identifier
  419. ***** ^ not supported yet
  420. ***** ^ not supported yet
  421. 210 pbbak := PackedRec^.pbbak;
  422. ***** ^ undeclared identifier
  423. ***** ^ not supported yet
  424. ***** ^ not supported yet
  425. 211 selfor := PackedRec^.selfor;
  426. ***** ^ undeclared identifier
  427. ***** ^ not supported yet
  428. ***** ^ not supported yet
  429. 212 selbak := PackedRec^.selbak;
  430. ***** ^ undeclared identifier
  431. ***** ^ not supported yet
  432. ***** ^ not supported yet
  433. 213 normfor := PackedRec^.normfor;
  434. ***** ^ undeclared identifier
  435. ***** ^ not supported yet
  436. ***** ^ not supported yet
  437. 214 normbak := PackedRec^.normbak;
  438. ***** ^ undeclared identifier
  439. ***** ^ not supported yet
  440. ***** ^ not supported yet
  441. 215 bordfor := PackedRec^.bordfor;
  442. ***** ^ undeclared identifier
  443. ***** ^ not supported yet
  444. ***** ^ not supported yet
  445. 216 bordbak := PackedRec^.bordbak;
  446. ***** ^ undeclared identifier
  447. ***** ^ not supported yet
  448. ***** ^ not supported yet
  449. 217 msgfor := PackedRec^.msgfor;
  450. ***** ^ undeclared identifier
  451. ***** ^ not supported yet
  452. ***** ^ not supported yet
  453. 218 msgbak := PackedRec^.msgbak;
  454. ***** ^ undeclared identifier
  455. ***** ^ not supported yet
  456. ***** ^ not supported yet
  457. 219 promfor := PackedRec^.promfor;
  458. ***** ^ undeclared identifier
  459. ***** ^ not supported yet
  460. ***** ^ not supported yet
  461. 220 prombak := PackedRec^.prombak;
  462. ***** ^ undeclared identifier
  463. ***** ^ not supported yet
  464. ***** ^ not supported yet
  465. 221 pbatrb := PackedRec^.pbatrb;
  466. ***** ^ undeclared identifier
  467. ***** ^ not supported yet
  468. ***** ^ not supported yet
  469. 222 selatrb := PackedRec^.selatrb;
  470. ***** ^ undeclared identifier
  471. ***** ^ not supported yet
  472. ***** ^ not supported yet
  473. 223 normatrb := PackedRec^.normatrb;
  474. ***** ^ undeclared identifier
  475. ***** ^ not supported yet
  476. ***** ^ not supported yet
  477. 224 bordatrb := PackedRec^.bordatrb;
  478. ***** ^ undeclared identifier
  479. ***** ^ not supported yet
  480. ***** ^ not supported yet
  481. 225 msgatrb := PackedRec^.msgatrb;
  482. ***** ^ undeclared identifier
  483. ***** ^ not supported yet
  484. ***** ^ not supported yet
  485. 226 promatrb := PackedRec^.promatrb;
  486. ***** ^ undeclared identifier
  487. ***** ^ not supported yet
  488. ***** ^ not supported yet
  489. 227 END;
  490. ***** ^ not supported yet
  491. 228 END UnPackFrame;
  492. ***** ^ not supported yet
  493. 229
  494. 230
  495. 231 PROCEDURE GetFrameFromList( TheList: GenLists.GenList;
  496. ***** ^ not supported yet
  497. 232 VAR FrameRec: ScrnTypes.DisplayFrame );
  498. ***** ^ not supported yet
  499. 233 VAR
  500. 234 TypeCode, size: CARDINAL;
  501. 235 PackedRec: ScrnTypes.PackedFrame;
  502. ***** ^ not supported yet
  503. 236 BEGIN
  504. 237 FrameRec^.self := TheList;
  505. ***** ^ not supported yet
  506. ***** ^ not supported yet
  507. ***** ^ not supported yet
  508. 238 GenLists.GetElmt( FrameRec^.self, 1, FrameRec^.HelpFrame, TypeCode );
  509. ***** ^ not supported yet
  510. ***** ^ not supported yet
  511. ***** ^ not supported yet
  512. ***** ^ not supported yet
  513. ***** ^ not supported yet
  514. ***** ^ not supported yet
  515. ***** ^ not supported yet
  516. 239 GenLists.GetElmt( FrameRec^.self, 2, FrameRec^.parent, TypeCode );
  517. ***** ^ not supported yet
  518. ***** ^ not supported yet
  519. ***** ^ not supported yet
  520. ***** ^ not supported yet
  521. ***** ^ not supported yet
  522. ***** ^ not supported yet
  523. ***** ^ not supported yet
  524. 240 GenLists.GetElmt( FrameRec^.self, 3, FrameRec^.normlnext, TypeCode );
  525. ***** ^ not supported yet
  526. ***** ^ not supported yet
  527. ***** ^ not supported yet
  528. ***** ^ not supported yet
  529. ***** ^ not supported yet
  530. ***** ^ not supported yet
  531. ***** ^ not supported yet
  532. 241 GenLists.GetElmtAdr( FrameRec^.self, 4, PackedRec, size, TypeCode );
  533. ***** ^ not supported yet
  534. ***** ^ not supported yet
  535. ***** ^ not supported yet
  536. ***** ^ not supported yet
  537. ***** ^ not supported yet
  538. ***** ^ not supported yet
  539. 242 UnPackFrame( PackedRec, FrameRec);
  540. ***** ^ not supported yet
  541. ***** ^ not supported yet
  542. ***** ^ not supported yet
  543. 243 ScrnUtl1.GetFrameLists( FrameRec );
  544. ***** ^ not supported yet
  545. ***** ^ not supported yet
  546. ***** ^ not supported yet
  547. 244 END GetFrameFromList;
  548. ***** ^ not supported yet
  549. 245
  550. 246
  551. 247 PROCEDURE InitEdFields( VAR TheFrame: ScrnTypes.DisplayFrame );
  552. ***** ^ not supported yet
  553. 248 VAR
  554. 249 ListEnd, cnt: CARDINAL;
  555. 250 TmpList1, TmpList2: GenLists.GenList;
  556. ***** ^ not supported yet
  557. 251 BEGIN
  558. 252 IF NOT GenLists.Initialized( TheFrame^.FieldList ) THEN
  559. ***** ^ not supported yet
  560. ***** ^ not supported yet
  561. ***** ^ not supported yet
  562. ***** ^ not supported yet
  563. 253 RETURN;
  564. 254 END;
  565. 255 ListEnd := GenLists.ListLength( TheFrame^.FieldList );
  566. ***** ^ not supported yet
  567. ***** ^ not supported yet
  568. ***** ^ not supported yet
  569. ***** ^ not supported yet
  570. 256 FOR cnt := 1 TO ListEnd DO
  571. 257 IF ScrnUtl1.FieldType( TheFrame, cnt ) = ScrnTypes.EditorCode THEN
  572. ***** ^ not supported yet
  573. ***** ^ not supported yet
  574. ***** ^ not supported yet
  575. ***** ^ not supported yet
  576. ***** ^ not supported yet
  577. ***** ^ not supported yet
  578. 258 IF ScrnUtl1.GetFieldDataList( TheFrame, cnt, TmpList1 ) THEN
  579. ***** ^ not supported yet
  580. ***** ^ not supported yet
  581. ***** ^ not supported yet
  582. ***** ^ not supported yet
  583. 259 GenLists.CopyList( TmpList1, TmpList2 );
  584. ***** ^ not supported yet
  585. ***** ^ not supported yet
  586. ***** ^ not supported yet
  587. ***** ^ not supported yet
  588. 260 IF NOT ScrnUtl1.ListToEdField( TmpList2, TheFrame, cnt ) THEN
  589. ***** ^ not supported yet
  590. ***** ^ not supported yet
  591. ***** ^ not supported yet
  592. ***** ^ not supported yet
  593. ***** ^ not supported yet
  594. 261 (* no response *)
  595. 262 END;
  596. 263 END;
  597. 264 END;
  598. 265 END;
  599. 266 END InitEdFields;
  600. ***** ^ not supported yet
  601. 267
  602. 268
  603. 269 PROCEDURE ReadFrame(VAR TheDspFile: ScrnTypes.DisplayFile;
  604. ***** ^ not supported yet
  605. 270 VAR FrameRec: ScrnTypes.DisplayFrame; FrameName: ARRAY OF
  606. ***** ^ not supported yet
  607. 271 CHAR );
  608. ***** ^ not supported yet
  609. 272
  610. 273 (* Reads screen FrameName from TheDspFile, into frame record
  611. 274 FrameRec. Differs from ReadFrameFast in that it
  612. 275 disconnects FrameRec's lists from TheDspFile, so they will not
  613. 276 be disposed of the next time something is read from
  614. 277 TheDspFile. They will be disposed of the next time we call
  615. 278 ReadFrame, or when the frame is closed. Safer, but a
  616. 279 little slower, than ReadFrameFast.*)
  617. 280 VAR
  618. 281 TmpMsg: ARRAY [0..79] OF CHAR;
  619. ***** ^ not supported yet
  620. ***** ^ not supported yet
  621. 282
  622. 283 BEGIN
  623. 284 (* ReadFrame *)
  624. 285 IF (TheDspFile = NIL) OR
  625. ***** ^ not supported yet
  626. 286 (TheDspFile^.InitCheck # 46102) THEN
  627. ***** ^ not supported yet
  628. ***** ^ not supported yet
  629. 287 (* Temporary measure -- NdxTypes needs to export a version of
  630. 288 CheckInit that returns a boolean so we don't have to know
  631. 289 what the private InitKey value is. *)
  632. 290 ErrorManager.WARN( "Attempt to use unopened .DSP file" );
  633. ***** ^ not supported yet
  634. ***** ^ not supported yet
  635. ***** ^ not supported yet
  636. 291 END;
  637. 292 StrEdit.SetLength( TheDspFile^.BufRecName, 0 );
  638. ***** ^ not supported yet
  639. ***** ^ not supported yet
  640. ***** ^ not supported yet
  641. ***** ^ not supported yet
  642. ***** ^ not supported yet
  643. 293 IF NOT NdxBones.InitBuffer( TheDspFile, FrameName ) THEN
  644. ***** ^ not supported yet
  645. ***** ^ not supported yet
  646. ***** ^ not supported yet
  647. ***** ^ not supported yet
  648. 294 StrEdit.AssignStr( 'Unable to load frame ', TmpMsg );
  649. ***** ^ not supported yet
  650. ***** ^ not supported yet
  651. ***** ^ not supported yet
  652. ***** ^ not supported yet
  653. 295 StrEdit.Append( TmpMsg, FrameName );
  654. ***** ^ not supported yet
  655. ***** ^ not supported yet
  656. ***** ^ not supported yet
  657. ***** ^ not supported yet
  658. 296 StrEdit.Append( TmpMsg, ' from file ' );
  659. ***** ^ not supported yet
  660. ***** ^ not supported yet
  661. ***** ^ not supported yet
  662. ***** ^ not supported yet
  663. 297 StrEdit.Append( TmpMsg, TheDspFile^.name );
  664. ***** ^ not supported yet
  665. ***** ^ not supported yet
  666. ***** ^ not supported yet
  667. ***** ^ not supported yet
  668. ***** ^ not supported yet
  669. 298 ErrorManager.WARN( TmpMsg );
  670. ***** ^ not supported yet
  671. ***** ^ not supported yet
  672. ***** ^ not supported yet
  673. 299 END;
  674. 300 M2Strings.Assign( FrameName, FrameRec^.ThisFrame );
  675. ***** ^ not supported yet
  676. ***** ^ not supported yet
  677. ***** ^ not supported yet
  678. ***** ^ not supported yet
  679. ***** ^ not supported yet
  680. 301 IF NOT FrameRec^.SelfSharedWithFile THEN
  681. ***** ^ not supported yet
  682. ***** ^ not supported yet
  683. 302 GenLists.DisposeList( FrameRec^.self );
  684. ***** ^ not supported yet
  685. ***** ^ not supported yet
  686. ***** ^ not supported yet
  687. ***** ^ not supported yet
  688. 303 ELSE
  689. 304 GenLists.NilList( FrameRec^.self );
  690. ***** ^ not supported yet
  691. ***** ^ not supported yet
  692. ***** ^ not supported yet
  693. ***** ^ not supported yet
  694. 305 (* Useless, but it gives us something to look for in
  695. 306 the RTD. *)
  696. 307 END;
  697. 308 GenLists.CopyList( TheDspFile^.ListBuf, FrameRec^.self );
  698. ***** ^ not supported yet
  699. ***** ^ not supported yet
  700. ***** ^ not supported yet
  701. ***** ^ not supported yet
  702. ***** ^ not supported yet
  703. ***** ^ not supported yet
  704. 309 GetFrameFromList( FrameRec^.self, FrameRec );
  705. ***** ^ not supported yet
  706. ***** ^ not supported yet
  707. ***** ^ not supported yet
  708. ***** ^ not supported yet
  709. 310 FrameRec^.FromFile := TheDspFile;
  710. ***** ^ not supported yet
  711. ***** ^ not supported yet
  712. ***** ^ not supported yet
  713. 311 FrameRec^.SelfSharedWithFile := FALSE;
  714. ***** ^ not supported yet
  715. ***** ^ not supported yet
  716. 312 InitEdFields( FrameRec );
  717. ***** ^ not supported yet
  718. ***** ^ not supported yet
  719. 313 END ReadFrame;
  720. ***** ^ not supported yet
  721. 314
  722. 315
  723. 316 PROCEDURE ReadDisplayFrame(VAR TheDspFile: ScrnTypes.DisplayFile;
  724. ***** ^ not supported yet
  725. 317 VAR FrameRec: ScrnTypes.DisplayFrame; FrameName: ARRAY OF
  726. ***** ^ not supported yet
  727. 318 CHAR );
  728. ***** ^ not supported yet
  729. 319 BEGIN
  730. 320 ReadFrame( TheDspFile, FrameRec, FrameName );
  731. ***** ^ not supported yet
  732. ***** ^ not supported yet
  733. ***** ^ not supported yet
  734. ***** ^ not supported yet
  735. 321 END ReadDisplayFrame;
  736. ***** ^ not supported yet
  737. 322
  738. 323
  739. 324 PROCEDURE ReadFrameFast(VAR TheDspFile: ScrnTypes.DisplayFile;
  740. ***** ^ not supported yet
  741. 325 VAR FrameRec: ScrnTypes.DisplayFrame; FrameName: ARRAY OF
  742. ***** ^ not supported yet
  743. 326 CHAR );
  744. ***** ^ not supported yet
  745. 327
  746. 328 (* Reads screen FrameName from TheDspFile, into frame record
  747. 329 FrameRec.*)
  748. 330 VAR
  749. 331 TmpMsg: ARRAY [0..79] OF CHAR;
  750. ***** ^ not supported yet
  751. ***** ^ not supported yet
  752. 332
  753. 333 BEGIN
  754. 334 (* ReadFrameFast *)
  755. 335 IF (TheDspFile = NIL) OR
  756. ***** ^ not supported yet
  757. 336 (TheDspFile^.InitCheck # 46102) THEN
  758. ***** ^ not supported yet
  759. ***** ^ not supported yet
  760. 337 (* Temporary measure -- NdxTypes needs to export a version of
  761. 338 CheckInit that returns a boolean so we don't have to know
  762. 339 what the private InitKey value is. *)
  763. 340 ErrorManager.WARN( "Attempt to use unopened .DSP file" );
  764. ***** ^ not supported yet
  765. ***** ^ not supported yet
  766. ***** ^ not supported yet
  767. 341 END;
  768. 342 StrEdit.SetLength( TheDspFile^.BufRecName, 0 );
  769. ***** ^ not supported yet
  770. ***** ^ not supported yet
  771. ***** ^ not supported yet
  772. ***** ^ not supported yet
  773. ***** ^ not supported yet
  774. 343 (*Makes sure repeated reads of same frame dispose of old
  775. 344 frame each time.*)
  776. 345 IF NOT NdxBones.InitBuffer( TheDspFile, FrameName ) THEN
  777. ***** ^ not supported yet
  778. ***** ^ not supported yet
  779. ***** ^ not supported yet
  780. ***** ^ not supported yet
  781. 346 StrEdit.AssignStr( 'Unable to load frame ', TmpMsg );
  782. ***** ^ not supported yet
  783. ***** ^ not supported yet
  784. ***** ^ not supported yet
  785. ***** ^ not supported yet
  786. 347 StrEdit.Append( TmpMsg, FrameName );
  787. ***** ^ not supported yet
  788. ***** ^ not supported yet
  789. ***** ^ not supported yet
  790. ***** ^ not supported yet
  791. 348 StrEdit.Append( TmpMsg, ' from file ' );
  792. ***** ^ not supported yet
  793. ***** ^ not supported yet
  794. ***** ^ not supported yet
  795. ***** ^ not supported yet
  796. 349 StrEdit.Append( TmpMsg, TheDspFile^.name );
  797. ***** ^ not supported yet
  798. ***** ^ not supported yet
  799. ***** ^ not supported yet
  800. ***** ^ not supported yet
  801. ***** ^ not supported yet
  802. 350 ErrorManager.WARN( TmpMsg );
  803. ***** ^ not supported yet
  804. ***** ^ not supported yet
  805. ***** ^ not supported yet
  806. 351 END;
  807. 352 M2Strings.Assign( FrameName, FrameRec^.ThisFrame );
  808. ***** ^ not supported yet
  809. ***** ^ not supported yet
  810. ***** ^ not supported yet
  811. ***** ^ not supported yet
  812. ***** ^ not supported yet
  813. 353 IF NOT FrameRec^.SelfSharedWithFile THEN
  814. ***** ^ not supported yet
  815. ***** ^ not supported yet
  816. 354 GenLists.DisposeList( FrameRec^.self );
  817. ***** ^ not supported yet
  818. ***** ^ not supported yet
  819. ***** ^ not supported yet
  820. ***** ^ not supported yet
  821. 355 END;
  822. 356 GetFrameFromList( TheDspFile^.ListBuf, FrameRec );
  823. ***** ^ not supported yet
  824. ***** ^ not supported yet
  825. ***** ^ not supported yet
  826. ***** ^ not supported yet
  827. 357 FrameRec^.FromFile := TheDspFile;
  828. ***** ^ not supported yet
  829. ***** ^ not supported yet
  830. ***** ^ not supported yet
  831. 358 FrameRec^.SelfSharedWithFile := TRUE;
  832. ***** ^ not supported yet
  833. ***** ^ not supported yet
  834. 359 END ReadFrameFast;
  835. ***** ^ not supported yet
  836. 360
  837. 361 BEGIN
  838. 362 Initialized := FALSE;
  839. 363 Init();
  840. ***** ^ not supported yet
  841. ***** ^ not supported yet
  842. 364 END DspFiles.
  843. ***** ^ not supported yet
  844. 478 errors