FRAMEMAN.LST 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. Listing:
  2. 1 IMPLEMENTATION MODULE FrameManager;
  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/frameman.mov 1.5 10 Mar 1991 15:27:50 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16 (*
  18. 17 IMPORT Diagnostics;
  19. 18 *)
  20. 19
  21. 20 IMPORT ErrorManager;
  22. 21 IMPORT FramePainter;
  23. 22 IMPORT GenLists;
  24. 23 IMPORT Hash;
  25. 24 IMPORT ListUtils;
  26. 25 IMPORT Rectangles;
  27. 26 IMPORT ScrnTypes;
  28. 27 IMPORT SYSTEM;
  29. 28 IMPORT VWindows;
  30. 29
  31. 30 VAR
  32. 31 Initialized : BOOLEAN;
  33. 32
  34. 33
  35. 34 (* The idea here is that we have a list of windows, each of
  36. 35 which has a list of active DisplayFrames (pointers to
  37. 36 DisplayFrameRecs) in the position immediately following it.
  38. 37 A DisplayFrame's position in the window list indicates how
  39. 38 it is stacked --position 1 means it is in the foreground,
  40. 39 and each position after that means it is farther into the
  41. 40 background *)
  42. 41
  43. 42 CONST
  44. 43 FrameCode = 65529;
  45. 44 WindowCode = 65528;
  46. 45 (* arbitrary *)
  47. 46
  48. 47 VAR
  49. 48 WindowListInitialized : BOOLEAN;
  50. 49 WindowList: GenLists.GenList;
  51. ***** ^ not supported yet
  52. 50
  53. 51
  54. 52 PROCEDURE CleanUp();
  55. 53 BEGIN
  56. 54 (*
  57. 55 Diagnostics.diagS( 'About to DisposeList', '' );
  58. 56 *)
  59. 57 GenLists.DisposeList( WindowList );
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. ***** ^ not supported yet
  63. 58 END CleanUp;
  64. ***** ^ not supported yet
  65. 59
  66. 60
  67. 61 PROCEDURE AddWindow( TheWindow: VWindows.AWindowHandle );
  68. ***** ^ not supported yet
  69. 62 VAR
  70. 63 ActiveFrameList : GenLists.GenList;
  71. ***** ^ not supported yet
  72. 64 BEGIN
  73. 65 IF NOT WindowListInitialized THEN
  74. 66 GenLists.NewList( WindowList );
  75. ***** ^ not supported yet
  76. ***** ^ not supported yet
  77. ***** ^ not supported yet
  78. 67 WindowListInitialized := TRUE;
  79. 68 ErrorManager.AddTermProc( CleanUp );
  80. ***** ^ not supported yet
  81. ***** ^ not supported yet
  82. ***** ^ not supported yet
  83. 69 END;
  84. 70 IF ListUtils.ObjectSpot( TheWindow, WindowList, 1, 65535 ) > 0 THEN
  85. ***** ^ not supported yet
  86. ***** ^ not supported yet
  87. ***** ^ not supported yet
  88. ***** ^ not supported yet
  89. ***** ^ not supported yet
  90. 71 (*TheWindow is already in WindowList. We don't complain
  91. 72 about redundant adds because most frames will be
  92. 73 associated with the same window, and we don't want
  93. 74 InitDisplayFrame to have to worry about whether a
  94. 75 window has already been added. *)
  95. 76 RETURN;
  96. 77 END;
  97. 78 GenLists.NewList( ActiveFrameList );
  98. ***** ^ not supported yet
  99. ***** ^ not supported yet
  100. ***** ^ not supported yet
  101. 79 GenLists.ListInsert( ActiveFrameList, GenLists.ListCode, WindowList, 1 );
  102. ***** ^ not supported yet
  103. ***** ^ not supported yet
  104. ***** ^ not supported yet
  105. ***** ^ not supported yet
  106. ***** ^ not supported yet
  107. ***** ^ not supported yet
  108. ***** ^ not supported yet
  109. 80 GenLists.ListInsert( TheWindow, WindowCode, WindowList, 1 );
  110. ***** ^ not supported yet
  111. ***** ^ not supported yet
  112. ***** ^ not supported yet
  113. ***** ^ not supported yet
  114. ***** ^ not supported yet
  115. 81 END AddWindow;
  116. ***** ^ not supported yet
  117. 82
  118. 83
  119. 84 PROCEDURE DeleteWindow( TheWindow: VWindows.AWindowHandle );
  120. ***** ^ not supported yet
  121. 85 VAR
  122. 86 ActiveFrameList : GenLists.GenList;
  123. ***** ^ not supported yet
  124. 87 spot : CARDINAL;
  125. 88 BEGIN
  126. 89 spot := ListUtils.ObjectSpot( TheWindow, WindowList, 1, 65535 );
  127. ***** ^ not supported yet
  128. ***** ^ not supported yet
  129. ***** ^ not supported yet
  130. ***** ^ not supported yet
  131. ***** ^ not supported yet
  132. 90 IF spot > 0 THEN
  133. 91 GenLists.ListDelete( WindowList, spot, 2 );
  134. ***** ^ not supported yet
  135. ***** ^ not supported yet
  136. ***** ^ not supported yet
  137. ***** ^ not supported yet
  138. 92 END;
  139. 93 END DeleteWindow;
  140. ***** ^ not supported yet
  141. 94
  142. 95
  143. 96 PROCEDURE GetAssociatedFrames( TheWindow:
  144. 97 VWindows.AWindowHandle; VAR FrameList: GenLists.GenList );
  145. ***** ^ not supported yet
  146. ***** ^ not supported yet
  147. 98 VAR
  148. 99 spot: CARDINAL;
  149. 100 BEGIN
  150. 101 spot := ListUtils.ObjectSpot( TheWindow, WindowList, 1, 65535 );
  151. ***** ^ not supported yet
  152. ***** ^ not supported yet
  153. ***** ^ not supported yet
  154. ***** ^ not supported yet
  155. ***** ^ not supported yet
  156. 102 IF spot > 0 THEN
  157. 103 GenLists.GetChildList( WindowList, spot + 1, FrameList );
  158. ***** ^ not supported yet
  159. ***** ^ not supported yet
  160. ***** ^ not supported yet
  161. ***** ^ not supported yet
  162. 104 IF GenLists.Initialized( FrameList ) THEN
  163. ***** ^ not supported yet
  164. ***** ^ not supported yet
  165. ***** ^ not supported yet
  166. 105 RETURN;
  167. 106 END;
  168. 107 END;
  169. 108 ErrorManager.WARN( "You're missing a call to AddWindow somewhere" );
  170. ***** ^ not supported yet
  171. ***** ^ not supported yet
  172. ***** ^ not supported yet
  173. 109 END GetAssociatedFrames;
  174. ***** ^ not supported yet
  175. 110
  176. 111
  177. 112 PROCEDURE FrameIsInForeGround( TheFrame: ScrnTypes.DisplayFrame );
  178. ***** ^ not supported yet
  179. 113 VAR
  180. 114 ActiveFrameList : GenLists.GenList;
  181. ***** ^ not supported yet
  182. 115 spot: CARDINAL;
  183. 116 BEGIN
  184. 117 GetAssociatedFrames( TheFrame^.WindowHandle, ActiveFrameList );
  185. ***** ^ not supported yet
  186. ***** ^ not supported yet
  187. ***** ^ not supported yet
  188. ***** ^ not supported yet
  189. 118 spot := ListUtils.ObjectSpot( TheFrame, ActiveFrameList, 1, 65535 );
  190. ***** ^ not supported yet
  191. ***** ^ not supported yet
  192. ***** ^ not supported yet
  193. ***** ^ not supported yet
  194. ***** ^ not supported yet
  195. 119 IF spot = 0 THEN
  196. 120 ErrorManager.WARN( 'Frame not active' );
  197. ***** ^ not supported yet
  198. ***** ^ not supported yet
  199. ***** ^ not supported yet
  200. 121 END;
  201. 122 (* Now move TheFrame to the front of ActiveFrameList. *)
  202. 123 IF spot # 1 THEN
  203. 124 GenLists.ListDelete( ActiveFrameList, spot, 1 );
  204. ***** ^ not supported yet
  205. ***** ^ not supported yet
  206. ***** ^ not supported yet
  207. ***** ^ not supported yet
  208. 125 GenLists.ListInsert( TheFrame, FrameCode, ActiveFrameList, 1 );
  209. ***** ^ not supported yet
  210. ***** ^ not supported yet
  211. ***** ^ not supported yet
  212. ***** ^ not supported yet
  213. ***** ^ not supported yet
  214. 126 END;
  215. 127 END FrameIsInForeGround;
  216. ***** ^ not supported yet
  217. 128
  218. 129
  219. 130 PROCEDURE GetFrameFromList( list: GenLists.GenList; spot:
  220. ***** ^ not supported yet
  221. 131 CARDINAL; VAR frame: ScrnTypes.DisplayFrame );
  222. ***** ^ not supported yet
  223. 132 VAR
  224. 133 TypeCode: CARDINAL;
  225. 134 BEGIN
  226. 135 GenLists.GetElmt( list, spot, frame, TypeCode );
  227. ***** ^ not supported yet
  228. ***** ^ not supported yet
  229. ***** ^ not supported yet
  230. ***** ^ not supported yet
  231. ***** ^ not supported yet
  232. 136 IF TypeCode # FrameCode THEN
  233. 137 ErrorManager.WARN( 'Error in frame list' );
  234. ***** ^ not supported yet
  235. ***** ^ not supported yet
  236. ***** ^ not supported yet
  237. 138 END;
  238. 139 END GetFrameFromList;
  239. ***** ^ not supported yet
  240. 140
  241. 141
  242. 142 PROCEDURE FrameActivated( TheFrame: ScrnTypes.DisplayFrame );
  243. ***** ^ not supported yet
  244. 143 VAR
  245. 144 ActiveFrameList : GenLists.GenList;
  246. ***** ^ not supported yet
  247. 145 spot : CARDINAL;
  248. 146 BEGIN
  249. 147 GetAssociatedFrames( TheFrame^.WindowHandle, ActiveFrameList );
  250. ***** ^ not supported yet
  251. ***** ^ not supported yet
  252. ***** ^ not supported yet
  253. ***** ^ not supported yet
  254. 148 spot := ListUtils.ObjectSpot( TheFrame, ActiveFrameList, 1, 65535 );
  255. ***** ^ not supported yet
  256. ***** ^ not supported yet
  257. ***** ^ not supported yet
  258. ***** ^ not supported yet
  259. ***** ^ not supported yet
  260. 149 IF spot > 0 THEN
  261. 150 (* TheFrame is already in the list. *)
  262. 151 RETURN;
  263. 152 END;
  264. 153 GenLists.ListInsert( TheFrame, FrameCode, ActiveFrameList, 1 );
  265. ***** ^ not supported yet
  266. ***** ^ not supported yet
  267. ***** ^ not supported yet
  268. ***** ^ not supported yet
  269. ***** ^ not supported yet
  270. 154 END FrameActivated;
  271. ***** ^ not supported yet
  272. 155
  273. 156 PROCEDURE FrameDeactivated( TheFrame: ScrnTypes.DisplayFrame );
  274. ***** ^ not supported yet
  275. 157 VAR
  276. 158 ActiveFrameList : GenLists.GenList;
  277. ***** ^ not supported yet
  278. 159 spot : CARDINAL;
  279. 160 BEGIN
  280. 161 GetAssociatedFrames( TheFrame^.WindowHandle, ActiveFrameList );
  281. ***** ^ not supported yet
  282. ***** ^ not supported yet
  283. ***** ^ not supported yet
  284. ***** ^ not supported yet
  285. 162 spot := ListUtils.ObjectSpot( TheFrame, ActiveFrameList, 1, 65535 );
  286. ***** ^ not supported yet
  287. ***** ^ not supported yet
  288. ***** ^ not supported yet
  289. ***** ^ not supported yet
  290. ***** ^ not supported yet
  291. 163 IF spot = 0 THEN
  292. 164 (* TheFrame is not in the list. *)
  293. 165 RETURN;
  294. 166 END;
  295. 167 GenLists.ListDelete( ActiveFrameList, spot, 1 );
  296. ***** ^ not supported yet
  297. ***** ^ not supported yet
  298. ***** ^ not supported yet
  299. ***** ^ not supported yet
  300. 168 END FrameDeactivated;
  301. ***** ^ not supported yet
  302. 169
  303. 170
  304. 171 PROCEDURE GetFrameCoords( TheFrame: ScrnTypes.DisplayFrame; VAR
  305. ***** ^ not supported yet
  306. 172 rect: Rectangles.ARectangle );
  307. ***** ^ not supported yet
  308. 173 BEGIN
  309. 174 Rectangles.DefineRectangle( rect, TheFrame^.startcol +
  310. ***** ^ not supported yet
  311. ***** ^ not supported yet
  312. ***** ^ not supported yet
  313. ***** ^ not supported yet
  314. ***** ^ not supported yet
  315. 175 1, TheFrame^.startrow + 1, TheFrame^.endcol + 1,
  316. ***** ^ not supported yet
  317. ***** ^ not supported yet
  318. ***** ^ not supported yet
  319. ***** ^ not supported yet
  320. 176 TheFrame^.endrow + 1 )
  321. ***** ^ not supported yet
  322. ***** ^ not supported yet
  323. ***** ^ not supported yet
  324. 177 END GetFrameCoords;
  325. ***** ^ not supported yet
  326. 178
  327. 179
  328. 180 PROCEDURE IsFrameObscured( TheFrame: ScrnTypes.DisplayFrame ):
  329. ***** ^ not supported yet
  330. 181 BOOLEAN;
  331. 182 VAR
  332. 183 FrameRect, tmprect, intersection : Rectangles.ARectangle;
  333. ***** ^ not supported yet
  334. 184 ActiveFrameList : GenLists.GenList;
  335. ***** ^ not supported yet
  336. 185 ListEnd, cnt, spot : CARDINAL;
  337. 186 TmpFrame : ScrnTypes.DisplayFrame;
  338. ***** ^ not supported yet
  339. 187 BEGIN
  340. 188 GetAssociatedFrames( TheFrame^.WindowHandle, ActiveFrameList );
  341. ***** ^ not supported yet
  342. ***** ^ not supported yet
  343. ***** ^ not supported yet
  344. ***** ^ not supported yet
  345. 189 spot := ListUtils.ObjectSpot( TheFrame, ActiveFrameList, 1, 65535 );
  346. ***** ^ not supported yet
  347. ***** ^ not supported yet
  348. ***** ^ not supported yet
  349. ***** ^ not supported yet
  350. ***** ^ not supported yet
  351. 190 IF spot = 0 THEN
  352. 191 (* The frame itself has got to be in the list. *)
  353. 192 ErrorManager.WARN( 'Error in frame list' );
  354. ***** ^ not supported yet
  355. ***** ^ not supported yet
  356. ***** ^ not supported yet
  357. 193 RETURN FALSE;
  358. 194 ELSIF spot = 1 THEN
  359. 195 (* We return if it's 1 because, if the system is working,
  360. 196 a frame that's at the top of the list will never be
  361. 197 obscured *)
  362. 198 RETURN FALSE;
  363. 199 END;
  364. 200 GetFrameCoords( TheFrame, FrameRect );
  365. ***** ^ not supported yet
  366. ***** ^ not supported yet
  367. ***** ^ not supported yet
  368. 201 ListEnd := GenLists.ListLength( ActiveFrameList );
  369. ***** ^ not supported yet
  370. ***** ^ not supported yet
  371. ***** ^ not supported yet
  372. 202 FOR cnt := 1 TO (spot - 1) DO
  373. 203 GetFrameFromList( ActiveFrameList, cnt, TmpFrame );
  374. ***** ^ not supported yet
  375. ***** ^ not supported yet
  376. ***** ^ not supported yet
  377. 204 GetFrameCoords( TmpFrame, tmprect );
  378. ***** ^ not supported yet
  379. ***** ^ not supported yet
  380. ***** ^ not supported yet
  381. 205 IF Rectangles.RectsIntersect( FrameRect, tmprect,
  382. ***** ^ not supported yet
  383. ***** ^ not supported yet
  384. ***** ^ not supported yet
  385. ***** ^ not supported yet
  386. 206 intersection ) THEN
  387. ***** ^ not supported yet
  388. 207 RETURN TRUE;
  389. 208 END;
  390. 209 END;
  391. 210 RETURN FALSE;
  392. 211 END IsFrameObscured;
  393. ***** ^ not supported yet
  394. 212
  395. 213
  396. 214 PROCEDURE EraseFrame( TheFrame: ScrnTypes.DisplayFrame );
  397. ***** ^ not supported yet
  398. 215 VAR
  399. 216 FrameRect, tmprect, intersection : Rectangles.ARectangle;
  400. ***** ^ not supported yet
  401. 217 ActiveFrameList : GenLists.GenList;
  402. ***** ^ not supported yet
  403. 218 ListEnd, cnt, spot : CARDINAL;
  404. 219 TmpFrame : ScrnTypes.DisplayFrame;
  405. ***** ^ not supported yet
  406. 220 BEGIN
  407. 221 FrameIsInForeGround( TheFrame );
  408. ***** ^ not supported yet
  409. ***** ^ not supported yet
  410. 222 FrameDeactivated( TheFrame );
  411. ***** ^ not supported yet
  412. ***** ^ not supported yet
  413. 223 GetFrameCoords( TheFrame, FrameRect );
  414. ***** ^ not supported yet
  415. ***** ^ not supported yet
  416. ***** ^ not supported yet
  417. 224 GetAssociatedFrames( TheFrame^.WindowHandle, ActiveFrameList );
  418. ***** ^ not supported yet
  419. ***** ^ not supported yet
  420. ***** ^ not supported yet
  421. ***** ^ not supported yet
  422. 225 ListEnd := GenLists.ListLength( ActiveFrameList );
  423. ***** ^ not supported yet
  424. ***** ^ not supported yet
  425. ***** ^ not supported yet
  426. 226 (* If FrameRect is wholly within an unobscured frame,
  427. 227 redraw that frame. *)
  428. 228 FOR cnt := 1 TO ListEnd DO
  429. 229 GetFrameFromList( ActiveFrameList, cnt, TmpFrame );
  430. ***** ^ not supported yet
  431. ***** ^ not supported yet
  432. ***** ^ not supported yet
  433. 230 GetFrameCoords( TmpFrame, tmprect );
  434. ***** ^ not supported yet
  435. ***** ^ not supported yet
  436. ***** ^ not supported yet
  437. 231 IF (NOT IsFrameObscured( TmpFrame )) AND
  438. ***** ^ not supported yet
  439. ***** ^ not supported yet
  440. 232 (Rectangles.RectIsInside( FrameRect, tmprect ) ) THEN
  441. ***** ^ not supported yet
  442. ***** ^ not supported yet
  443. ***** ^ not supported yet
  444. ***** ^ not supported yet
  445. 233 FramePainter.RedrawArea( TmpFrame, FrameRect.col1,
  446. ***** ^ not supported yet
  447. ***** ^ not supported yet
  448. ***** ^ not supported yet
  449. ***** ^ not supported yet
  450. ***** ^ not supported yet
  451. 234 FrameRect.row1, FrameRect.col2, FrameRect.row2 );
  452. ***** ^ not supported yet
  453. ***** ^ not supported yet
  454. ***** ^ not supported yet
  455. ***** ^ not supported yet
  456. ***** ^ not supported yet
  457. ***** ^ not supported yet
  458. 235 RETURN
  459. 236 END;
  460. 237 END;
  461. 238
  462. 239 (* otherwise clearpart(rec), then start from bottom and call
  463. 240 redrawarea for each frame that extends into rec *)
  464. 241 VWindows.SetBackColor( TheFrame^.WindowHandle,
  465. ***** ^ not supported yet
  466. ***** ^ not supported yet
  467. ***** ^ not supported yet
  468. ***** ^ not supported yet
  469. 242 VWindows.BackColor(TheFrame^.WindowHandle) );
  470. ***** ^ not supported yet
  471. ***** ^ not supported yet
  472. ***** ^ not supported yet
  473. ***** ^ not supported yet
  474. 243 VWindows.SetMonoAttr( TheFrame^.WindowHandle,
  475. ***** ^ not supported yet
  476. ***** ^ not supported yet
  477. ***** ^ not supported yet
  478. ***** ^ not supported yet
  479. 244 VWindows.MonoAttr(TheFrame^.WindowHandle) );
  480. ***** ^ not supported yet
  481. ***** ^ not supported yet
  482. ***** ^ not supported yet
  483. ***** ^ not supported yet
  484. 245 VWindows.ClearPart( TheFrame^.WindowHandle, FrameRect.col1,
  485. ***** ^ not supported yet
  486. ***** ^ not supported yet
  487. ***** ^ not supported yet
  488. ***** ^ not supported yet
  489. ***** ^ not supported yet
  490. ***** ^ not supported yet
  491. 246 FrameRect.row1, FrameRect.col2, FrameRect.row2 );
  492. ***** ^ not supported yet
  493. ***** ^ not supported yet
  494. ***** ^ not supported yet
  495. ***** ^ not supported yet
  496. ***** ^ not supported yet
  497. ***** ^ not supported yet
  498. 247 cnt := ListEnd;
  499. 248 WHILE cnt >= 1 DO
  500. 249 GetFrameFromList( ActiveFrameList, cnt, TmpFrame );
  501. ***** ^ not supported yet
  502. ***** ^ not supported yet
  503. ***** ^ not supported yet
  504. 250 GetFrameCoords( TmpFrame, tmprect );
  505. ***** ^ not supported yet
  506. ***** ^ not supported yet
  507. ***** ^ not supported yet
  508. 251 IF Rectangles.RectsIntersect( FrameRect, tmprect, intersection ) THEN
  509. ***** ^ not supported yet
  510. ***** ^ not supported yet
  511. ***** ^ not supported yet
  512. ***** ^ not supported yet
  513. ***** ^ not supported yet
  514. 252 FramePainter.RedrawArea( TmpFrame, intersection.col1,
  515. ***** ^ not supported yet
  516. ***** ^ not supported yet
  517. ***** ^ not supported yet
  518. ***** ^ not supported yet
  519. ***** ^ not supported yet
  520. 253 intersection.row1, intersection.col2, intersection.row2 );
  521. ***** ^ not supported yet
  522. ***** ^ not supported yet
  523. ***** ^ not supported yet
  524. ***** ^ not supported yet
  525. ***** ^ not supported yet
  526. ***** ^ not supported yet
  527. 254 END;
  528. 255 DEC( cnt );
  529. ***** ^ undeclared identifier
  530. ***** ^ not supported yet
  531. 256 END;
  532. 257 END EraseFrame;
  533. ***** ^ not supported yet
  534. 258
  535. 259 PROCEDURE RestoreWholeWindow( TheWindow: VWindows.AWindowHandle );
  536. ***** ^ not supported yet
  537. 260 VAR
  538. 261 ActiveFrameList : GenLists.GenList;
  539. ***** ^ not supported yet
  540. 262 ListEnd, cnt: CARDINAL;
  541. 263 TmpFrame: ScrnTypes.DisplayFrame;
  542. ***** ^ not supported yet
  543. 264 BEGIN
  544. 265 GetAssociatedFrames( TheWindow, ActiveFrameList );
  545. ***** ^ not supported yet
  546. ***** ^ not supported yet
  547. ***** ^ not supported yet
  548. 266 VWindows.SetBackColor( TheWindow, VWindows.BackColor(TheWindow) );
  549. ***** ^ not supported yet
  550. ***** ^ not supported yet
  551. ***** ^ not supported yet
  552. ***** ^ not supported yet
  553. ***** ^ not supported yet
  554. ***** ^ not supported yet
  555. 267 VWindows.SetMonoAttr( TheWindow, VWindows.MonoAttr(TheWindow) );
  556. ***** ^ not supported yet
  557. ***** ^ not supported yet
  558. ***** ^ not supported yet
  559. ***** ^ not supported yet
  560. ***** ^ not supported yet
  561. ***** ^ not supported yet
  562. 268 VWindows.ClearPart( TheWindow, 1, 1, VWindows.EndCol(TheWindow),
  563. ***** ^ not supported yet
  564. ***** ^ not supported yet
  565. ***** ^ not supported yet
  566. ***** ^ not supported yet
  567. ***** ^ not supported yet
  568. ***** ^ not supported yet
  569. 269 VWindows.EndRow(TheWindow) );
  570. ***** ^ not supported yet
  571. ***** ^ not supported yet
  572. ***** ^ not supported yet
  573. 270 ListEnd := GenLists.ListLength( ActiveFrameList );
  574. ***** ^ not supported yet
  575. ***** ^ not supported yet
  576. ***** ^ not supported yet
  577. 271 cnt := ListEnd;
  578. 272 WHILE cnt >= 1 DO
  579. 273 GetFrameFromList( ActiveFrameList, cnt, TmpFrame );
  580. ***** ^ not supported yet
  581. ***** ^ not supported yet
  582. ***** ^ not supported yet
  583. 274 FramePainter.RedrawArea( TmpFrame, TmpFrame^.startcol + 1,
  584. ***** ^ not supported yet
  585. ***** ^ not supported yet
  586. ***** ^ not supported yet
  587. ***** ^ not supported yet
  588. ***** ^ not supported yet
  589. 275 TmpFrame^.startrow + 1, TmpFrame^.endcol + 1,
  590. ***** ^ not supported yet
  591. ***** ^ not supported yet
  592. ***** ^ not supported yet
  593. ***** ^ not supported yet
  594. 276 TmpFrame^.endrow + 1 );
  595. ***** ^ not supported yet
  596. ***** ^ not supported yet
  597. ***** ^ not supported yet
  598. 277 (* Corrected 3 Nov 88 thanks to John McMonagle; was
  599. 278 0,0,0,0 in 1.5c *)
  600. 279 DEC( cnt );
  601. ***** ^ undeclared identifier
  602. ***** ^ not supported yet
  603. 280 END;
  604. 281 END RestoreWholeWindow;
  605. ***** ^ not supported yet
  606. 282
  607. 283
  608. 284 PROCEDURE Init();
  609. 285 BEGIN
  610. 286 IF Initialized THEN
  611. 287 RETURN;
  612. 288 ELSE
  613. 289 Initialized := TRUE;
  614. 290 END;
  615. 291 WindowListInitialized := FALSE;
  616. 292 (*
  617. 293 Diagnostics.Init();
  618. 294 *)
  619. 295
  620. 296 ErrorManager.Init();
  621. ***** ^ not supported yet
  622. ***** ^ not supported yet
  623. ***** ^ not supported yet
  624. 297 FramePainter.Init();
  625. ***** ^ not supported yet
  626. ***** ^ not supported yet
  627. ***** ^ not supported yet
  628. 298 GenLists.Init();
  629. ***** ^ not supported yet
  630. ***** ^ not supported yet
  631. ***** ^ not supported yet
  632. 299 Hash.Init();
  633. ***** ^ not supported yet
  634. ***** ^ not supported yet
  635. ***** ^ not supported yet
  636. 300 ListUtils.Init();
  637. ***** ^ not supported yet
  638. ***** ^ not supported yet
  639. ***** ^ not supported yet
  640. 301 Rectangles.Init();
  641. ***** ^ not supported yet
  642. ***** ^ not supported yet
  643. ***** ^ not supported yet
  644. 302 ScrnTypes.Init();
  645. ***** ^ not supported yet
  646. ***** ^ not supported yet
  647. ***** ^ not supported yet
  648. 303 VWindows.Init();
  649. ***** ^ not supported yet
  650. ***** ^ not supported yet
  651. ***** ^ not supported yet
  652. 304 END Init;
  653. ***** ^ not supported yet
  654. 305
  655. 306 BEGIN
  656. 307 Initialized := FALSE;
  657. 308 Init();
  658. ***** ^ not supported yet
  659. ***** ^ not supported yet
  660. 309 END FrameManager.
  661. ***** ^ not supported yet
  662. 351 errors