LISTWRIT.LST 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. Listing:
  2. 1 IMPLEMENTATION MODULE ListWrite;
  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/listwrit.mov 1.5 10 Mar 1991 15:29:04 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16 IMPORT Editor;
  18. 17 IMPORT GenLists;
  19. 18 IMPORT Numbers;
  20. 19 IMPORT ScrnTypes;
  21. 20 IMPORT StrConv;
  22. 21 IMPORT SYSTEM;
  23. 22 IMPORT WindowPrims;
  24. 23
  25. 24 VAR
  26. 25 Initialized : BOOLEAN;
  27. 26
  28. 27 PROCEDURE Init();
  29. 28 BEGIN
  30. 29 IF Initialized THEN
  31. 30 RETURN;
  32. 31 ELSE
  33. 32 Initialized := TRUE;
  34. 33 END;
  35. 34 Editor.Init();
  36. ***** ^ not supported yet
  37. ***** ^ not supported yet
  38. ***** ^ not supported yet
  39. 35 GenLists.Init();
  40. ***** ^ not supported yet
  41. ***** ^ not supported yet
  42. ***** ^ not supported yet
  43. 36 Numbers.Init();
  44. ***** ^ not supported yet
  45. ***** ^ not supported yet
  46. ***** ^ not supported yet
  47. 37 ScrnTypes.Init();
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. ***** ^ not supported yet
  51. 38 StrConv.Init();
  52. ***** ^ not supported yet
  53. ***** ^ not supported yet
  54. ***** ^ not supported yet
  55. 39 WindowPrims.Init();
  56. ***** ^ not supported yet
  57. ***** ^ not supported yet
  58. ***** ^ not supported yet
  59. 40 END Init;
  60. ***** ^ not supported yet
  61. 41
  62. 42
  63. 43 PROCEDURE ShowList(TheList : GenLists.GenList);
  64. ***** ^ not supported yet
  65. 44 CONST
  66. 45 col1 = 40;
  67. 46 row1 = 2;
  68. 47 VAR
  69. 48 SavedScreen : WindowPrims.ScreenType;
  70. ***** ^ not supported yet
  71. 49 LineSize, dumtype, maxlength, BottomEdRow, TextRow1, CursorCol,
  72. 50 CursorRow : CARDINAL;
  73. 51 dumint : INTEGER;
  74. 52 dumadr : SYSTEM.ADDRESS;
  75. ***** ^ not supported yet
  76. 53 TmpList : GenLists.GenList;
  77. ***** ^ not supported yet
  78. 54 ChangeMade, OldDoCounting : BOOLEAN;
  79. 55 DummyFrame: ScrnTypes.DisplayFrame;
  80. ***** ^ not supported yet
  81. 56
  82. 57 BEGIN
  83. 58 DummyFrame := NIL;
  84. ***** ^ not supported yet
  85. 59 OldDoCounting := Editor.DoCounting;
  86. ***** ^ not supported yet
  87. ***** ^ not supported yet
  88. 60 Editor.DoCounting := FALSE;
  89. ***** ^ not supported yet
  90. ***** ^ not supported yet
  91. 61 maxlength := 10;
  92. 62 BottomEdRow := 1;
  93. 63 WHILE BottomEdRow<=GenLists.ListLength(TheList) DO
  94. ***** ^ not supported yet
  95. ***** ^ not supported yet
  96. ***** ^ not supported yet
  97. 64 GenLists.GetElmtAdr(TheList, BottomEdRow, dumadr, LineSize, dumtype);
  98. ***** ^ not supported yet
  99. ***** ^ not supported yet
  100. ***** ^ not supported yet
  101. ***** ^ not supported yet
  102. ***** ^ not supported yet
  103. 65 IF LineSize>maxlength THEN
  104. 66 maxlength := LineSize;
  105. 67 END;
  106. 68 INC(BottomEdRow);
  107. ***** ^ undeclared identifier
  108. ***** ^ not supported yet
  109. 69 END;
  110. 70 BottomEdRow := Numbers.Between(5,BottomEdRow,15);
  111. ***** ^ not supported yet
  112. ***** ^ not supported yet
  113. ***** ^ not supported yet
  114. 71 maxlength := Numbers.Between(10,maxlength,35);
  115. ***** ^ not supported yet
  116. ***** ^ not supported yet
  117. ***** ^ not supported yet
  118. 72 WindowPrims.ScreenSave(SavedScreen, col1, row1, maxlength+col1, BottomEdRow+
  119. ***** ^ not supported yet
  120. ***** ^ not supported yet
  121. ***** ^ not supported yet
  122. 73 row1);
  123. ***** ^ not supported yet
  124. 74 GenLists.CopyList(TheList, TmpList);
  125. ***** ^ not supported yet
  126. ***** ^ not supported yet
  127. ***** ^ not supported yet
  128. ***** ^ not supported yet
  129. 75 TextRow1 := 1;
  130. 76 CursorCol := 1;
  131. 77 CursorRow := 1;
  132. 78 dumint := Editor.ScrnEdit(col1,row1,maxlength,BottomEdRow,TmpList,
  133. ***** ^ not supported yet
  134. ***** ^ not supported yet
  135. ***** ^ not supported yet
  136. 79 TextRow1,CursorCol,CursorRow, ChangeMade, TRUE,
  137. 80 DummyFrame);
  138. ***** ^ not supported yet
  139. 81 GenLists.DisposeList(TmpList);
  140. ***** ^ not supported yet
  141. ***** ^ not supported yet
  142. ***** ^ not supported yet
  143. 82 WindowPrims.ScreenRestore(SavedScreen, col1, row1);
  144. ***** ^ not supported yet
  145. ***** ^ not supported yet
  146. ***** ^ not supported yet
  147. ***** ^ not supported yet
  148. 83 Editor.DoCounting := OldDoCounting;
  149. ***** ^ not supported yet
  150. ***** ^ not supported yet
  151. 84 END ShowList;
  152. ***** ^ not supported yet
  153. 85
  154. 86 BEGIN
  155. 87 Initialized := FALSE;
  156. 88 Init();
  157. ***** ^ not supported yet
  158. ***** ^ not supported yet
  159. 89 END ListWrite.
  160. ***** ^ not supported yet
  161. 70 errors