Changeset 41 for branches/DelphiToC/UMainForm.pas
- Timestamp:
- Aug 5, 2010, 1:17:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DelphiToC/UMainForm.pas
r40 r41 8 8 SysUtils, Variants, Classes, Graphics, Controls, Forms, 9 9 Dialogs, StdCtrls, UPascalSource, UPascalCompiler, UAssemblerSource, 10 UCSource, ComCtrls ;10 UCSource, ComCtrls, USourceTree; 11 11 12 12 const … … 30 30 public 31 31 Compiler: TCompiler; 32 SourceTree: TSourceTree; 32 33 end; 33 34 … … 48 49 Compiler.SourceCode.Assign(Memo1.Lines); 49 50 Compiler.Compile; 50 FillTreeView; 51 SourceTree.TreeView := TreeView1; 52 SourceTree.Code := Compiler.ProgramCode; 53 SourceTree.Fill; 54 //FillTreeView; 51 55 Memo2.Clear; 52 56 if Compiler.Producer is TAssemblerProducer then begin … … 138 142 Compiler := TCompiler.Create; 139 143 Compiler.OnErrorMessage := ErrorMessage; 144 SourceTree := TSourceTree.Create; 140 145 end; 141 146 142 147 procedure TMainForm.FormDestroy(Sender: TObject); 143 148 begin 144 Compiler.Destroy; 149 Compiler.Free; 150 SourceTree.Free; 145 151 end; 146 152
Note:
See TracChangeset
for help on using the changeset viewer.