SCRNCOMP.LST 139 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948
  1. Listing:
  2. 1 MODULE ScrnCompile;
  3. 2 (*
  4. 3 * REPERTOIRE
  5. 4 * Release 1.6
  6. 5 * By Charles Bradford and Cole Brecheen
  7. 6 * (c) Copyright 1985-1990 PMI
  8. 7 * Green Bay, WI
  9. 8 * All rights reserved
  10. 9 * (414) 468-6040
  11. 10 *
  12. 11 *)
  13. 12
  14. 13
  15. 14
  16. 15 IMPORT BigSets;
  17. 16 IMPORT ControlUtils;
  18. 17 IMPORT DspFiles;
  19. 18 IMPORT EnvironUtils;
  20. 19 IMPORT ErrorManager;
  21. 20 IMPORT HandleIO;
  22. 21 IMPORT FrameManager;
  23. 22 IMPORT FramePainter;
  24. 23 IMPORT GenLists;
  25. 24 IMPORT InputManager;
  26. 25 IMPORT KbdInput;
  27. 26 IMPORT ListUtils;
  28. 27 IMPORT LowLevel;
  29. 28 IMPORT M2Strings;
  30. 29 IMPORT MakeFrame;
  31. 30 IMPORT MsColors;
  32. 31 IMPORT NdxBones;
  33. 32 IMPORT NdxFiles;
  34. 33 IMPORT NdxTypes;
  35. 34 IMPORT NdxUtils;
  36. 35 IMPORT PosUtils;
  37. 36 IMPORT PrtFrame;
  38. 37 IMPORT ScrnTypes;
  39. 38 IMPORT ScrnUtl1;
  40. 39 IMPORT ScrnUtl2;
  41. 40 IMPORT StrConv;
  42. 41 IMPORT StrEdit;
  43. 42 IMPORT StringIO;
  44. 43 IMPORT SYSTEM;
  45. 44 IMPORT UserOps;
  46. 45 IMPORT VEditor;
  47. 46 IMPORT VWindows;
  48. 47 IMPORT InitCompilerMods;
  49. 48
  50. 49 TYPE
  51. 50 ASyntaxChoice = (unknown, old, new);
  52. 51
  53. 52 VAR
  54. 53 LastFileName, LastFrameName, EdtFileName,
  55. 54 DspFileName: ARRAY [0..80] OF CHAR;
  56. ***** ^ not supported yet
  57. ***** ^ not supported yet
  58. 55 TopMenuList, FileList, CurrentFrameList, OutFrameList:
  59. 56 GenLists.GenList;
  60. ***** ^ not supported yet
  61. 57 ErrStr: ARRAY [0..255] OF CHAR;
  62. ***** ^ not supported yet
  63. ***** ^ not supported yet
  64. 58 FrameName, StartFrame, EndingFrame, NextFrame:
  65. 59 ScrnTypes.AFrameName;
  66. ***** ^ not supported yet
  67. 60 ScrnCompDsp, CurrentDspFile: ScrnTypes.DisplayFile;
  68. ***** ^ not supported yet
  69. 61 ParamsRead, SavedCursorHeight, FileListLine, BadLine:
  70. 62 CARDINAL;
  71. 63 syntax : ASyntaxChoice;
  72. ***** ^ not supported yet
  73. 64 (*Determines the syntax rule in effect for the current .EDT
  74. 65 file.*)
  75. 66 CmdLineVersion, AtEndOfList, ListChanged: BOOLEAN;
  76. 67 MovementKeys: KbdInput.KeyNumSet;
  77. ***** ^ not supported yet
  78. 68 SelChar: CHAR;
  79. 69
  80. 70
  81. 71 (* These two new forms of the Input procedure will eventually be
  82. 72 moved to ControlUtils. *)
  83. 73
  84. 74 PROCEDURE Input2( TheFile: ScrnTypes.DisplayFile; VAR
  85. ***** ^ not supported yet
  86. 75 FrameName : ScrnTypes.AFrameName );
  87. ***** ^ not supported yet
  88. 76 VAR
  89. 77 TmpFrame: ScrnTypes.DisplayFrame;
  90. ***** ^ not supported yet
  91. 78 BEGIN
  92. 79 ScrnTypes.InitDisplayFrame( TmpFrame, VWindows.CurrentWindow );
  93. ***** ^ not supported yet
  94. ***** ^ not supported yet
  95. ***** ^ not supported yet
  96. ***** ^ not supported yet
  97. ***** ^ not supported yet
  98. 80 DspFiles.ReadFrame( TheFile, TmpFrame,
  99. ***** ^ not supported yet
  100. ***** ^ not supported yet
  101. ***** ^ not supported yet
  102. ***** ^ not supported yet
  103. 81 FrameName );
  104. ***** ^ not supported yet
  105. 82 FramePainter.ShowDisplayFrame( TmpFrame, 0, 0, 0, 0 );
  106. ***** ^ not supported yet
  107. ***** ^ not supported yet
  108. ***** ^ not supported yet
  109. ***** ^ not supported yet
  110. 83 InputManager.ControlFrame( TmpFrame, 1, '', FALSE, FrameName );
  111. ***** ^ not supported yet
  112. ***** ^ not supported yet
  113. ***** ^ not supported yet
  114. ***** ^ not supported yet
  115. 84 ScrnUtl2.CloseDisplayFrame( TmpFrame );
  116. ***** ^ not supported yet
  117. ***** ^ not supported yet
  118. ***** ^ not supported yet
  119. 85 END Input2;
  120. ***** ^ not supported yet
  121. 86
  122. 87
  123. 88 PROCEDURE InputConst2( TheFile: ScrnTypes.DisplayFile;
  124. ***** ^ not supported yet
  125. 89 FrameName : ARRAY OF CHAR );
  126. ***** ^ not supported yet
  127. 90 VAR
  128. 91 TmpName: ScrnTypes.AFrameName;
  129. ***** ^ not supported yet
  130. 92 TmpFrame: ScrnTypes.DisplayFrame;
  131. ***** ^ not supported yet
  132. 93 BEGIN
  133. 94 ScrnTypes.InitDisplayFrame( TmpFrame, VWindows.CurrentWindow );
  134. ***** ^ not supported yet
  135. ***** ^ not supported yet
  136. ***** ^ not supported yet
  137. ***** ^ not supported yet
  138. ***** ^ not supported yet
  139. 95 M2Strings.Assign( FrameName, TmpName );
  140. ***** ^ not supported yet
  141. ***** ^ not supported yet
  142. ***** ^ not supported yet
  143. ***** ^ not supported yet
  144. 96 DspFiles.ReadFrame( TheFile, TmpFrame,
  145. ***** ^ not supported yet
  146. ***** ^ not supported yet
  147. ***** ^ not supported yet
  148. ***** ^ not supported yet
  149. 97 TmpName );
  150. ***** ^ not supported yet
  151. 98 FramePainter.ShowDisplayFrame( TmpFrame, 0, 0, 0, 0 );
  152. ***** ^ not supported yet
  153. ***** ^ not supported yet
  154. ***** ^ not supported yet
  155. ***** ^ not supported yet
  156. 99 InputManager.ControlFrame( TmpFrame, 0, '', FALSE, TmpName );
  157. ***** ^ not supported yet
  158. ***** ^ not supported yet
  159. ***** ^ not supported yet
  160. ***** ^ not supported yet
  161. 100 ScrnUtl2.CloseDisplayFrame( TmpFrame );
  162. ***** ^ not supported yet
  163. ***** ^ not supported yet
  164. ***** ^ not supported yet
  165. 101 END InputConst2;
  166. ***** ^ not supported yet
  167. 102
  168. 103
  169. 104 PROCEDURE UpdateStatus( StatusFrame: ScrnTypes.DisplayFrame;
  170. ***** ^ not supported yet
  171. 105 FieldName, NewStatus: ARRAY OF CHAR );
  172. ***** ^ not supported yet
  173. 106 VAR
  174. 107 width, TmpFieldNum: CARDINAL;
  175. 108 TmpStr: ARRAY [0..79] OF CHAR;
  176. ***** ^ not supported yet
  177. ***** ^ not supported yet
  178. 109 BEGIN
  179. 110 TmpFieldNum := ScrnUtl1.FieldNum(StatusFrame, FieldName );
  180. ***** ^ not supported yet
  181. ***** ^ not supported yet
  182. ***** ^ not supported yet
  183. ***** ^ not supported yet
  184. 111 width := ScrnUtl1.FieldWidth( StatusFrame, TmpFieldNum );
  185. ***** ^ not supported yet
  186. ***** ^ not supported yet
  187. ***** ^ not supported yet
  188. ***** ^ not supported yet
  189. 112 StrEdit.AssignStr( NewStatus, TmpStr );
  190. ***** ^ not supported yet
  191. ***** ^ not supported yet
  192. ***** ^ not supported yet
  193. ***** ^ not supported yet
  194. 113 StrEdit.Center( TmpStr, width );
  195. ***** ^ not supported yet
  196. ***** ^ not supported yet
  197. ***** ^ not supported yet
  198. ***** ^ not supported yet
  199. 114 ControlUtils.ChangeField( StatusFrame, TmpStr, FieldName, TRUE );
  200. ***** ^ not supported yet
  201. ***** ^ not supported yet
  202. ***** ^ not supported yet
  203. ***** ^ not supported yet
  204. ***** ^ not supported yet
  205. ***** ^ not supported yet
  206. 115 FramePainter.RedrawField( StatusFrame, TmpFieldNum, FALSE );
  207. ***** ^ not supported yet
  208. ***** ^ not supported yet
  209. ***** ^ not supported yet
  210. ***** ^ not supported yet
  211. 116 END UpdateStatus;
  212. ***** ^ not supported yet
  213. 117
  214. 118
  215. 119 PROCEDURE CommandLineSwitch(): BOOLEAN;
  216. 120 VAR
  217. 121 lngth: CARDINAL;
  218. 122 ParamStr: ARRAY [0..127] OF CHAR;
  219. ***** ^ not supported yet
  220. ***** ^ not supported yet
  221. 123 BEGIN
  222. 124 EnvironUtils.GetProgParams( ParamStr );
  223. ***** ^ not supported yet
  224. ***** ^ not supported yet
  225. ***** ^ not supported yet
  226. 125 StrEdit.CrunchBlanks( ParamStr );
  227. ***** ^ not supported yet
  228. ***** ^ not supported yet
  229. ***** ^ not supported yet
  230. 126 lngth := M2Strings.Length( ParamStr );
  231. ***** ^ not supported yet
  232. ***** ^ not supported yet
  233. ***** ^ not supported yet
  234. 127 IF lngth < 2 THEN
  235. 128 RETURN FALSE;
  236. 129 END;
  237. 130 IF (ParamStr[ lngth - 2 ] = '/') AND
  238. ***** ^ not supported yet
  239. ***** ^ not supported yet
  240. 131 (CAP(ParamStr[ lngth - 1 ]) = 'C') THEN
  241. ***** ^ undeclared identifier
  242. ***** ^ not supported yet
  243. ***** ^ not supported yet
  244. 132 RETURN TRUE;
  245. 133 ELSE
  246. 134 RETURN FALSE;
  247. 135 END;
  248. 136 END CommandLineSwitch;
  249. ***** ^ not supported yet
  250. 137
  251. 138
  252. 139 PROCEDURE AddExtension( VAR FileName: ARRAY OF CHAR;
  253. ***** ^ not supported yet
  254. 140 Extension: ARRAY OF CHAR );
  255. ***** ^ not supported yet
  256. 141 BEGIN
  257. 142 IF NOT PosUtils.Present( ".", FileName) THEN
  258. ***** ^ not supported yet
  259. ***** ^ not supported yet
  260. ***** ^ not supported yet
  261. 143 StrEdit.Append( FileName, Extension );
  262. ***** ^ not supported yet
  263. ***** ^ not supported yet
  264. ***** ^ not supported yet
  265. ***** ^ not supported yet
  266. 144 END;
  267. 145 END AddExtension;
  268. ***** ^ not supported yet
  269. 146
  270. 147
  271. 148 PROCEDURE AddMovementKeys( VAR TheKeySet: KbdInput.KeyNumSet );
  272. ***** ^ not supported yet
  273. 149 BEGIN
  274. 150 BigSets.SetUnion( TheKeySet, MovementKeys, TheKeySet );
  275. ***** ^ not supported yet
  276. ***** ^ not supported yet
  277. ***** ^ not supported yet
  278. ***** ^ not supported yet
  279. ***** ^ not supported yet
  280. 151 END AddMovementKeys;
  281. ***** ^ not supported yet
  282. 152
  283. 153
  284. 154 PROCEDURE RemoveMovementKeys( VAR TheKeySet: KbdInput.KeyNumSet );
  285. ***** ^ not supported yet
  286. 155 BEGIN
  287. 156 BigSets.SetDifference( TheKeySet, MovementKeys, TheKeySet );
  288. ***** ^ not supported yet
  289. ***** ^ not supported yet
  290. ***** ^ not supported yet
  291. ***** ^ not supported yet
  292. ***** ^ not supported yet
  293. 157 END RemoveMovementKeys;
  294. ***** ^ not supported yet
  295. 158
  296. 159
  297. 160 PROCEDURE CallEditor( VAR TheList: GenLists.GenList;
  298. ***** ^ not supported yet
  299. 161 VAR ControlRec: VEditor.AnEdControlRec );
  300. ***** ^ not supported yet
  301. 162 VAR
  302. 163 TmpFrame: ScrnTypes.DisplayFrame;
  303. ***** ^ not supported yet
  304. 164 BEGIN
  305. 165 ScrnTypes.InitDisplayFrame( TmpFrame, VWindows.CurrentWindow );
  306. ***** ^ not supported yet
  307. ***** ^ not supported yet
  308. ***** ^ not supported yet
  309. ***** ^ not supported yet
  310. ***** ^ not supported yet
  311. 166 ControlUtils.AddEditorField( TmpFrame, TheList, ControlRec );
  312. ***** ^ not supported yet
  313. ***** ^ not supported yet
  314. ***** ^ not supported yet
  315. ***** ^ not supported yet
  316. ***** ^ not supported yet
  317. 167 FrameManager.FrameActivated( TmpFrame );
  318. ***** ^ not supported yet
  319. ***** ^ not supported yet
  320. ***** ^ not supported yet
  321. 168 UserOps.DoPrompting := FALSE;
  322. ***** ^ not supported yet
  323. ***** ^ not supported yet
  324. 169 RemoveMovementKeys( UserOps.FieldExitKeySet );
  325. ***** ^ not supported yet
  326. ***** ^ not supported yet
  327. ***** ^ not supported yet
  328. 170 VEditor.TheEditor( TheList, ControlRec );
  329. ***** ^ not supported yet
  330. ***** ^ not supported yet
  331. ***** ^ not supported yet
  332. ***** ^ not supported yet
  333. 171 AddMovementKeys( UserOps.FieldExitKeySet );
  334. ***** ^ not supported yet
  335. ***** ^ not supported yet
  336. ***** ^ not supported yet
  337. 172 UserOps.DoPrompting := TRUE;
  338. ***** ^ not supported yet
  339. ***** ^ not supported yet
  340. 173 GenLists.NilList( TmpFrame^.EdFieldList );
  341. ***** ^ not supported yet
  342. ***** ^ not supported yet
  343. ***** ^ not supported yet
  344. ***** ^ not supported yet
  345. 174 GenLists.DisconnectLists( TheList, TmpFrame^.self );
  346. ***** ^ not supported yet
  347. ***** ^ not supported yet
  348. ***** ^ not supported yet
  349. ***** ^ not supported yet
  350. ***** ^ not supported yet
  351. 175 (* We have to disconnect TheList because it has become a sublist
  352. 176 of TmpFrame's .self list, which is about to be disposed of. *)
  353. 177 ScrnUtl2.CloseDisplayFrame( TmpFrame );
  354. ***** ^ not supported yet
  355. ***** ^ not supported yet
  356. ***** ^ not supported yet
  357. 178 VWindows.SetForeColor( VWindows.CurrentWindow, MsColors.lightgrey );
  358. ***** ^ not supported yet
  359. ***** ^ not supported yet
  360. ***** ^ not supported yet
  361. ***** ^ not supported yet
  362. ***** ^ not supported yet
  363. ***** ^ not supported yet
  364. 179 VWindows.SetBackColor( VWindows.CurrentWindow, MsColors.black );
  365. ***** ^ not supported yet
  366. ***** ^ not supported yet
  367. ***** ^ not supported yet
  368. ***** ^ not supported yet
  369. ***** ^ not supported yet
  370. ***** ^ not supported yet
  371. 180 VWindows.SetMonoAttr( VWindows.CurrentWindow, MsColors.plain );
  372. ***** ^ not supported yet
  373. ***** ^ not supported yet
  374. ***** ^ not supported yet
  375. ***** ^ not supported yet
  376. ***** ^ not supported yet
  377. ***** ^ not supported yet
  378. 181 VWindows.ClearPart( VWindows.CurrentWindow, 1,1,
  379. ***** ^ not supported yet
  380. ***** ^ not supported yet
  381. ***** ^ not supported yet
  382. ***** ^ not supported yet
  383. 182 VWindows.EndCol(VWindows.CurrentWindow),
  384. ***** ^ not supported yet
  385. ***** ^ not supported yet
  386. ***** ^ not supported yet
  387. ***** ^ not supported yet
  388. 183 VWindows.EndRow(VWindows.CurrentWindow) );
  389. ***** ^ not supported yet
  390. ***** ^ not supported yet
  391. ***** ^ not supported yet
  392. ***** ^ not supported yet
  393. 184 END CallEditor;
  394. ***** ^ not supported yet
  395. 185
  396. 186
  397. 187 PROCEDURE CloseCurrentDsp();
  398. 188 BEGIN
  399. 189 IF (CurrentDspFile # NIL) THEN
  400. ***** ^ not supported yet
  401. 190 NdxUtils.CrunchNdxFile( CurrentDspFile );
  402. ***** ^ not supported yet
  403. ***** ^ not supported yet
  404. ***** ^ not supported yet
  405. 191 NdxFiles.CloseNdxFile( CurrentDspFile );
  406. ***** ^ not supported yet
  407. ***** ^ not supported yet
  408. ***** ^ not supported yet
  409. 192 END;
  410. 193 END CloseCurrentDsp;
  411. ***** ^ not supported yet
  412. 194
  413. 195
  414. 196 PROCEDURE Yes( Prompt: ARRAY OF CHAR ): BOOLEAN;
  415. ***** ^ not supported yet
  416. 197 BEGIN
  417. 198 IF CmdLineVersion THEN
  418. 199 StringIO.WriteEol( StringIO.outp, '' );
  419. ***** ^ not supported yet
  420. ***** ^ not supported yet
  421. ***** ^ not supported yet
  422. ***** ^ not supported yet
  423. ***** ^ not supported yet
  424. 200 StringIO.WriteStr( StringIO.outp, Prompt );
  425. ***** ^ not supported yet
  426. ***** ^ not supported yet
  427. ***** ^ not supported yet
  428. ***** ^ not supported yet
  429. ***** ^ not supported yet
  430. 201 StringIO.WriteStr( StringIO.outp, ' (Y/N): ' );
  431. ***** ^ not supported yet
  432. ***** ^ not supported yet
  433. ***** ^ not supported yet
  434. ***** ^ not supported yet
  435. ***** ^ not supported yet
  436. 202 RETURN KbdInput.CAPkey( KbdInput.KeyHit( KbdInput.YorN ) ) = ORD('Y');
  437. ***** ^ not supported yet
  438. ***** ^ not supported yet
  439. ***** ^ not supported yet
  440. ***** ^ not supported yet
  441. ***** ^ not supported yet
  442. ***** ^ not supported yet
  443. ***** ^ undeclared identifier
  444. ***** ^ not supported yet
  445. 203 ELSE
  446. 204 M2Strings.Assign( Prompt, NextFrame );
  447. ***** ^ not supported yet
  448. ***** ^ not supported yet
  449. ***** ^ not supported yet
  450. ***** ^ not supported yet
  451. 205 ControlUtils.Input( DspFiles.MainFrame, NextFrame );
  452. ***** ^ not supported yet
  453. ***** ^ not supported yet
  454. ***** ^ not supported yet
  455. ***** ^ not supported yet
  456. ***** ^ not supported yet
  457. 206 RETURN CAP( ScrnUtl1.SelectedChar(DspFiles.MainFrame) ) = 'Y';
  458. ***** ^ undeclared identifier
  459. ***** ^ not supported yet
  460. ***** ^ not supported yet
  461. ***** ^ not supported yet
  462. ***** ^ not supported yet
  463. 207 END;
  464. 208 END Yes;
  465. ***** ^ not supported yet
  466. 209
  467. 210
  468. 211 PROCEDURE NamesToFrame( DspFile: ScrnTypes.DisplayFile;
  469. ***** ^ not supported yet
  470. 212 VAR TheFrame: ScrnTypes.DisplayFrame );
  471. ***** ^ not supported yet
  472. 213 VAR
  473. 214 NdxRec: NdxTypes.NdxElement;
  474. ***** ^ not supported yet
  475. 215 lngth, cnt, TypeCode: CARDINAL;
  476. 216 BEGIN
  477. 217 lngth := GenLists.ListLength( DspFile^.Ndx );
  478. ***** ^ not supported yet
  479. ***** ^ not supported yet
  480. ***** ^ not supported yet
  481. ***** ^ not supported yet
  482. 218 FOR cnt := 1 TO lngth DO
  483. 219 GenLists.GetElmt( DspFile^.Ndx, cnt, NdxRec, TypeCode );
  484. ***** ^ not supported yet
  485. ***** ^ not supported yet
  486. ***** ^ not supported yet
  487. ***** ^ not supported yet
  488. ***** ^ not supported yet
  489. ***** ^ not supported yet
  490. 220 IF NdxRec.RecName[0] # 0C THEN
  491. ***** ^ not supported yet
  492. ***** ^ not supported yet
  493. ***** ^ not supported yet
  494. 221 IF NOT (PosUtils.Pos( 'RepVers', NdxRec.RecName ) = 0) THEN
  495. ***** ^ not supported yet
  496. ***** ^ not supported yet
  497. ***** ^ not supported yet
  498. ***** ^ not supported yet
  499. ***** ^ not supported yet
  500. 222 (* We don't want to write out the name of the version
  501. 223 check record. *)
  502. 224 ControlUtils.AddMenuItem( TheFrame, 2, 1 + cnt,
  503. ***** ^ not supported yet
  504. ***** ^ not supported yet
  505. ***** ^ not supported yet
  506. 225 NdxRec.RecName, 20, 0, NdxRec.RecName );
  507. ***** ^ not supported yet
  508. ***** ^ not supported yet
  509. ***** ^ not supported yet
  510. ***** ^ not supported yet
  511. 226 END;
  512. 227 END;
  513. 228 END;
  514. 229 END NamesToFrame;
  515. ***** ^ not supported yet
  516. 230
  517. 231
  518. 232 PROCEDURE InsertCommandDelims( VAR TheList: GenLists.GenList );
  519. ***** ^ not supported yet
  520. 233 VAR
  521. 234 TmpStr: ARRAY [0..127] OF CHAR;
  522. ***** ^ not supported yet
  523. ***** ^ not supported yet
  524. 235 BEGIN
  525. 236 IF GenLists.ListLength( TheList ) = 0 THEN
  526. ***** ^ not supported yet
  527. ***** ^ not supported yet
  528. ***** ^ not supported yet
  529. 237 (*Get em started--command area delimiters are tedious to
  530. 238 type in.*)
  531. 239 LowLevel.Fill( SYSTEM.ADR(TmpStr), 80, '=' );
  532. ***** ^ not supported yet
  533. ***** ^ not supported yet
  534. ***** ^ not supported yet
  535. ***** ^ not supported yet
  536. ***** ^ not supported yet
  537. ***** ^ not supported yet
  538. 240 GenLists.ListInsert( TmpStr, GenLists.StrCode,
  539. ***** ^ not supported yet
  540. ***** ^ not supported yet
  541. ***** ^ not supported yet
  542. ***** ^ not supported yet
  543. ***** ^ not supported yet
  544. 241 TheList, 1 );
  545. ***** ^ not supported yet
  546. ***** ^ not supported yet
  547. 242 LowLevel.Fill( SYSTEM.ADR(TmpStr), 80, '-' );
  548. ***** ^ not supported yet
  549. ***** ^ not supported yet
  550. ***** ^ not supported yet
  551. ***** ^ not supported yet
  552. ***** ^ not supported yet
  553. ***** ^ not supported yet
  554. 243 GenLists.ListInsert( ':[insert name here]',
  555. ***** ^ not supported yet
  556. ***** ^ not supported yet
  557. ***** ^ not supported yet
  558. 244 GenLists.StrCode, TheList, 2 );
  559. ***** ^ not supported yet
  560. ***** ^ not supported yet
  561. ***** ^ not supported yet
  562. ***** ^ not supported yet
  563. 245 GenLists.ListInsert( TmpStr, GenLists.StrCode,
  564. ***** ^ not supported yet
  565. ***** ^ not supported yet
  566. ***** ^ not supported yet
  567. ***** ^ not supported yet
  568. ***** ^ not supported yet
  569. 246 TheList, 3 );
  570. ***** ^ not supported yet
  571. ***** ^ not supported yet
  572. 247 END;
  573. 248 END InsertCommandDelims;
  574. ***** ^ not supported yet
  575. 249
  576. 250
  577. 251 PROCEDURE GetStrResponse( Prompt, Default: ARRAY OF CHAR;
  578. ***** ^ not supported yet
  579. 252 VAR TheStr: ARRAY OF CHAR ): BOOLEAN;
  580. ***** ^ not supported yet
  581. 253 BEGIN
  582. 254 IF CmdLineVersion THEN
  583. 255 IF EnvironUtils.ParsedParam( ParamsRead + 1, TheStr ) THEN
  584. ***** ^ not supported yet
  585. ***** ^ not supported yet
  586. ***** ^ not supported yet
  587. 256 IF TheStr[0] # '/' THEN
  588. ***** ^ not supported yet
  589. ***** ^ not supported yet
  590. 257 IF PosUtils.Present( '/c', TheStr ) OR
  591. ***** ^ not supported yet
  592. ***** ^ not supported yet
  593. ***** ^ not supported yet
  594. ***** ^ not supported yet
  595. 258 PosUtils.Present( '/C', TheStr ) THEN
  596. ***** ^ not supported yet
  597. ***** ^ not supported yet
  598. ***** ^ not supported yet
  599. ***** ^ not supported yet
  600. 259 M2Strings.Delete( TheStr, M2Strings.Length(TheStr) - 2, 2 );
  601. ***** ^ not supported yet
  602. ***** ^ not supported yet
  603. ***** ^ not supported yet
  604. ***** ^ not supported yet
  605. ***** ^ not supported yet
  606. ***** ^ not supported yet
  607. ***** ^ not supported yet
  608. 260 StrEdit.CrunchBlanks( TheStr );
  609. ***** ^ not supported yet
  610. ***** ^ not supported yet
  611. ***** ^ not supported yet
  612. 261 END;
  613. 262 INC( ParamsRead );
  614. ***** ^ undeclared identifier
  615. ***** ^ not supported yet
  616. 263 RETURN TRUE;
  617. 264 END;
  618. 265 END;
  619. 266 StringIO.WriteStr( StringIO.outp, Prompt );
  620. ***** ^ not supported yet
  621. ***** ^ not supported yet
  622. ***** ^ not supported yet
  623. ***** ^ not supported yet
  624. ***** ^ not supported yet
  625. 267 StringIO.WriteStr( StringIO.outp, ': ' );
  626. ***** ^ not supported yet
  627. ***** ^ not supported yet
  628. ***** ^ not supported yet
  629. ***** ^ not supported yet
  630. ***** ^ not supported yet
  631. 268 StringIO.ReadStr( StringIO.inp, TheStr );
  632. ***** ^ not supported yet
  633. ***** ^ not supported yet
  634. ***** ^ not supported yet
  635. ***** ^ not supported yet
  636. ***** ^ not supported yet
  637. 269 IF TheStr[0] # 0C THEN
  638. ***** ^ not supported yet
  639. ***** ^ not supported yet
  640. 270 RETURN TRUE;
  641. 271 ELSE
  642. 272 RETURN FALSE;
  643. 273 END;
  644. 274 END;
  645. 275 M2Strings.Assign( Prompt, NextFrame );
  646. ***** ^ not supported yet
  647. ***** ^ not supported yet
  648. ***** ^ not supported yet
  649. ***** ^ not supported yet
  650. 276 DspFiles.ReadDisplayFrame( ScrnCompDsp, DspFiles.MainFrame, NextFrame );
  651. ***** ^ not supported yet
  652. ***** ^ not supported yet
  653. ***** ^ not supported yet
  654. ***** ^ not supported yet
  655. ***** ^ not supported yet
  656. ***** ^ not supported yet
  657. 277 ControlUtils.ChangeField( DspFiles.MainFrame, Default, 'TheStr', TRUE );
  658. ***** ^ not supported yet
  659. ***** ^ not supported yet
  660. ***** ^ not supported yet
  661. ***** ^ not supported yet
  662. ***** ^ not supported yet
  663. ***** ^ not supported yet
  664. ***** ^ not supported yet
  665. 278 FramePainter.ShowDisplayFrame( DspFiles.MainFrame, 0, 0, 0, 0 );
  666. ***** ^ not supported yet
  667. ***** ^ not supported yet
  668. ***** ^ not supported yet
  669. ***** ^ not supported yet
  670. ***** ^ not supported yet
  671. 279 InputManager.ControlFrame( DspFiles.MainFrame, 1, '', FALSE, NextFrame );
  672. ***** ^ not supported yet
  673. ***** ^ not supported yet
  674. ***** ^ not supported yet
  675. ***** ^ not supported yet
  676. ***** ^ not supported yet
  677. 280 IF PosUtils.Equal( DspFiles.MainFrame^.parent, NextFrame ) THEN
  678. ***** ^ not supported yet
  679. ***** ^ not supported yet
  680. ***** ^ not supported yet
  681. ***** ^ not supported yet
  682. ***** ^ not supported yet
  683. ***** ^ not supported yet
  684. 281 RETURN FALSE;
  685. 282 END;
  686. 283 ControlUtils.ReadInput( DspFiles.MainFrame, TheStr, 'TheStr' );
  687. ***** ^ not supported yet
  688. ***** ^ not supported yet
  689. ***** ^ not supported yet
  690. ***** ^ not supported yet
  691. ***** ^ not supported yet
  692. ***** ^ not supported yet
  693. 284 StrEdit.CrunchBlanks( TheStr );
  694. ***** ^ not supported yet
  695. ***** ^ not supported yet
  696. ***** ^ not supported yet
  697. 285 RETURN TRUE;
  698. 286 END GetStrResponse;
  699. ***** ^ not supported yet
  700. 287
  701. 288
  702. 289 PROCEDURE ReadNewEdtFile(): BOOLEAN;
  703. 290 BEGIN
  704. 291 IF GenLists.Initialized( FileList ) THEN
  705. ***** ^ not supported yet
  706. ***** ^ not supported yet
  707. ***** ^ not supported yet
  708. 292 IF Yes('SaveEdt') THEN
  709. ***** ^ not supported yet
  710. ***** ^ not supported yet
  711. 293 IF NOT GetStrResponse( 'EdtName', EdtFileName, EdtFileName ) THEN
  712. ***** ^ not supported yet
  713. ***** ^ not supported yet
  714. ***** ^ not supported yet
  715. ***** ^ not supported yet
  716. 294 RETURN FALSE;
  717. 295 END;
  718. 296 AddExtension( EdtFileName, '.EDT' );
  719. ***** ^ not supported yet
  720. ***** ^ not supported yet
  721. ***** ^ not supported yet
  722. 297 IF StringIO.NoError # ListUtils.TextListToFile( FileList,
  723. ***** ^ not supported yet
  724. ***** ^ not supported yet
  725. ***** ^ not supported yet
  726. ***** ^ not supported yet
  727. ***** ^ not supported yet
  728. 298 EdtFileName ) THEN
  729. ***** ^ not supported yet
  730. 299 RETURN FALSE;
  731. 300 END;
  732. 301 END;
  733. 302 GenLists.DisposeList( FileList );
  734. ***** ^ not supported yet
  735. ***** ^ not supported yet
  736. ***** ^ not supported yet
  737. 303 END;
  738. 304 LOOP
  739. 305 IF NOT GetStrResponse( 'EdtName', LastFileName, EdtFileName ) THEN
  740. ***** ^ not supported yet
  741. ***** ^ not supported yet
  742. ***** ^ not supported yet
  743. ***** ^ not supported yet
  744. 306 RETURN FALSE;
  745. 307 END;
  746. 308 M2Strings.Assign( EdtFileName, LastFileName );
  747. ***** ^ not supported yet
  748. ***** ^ not supported yet
  749. ***** ^ not supported yet
  750. ***** ^ not supported yet
  751. 309 AddExtension( EdtFileName, '.EDT' );
  752. ***** ^ not supported yet
  753. ***** ^ not supported yet
  754. ***** ^ not supported yet
  755. 310 GenLists.NewList( FileList );
  756. ***** ^ not supported yet
  757. ***** ^ not supported yet
  758. ***** ^ not supported yet
  759. 311 IF ListUtils.TextFileToList( EdtFileName, FileList)
  760. ***** ^ not supported yet
  761. ***** ^ not supported yet
  762. ***** ^ not supported yet
  763. ***** ^ not supported yet
  764. 312 = StringIO.NoError THEN
  765. ***** ^ not supported yet
  766. ***** ^ not supported yet
  767. 313 ListUtils.DeTabList( FileList, ListChanged );
  768. ***** ^ not supported yet
  769. ***** ^ not supported yet
  770. ***** ^ not supported yet
  771. ***** ^ not supported yet
  772. 314 EXIT;
  773. 315 ELSIF Yes( 'CreateQ' ) THEN
  774. ***** ^ not supported yet
  775. ***** ^ not supported yet
  776. 316 GenLists.DisposeList( FileList );
  777. ***** ^ not supported yet
  778. ***** ^ not supported yet
  779. ***** ^ not supported yet
  780. 317 GenLists.CopyList( CurrentFrameList, FileList );
  781. ***** ^ not supported yet
  782. ***** ^ not supported yet
  783. ***** ^ not supported yet
  784. ***** ^ not supported yet
  785. 318 InsertCommandDelims( FileList );
  786. ***** ^ not supported yet
  787. ***** ^ not supported yet
  788. 319 (*Won't do anything if there's already something in
  789. 320 CurrentFrameList.*)
  790. 321 ELSE
  791. 322 GenLists.DisposeList( FileList );
  792. ***** ^ not supported yet
  793. ***** ^ not supported yet
  794. ***** ^ not supported yet
  795. 323 IF NOT CmdLineVersion THEN
  796. 324 InputConst2( ScrnCompDsp, 'FileError' );
  797. ***** ^ not supported yet
  798. ***** ^ not supported yet
  799. ***** ^ not supported yet
  800. 325 END;
  801. 326 RETURN FALSE;
  802. 327 END;
  803. 328 END;
  804. 329 FileListLine := 1;
  805. 330 RETURN TRUE;
  806. 331 END ReadNewEdtFile;
  807. ***** ^ not supported yet
  808. 332
  809. 333
  810. 334 PROCEDURE RightVersion( VAR dfile: ScrnTypes.DisplayFile ): BOOLEAN;
  811. ***** ^ not supported yet
  812. 335 VAR
  813. 336 TypeCode: CARDINAL;
  814. 337 tmpstr: ScrnTypes.AFrameName;
  815. ***** ^ not supported yet
  816. 338 BEGIN
  817. 339 IF NdxBones.InitBuffer( dfile, 'RepVers' ) THEN
  818. ***** ^ not supported yet
  819. ***** ^ not supported yet
  820. ***** ^ not supported yet
  821. ***** ^ not supported yet
  822. 340 GenLists.GetElmt( dfile^.ListBuf, 1, tmpstr, TypeCode );
  823. ***** ^ not supported yet
  824. ***** ^ not supported yet
  825. ***** ^ not supported yet
  826. ***** ^ not supported yet
  827. ***** ^ not supported yet
  828. ***** ^ not supported yet
  829. 341 IF PosUtils.Equal( '1.5c', tmpstr ) THEN
  830. ***** ^ not supported yet
  831. ***** ^ not supported yet
  832. ***** ^ not supported yet
  833. ***** ^ not supported yet
  834. 342 RETURN TRUE;
  835. 343 ELSE
  836. 344 DspFiles.CloseDisplayFile( dfile );
  837. ***** ^ not supported yet
  838. ***** ^ not supported yet
  839. ***** ^ not supported yet
  840. 345 RETURN FALSE;
  841. 346 END;
  842. 347 ELSE
  843. 348 DspFiles.CloseDisplayFile( dfile );
  844. ***** ^ not supported yet
  845. ***** ^ not supported yet
  846. ***** ^ not supported yet
  847. 349 RETURN FALSE;
  848. 350 END;
  849. 351 END RightVersion;
  850. ***** ^ not supported yet
  851. 352
  852. 353
  853. 354 PROCEDURE OpenNewDspFile(): BOOLEAN;
  854. 355 BEGIN
  855. 356 IF CurrentDspFile # NIL THEN
  856. ***** ^ not supported yet
  857. 357 DspFiles.CloseDisplayFile( CurrentDspFile );
  858. ***** ^ not supported yet
  859. ***** ^ not supported yet
  860. ***** ^ not supported yet
  861. 358 END;
  862. 359 LOOP
  863. 360 IF NOT GetStrResponse( 'DspName', LastFileName, DspFileName ) THEN
  864. ***** ^ not supported yet
  865. ***** ^ not supported yet
  866. ***** ^ not supported yet
  867. ***** ^ not supported yet
  868. 361 RETURN FALSE;
  869. 362 END;
  870. 363 M2Strings.Assign( DspFileName, LastFileName );
  871. ***** ^ not supported yet
  872. ***** ^ not supported yet
  873. ***** ^ not supported yet
  874. ***** ^ not supported yet
  875. 364 AddExtension( DspFileName, ".DSP" );
  876. ***** ^ not supported yet
  877. ***** ^ not supported yet
  878. ***** ^ not supported yet
  879. 365 IF DspFiles.OpenDisplayFile( CurrentDspFile, DspFileName )
  880. ***** ^ not supported yet
  881. ***** ^ not supported yet
  882. ***** ^ not supported yet
  883. ***** ^ not supported yet
  884. 366 AND RightVersion(CurrentDspFile) THEN
  885. ***** ^ not supported yet
  886. ***** ^ not supported yet
  887. 367 (*Don't let them open a .DSP file created by an
  888. 368 incompatible version of the screen compiler. Make them
  889. 369 start over.*)
  890. 370 EXIT;
  891. 371 ELSIF CmdLineVersion THEN
  892. 372 NdxFiles.CreateNdxFile( CurrentDspFile, DspFileName, "" );
  893. ***** ^ not supported yet
  894. ***** ^ not supported yet
  895. ***** ^ not supported yet
  896. ***** ^ not supported yet
  897. ***** ^ not supported yet
  898. 373 IF NdxFiles.PutField( CurrentDspFile, 'RepVers',
  899. ***** ^ not supported yet
  900. ***** ^ not supported yet
  901. ***** ^ not supported yet
  902. ***** ^ not supported yet
  903. 374 'RECORD', GenLists.StrCode, '1.5c' ) AND
  904. ***** ^ not supported yet
  905. ***** ^ not supported yet
  906. ***** ^ not supported yet
  907. ***** ^ not supported yet
  908. 375 NdxFiles.WriteRecord( CurrentDspFile, 'RepVers' ) THEN
  909. ***** ^ not supported yet
  910. ***** ^ not supported yet
  911. ***** ^ not supported yet
  912. ***** ^ not supported yet
  913. 376 EXIT;
  914. 377 END
  915. 378 ELSE
  916. 379 IF Yes( 'CreateQ' ) THEN
  917. ***** ^ not supported yet
  918. ***** ^ not supported yet
  919. 380 NdxFiles.CreateNdxFile( CurrentDspFile, DspFileName, "" );
  920. ***** ^ not supported yet
  921. ***** ^ not supported yet
  922. ***** ^ not supported yet
  923. ***** ^ not supported yet
  924. ***** ^ not supported yet
  925. 381 IF NdxFiles.PutField( CurrentDspFile, 'RepVers',
  926. ***** ^ not supported yet
  927. ***** ^ not supported yet
  928. ***** ^ not supported yet
  929. ***** ^ not supported yet
  930. 382 'RECORD', GenLists.StrCode, '1.5c' ) AND
  931. ***** ^ not supported yet
  932. ***** ^ not supported yet
  933. ***** ^ not supported yet
  934. ***** ^ not supported yet
  935. 383 NdxFiles.WriteRecord( CurrentDspFile, 'RepVers' ) THEN
  936. ***** ^ not supported yet
  937. ***** ^ not supported yet
  938. ***** ^ not supported yet
  939. ***** ^ not supported yet
  940. 384 EXIT;
  941. 385 END
  942. 386 ELSE
  943. 387 CurrentDspFile := NIL;
  944. ***** ^ not supported yet
  945. 388 RETURN FALSE;
  946. 389 END;
  947. 390 END;
  948. 391 END;
  949. 392 ErrorManager.AddTermProc( CloseCurrentDsp );
  950. ***** ^ not supported yet
  951. ***** ^ not supported yet
  952. ***** ^ not supported yet
  953. 393 RETURN TRUE;
  954. 394 END OpenNewDspFile;
  955. ***** ^ not supported yet
  956. 395
  957. 396
  958. 397 PROCEDURE FrameStart( VAR str: ARRAY OF CHAR ): BOOLEAN;
  959. ***** ^ not supported yet
  960. 398 BEGIN
  961. 399 IF (M2Strings.Length(str) = 0) THEN
  962. ***** ^ not supported yet
  963. ***** ^ not supported yet
  964. ***** ^ not supported yet
  965. 400 RETURN FALSE;
  966. 401 END;
  967. 402 IF (PosUtils.Present( MakeFrame.CommandBeginStr, str)) THEN
  968. ***** ^ not supported yet
  969. ***** ^ not supported yet
  970. ***** ^ not supported yet
  971. ***** ^ not supported yet
  972. ***** ^ not supported yet
  973. 403 IF (syntax = new) THEN
  974. ***** ^ not supported yet
  975. ***** ^ not supported yet
  976. 404 RETURN TRUE;
  977. 405 END;
  978. 406 IF (syntax = unknown) THEN
  979. ***** ^ not supported yet
  980. ***** ^ not supported yet
  981. 407 syntax := new;
  982. ***** ^ not supported yet
  983. ***** ^ not supported yet
  984. 408 RETURN TRUE;
  985. 409 END;
  986. 410 END;
  987. 411 IF (str[0] = ":") THEN
  988. ***** ^ not supported yet
  989. ***** ^ not supported yet
  990. 412 IF (syntax = old) THEN
  991. ***** ^ not supported yet
  992. ***** ^ not supported yet
  993. 413 RETURN TRUE;
  994. 414 END;
  995. 415 IF (syntax = unknown) THEN
  996. ***** ^ not supported yet
  997. ***** ^ not supported yet
  998. 416 syntax := old;
  999. ***** ^ not supported yet
  1000. ***** ^ not supported yet
  1001. 417 RETURN TRUE;
  1002. 418 END;
  1003. 419 END;
  1004. 420 RETURN FALSE;
  1005. 421 END FrameStart;
  1006. ***** ^ not supported yet
  1007. 422
  1008. 423
  1009. 424 PROCEDURE GetNextFrame( FileList: GenLists.GenList; VAR FrameList:
  1010. ***** ^ not supported yet
  1011. 425 GenLists.GenList; VAR StartLine: CARDINAL ): BOOLEAN;
  1012. ***** ^ not supported yet
  1013. 426 (* Gets next frame list out of file list.*)
  1014. 427 VAR
  1015. 428 text: ARRAY [0..255] OF CHAR;
  1016. ***** ^ not supported yet
  1017. ***** ^ not supported yet
  1018. 429 type: CARDINAL;
  1019. 430
  1020. 431 BEGIN
  1021. 432 syntax := unknown;
  1022. ***** ^ not supported yet
  1023. ***** ^ not supported yet
  1024. 433 GenLists.DisposeList( FrameList);
  1025. ***** ^ not supported yet
  1026. ***** ^ not supported yet
  1027. ***** ^ not supported yet
  1028. 434 GenLists.NewList( FrameList);
  1029. ***** ^ not supported yet
  1030. ***** ^ not supported yet
  1031. ***** ^ not supported yet
  1032. 435 (* first, skip until we get to CommandBeginStr or a colon in
  1033. 436 column one *)
  1034. 437 REPEAT
  1035. 438 IF StartLine > GenLists.ListLength( FileList) THEN
  1036. ***** ^ not supported yet
  1037. ***** ^ not supported yet
  1038. ***** ^ not supported yet
  1039. 439 RETURN FALSE;
  1040. 440 END;
  1041. 441 GenLists.GetElmt( FileList, StartLine, text, type);
  1042. ***** ^ not supported yet
  1043. ***** ^ not supported yet
  1044. ***** ^ not supported yet
  1045. ***** ^ not supported yet
  1046. ***** ^ not supported yet
  1047. 442 INC( StartLine);
  1048. ***** ^ undeclared identifier
  1049. ***** ^ not supported yet
  1050. 443 UNTIL FrameStart(text);
  1051. ***** ^ not supported yet
  1052. ***** ^ not supported yet
  1053. 444 (* now copy elements until another FrameStart*)
  1054. 445 REPEAT
  1055. 446 GenLists.ListInsert( text, type, FrameList, 65535);
  1056. ***** ^ not supported yet
  1057. ***** ^ not supported yet
  1058. ***** ^ not supported yet
  1059. ***** ^ not supported yet
  1060. ***** ^ not supported yet
  1061. 447 (* insert in frame *)
  1062. 448 IF StartLine > GenLists.ListLength( FileList) THEN
  1063. ***** ^ not supported yet
  1064. ***** ^ not supported yet
  1065. ***** ^ not supported yet
  1066. 449 RETURN FALSE;
  1067. 450 END;
  1068. 451 GenLists.GetElmt( FileList, StartLine, text, type);
  1069. ***** ^ not supported yet
  1070. ***** ^ not supported yet
  1071. ***** ^ not supported yet
  1072. ***** ^ not supported yet
  1073. ***** ^ not supported yet
  1074. 452 INC( StartLine);
  1075. ***** ^ undeclared identifier
  1076. ***** ^ not supported yet
  1077. 453 UNTIL FrameStart( text );
  1078. ***** ^ not supported yet
  1079. ***** ^ not supported yet
  1080. 454 DEC( StartLine);
  1081. ***** ^ undeclared identifier
  1082. ***** ^ not supported yet
  1083. 455 RETURN TRUE;
  1084. 456 END GetNextFrame;
  1085. ***** ^ not supported yet
  1086. 457
  1087. 458
  1088. 459 PROCEDURE FindFrame( FileList: GenLists.GenList;
  1089. ***** ^ not supported yet
  1090. 460 FrameName: ARRAY OF CHAR; VAR StartLine: CARDINAL ): BOOLEAN;
  1091. ***** ^ not supported yet
  1092. 461 VAR
  1093. 462 text: ARRAY [0..255] OF CHAR;
  1094. ***** ^ not supported yet
  1095. ***** ^ not supported yet
  1096. 463 FoundSpot, type: CARDINAL;
  1097. 464 TmpName: ScrnTypes.AFrameName;
  1098. ***** ^ not supported yet
  1099. 465 BEGIN
  1100. 466 IF NOT GenLists.Initialized( FileList ) THEN
  1101. ***** ^ not supported yet
  1102. ***** ^ not supported yet
  1103. ***** ^ not supported yet
  1104. 467 RETURN FALSE;
  1105. 468 END;
  1106. 469 M2Strings.Assign( FrameName, TmpName );
  1107. ***** ^ not supported yet
  1108. ***** ^ not supported yet
  1109. ***** ^ not supported yet
  1110. ***** ^ not supported yet
  1111. 470 M2Strings.Assign( FrameName, LastFrameName );
  1112. ***** ^ not supported yet
  1113. ***** ^ not supported yet
  1114. ***** ^ not supported yet
  1115. ***** ^ not supported yet
  1116. 471 IF TmpName[0] # ':' THEN
  1117. ***** ^ not supported yet
  1118. ***** ^ not supported yet
  1119. 472 M2Strings.Insert( ':', TmpName, 0 );
  1120. ***** ^ not supported yet
  1121. ***** ^ not supported yet
  1122. ***** ^ not supported yet
  1123. ***** ^ not supported yet
  1124. 473 END;
  1125. 474 StartLine := 0;
  1126. 475 REPEAT
  1127. 476 (*This is John McMonagle's fix for a problem that was
  1128. 477 causing FindFrame to return FALSE when frame names
  1129. 478 appeared by accident in other parts of the frame.*)
  1130. 479 StartLine := GenLists.ScanList( TmpName, FileList, StartLine + 1,
  1131. ***** ^ not supported yet
  1132. ***** ^ not supported yet
  1133. ***** ^ not supported yet
  1134. ***** ^ not supported yet
  1135. 480 GenLists.ListLength(FileList), FoundSpot );
  1136. ***** ^ not supported yet
  1137. ***** ^ not supported yet
  1138. ***** ^ not supported yet
  1139. ***** ^ not supported yet
  1140. 481 IF (StartLine = 0) THEN
  1141. 482 RETURN FALSE;
  1142. 483 END;
  1143. 484 UNTIL FoundSpot = 0;
  1144. 485 syntax := unknown;
  1145. ***** ^ not supported yet
  1146. ***** ^ not supported yet
  1147. 486 GenLists.GetElmt( FileList, StartLine + 1, text, type);
  1148. ***** ^ not supported yet
  1149. ***** ^ not supported yet
  1150. ***** ^ not supported yet
  1151. ***** ^ not supported yet
  1152. ***** ^ not supported yet
  1153. 487 IF FrameStart( text ) THEN
  1154. ***** ^ not supported yet
  1155. ***** ^ not supported yet
  1156. 488 (* The name was outside the frame. *)
  1157. 489 syntax := old;
  1158. ***** ^ not supported yet
  1159. ***** ^ not supported yet
  1160. 490 RETURN TRUE;
  1161. 491 ELSE
  1162. 492 (* Back up until we get to CommandBeginStr or a colon in
  1163. 493 column one.*)
  1164. 494 syntax := new;
  1165. ***** ^ not supported yet
  1166. ***** ^ not supported yet
  1167. 495 REPEAT
  1168. 496 DEC( StartLine );
  1169. ***** ^ undeclared identifier
  1170. ***** ^ not supported yet
  1171. 497 IF StartLine = 0 THEN
  1172. 498 RETURN FALSE;
  1173. 499 END;
  1174. 500 GenLists.GetElmt( FileList, StartLine, text, type );
  1175. ***** ^ not supported yet
  1176. ***** ^ not supported yet
  1177. ***** ^ not supported yet
  1178. ***** ^ not supported yet
  1179. ***** ^ not supported yet
  1180. 501 UNTIL FrameStart(text);
  1181. ***** ^ not supported yet
  1182. ***** ^ not supported yet
  1183. 502 RETURN TRUE;
  1184. 503 END;
  1185. 504 END FindFrame;
  1186. ***** ^ not supported yet
  1187. 505
  1188. 506
  1189. 507 PROCEDURE GetSpecificFrame( FileList: GenLists.GenList;
  1190. ***** ^ not supported yet
  1191. 508 FrameName: ARRAY OF CHAR; VAR FrameList: GenLists.GenList): BOOLEAN;
  1192. ***** ^ not supported yet
  1193. ***** ^ not supported yet
  1194. 509 VAR
  1195. 510 StartLine: CARDINAL;
  1196. 511 BEGIN
  1197. 512 IF NOT FindFrame( FileList, FrameName, StartLine ) THEN
  1198. ***** ^ not supported yet
  1199. ***** ^ not supported yet
  1200. ***** ^ not supported yet
  1201. ***** ^ not supported yet
  1202. 513 RETURN FALSE;
  1203. 514 END;
  1204. 515 IF NOT GetNextFrame( FileList, FrameList, StartLine ) THEN
  1205. ***** ^ not supported yet
  1206. ***** ^ not supported yet
  1207. ***** ^ not supported yet
  1208. ***** ^ not supported yet
  1209. 516 (*It was probably the last frame in the FileList, but we
  1210. 517 don't care about that.*)
  1211. 518 END;
  1212. 519 RETURN TRUE;
  1213. 520 END GetSpecificFrame;
  1214. ***** ^ not supported yet
  1215. 521
  1216. 522
  1217. 523 PROCEDURE DeleteFrame( FileList: GenLists.GenList;
  1218. ***** ^ not supported yet
  1219. 524 FrameName: ARRAY OF CHAR; VAR EndLine: CARDINAL ): BOOLEAN;
  1220. ***** ^ not supported yet
  1221. 525 VAR
  1222. 526 type: CARDINAL;
  1223. 527 text: ARRAY [0..255] OF CHAR;
  1224. ***** ^ not supported yet
  1225. ***** ^ not supported yet
  1226. 528 BEGIN
  1227. 529 IF NOT FindFrame( FileList, FrameName, EndLine ) THEN
  1228. ***** ^ not supported yet
  1229. ***** ^ not supported yet
  1230. ***** ^ not supported yet
  1231. ***** ^ not supported yet
  1232. 530 RETURN FALSE;
  1233. 531 END;
  1234. 532 LOOP
  1235. 533 GenLists.ListDelete( FileList, EndLine, 1 );
  1236. ***** ^ not supported yet
  1237. ***** ^ not supported yet
  1238. ***** ^ not supported yet
  1239. ***** ^ not supported yet
  1240. 534 IF (EndLine > GenLists.ListLength(FileList)) THEN
  1241. ***** ^ not supported yet
  1242. ***** ^ not supported yet
  1243. ***** ^ not supported yet
  1244. 535 EXIT;
  1245. 536 END;
  1246. 537 GenLists.GetElmt( FileList, EndLine, text, type);
  1247. ***** ^ not supported yet
  1248. ***** ^ not supported yet
  1249. ***** ^ not supported yet
  1250. ***** ^ not supported yet
  1251. ***** ^ not supported yet
  1252. 538 IF FrameStart( text ) THEN
  1253. ***** ^ not supported yet
  1254. ***** ^ not supported yet
  1255. 539 EXIT;
  1256. 540 END;
  1257. 541 END;
  1258. 542 RETURN TRUE;
  1259. 543 END DeleteFrame;
  1260. ***** ^ not supported yet
  1261. 544
  1262. 545
  1263. 546 PROCEDURE ShowError( FrameList: GenLists.GenList;
  1264. ***** ^ not supported yet
  1265. 547 FrameName, ErrStr: ARRAY OF CHAR; BadLine: CARDINAL);
  1266. ***** ^ not supported yet
  1267. 548 VAR
  1268. 549 text: ARRAY [0..255] OF CHAR;
  1269. ***** ^ not supported yet
  1270. ***** ^ not supported yet
  1271. 550 caption, numstr: ARRAY [0..15] OF CHAR;
  1272. ***** ^ not supported yet
  1273. ***** ^ not supported yet
  1274. 551 dumc: CARDINAL;
  1275. 552 BEGIN
  1276. 553 text := "Frame: ";
  1277. ***** ^ not supported yet
  1278. ***** ^ not supported yet
  1279. 554 IF M2Strings.Length( FrameName) = 0 THEN
  1280. ***** ^ not supported yet
  1281. ***** ^ not supported yet
  1282. ***** ^ not supported yet
  1283. 555 StrEdit.Append( text, "Unknown" );
  1284. ***** ^ not supported yet
  1285. ***** ^ not supported yet
  1286. ***** ^ not supported yet
  1287. ***** ^ not supported yet
  1288. 556 ELSE
  1289. 557 StrEdit.Append( text, FrameName );
  1290. ***** ^ not supported yet
  1291. ***** ^ not supported yet
  1292. ***** ^ not supported yet
  1293. ***** ^ not supported yet
  1294. 558 END;
  1295. 559 StrEdit.Append( text, ", Line: " );
  1296. ***** ^ not supported yet
  1297. ***** ^ not supported yet
  1298. ***** ^ not supported yet
  1299. ***** ^ not supported yet
  1300. 560 StrConv.CardinalToStr( BadLine, 0, numstr);
  1301. ***** ^ not supported yet
  1302. ***** ^ not supported yet
  1303. ***** ^ not supported yet
  1304. 561 StrEdit.Append( text, numstr );
  1305. ***** ^ not supported yet
  1306. ***** ^ not supported yet
  1307. ***** ^ not supported yet
  1308. ***** ^ not supported yet
  1309. 562 StrEdit.Append( text, '.' );
  1310. ***** ^ not supported yet
  1311. ***** ^ not supported yet
  1312. ***** ^ not supported yet
  1313. ***** ^ not supported yet
  1314. 563 StrEdit.Append( text, ErrStr );
  1315. ***** ^ not supported yet
  1316. ***** ^ not supported yet
  1317. ***** ^ not supported yet
  1318. ***** ^ not supported yet
  1319. 564 caption := 'Error';
  1320. ***** ^ not supported yet
  1321. ***** ^ not supported yet
  1322. 565 dumc := VWindows.MessageBox( VWindows.CurrentWindow, SYSTEM.ADR(text),
  1323. ***** ^ not supported yet
  1324. ***** ^ not supported yet
  1325. ***** ^ not supported yet
  1326. ***** ^ not supported yet
  1327. ***** ^ not supported yet
  1328. ***** ^ not supported yet
  1329. ***** ^ not supported yet
  1330. 566 SYSTEM.ADR(caption), 0 );
  1331. ***** ^ not supported yet
  1332. ***** ^ not supported yet
  1333. ***** ^ not supported yet
  1334. ***** ^ not supported yet
  1335. 567 END ShowError;
  1336. ***** ^ not supported yet
  1337. 568
  1338. 569
  1339. 570 PROCEDURE AddToFile( VAR file: NdxTypes.NdxFileType; OutList: GenLists.GenList;
  1340. ***** ^ not supported yet
  1341. ***** ^ not supported yet
  1342. 571 name: ScrnTypes.AFrameName);
  1343. ***** ^ not supported yet
  1344. 572 VAR
  1345. 573 ErrStr: ARRAY [0..80] OF CHAR;
  1346. ***** ^ not supported yet
  1347. ***** ^ not supported yet
  1348. 574 BEGIN
  1349. 575 IF (NOT NdxFiles.PutField( file, name, "RECORD", GenLists.ListCode,
  1350. ***** ^ not supported yet
  1351. ***** ^ not supported yet
  1352. ***** ^ not supported yet
  1353. ***** ^ not supported yet
  1354. ***** ^ not supported yet
  1355. ***** ^ not supported yet
  1356. ***** ^ not supported yet
  1357. 576 OutList)) OR
  1358. ***** ^ not supported yet
  1359. 577 (NOT NdxFiles.WriteRecord( file, name)) THEN
  1360. ***** ^ not supported yet
  1361. ***** ^ not supported yet
  1362. ***** ^ not supported yet
  1363. ***** ^ not supported yet
  1364. 578 StrEdit.AssignStr( "Can't add to file frame: ", ErrStr);
  1365. ***** ^ not supported yet
  1366. ***** ^ not supported yet
  1367. ***** ^ not supported yet
  1368. ***** ^ not supported yet
  1369. 579 StrEdit.Append( ErrStr, name);
  1370. ***** ^ not supported yet
  1371. ***** ^ not supported yet
  1372. ***** ^ not supported yet
  1373. ***** ^ not supported yet
  1374. 580 ErrorManager.WARN( ErrStr);
  1375. ***** ^ not supported yet
  1376. ***** ^ not supported yet
  1377. ***** ^ not supported yet
  1378. 581 END;
  1379. 582 END AddToFile;
  1380. ***** ^ not supported yet
  1381. 583
  1382. 584
  1383. 585 PROCEDURE DoFileMenu( SelectedChar: CHAR );
  1384. 586 BEGIN
  1385. 587 CASE CAP(SelectedChar) OF
  1386. ***** ^ undeclared identifier
  1387. ***** ^ not supported yet
  1388. 588 'E':
  1389. 589 IF NOT ReadNewEdtFile() THEN END;
  1390. ***** ^ not supported yet
  1391. ***** ^ not supported yet
  1392. 590 | 'D':
  1393. 591 IF NOT OpenNewDspFile() THEN END;
  1394. ***** ^ not supported yet
  1395. ***** ^ not supported yet
  1396. 592 | 'F':
  1397. 593 IF CurrentDspFile = NIL THEN
  1398. ***** ^ not supported yet
  1399. 594 IF NOT OpenNewDspFile() THEN
  1400. ***** ^ not supported yet
  1401. ***** ^ not supported yet
  1402. 595 RETURN;
  1403. 596 END;
  1404. 597 END;
  1405. 598 IF GetStrResponse( 'FramePrompt', LastFrameName, FrameName ) THEN
  1406. ***** ^ not supported yet
  1407. ***** ^ not supported yet
  1408. ***** ^ not supported yet
  1409. ***** ^ not supported yet
  1410. 599 LOOP
  1411. 600 M2Strings.Assign( FrameName, LastFrameName );
  1412. ***** ^ not supported yet
  1413. ***** ^ not supported yet
  1414. ***** ^ not supported yet
  1415. ***** ^ not supported yet
  1416. 601 IF NOT ControlUtils.FrameExists( CurrentDspFile, FrameName ) THEN
  1417. ***** ^ not supported yet
  1418. ***** ^ not supported yet
  1419. ***** ^ not supported yet
  1420. ***** ^ not supported yet
  1421. 602 IF NOT GetStrResponse( 'NewEntry', FrameName, FrameName ) THEN
  1422. ***** ^ not supported yet
  1423. ***** ^ not supported yet
  1424. ***** ^ not supported yet
  1425. ***** ^ not supported yet
  1426. 603 EXIT
  1427. 604 END;
  1428. 605 ELSE
  1429. 606 IF NdxFiles.DeleteRecord( CurrentDspFile, FrameName ) THEN
  1430. ***** ^ not supported yet
  1431. ***** ^ not supported yet
  1432. ***** ^ not supported yet
  1433. ***** ^ not supported yet
  1434. 607 EXIT;
  1435. 608 END;
  1436. 609 END;
  1437. 610 END;
  1438. 611 END;
  1439. 612 | 'C':
  1440. 613 IF CurrentDspFile = NIL THEN
  1441. ***** ^ not supported yet
  1442. 614 IF NOT OpenNewDspFile() THEN
  1443. ***** ^ not supported yet
  1444. ***** ^ not supported yet
  1445. 615 RETURN;
  1446. 616 END;
  1447. 617 END;
  1448. 618 NdxUtils.CrunchNdxFile( CurrentDspFile );
  1449. ***** ^ not supported yet
  1450. ***** ^ not supported yet
  1451. ***** ^ not supported yet
  1452. 619 END;
  1453. 620 END DoFileMenu;
  1454. ***** ^ not supported yet
  1455. 621
  1456. 622
  1457. 623 PROCEDURE DoEditMenu( SelectedChar: CHAR );
  1458. 624 VAR
  1459. 625 TmpRec: VEditor.AnEdControlRec;
  1460. ***** ^ not supported yet
  1461. 626 FrameName: ScrnTypes.AFrameName;
  1462. ***** ^ not supported yet
  1463. 627 FileName: ARRAY [0..79] OF CHAR;
  1464. ***** ^ not supported yet
  1465. ***** ^ not supported yet
  1466. 628 LineTotalStr: ARRAY [0..15] OF CHAR;
  1467. ***** ^ not supported yet
  1468. ***** ^ not supported yet
  1469. 629 TmpList: GenLists.GenList;
  1470. ***** ^ not supported yet
  1471. 630 EndLine, BadLine: CARDINAL;
  1472. 631 WorkFrame: ScrnTypes.DisplayFrame;
  1473. ***** ^ not supported yet
  1474. 632 StatusFrame: ScrnTypes.DisplayFrame;
  1475. ***** ^ not supported yet
  1476. 633 SavedMessage: CARDINAL;
  1477. 634 BEGIN
  1478. 635 VEditor.InitEdRec( TmpRec );
  1479. ***** ^ not supported yet
  1480. ***** ^ not supported yet
  1481. ***** ^ not supported yet
  1482. 636 TmpRec.DoCounting := FALSE;
  1483. ***** ^ not supported yet
  1484. ***** ^ not supported yet
  1485. 637 CASE CAP(SelectedChar) OF
  1486. ***** ^ undeclared identifier
  1487. ***** ^ not supported yet
  1488. 638 'E':
  1489. 639 IF NOT GenLists.Initialized( FileList ) THEN
  1490. ***** ^ not supported yet
  1491. ***** ^ not supported yet
  1492. ***** ^ not supported yet
  1493. 640 IF NOT ReadNewEdtFile() THEN
  1494. ***** ^ not supported yet
  1495. ***** ^ not supported yet
  1496. 641 RETURN;
  1497. 642 END;
  1498. 643 END;
  1499. 644 CallEditor( FileList, TmpRec );
  1500. ***** ^ not supported yet
  1501. ***** ^ not supported yet
  1502. ***** ^ not supported yet
  1503. 645 IF TmpRec.ChangeMade THEN
  1504. ***** ^ not supported yet
  1505. ***** ^ not supported yet
  1506. 646 IF Yes( 'SaveQ' ) THEN
  1507. ***** ^ not supported yet
  1508. ***** ^ not supported yet
  1509. 647 IF StringIO.NoError # ListUtils.TextListToFile( FileList,
  1510. ***** ^ not supported yet
  1511. ***** ^ not supported yet
  1512. ***** ^ not supported yet
  1513. ***** ^ not supported yet
  1514. ***** ^ not supported yet
  1515. 648 EdtFileName ) THEN
  1516. ***** ^ not supported yet
  1517. 649 InputConst2( ScrnCompDsp, 'FileError' );
  1518. ***** ^ not supported yet
  1519. ***** ^ not supported yet
  1520. ***** ^ not supported yet
  1521. 650 END;
  1522. 651 END;
  1523. 652 END;
  1524. 653 | 'S':
  1525. 654 IF GetStrResponse( 'FramePrompt', LastFrameName, FrameName ) THEN
  1526. ***** ^ not supported yet
  1527. ***** ^ not supported yet
  1528. ***** ^ not supported yet
  1529. ***** ^ not supported yet
  1530. 655 M2Strings.Assign( FrameName, LastFrameName );
  1531. ***** ^ not supported yet
  1532. ***** ^ not supported yet
  1533. ***** ^ not supported yet
  1534. ***** ^ not supported yet
  1535. 656 IF GetSpecificFrame( FileList, FrameName, CurrentFrameList ) THEN
  1536. ***** ^ not supported yet
  1537. ***** ^ not supported yet
  1538. ***** ^ not supported yet
  1539. ***** ^ not supported yet
  1540. 657 CallEditor( CurrentFrameList, TmpRec );
  1541. ***** ^ not supported yet
  1542. ***** ^ not supported yet
  1543. ***** ^ not supported yet
  1544. 658 IF TmpRec.ChangeMade THEN
  1545. ***** ^ not supported yet
  1546. ***** ^ not supported yet
  1547. 659 IF DeleteFrame( FileList, FrameName, EndLine ) THEN
  1548. ***** ^ not supported yet
  1549. ***** ^ not supported yet
  1550. ***** ^ not supported yet
  1551. ***** ^ not supported yet
  1552. 660 ListUtils.InsertElmtsOf( CurrentFrameList, 1, 65535,
  1553. ***** ^ not supported yet
  1554. ***** ^ not supported yet
  1555. ***** ^ not supported yet
  1556. 661 FileList, EndLine );
  1557. ***** ^ not supported yet
  1558. ***** ^ not supported yet
  1559. 662 END;
  1560. 663 IF Yes( 'DisplayQ' ) THEN
  1561. ***** ^ not supported yet
  1562. ***** ^ not supported yet
  1563. 664 ScrnTypes.InitDisplayFrame( WorkFrame,
  1564. ***** ^ not supported yet
  1565. ***** ^ not supported yet
  1566. ***** ^ not supported yet
  1567. 665 VWindows.CurrentWindow );
  1568. ***** ^ not supported yet
  1569. ***** ^ not supported yet
  1570. 666 WorkFrame^.FromFile := CurrentDspFile;
  1571. ***** ^ not supported yet
  1572. ***** ^ not supported yet
  1573. ***** ^ not supported yet
  1574. 667 MakeFrame.CompileFrame( CurrentFrameList,
  1575. ***** ^ not supported yet
  1576. ***** ^ not supported yet
  1577. ***** ^ not supported yet
  1578. 668 OutFrameList, FrameName, ErrStr, BadLine);
  1579. ***** ^ not supported yet
  1580. ***** ^ not supported yet
  1581. ***** ^ not supported yet
  1582. ***** ^ not supported yet
  1583. 669 M2Strings.Assign( FrameName, LastFrameName );
  1584. ***** ^ not supported yet
  1585. ***** ^ not supported yet
  1586. ***** ^ not supported yet
  1587. ***** ^ not supported yet
  1588. 670 IF BadLine = 0 THEN
  1589. 671 DspFiles.GetFrameFromList( OutFrameList, WorkFrame );
  1590. ***** ^ not supported yet
  1591. ***** ^ not supported yet
  1592. ***** ^ not supported yet
  1593. ***** ^ not supported yet
  1594. 672 FramePainter.ShowDisplayFrame( WorkFrame, 0, 0, 0, 0 );
  1595. ***** ^ not supported yet
  1596. ***** ^ not supported yet
  1597. ***** ^ not supported yet
  1598. ***** ^ not supported yet
  1599. 673 InputManager.ControlFrame( WorkFrame, 1, '',
  1600. ***** ^ not supported yet
  1601. ***** ^ not supported yet
  1602. ***** ^ not supported yet
  1603. 674 FALSE, NextFrame );
  1604. ***** ^ not supported yet
  1605. 675 ELSE
  1606. 676 ShowError( CurrentFrameList, FrameName, ErrStr, BadLine);
  1607. ***** ^ not supported yet
  1608. ***** ^ not supported yet
  1609. ***** ^ not supported yet
  1610. ***** ^ not supported yet
  1611. ***** ^ not supported yet
  1612. 677 END;
  1613. 678 ScrnUtl2.CloseDisplayFrame( WorkFrame );
  1614. ***** ^ not supported yet
  1615. ***** ^ not supported yet
  1616. ***** ^ not supported yet
  1617. 679 END;
  1618. 680 IF Yes( 'SaveQ' ) THEN
  1619. ***** ^ not supported yet
  1620. ***** ^ not supported yet
  1621. 681 IF StringIO.NoError # ListUtils.TextListToFile( FileList,
  1622. ***** ^ not supported yet
  1623. ***** ^ not supported yet
  1624. ***** ^ not supported yet
  1625. ***** ^ not supported yet
  1626. ***** ^ not supported yet
  1627. 682 EdtFileName ) THEN
  1628. ***** ^ not supported yet
  1629. 683 InputConst2( ScrnCompDsp, 'FileError' );
  1630. ***** ^ not supported yet
  1631. ***** ^ not supported yet
  1632. ***** ^ not supported yet
  1633. 684 END;
  1634. 685 END;
  1635. 686 END;
  1636. 687 END;
  1637. 688 END;
  1638. 689 | 'F':
  1639. 690 IF CurrentDspFile = NIL THEN
  1640. ***** ^ not supported yet
  1641. 691 IF NOT OpenNewDspFile() THEN
  1642. ***** ^ not supported yet
  1643. ***** ^ not supported yet
  1644. 692 RETURN;
  1645. 693 END;
  1646. 694 END;
  1647. 695 ScrnTypes.InitDisplayFrame( WorkFrame, VWindows.CurrentWindow );
  1648. ***** ^ not supported yet
  1649. ***** ^ not supported yet
  1650. ***** ^ not supported yet
  1651. ***** ^ not supported yet
  1652. ***** ^ not supported yet
  1653. 696 WorkFrame^.FromFile := CurrentDspFile;
  1654. ***** ^ not supported yet
  1655. ***** ^ not supported yet
  1656. ***** ^ not supported yet
  1657. 697 LOOP
  1658. 698 InsertCommandDelims( CurrentFrameList );
  1659. ***** ^ not supported yet
  1660. ***** ^ not supported yet
  1661. 699 CallEditor( CurrentFrameList, TmpRec );
  1662. ***** ^ not supported yet
  1663. ***** ^ not supported yet
  1664. ***** ^ not supported yet
  1665. 700 IF TmpRec.ChangeMade THEN
  1666. ***** ^ not supported yet
  1667. ***** ^ not supported yet
  1668. 701 IF DeleteFrame( FileList, LastFrameName, EndLine ) THEN
  1669. ***** ^ not supported yet
  1670. ***** ^ not supported yet
  1671. ***** ^ not supported yet
  1672. ***** ^ not supported yet
  1673. 702 ListUtils.InsertElmtsOf( CurrentFrameList, 1,
  1674. ***** ^ not supported yet
  1675. ***** ^ not supported yet
  1676. ***** ^ not supported yet
  1677. 703 65535, FileList, EndLine );
  1678. ***** ^ not supported yet
  1679. ***** ^ not supported yet
  1680. 704 END;
  1681. 705 END;
  1682. 706 IF NOT Yes( 'DisplayQ' ) THEN
  1683. ***** ^ not supported yet
  1684. ***** ^ not supported yet
  1685. 707 EXIT;
  1686. 708 END;
  1687. 709 MakeFrame.CompileFrame( CurrentFrameList,
  1688. ***** ^ not supported yet
  1689. ***** ^ not supported yet
  1690. ***** ^ not supported yet
  1691. 710 OutFrameList, FrameName, ErrStr, BadLine);
  1692. ***** ^ not supported yet
  1693. ***** ^ not supported yet
  1694. ***** ^ not supported yet
  1695. ***** ^ not supported yet
  1696. 711 M2Strings.Assign( FrameName, LastFrameName );
  1697. ***** ^ not supported yet
  1698. ***** ^ not supported yet
  1699. ***** ^ not supported yet
  1700. ***** ^ not supported yet
  1701. 712 IF BadLine = 0 THEN
  1702. 713 DspFiles.GetFrameFromList( OutFrameList, WorkFrame );
  1703. ***** ^ not supported yet
  1704. ***** ^ not supported yet
  1705. ***** ^ not supported yet
  1706. ***** ^ not supported yet
  1707. 714 FramePainter.ShowDisplayFrame( WorkFrame, 0, 0, 0, 0 );
  1708. ***** ^ not supported yet
  1709. ***** ^ not supported yet
  1710. ***** ^ not supported yet
  1711. ***** ^ not supported yet
  1712. 715 InputManager.ControlFrame( WorkFrame, 1, '', FALSE, NextFrame );
  1713. ***** ^ not supported yet
  1714. ***** ^ not supported yet
  1715. ***** ^ not supported yet
  1716. ***** ^ not supported yet
  1717. 716 ELSE
  1718. 717 ShowError( CurrentFrameList, FrameName, ErrStr, BadLine);
  1719. ***** ^ not supported yet
  1720. ***** ^ not supported yet
  1721. ***** ^ not supported yet
  1722. ***** ^ not supported yet
  1723. ***** ^ not supported yet
  1724. 718 END;
  1725. 719 END;
  1726. 720 IF Yes( 'SaveQ' ) THEN
  1727. ***** ^ not supported yet
  1728. ***** ^ not supported yet
  1729. 721 IF StringIO.NoError # ListUtils.TextListToFile( FileList,
  1730. ***** ^ not supported yet
  1731. ***** ^ not supported yet
  1732. ***** ^ not supported yet
  1733. ***** ^ not supported yet
  1734. ***** ^ not supported yet
  1735. 722 EdtFileName ) THEN
  1736. ***** ^ not supported yet
  1737. 723 InputConst2( ScrnCompDsp, 'FileError' );
  1738. ***** ^ not supported yet
  1739. ***** ^ not supported yet
  1740. ***** ^ not supported yet
  1741. 724 END;
  1742. 725 END;
  1743. 726 ScrnUtl2.CloseDisplayFrame( WorkFrame );
  1744. ***** ^ not supported yet
  1745. ***** ^ not supported yet
  1746. ***** ^ not supported yet
  1747. 727
  1748. 728 | 'A':
  1749. 729 IF GetStrResponse( 'FileName', LastFileName, FileName ) THEN
  1750. ***** ^ not supported yet
  1751. ***** ^ not supported yet
  1752. ***** ^ not supported yet
  1753. ***** ^ not supported yet
  1754. 730 M2Strings.Assign( FileName, LastFileName );
  1755. ***** ^ not supported yet
  1756. ***** ^ not supported yet
  1757. ***** ^ not supported yet
  1758. ***** ^ not supported yet
  1759. 731 GenLists.NewList( TmpList );
  1760. ***** ^ not supported yet
  1761. ***** ^ not supported yet
  1762. ***** ^ not supported yet
  1763. 732 SavedMessage := ListUtils.TextFileToList( FileName,
  1764. ***** ^ not supported yet
  1765. ***** ^ not supported yet
  1766. ***** ^ not supported yet
  1767. 733 TmpList );
  1768. ***** ^ not supported yet
  1769. 734 IF (SavedMessage # StringIO.NoError) AND
  1770. ***** ^ not supported yet
  1771. ***** ^ not supported yet
  1772. 735 (SavedMessage # StringIO.FileNotFound) THEN
  1773. ***** ^ not supported yet
  1774. ***** ^ not supported yet
  1775. 736 InputConst2( ScrnCompDsp, 'FileError' );
  1776. ***** ^ not supported yet
  1777. ***** ^ not supported yet
  1778. ***** ^ not supported yet
  1779. 737 ELSE
  1780. 738 IF SavedMessage = StringIO.FileNotFound THEN
  1781. ***** ^ not supported yet
  1782. ***** ^ not supported yet
  1783. 739 IF NOT Yes( 'CreateQ' ) THEN
  1784. ***** ^ not supported yet
  1785. ***** ^ not supported yet
  1786. 740 RETURN;
  1787. 741 END;
  1788. 742 END;
  1789. 743 ListUtils.DeTabList( TmpList, ListChanged );
  1790. ***** ^ not supported yet
  1791. ***** ^ not supported yet
  1792. ***** ^ not supported yet
  1793. ***** ^ not supported yet
  1794. 744 CallEditor( TmpList, TmpRec );
  1795. ***** ^ not supported yet
  1796. ***** ^ not supported yet
  1797. ***** ^ not supported yet
  1798. 745 IF TmpRec.ChangeMade THEN
  1799. ***** ^ not supported yet
  1800. ***** ^ not supported yet
  1801. 746 IF Yes( 'SaveQ' ) THEN
  1802. ***** ^ not supported yet
  1803. ***** ^ not supported yet
  1804. 747 ScrnTypes.InitDisplayFrame( StatusFrame,
  1805. ***** ^ not supported yet
  1806. ***** ^ not supported yet
  1807. ***** ^ not supported yet
  1808. 748 VWindows.CurrentWindow );
  1809. ***** ^ not supported yet
  1810. ***** ^ not supported yet
  1811. 749 ScrnUtl2.ReadAndShow( ScrnCompDsp, StatusFrame,
  1812. ***** ^ not supported yet
  1813. ***** ^ not supported yet
  1814. ***** ^ not supported yet
  1815. ***** ^ not supported yet
  1816. 750 'StatusFrame' );
  1817. ***** ^ not supported yet
  1818. 751 UpdateStatus( StatusFrame, 'line1',
  1819. ***** ^ not supported yet
  1820. ***** ^ not supported yet
  1821. ***** ^ not supported yet
  1822. 752 'Writing' );
  1823. ***** ^ not supported yet
  1824. 753 StrConv.CardinalToStr(
  1825. ***** ^ not supported yet
  1826. ***** ^ not supported yet
  1827. 754 GenLists.ListLength(TmpList), 0,
  1828. ***** ^ not supported yet
  1829. ***** ^ not supported yet
  1830. ***** ^ not supported yet
  1831. 755 LineTotalStr );
  1832. ***** ^ not supported yet
  1833. 756 UpdateStatus( StatusFrame, 'line2',
  1834. ***** ^ not supported yet
  1835. ***** ^ not supported yet
  1836. ***** ^ not supported yet
  1837. 757 LineTotalStr );
  1838. ***** ^ not supported yet
  1839. 758 UpdateStatus( StatusFrame, 'line3',
  1840. ***** ^ not supported yet
  1841. ***** ^ not supported yet
  1842. ***** ^ not supported yet
  1843. 759 'lines.' );
  1844. ***** ^ not supported yet
  1845. 760 IF StringIO.NoError # ListUtils.TextListToFile(
  1846. ***** ^ not supported yet
  1847. ***** ^ not supported yet
  1848. ***** ^ not supported yet
  1849. ***** ^ not supported yet
  1850. 761 TmpList, FileName ) THEN
  1851. ***** ^ not supported yet
  1852. ***** ^ not supported yet
  1853. 762 InputConst2( ScrnCompDsp, 'FileError' );
  1854. ***** ^ not supported yet
  1855. ***** ^ not supported yet
  1856. ***** ^ not supported yet
  1857. 763 END;
  1858. 764 FrameManager.EraseFrame( StatusFrame );
  1859. ***** ^ not supported yet
  1860. ***** ^ not supported yet
  1861. ***** ^ not supported yet
  1862. 765 ScrnUtl2.CloseDisplayFrame( StatusFrame );
  1863. ***** ^ not supported yet
  1864. ***** ^ not supported yet
  1865. ***** ^ not supported yet
  1866. 766 END;
  1867. 767 END;
  1868. 768 END;
  1869. 769 GenLists.DisposeList( TmpList );
  1870. ***** ^ not supported yet
  1871. ***** ^ not supported yet
  1872. ***** ^ not supported yet
  1873. 770 END;
  1874. 771 END;
  1875. 772 END DoEditMenu;
  1876. ***** ^ not supported yet
  1877. 773
  1878. 774
  1879. 775 PROCEDURE DoCompMenu( SelectedChar: CHAR );
  1880. 776 VAR
  1881. 777 TmpRec: VEditor.AnEdControlRec;
  1882. ***** ^ not supported yet
  1883. 778 ChangeMade : BOOLEAN;
  1884. 779 EndLine: CARDINAL;
  1885. 780 StatusFrame: ScrnTypes.DisplayFrame;
  1886. ***** ^ not supported yet
  1887. 781
  1888. 782 BEGIN
  1889. 783 IF CurrentDspFile = NIL THEN
  1890. ***** ^ not supported yet
  1891. 784 IF NOT OpenNewDspFile() THEN
  1892. ***** ^ not supported yet
  1893. ***** ^ not supported yet
  1894. 785 RETURN;
  1895. 786 END;
  1896. 787 END;
  1897. 788 VEditor.InitEdRec( TmpRec );
  1898. ***** ^ not supported yet
  1899. ***** ^ not supported yet
  1900. ***** ^ not supported yet
  1901. 789 TmpRec.DoCounting := FALSE;
  1902. ***** ^ not supported yet
  1903. ***** ^ not supported yet
  1904. 790 ChangeMade := FALSE;
  1905. 791 CASE CAP(SelectedChar) OF
  1906. ***** ^ undeclared identifier
  1907. ***** ^ not supported yet
  1908. 792 'E' :
  1909. 793 IF NOT GenLists.Initialized( FileList ) THEN
  1910. ***** ^ not supported yet
  1911. ***** ^ not supported yet
  1912. ***** ^ not supported yet
  1913. 794 IF NOT ReadNewEdtFile() THEN
  1914. ***** ^ not supported yet
  1915. ***** ^ not supported yet
  1916. 795 RETURN;
  1917. 796 END;
  1918. 797 END;
  1919. 798 AtEndOfList := FALSE;
  1920. 799 FileListLine := 1;
  1921. 800 ScrnTypes.InitDisplayFrame( StatusFrame, VWindows.CurrentWindow );
  1922. ***** ^ not supported yet
  1923. ***** ^ not supported yet
  1924. ***** ^ not supported yet
  1925. ***** ^ not supported yet
  1926. ***** ^ not supported yet
  1927. 801 ScrnUtl2.ReadAndShow( ScrnCompDsp, StatusFrame, 'StatusFrame' );
  1928. ***** ^ not supported yet
  1929. ***** ^ not supported yet
  1930. ***** ^ not supported yet
  1931. ***** ^ not supported yet
  1932. ***** ^ not supported yet
  1933. 802 UpdateStatus( StatusFrame, 'line1', 'Processing' );
  1934. ***** ^ not supported yet
  1935. ***** ^ not supported yet
  1936. ***** ^ not supported yet
  1937. ***** ^ not supported yet
  1938. 803 WHILE NOT AtEndOfList DO
  1939. 804 AtEndOfList := NOT GetNextFrame( FileList,
  1940. ***** ^ not supported yet
  1941. ***** ^ not supported yet
  1942. 805 CurrentFrameList, FileListLine );
  1943. ***** ^ not supported yet
  1944. ***** ^ not supported yet
  1945. 806 IF GenLists.ListLength( CurrentFrameList) > 0 THEN
  1946. ***** ^ not supported yet
  1947. ***** ^ not supported yet
  1948. ***** ^ not supported yet
  1949. 807 BadLine := 1;
  1950. 808 WHILE BadLine # 0 DO
  1951. 809 MakeFrame.CompileFrame( CurrentFrameList,
  1952. ***** ^ not supported yet
  1953. ***** ^ not supported yet
  1954. ***** ^ not supported yet
  1955. 810 OutFrameList, FrameName, ErrStr, BadLine);
  1956. ***** ^ not supported yet
  1957. ***** ^ not supported yet
  1958. ***** ^ not supported yet
  1959. ***** ^ not supported yet
  1960. 811 M2Strings.Assign( FrameName, LastFrameName );
  1961. ***** ^ not supported yet
  1962. ***** ^ not supported yet
  1963. ***** ^ not supported yet
  1964. ***** ^ not supported yet
  1965. 812 UpdateStatus( StatusFrame, 'line2', FrameName );
  1966. ***** ^ not supported yet
  1967. ***** ^ not supported yet
  1968. ***** ^ not supported yet
  1969. ***** ^ not supported yet
  1970. 813 IF BadLine # 0 THEN
  1971. 814 ShowError( CurrentFrameList, FrameName, ErrStr, BadLine);
  1972. ***** ^ not supported yet
  1973. ***** ^ not supported yet
  1974. ***** ^ not supported yet
  1975. ***** ^ not supported yet
  1976. ***** ^ not supported yet
  1977. 815 IF Yes( 'EditQ' ) THEN
  1978. ***** ^ not supported yet
  1979. ***** ^ not supported yet
  1980. 816 TmpRec.CursorRow := BadLine;
  1981. ***** ^ not supported yet
  1982. ***** ^ not supported yet
  1983. 817 CallEditor( CurrentFrameList, TmpRec );
  1984. ***** ^ not supported yet
  1985. ***** ^ not supported yet
  1986. ***** ^ not supported yet
  1987. 818 IF TmpRec.ChangeMade THEN
  1988. ***** ^ not supported yet
  1989. ***** ^ not supported yet
  1990. 819 IF DeleteFrame( FileList, LastFrameName, EndLine ) THEN
  1991. ***** ^ not supported yet
  1992. ***** ^ not supported yet
  1993. ***** ^ not supported yet
  1994. ***** ^ not supported yet
  1995. 820 ListUtils.InsertElmtsOf( CurrentFrameList, 1, 65535,
  1996. ***** ^ not supported yet
  1997. ***** ^ not supported yet
  1998. ***** ^ not supported yet
  1999. 821 FileList, EndLine );
  2000. ***** ^ not supported yet
  2001. ***** ^ not supported yet
  2002. 822 END;
  2003. 823 END;
  2004. 824 BadLine := 0;
  2005. 825 IF TmpRec.ChangeMade THEN
  2006. ***** ^ not supported yet
  2007. ***** ^ not supported yet
  2008. 826 ChangeMade := TRUE;
  2009. 827 END;
  2010. 828 END;
  2011. 829 ELSE
  2012. 830 AddToFile( CurrentDspFile, OutFrameList, FrameName);
  2013. ***** ^ not supported yet
  2014. ***** ^ not supported yet
  2015. ***** ^ not supported yet
  2016. ***** ^ not supported yet
  2017. 831 END;
  2018. 832 END;
  2019. 833 END;
  2020. 834 END;
  2021. 835 FrameManager.EraseFrame( StatusFrame );
  2022. ***** ^ not supported yet
  2023. ***** ^ not supported yet
  2024. ***** ^ not supported yet
  2025. 836 ScrnUtl2.CloseDisplayFrame( StatusFrame );
  2026. ***** ^ not supported yet
  2027. ***** ^ not supported yet
  2028. ***** ^ not supported yet
  2029. 837 IF ChangeMade THEN
  2030. 838 IF Yes( 'SaveQ' ) THEN
  2031. ***** ^ not supported yet
  2032. ***** ^ not supported yet
  2033. 839 IF StringIO.NoError # ListUtils.TextListToFile( FileList,
  2034. ***** ^ not supported yet
  2035. ***** ^ not supported yet
  2036. ***** ^ not supported yet
  2037. ***** ^ not supported yet
  2038. ***** ^ not supported yet
  2039. 840 EdtFileName ) THEN
  2040. ***** ^ not supported yet
  2041. 841 InputConst2( ScrnCompDsp, 'FileError' );
  2042. ***** ^ not supported yet
  2043. ***** ^ not supported yet
  2044. ***** ^ not supported yet
  2045. 842 END;
  2046. 843 END;
  2047. 844 END;
  2048. 845
  2049. 846 | 'S' :
  2050. 847 IF NOT GenLists.Initialized( FileList ) THEN
  2051. ***** ^ not supported yet
  2052. ***** ^ not supported yet
  2053. ***** ^ not supported yet
  2054. 848 IF NOT ReadNewEdtFile() THEN
  2055. ***** ^ not supported yet
  2056. ***** ^ not supported yet
  2057. 849 RETURN;
  2058. 850 END;
  2059. 851 END;
  2060. 852 IF GetStrResponse( 'FramePrompt', LastFrameName, FrameName ) THEN
  2061. ***** ^ not supported yet
  2062. ***** ^ not supported yet
  2063. ***** ^ not supported yet
  2064. ***** ^ not supported yet
  2065. 853 M2Strings.Assign( FrameName, LastFrameName );
  2066. ***** ^ not supported yet
  2067. ***** ^ not supported yet
  2068. ***** ^ not supported yet
  2069. ***** ^ not supported yet
  2070. 854 IF GetSpecificFrame( FileList, FrameName, CurrentFrameList ) THEN
  2071. ***** ^ not supported yet
  2072. ***** ^ not supported yet
  2073. ***** ^ not supported yet
  2074. ***** ^ not supported yet
  2075. 855 MakeFrame.CompileFrame( CurrentFrameList,
  2076. ***** ^ not supported yet
  2077. ***** ^ not supported yet
  2078. ***** ^ not supported yet
  2079. 856 OutFrameList, FrameName, ErrStr, BadLine);
  2080. ***** ^ not supported yet
  2081. ***** ^ not supported yet
  2082. ***** ^ not supported yet
  2083. ***** ^ not supported yet
  2084. 857 M2Strings.Assign( FrameName, LastFrameName );
  2085. ***** ^ not supported yet
  2086. ***** ^ not supported yet
  2087. ***** ^ not supported yet
  2088. ***** ^ not supported yet
  2089. 858 IF BadLine = 0 THEN
  2090. 859 IF Yes( 'StoreQ' ) THEN
  2091. ***** ^ not supported yet
  2092. ***** ^ not supported yet
  2093. 860 AddToFile( CurrentDspFile, OutFrameList, FrameName);
  2094. ***** ^ not supported yet
  2095. ***** ^ not supported yet
  2096. ***** ^ not supported yet
  2097. ***** ^ not supported yet
  2098. 861 END;
  2099. 862 ELSE
  2100. 863 ShowError( CurrentFrameList, FrameName, ErrStr, BadLine);
  2101. ***** ^ not supported yet
  2102. ***** ^ not supported yet
  2103. ***** ^ not supported yet
  2104. ***** ^ not supported yet
  2105. ***** ^ not supported yet
  2106. 864 IF Yes( 'EditQ' ) THEN
  2107. ***** ^ not supported yet
  2108. ***** ^ not supported yet
  2109. 865 TmpRec.CursorRow := BadLine;
  2110. ***** ^ not supported yet
  2111. ***** ^ not supported yet
  2112. 866 CallEditor( CurrentFrameList, TmpRec );
  2113. ***** ^ not supported yet
  2114. ***** ^ not supported yet
  2115. ***** ^ not supported yet
  2116. 867 IF TmpRec.ChangeMade THEN
  2117. ***** ^ not supported yet
  2118. ***** ^ not supported yet
  2119. 868 IF DeleteFrame( FileList, LastFrameName, EndLine ) THEN
  2120. ***** ^ not supported yet
  2121. ***** ^ not supported yet
  2122. ***** ^ not supported yet
  2123. ***** ^ not supported yet
  2124. 869 ListUtils.InsertElmtsOf( CurrentFrameList, 1, 65535,
  2125. ***** ^ not supported yet
  2126. ***** ^ not supported yet
  2127. ***** ^ not supported yet
  2128. 870 FileList, EndLine );
  2129. ***** ^ not supported yet
  2130. ***** ^ not supported yet
  2131. 871 END;
  2132. 872 END;
  2133. 873 END;
  2134. 874 END;
  2135. 875 END;
  2136. 876 END;
  2137. 877 | 'C' :
  2138. 878 IF GenLists.ListLength( CurrentFrameList ) = 0 THEN
  2139. ***** ^ not supported yet
  2140. ***** ^ not supported yet
  2141. ***** ^ not supported yet
  2142. 879 InputConst2( ScrnCompDsp, 'NoCurrent' );
  2143. ***** ^ not supported yet
  2144. ***** ^ not supported yet
  2145. ***** ^ not supported yet
  2146. 880 RETURN;
  2147. 881 END;
  2148. 882 MakeFrame.CompileFrame( CurrentFrameList, OutFrameList, FrameName,
  2149. ***** ^ not supported yet
  2150. ***** ^ not supported yet
  2151. ***** ^ not supported yet
  2152. ***** ^ not supported yet
  2153. ***** ^ not supported yet
  2154. 883 ErrStr, BadLine);
  2155. ***** ^ not supported yet
  2156. ***** ^ not supported yet
  2157. 884 M2Strings.Assign( FrameName, LastFrameName );
  2158. ***** ^ not supported yet
  2159. ***** ^ not supported yet
  2160. ***** ^ not supported yet
  2161. ***** ^ not supported yet
  2162. 885 IF BadLine = 0 THEN
  2163. 886 IF Yes( 'StoreQ' ) THEN
  2164. ***** ^ not supported yet
  2165. ***** ^ not supported yet
  2166. 887 AddToFile( CurrentDspFile, OutFrameList, FrameName);
  2167. ***** ^ not supported yet
  2168. ***** ^ not supported yet
  2169. ***** ^ not supported yet
  2170. ***** ^ not supported yet
  2171. 888 END;
  2172. 889 ELSE
  2173. 890 ShowError( CurrentFrameList, FrameName, ErrStr, BadLine);
  2174. ***** ^ not supported yet
  2175. ***** ^ not supported yet
  2176. ***** ^ not supported yet
  2177. ***** ^ not supported yet
  2178. ***** ^ not supported yet
  2179. 891 IF Yes( 'EditQ' ) THEN
  2180. ***** ^ not supported yet
  2181. ***** ^ not supported yet
  2182. 892 TmpRec.CursorRow := BadLine;
  2183. ***** ^ not supported yet
  2184. ***** ^ not supported yet
  2185. 893 CallEditor( CurrentFrameList, TmpRec );
  2186. ***** ^ not supported yet
  2187. ***** ^ not supported yet
  2188. ***** ^ not supported yet
  2189. 894 IF TmpRec.ChangeMade THEN
  2190. ***** ^ not supported yet
  2191. ***** ^ not supported yet
  2192. 895 IF DeleteFrame( FileList, LastFrameName, EndLine ) THEN
  2193. ***** ^ not supported yet
  2194. ***** ^ not supported yet
  2195. ***** ^ not supported yet
  2196. ***** ^ not supported yet
  2197. 896 ListUtils.InsertElmtsOf( CurrentFrameList, 1, 65535,
  2198. ***** ^ not supported yet
  2199. ***** ^ not supported yet
  2200. ***** ^ not supported yet
  2201. 897 FileList, EndLine );
  2202. ***** ^ not supported yet
  2203. ***** ^ not supported yet
  2204. 898 END;
  2205. 899 END;
  2206. 900 END;
  2207. 901 END;
  2208. 902 END;
  2209. 903 END DoCompMenu;
  2210. ***** ^ not supported yet
  2211. 904
  2212. 905
  2213. 906 PROCEDURE DoDisplayMenu( SelectedChar: CHAR );
  2214. 907 VAR
  2215. 908 WorkFrame, ListFrame: ScrnTypes.DisplayFrame;
  2216. ***** ^ not supported yet
  2217. 909 BEGIN
  2218. 910 IF CurrentDspFile = NIL THEN
  2219. ***** ^ not supported yet
  2220. 911 IF NOT OpenNewDspFile() THEN
  2221. ***** ^ not supported yet
  2222. ***** ^ not supported yet
  2223. 912 RETURN;
  2224. 913 END;
  2225. 914 END;
  2226. 915 ScrnTypes.InitDisplayFrame( WorkFrame, VWindows.CurrentWindow );
  2227. ***** ^ not supported yet
  2228. ***** ^ not supported yet
  2229. ***** ^ not supported yet
  2230. ***** ^ not supported yet
  2231. ***** ^ not supported yet
  2232. 916 WorkFrame^.FromFile := CurrentDspFile;
  2233. ***** ^ not supported yet
  2234. ***** ^ not supported yet
  2235. ***** ^ not supported yet
  2236. 917 CASE CAP(SelectedChar) OF
  2237. ***** ^ undeclared identifier
  2238. ***** ^ not supported yet
  2239. 918 'C' :
  2240. 919 IF GenLists.Initialized( OutFrameList ) THEN
  2241. ***** ^ not supported yet
  2242. ***** ^ not supported yet
  2243. ***** ^ not supported yet
  2244. 920 DspFiles.GetFrameFromList( OutFrameList, WorkFrame );
  2245. ***** ^ not supported yet
  2246. ***** ^ not supported yet
  2247. ***** ^ not supported yet
  2248. ***** ^ not supported yet
  2249. 921 FramePainter.ShowDisplayFrame( WorkFrame, 0, 0, 0, 0 );
  2250. ***** ^ not supported yet
  2251. ***** ^ not supported yet
  2252. ***** ^ not supported yet
  2253. ***** ^ not supported yet
  2254. 922 InputManager.ControlFrame( WorkFrame, 1, '', FALSE, NextFrame );
  2255. ***** ^ not supported yet
  2256. ***** ^ not supported yet
  2257. ***** ^ not supported yet
  2258. ***** ^ not supported yet
  2259. 923 ELSIF GenLists.ListLength( CurrentFrameList ) > 0 THEN
  2260. ***** ^ not supported yet
  2261. ***** ^ not supported yet
  2262. ***** ^ not supported yet
  2263. 924 MakeFrame.CompileFrame( CurrentFrameList,
  2264. ***** ^ not supported yet
  2265. ***** ^ not supported yet
  2266. ***** ^ not supported yet
  2267. 925 OutFrameList, FrameName, ErrStr, BadLine);
  2268. ***** ^ not supported yet
  2269. ***** ^ not supported yet
  2270. ***** ^ not supported yet
  2271. ***** ^ not supported yet
  2272. 926 M2Strings.Assign( FrameName, LastFrameName );
  2273. ***** ^ not supported yet
  2274. ***** ^ not supported yet
  2275. ***** ^ not supported yet
  2276. ***** ^ not supported yet
  2277. 927 IF BadLine = 0 THEN
  2278. 928 DspFiles.GetFrameFromList( OutFrameList, WorkFrame );
  2279. ***** ^ not supported yet
  2280. ***** ^ not supported yet
  2281. ***** ^ not supported yet
  2282. ***** ^ not supported yet
  2283. 929 FramePainter.ShowDisplayFrame( WorkFrame, 0, 0, 0, 0 );
  2284. ***** ^ not supported yet
  2285. ***** ^ not supported yet
  2286. ***** ^ not supported yet
  2287. ***** ^ not supported yet
  2288. 930 InputManager.ControlFrame( WorkFrame, 1, '', FALSE, NextFrame );
  2289. ***** ^ not supported yet
  2290. ***** ^ not supported yet
  2291. ***** ^ not supported yet
  2292. ***** ^ not supported yet
  2293. 931 ELSE
  2294. 932 ShowError( CurrentFrameList, FrameName, ErrStr, BadLine);
  2295. ***** ^ not supported yet
  2296. ***** ^ not supported yet
  2297. ***** ^ not supported yet
  2298. ***** ^ not supported yet
  2299. ***** ^ not supported yet
  2300. 933 END;
  2301. 934 ELSE
  2302. 935 InputConst2( ScrnCompDsp, 'NoCurrent' );
  2303. ***** ^ not supported yet
  2304. ***** ^ not supported yet
  2305. ***** ^ not supported yet
  2306. 936 END;
  2307. 937 | 'S' :
  2308. 938 IF GetStrResponse( 'FramePrompt', LastFrameName, FrameName ) THEN
  2309. ***** ^ not supported yet
  2310. ***** ^ not supported yet
  2311. ***** ^ not supported yet
  2312. ***** ^ not supported yet
  2313. 939 M2Strings.Assign( FrameName, LastFrameName );
  2314. ***** ^ not supported yet
  2315. ***** ^ not supported yet
  2316. ***** ^ not supported yet
  2317. ***** ^ not supported yet
  2318. 940 IF ControlUtils.FrameExists( CurrentDspFile, FrameName ) THEN
  2319. ***** ^ not supported yet
  2320. ***** ^ not supported yet
  2321. ***** ^ not supported yet
  2322. ***** ^ not supported yet
  2323. 941 ControlUtils.Input( WorkFrame, FrameName );
  2324. ***** ^ not supported yet
  2325. ***** ^ not supported yet
  2326. ***** ^ not supported yet
  2327. ***** ^ not supported yet
  2328. 942 END;
  2329. 943 END;
  2330. 944 | 'L' :
  2331. 945 ScrnTypes.InitDisplayFrame( ListFrame, VWindows.CurrentWindow );
  2332. ***** ^ not supported yet
  2333. ***** ^ not supported yet
  2334. ***** ^ not supported yet
  2335. ***** ^ not supported yet
  2336. ***** ^ not supported yet
  2337. 946 DspFiles.ReadDisplayFrame( ScrnCompDsp, ListFrame,
  2338. ***** ^ not supported yet
  2339. ***** ^ not supported yet
  2340. ***** ^ not supported yet
  2341. ***** ^ not supported yet
  2342. 947 'ListBox' );
  2343. ***** ^ not supported yet
  2344. 948 ScrnUtl1.SetNormalColors( ListFrame );
  2345. ***** ^ not supported yet
  2346. ***** ^ not supported yet
  2347. ***** ^ not supported yet
  2348. 949 NamesToFrame( CurrentDspFile, ListFrame );
  2349. ***** ^ not supported yet
  2350. ***** ^ not supported yet
  2351. ***** ^ not supported yet
  2352. 950 FramePainter.ShowDisplayFrame( ListFrame, 0, 0, 0, 0 );
  2353. ***** ^ not supported yet
  2354. ***** ^ not supported yet
  2355. ***** ^ not supported yet
  2356. ***** ^ not supported yet
  2357. 951 IF ScrnUtl1.FieldListTotal( ListFrame ) > 0 THEN
  2358. ***** ^ not supported yet
  2359. ***** ^ not supported yet
  2360. ***** ^ not supported yet
  2361. 952 InputManager.ControlFrame( ListFrame, 1, '', FALSE,
  2362. ***** ^ not supported yet
  2363. ***** ^ not supported yet
  2364. ***** ^ not supported yet
  2365. 953 NextFrame );
  2366. ***** ^ not supported yet
  2367. 954 ScrnUtl1.GetFieldText( ListFrame,
  2368. ***** ^ not supported yet
  2369. ***** ^ not supported yet
  2370. ***** ^ not supported yet
  2371. 955 ListFrame^.CurrentField, LastFrameName );
  2372. ***** ^ not supported yet
  2373. ***** ^ not supported yet
  2374. ***** ^ not supported yet
  2375. 956 END;
  2376. 957 ScrnUtl2.CloseDisplayFrame( ListFrame );
  2377. ***** ^ not supported yet
  2378. ***** ^ not supported yet
  2379. ***** ^ not supported yet
  2380. 958 END;
  2381. 959 ScrnUtl2.CloseDisplayFrame( WorkFrame );
  2382. ***** ^ not supported yet
  2383. ***** ^ not supported yet
  2384. ***** ^ not supported yet
  2385. 960 END DoDisplayMenu;
  2386. ***** ^ not supported yet
  2387. 961
  2388. 962
  2389. 963 PROCEDURE DoPrintDialog();
  2390. 964 VAR
  2391. 965 WorkFrame, ListFrame: ScrnTypes.DisplayFrame;
  2392. ***** ^ not supported yet
  2393. 966 FrameName: ScrnTypes.AFrameName;
  2394. ***** ^ not supported yet
  2395. 967 DeviceName: ARRAY [0..79] OF CHAR;
  2396. ***** ^ not supported yet
  2397. ***** ^ not supported yet
  2398. 968 TmpHandle: CARDINAL;
  2399. 969 BEGIN
  2400. 970 IF CurrentDspFile = NIL THEN
  2401. ***** ^ not supported yet
  2402. 971 IF NOT OpenNewDspFile() THEN
  2403. ***** ^ not supported yet
  2404. ***** ^ not supported yet
  2405. 972 RETURN;
  2406. 973 END;
  2407. 974 END;
  2408. 975 ScrnTypes.InitDisplayFrame( WorkFrame, VWindows.CurrentWindow );
  2409. ***** ^ not supported yet
  2410. ***** ^ not supported yet
  2411. ***** ^ not supported yet
  2412. ***** ^ not supported yet
  2413. ***** ^ not supported yet
  2414. 976 WorkFrame^.FromFile := CurrentDspFile;
  2415. ***** ^ not supported yet
  2416. ***** ^ not supported yet
  2417. ***** ^ not supported yet
  2418. 977 LOOP
  2419. 978 DspFiles.ReadDisplayFrame( ScrnCompDsp, WorkFrame, 'PrintDialog' );
  2420. ***** ^ not supported yet
  2421. ***** ^ not supported yet
  2422. ***** ^ not supported yet
  2423. ***** ^ not supported yet
  2424. ***** ^ not supported yet
  2425. 979 ControlUtils.ChangeField( WorkFrame, LastFrameName, 'FrameName', TRUE );
  2426. ***** ^ not supported yet
  2427. ***** ^ not supported yet
  2428. ***** ^ not supported yet
  2429. ***** ^ not supported yet
  2430. ***** ^ not supported yet
  2431. ***** ^ not supported yet
  2432. 980 FramePainter.ShowDisplayFrame( WorkFrame, 0, 0, 0, 0 );
  2433. ***** ^ not supported yet
  2434. ***** ^ not supported yet
  2435. ***** ^ not supported yet
  2436. ***** ^ not supported yet
  2437. 981 InputManager.ControlFrame( WorkFrame, 1, '', FALSE, FrameName );
  2438. ***** ^ not supported yet
  2439. ***** ^ not supported yet
  2440. ***** ^ not supported yet
  2441. ***** ^ not supported yet
  2442. 982 IF PosUtils.Equal( FrameName, WorkFrame^.parent ) THEN
  2443. ***** ^ not supported yet
  2444. ***** ^ not supported yet
  2445. ***** ^ not supported yet
  2446. ***** ^ not supported yet
  2447. ***** ^ not supported yet
  2448. 983 EXIT;
  2449. 984 END;
  2450. 985 ControlUtils.ReadInput( WorkFrame, FrameName, 'FrameName' );
  2451. ***** ^ not supported yet
  2452. ***** ^ not supported yet
  2453. ***** ^ not supported yet
  2454. ***** ^ not supported yet
  2455. ***** ^ not supported yet
  2456. 986 ControlUtils.ReadInput( WorkFrame, DeviceName, 'DeviceName' );
  2457. ***** ^ not supported yet
  2458. ***** ^ not supported yet
  2459. ***** ^ not supported yet
  2460. ***** ^ not supported yet
  2461. ***** ^ not supported yet
  2462. 987 StrEdit.CrunchBlanks( FrameName );
  2463. ***** ^ not supported yet
  2464. ***** ^ not supported yet
  2465. ***** ^ not supported yet
  2466. 988 StrEdit.CrunchBlanks( DeviceName );
  2467. ***** ^ not supported yet
  2468. ***** ^ not supported yet
  2469. ***** ^ not supported yet
  2470. 989 IF ControlUtils.FrameExists( CurrentDspFile, FrameName ) THEN
  2471. ***** ^ not supported yet
  2472. ***** ^ not supported yet
  2473. ***** ^ not supported yet
  2474. ***** ^ not supported yet
  2475. 990 DspFiles.ReadDisplayFrame( CurrentDspFile, WorkFrame, FrameName );
  2476. ***** ^ not supported yet
  2477. ***** ^ not supported yet
  2478. ***** ^ not supported yet
  2479. ***** ^ not supported yet
  2480. ***** ^ not supported yet
  2481. 991 HandleIO.OpenForAppending( DeviceName, TmpHandle );
  2482. ***** ^ not supported yet
  2483. ***** ^ not supported yet
  2484. ***** ^ not supported yet
  2485. ***** ^ not supported yet
  2486. 992 PrtFrame.PrintDisplayFrame( WorkFrame, TmpHandle, 0 );
  2487. ***** ^ not supported yet
  2488. ***** ^ not supported yet
  2489. ***** ^ not supported yet
  2490. ***** ^ not supported yet
  2491. 993 IF StringIO.NoError # HandleIO.CloseHandle( TmpHandle ) THEN
  2492. ***** ^ not supported yet
  2493. ***** ^ not supported yet
  2494. ***** ^ not supported yet
  2495. ***** ^ not supported yet
  2496. ***** ^ not supported yet
  2497. 994 EXIT;
  2498. 995 END;
  2499. 996 END;
  2500. 997 M2Strings.Assign( FrameName, LastFrameName );
  2501. ***** ^ not supported yet
  2502. ***** ^ not supported yet
  2503. ***** ^ not supported yet
  2504. ***** ^ not supported yet
  2505. 998 END;
  2506. 999 ScrnUtl2.CloseDisplayFrame( WorkFrame );
  2507. ***** ^ not supported yet
  2508. ***** ^ not supported yet
  2509. ***** ^ not supported yet
  2510. 1000 END DoPrintDialog;
  2511. ***** ^ not supported yet
  2512. 1001
  2513. 1002
  2514. 1003 PROCEDURE DoFrameSeq();
  2515. 1004 VAR
  2516. 1005 WorkFrame: ScrnTypes.DisplayFrame;
  2517. ***** ^ not supported yet
  2518. 1006 EntryFrame: ScrnTypes.AFrameName;
  2519. ***** ^ not supported yet
  2520. 1007 BEGIN
  2521. 1008 IF CurrentDspFile = NIL THEN
  2522. ***** ^ not supported yet
  2523. 1009 IF NOT OpenNewDspFile() THEN
  2524. ***** ^ not supported yet
  2525. ***** ^ not supported yet
  2526. 1010 RETURN;
  2527. 1011 END;
  2528. 1012 END;
  2529. 1013 IF GetStrResponse( 'EntryPrompt', LastFrameName, EntryFrame ) THEN
  2530. ***** ^ not supported yet
  2531. ***** ^ not supported yet
  2532. ***** ^ not supported yet
  2533. ***** ^ not supported yet
  2534. 1014 M2Strings.Assign( EntryFrame, LastFrameName );
  2535. ***** ^ not supported yet
  2536. ***** ^ not supported yet
  2537. ***** ^ not supported yet
  2538. ***** ^ not supported yet
  2539. 1015 IF NOT ControlUtils.FrameExists( CurrentDspFile, EntryFrame ) THEN
  2540. ***** ^ not supported yet
  2541. ***** ^ not supported yet
  2542. ***** ^ not supported yet
  2543. ***** ^ not supported yet
  2544. 1016 IF NOT GetStrResponse( 'NewEntry', EntryFrame, EntryFrame ) THEN
  2545. ***** ^ not supported yet
  2546. ***** ^ not supported yet
  2547. ***** ^ not supported yet
  2548. ***** ^ not supported yet
  2549. 1017 RETURN;
  2550. 1018 END;
  2551. 1019 END;
  2552. 1020 ScrnTypes.InitDisplayFrame( WorkFrame, VWindows.CurrentWindow );
  2553. ***** ^ not supported yet
  2554. ***** ^ not supported yet
  2555. ***** ^ not supported yet
  2556. ***** ^ not supported yet
  2557. ***** ^ not supported yet
  2558. 1021 WorkFrame^.FromFile := CurrentDspFile;
  2559. ***** ^ not supported yet
  2560. ***** ^ not supported yet
  2561. ***** ^ not supported yet
  2562. 1022 LOOP
  2563. 1023 ControlUtils.FrameSeq2( CurrentDspFile, 'QNOCHECKQ', EntryFrame );
  2564. ***** ^ not supported yet
  2565. ***** ^ not supported yet
  2566. ***** ^ not supported yet
  2567. ***** ^ not supported yet
  2568. ***** ^ not supported yet
  2569. 1024 (* We don't want any checking for circular sequences
  2570. 1025 at this level, so we use a value for the
  2571. 1026 CheckFrame parameter that we hope you will never
  2572. 1027 need as a frame name. *)
  2573. 1028 IF NOT PosUtils.Equal( EntryFrame, ScrnTypes.ProgramExit ) THEN
  2574. ***** ^ not supported yet
  2575. ***** ^ not supported yet
  2576. ***** ^ not supported yet
  2577. ***** ^ not supported yet
  2578. ***** ^ not supported yet
  2579. 1029 (*We exited from FrameSequence prematurely because of an
  2580. 1030 unfound frame name.*)
  2581. 1031 IF NOT GetStrResponse( 'NewEntry', EntryFrame, EntryFrame ) THEN
  2582. ***** ^ not supported yet
  2583. ***** ^ not supported yet
  2584. ***** ^ not supported yet
  2585. ***** ^ not supported yet
  2586. 1032 EXIT;
  2587. 1033 END;
  2588. 1034 ELSE
  2589. 1035 EXIT;
  2590. 1036 END;
  2591. 1037 END;
  2592. 1038 ScrnUtl2.CloseDisplayFrame( WorkFrame );
  2593. ***** ^ not supported yet
  2594. ***** ^ not supported yet
  2595. ***** ^ not supported yet
  2596. 1039 END;
  2597. 1040 END DoFrameSeq;
  2598. ***** ^ not supported yet
  2599. 1041
  2600. 1042
  2601. 1043 PROCEDURE RestoreDisplay();
  2602. 1044 BEGIN
  2603. 1045 VWindows.SetForeColor( VWindows.CurrentWindow, MsColors.lightgrey );
  2604. ***** ^ not supported yet
  2605. ***** ^ not supported yet
  2606. ***** ^ not supported yet
  2607. ***** ^ not supported yet
  2608. ***** ^ not supported yet
  2609. ***** ^ not supported yet
  2610. 1046 VWindows.SetBackColor( VWindows.CurrentWindow, MsColors.black );
  2611. ***** ^ not supported yet
  2612. ***** ^ not supported yet
  2613. ***** ^ not supported yet
  2614. ***** ^ not supported yet
  2615. ***** ^ not supported yet
  2616. ***** ^ not supported yet
  2617. 1047 VWindows.SetMonoAttr( VWindows.CurrentWindow, MsColors.plain );
  2618. ***** ^ not supported yet
  2619. ***** ^ not supported yet
  2620. ***** ^ not supported yet
  2621. ***** ^ not supported yet
  2622. ***** ^ not supported yet
  2623. ***** ^ not supported yet
  2624. 1048 VWindows.ClearPart( VWindows.CurrentWindow, 1, 1,
  2625. ***** ^ not supported yet
  2626. ***** ^ not supported yet
  2627. ***** ^ not supported yet
  2628. ***** ^ not supported yet
  2629. 1049 VWindows.EndCol(VWindows.CurrentWindow),
  2630. ***** ^ not supported yet
  2631. ***** ^ not supported yet
  2632. ***** ^ not supported yet
  2633. ***** ^ not supported yet
  2634. 1050 VWindows.EndRow(VWindows.CurrentWindow) );
  2635. ***** ^ not supported yet
  2636. ***** ^ not supported yet
  2637. ***** ^ not supported yet
  2638. ***** ^ not supported yet
  2639. 1051 VWindows.SetCursorHeight( VWindows.CurrentWindow, SavedCursorHeight );
  2640. ***** ^ not supported yet
  2641. ***** ^ not supported yet
  2642. ***** ^ not supported yet
  2643. ***** ^ not supported yet
  2644. ***** ^ not supported yet
  2645. 1052 END RestoreDisplay;
  2646. ***** ^ not supported yet
  2647. 1053
  2648. 1054
  2649. 1055 BEGIN
  2650. 1056 (* ScrnCompile *)
  2651. 1057 MakeFrame.Init();
  2652. ***** ^ not supported yet
  2653. ***** ^ not supported yet
  2654. ***** ^ not supported yet
  2655. 1058 (* We initialize MakeFrame explicitly because there are cases where
  2656. 1059 we could reference its global data without first calling one of
  2657. 1060 its functions. Our new initialization scheme is triggered only
  2658. 1061 when a function is called. *)
  2659. 1062
  2660. 1063 GenLists.NilList( FileList );
  2661. ***** ^ not supported yet
  2662. ***** ^ not supported yet
  2663. ***** ^ not supported yet
  2664. 1064 GenLists.NilList( OutFrameList );
  2665. ***** ^ not supported yet
  2666. ***** ^ not supported yet
  2667. ***** ^ not supported yet
  2668. 1065 GenLists.NewList( CurrentFrameList );
  2669. ***** ^ not supported yet
  2670. ***** ^ not supported yet
  2671. ***** ^ not supported yet
  2672. 1066 CurrentDspFile := NIL;
  2673. ***** ^ not supported yet
  2674. 1067 AtEndOfList := FALSE;
  2675. 1068 LastFileName := '';
  2676. ***** ^ not supported yet
  2677. ***** ^ incompatible assignment
  2678. 1069 LastFrameName := '';
  2679. ***** ^ not supported yet
  2680. ***** ^ incompatible assignment
  2681. 1070 CmdLineVersion := FALSE;
  2682. 1071 FileListLine := 1;
  2683. 1072 BigSets.InitSet( MovementKeys );
  2684. ***** ^ not supported yet
  2685. ***** ^ not supported yet
  2686. ***** ^ not supported yet
  2687. 1073 BigSets.AppendSet( MovementKeys, '{9, 271, 328, 331, 333, 336, 329, 337}' );
  2688. ***** ^ not supported yet
  2689. ***** ^ not supported yet
  2690. ***** ^ not supported yet
  2691. ***** ^ not supported yet
  2692. 1074 (*Arrow keys plus tab, backtab, PgUp, and PgDn*)
  2693. 1075
  2694. 1076
  2695. 1077 IF CommandLineSwitch() OR
  2696. ***** ^ not supported yet
  2697. ***** ^ not supported yet
  2698. 1078 (NOT DspFiles.OpenDisplayFile( ScrnCompDsp, 'ScrnComp.dsp' )) THEN
  2699. ***** ^ not supported yet
  2700. ***** ^ not supported yet
  2701. ***** ^ not supported yet
  2702. ***** ^ not supported yet
  2703. 1079 CmdLineVersion := TRUE;
  2704. 1080 ParamsRead := 0;
  2705. 1081 IF NOT ReadNewEdtFile() THEN
  2706. ***** ^ not supported yet
  2707. ***** ^ not supported yet
  2708. 1082 RETURN;
  2709. ***** ^ bad RETURN
  2710. 1083 END;
  2711. 1084 IF NOT OpenNewDspFile() THEN
  2712. ***** ^ not supported yet
  2713. ***** ^ not supported yet
  2714. 1085 RETURN;
  2715. ***** ^ bad RETURN
  2716. 1086 END;
  2717. 1087 WHILE NOT AtEndOfList DO
  2718. 1088 AtEndOfList := NOT GetNextFrame( FileList,
  2719. ***** ^ not supported yet
  2720. ***** ^ not supported yet
  2721. 1089 CurrentFrameList, FileListLine );
  2722. ***** ^ not supported yet
  2723. ***** ^ not supported yet
  2724. 1090 IF GenLists.ListLength( CurrentFrameList) > 0 THEN
  2725. ***** ^ not supported yet
  2726. ***** ^ not supported yet
  2727. ***** ^ not supported yet
  2728. 1091 MakeFrame.CompileFrame( CurrentFrameList, OutFrameList, FrameName,
  2729. ***** ^ not supported yet
  2730. ***** ^ not supported yet
  2731. ***** ^ not supported yet
  2732. ***** ^ not supported yet
  2733. ***** ^ not supported yet
  2734. 1092 ErrStr, BadLine);
  2735. ***** ^ not supported yet
  2736. ***** ^ not supported yet
  2737. 1093 IF BadLine # 0 THEN
  2738. 1094 ShowError( CurrentFrameList, FrameName, ErrStr, BadLine);
  2739. ***** ^ not supported yet
  2740. ***** ^ not supported yet
  2741. ***** ^ not supported yet
  2742. ***** ^ not supported yet
  2743. ***** ^ not supported yet
  2744. 1095 END;
  2745. 1096 AddToFile( CurrentDspFile, OutFrameList, FrameName);
  2746. ***** ^ not supported yet
  2747. ***** ^ not supported yet
  2748. ***** ^ not supported yet
  2749. ***** ^ not supported yet
  2750. 1097 StrEdit.RightJustify( FrameName, 20 );
  2751. ***** ^ not supported yet
  2752. ***** ^ not supported yet
  2753. ***** ^ not supported yet
  2754. ***** ^ not supported yet
  2755. 1098 StringIO.WriteStr( StringIO.outp, FrameName );
  2756. ***** ^ not supported yet
  2757. ***** ^ not supported yet
  2758. ***** ^ not supported yet
  2759. ***** ^ not supported yet
  2760. ***** ^ not supported yet
  2761. 1099 StringIO.WriteStr( StringIO.outp, ' added to ' );
  2762. ***** ^ not supported yet
  2763. ***** ^ not supported yet
  2764. ***** ^ not supported yet
  2765. ***** ^ not supported yet
  2766. ***** ^ not supported yet
  2767. 1100 StringIO.WriteStr( StringIO.outp, DspFileName );
  2768. ***** ^ not supported yet
  2769. ***** ^ not supported yet
  2770. ***** ^ not supported yet
  2771. ***** ^ not supported yet
  2772. ***** ^ not supported yet
  2773. 1101 StringIO.WriteEol( StringIO.outp, '.' );
  2774. ***** ^ not supported yet
  2775. ***** ^ not supported yet
  2776. ***** ^ not supported yet
  2777. ***** ^ not supported yet
  2778. ***** ^ not supported yet
  2779. 1102 END;
  2780. 1103 END;
  2781. 1104 RETURN;
  2782. ***** ^ bad RETURN
  2783. 1105 END;
  2784. 1106
  2785. 1107 SavedCursorHeight := VWindows.GetCursorHeight( VWindows.CurrentWindow );
  2786. ***** ^ not supported yet
  2787. ***** ^ not supported yet
  2788. ***** ^ not supported yet
  2789. ***** ^ not supported yet
  2790. 1108 VWindows.SetCursorHeight( VWindows.CurrentWindow, 0 );
  2791. ***** ^ not supported yet
  2792. ***** ^ not supported yet
  2793. ***** ^ not supported yet
  2794. ***** ^ not supported yet
  2795. ***** ^ not supported yet
  2796. 1109 ErrorManager.AddTermProc( RestoreDisplay );
  2797. ***** ^ not supported yet
  2798. ***** ^ not supported yet
  2799. ***** ^ not supported yet
  2800. 1110
  2801. 1111 GenLists.NewList( TopMenuList );
  2802. ***** ^ not supported yet
  2803. ***** ^ not supported yet
  2804. ***** ^ not supported yet
  2805. 1112 ControlUtils.LoadFrameList( ScrnCompDsp, 'TopMenu', TopMenuList );
  2806. ***** ^ not supported yet
  2807. ***** ^ not supported yet
  2808. ***** ^ not supported yet
  2809. ***** ^ not supported yet
  2810. ***** ^ not supported yet
  2811. 1113 (*This keeps the TopMenu in memory.*)
  2812. 1114
  2813. 1115 UserOps.DoPrompting := FALSE;
  2814. ***** ^ not supported yet
  2815. ***** ^ not supported yet
  2816. 1116 ControlUtils.InputConst( DspFiles.MainFrame, 'Banner' );
  2817. ***** ^ not supported yet
  2818. ***** ^ not supported yet
  2819. ***** ^ not supported yet
  2820. ***** ^ not supported yet
  2821. ***** ^ not supported yet
  2822. 1117 UserOps.DoPrompting := TRUE;
  2823. ***** ^ not supported yet
  2824. ***** ^ not supported yet
  2825. 1118 UserOps.PromptRow := VWindows.EndRow(VWindows.CurrentWindow) - 1;
  2826. ***** ^ not supported yet
  2827. ***** ^ not supported yet
  2828. ***** ^ not supported yet
  2829. ***** ^ not supported yet
  2830. ***** ^ not supported yet
  2831. ***** ^ not supported yet
  2832. 1119 ScrnUtl2.Display( DspFiles.MainFrame, 'BlankScreen' );
  2833. ***** ^ not supported yet
  2834. ***** ^ not supported yet
  2835. ***** ^ not supported yet
  2836. ***** ^ not supported yet
  2837. ***** ^ not supported yet
  2838. 1120
  2839. 1121 LOOP
  2840. 1122 NextFrame := 'TopMenu';
  2841. ***** ^ not supported yet
  2842. ***** ^ not supported yet
  2843. 1123 ControlUtils.ControlSeparately( TopMenuList,
  2844. ***** ^ not supported yet
  2845. ***** ^ not supported yet
  2846. ***** ^ not supported yet
  2847. 1124 NextFrame, SelChar, EndingFrame );
  2848. ***** ^ not supported yet
  2849. ***** ^ not supported yet
  2850. 1125 IF PosUtils.Equal( ScrnTypes.ProgramExit, NextFrame ) THEN
  2851. ***** ^ not supported yet
  2852. ***** ^ not supported yet
  2853. ***** ^ not supported yet
  2854. ***** ^ not supported yet
  2855. ***** ^ not supported yet
  2856. 1126 EXIT;
  2857. 1127 ELSIF PosUtils.Equal( EndingFrame, 'FileMenu' ) THEN
  2858. ***** ^ not supported yet
  2859. ***** ^ not supported yet
  2860. ***** ^ not supported yet
  2861. ***** ^ not supported yet
  2862. 1128 (*User has made a selection from the FileMenu.*)
  2863. 1129 DoFileMenu( SelChar );
  2864. ***** ^ not supported yet
  2865. ***** ^ not supported yet
  2866. 1130 ELSIF PosUtils.Equal( EndingFrame, 'EditMenu' ) THEN
  2867. ***** ^ not supported yet
  2868. ***** ^ not supported yet
  2869. ***** ^ not supported yet
  2870. ***** ^ not supported yet
  2871. 1131 DoEditMenu( SelChar );
  2872. ***** ^ not supported yet
  2873. ***** ^ not supported yet
  2874. 1132 ELSIF PosUtils.Equal( EndingFrame, 'CompMenu' ) THEN
  2875. ***** ^ not supported yet
  2876. ***** ^ not supported yet
  2877. ***** ^ not supported yet
  2878. ***** ^ not supported yet
  2879. 1133 DoCompMenu( SelChar );
  2880. ***** ^ not supported yet
  2881. ***** ^ not supported yet
  2882. 1134 ELSIF PosUtils.Equal( EndingFrame, 'DispMenu' ) THEN
  2883. ***** ^ not supported yet
  2884. ***** ^ not supported yet
  2885. ***** ^ not supported yet
  2886. ***** ^ not supported yet
  2887. 1135 DoDisplayMenu( SelChar );
  2888. ***** ^ not supported yet
  2889. ***** ^ not supported yet
  2890. 1136 ELSIF PosUtils.Equal( EndingFrame, 'TopMenu' ) THEN
  2891. ***** ^ not supported yet
  2892. ***** ^ not supported yet
  2893. ***** ^ not supported yet
  2894. ***** ^ not supported yet
  2895. 1137 IF (NOT PosUtils.Equal(NextFrame, ScrnTypes.ProgramExit)) AND
  2896. ***** ^ not supported yet
  2897. ***** ^ not supported yet
  2898. ***** ^ not supported yet
  2899. ***** ^ not supported yet
  2900. ***** ^ not supported yet
  2901. 1138 (NOT PosUtils.Equal(NextFrame, 'Banner') ) THEN
  2902. ***** ^ not supported yet
  2903. ***** ^ not supported yet
  2904. ***** ^ not supported yet
  2905. ***** ^ not supported yet
  2906. 1139 CASE SelChar OF
  2907. 1140 'R': DoFrameSeq();
  2908. ***** ^ not supported yet
  2909. ***** ^ not supported yet
  2910. 1141 | 'x': EXIT;
  2911. 1142 | 'P': DoPrintDialog();
  2912. ***** ^ not supported yet
  2913. ***** ^ not supported yet
  2914. 1143 | 's': ScrnUtl2.Display( DspFiles.MainFrame, 'BlankScreen' );
  2915. ***** ^ not supported yet
  2916. ***** ^ not supported yet
  2917. ***** ^ not supported yet
  2918. ***** ^ not supported yet
  2919. ***** ^ not supported yet
  2920. 1144 ELSE
  2921. 1145 (*fall through*)
  2922. 1146 END;
  2923. 1147 END;
  2924. 1148 ELSE
  2925. 1149 ErrorManager.WARN('Error in TopMenu loop logic');
  2926. ***** ^ not supported yet
  2927. ***** ^ not supported yet
  2928. ***** ^ not supported yet
  2929. 1150 END;
  2930. 1151 END;
  2931. 1152 GenLists.DisposeList( TopMenuList );
  2932. ***** ^ not supported yet
  2933. ***** ^ not supported yet
  2934. ***** ^ not supported yet
  2935. 1153 DspFiles.CloseDisplayFile( ScrnCompDsp );
  2936. ***** ^ not supported yet
  2937. ***** ^ not supported yet
  2938. ***** ^ not supported yet
  2939. 1154 ErrorManager.DoTermProcs();
  2940. ***** ^ not supported yet
  2941. ***** ^ not supported yet
  2942. ***** ^ not supported yet
  2943. 1155 END ScrnCompile.
  2944. 1787 errors