Changeset 14 for trunk/UMainForm.pas
- Timestamp:
- Feb 11, 2012, 6:27:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UMainForm.pas
r13 r14 7 7 uses 8 8 Classes, SysUtils, FileUtil, SynEdit, Forms, Controls, Graphics, Dialogs, 9 Menus, ActnList, StdCtrls, ComCtrls, UBrainFuck ;9 Menus, ActnList, StdCtrls, ComCtrls, UBrainFuck, SpecializedList; 10 10 11 11 type … … 107 107 BrainFuckCompiler: TBrainFuckCompiler; 108 108 BrainFuckInterpreter: TBrainFuckInterpretter; 109 BreakPoints: TListInteger; 109 110 procedure UpdateInterface; 110 111 procedure UpdateStatusBar; … … 185 186 procedure TMainForm.FormCreate(Sender: TObject); 186 187 begin 188 BreakPoints := TListInteger.Create; 187 189 BrainFuckInterpreter := TBrainFuckInterpretter.Create; 188 190 BrainFuckInterpreter.OnChangeState := BrainFuckInterpreterChangeState; … … 194 196 BrainFuckCompiler.Free; 195 197 BrainFuckInterpreter.Free; 198 BreakPoints.Free; 196 199 end; 197 200 … … 226 229 procedure TMainForm.AOptionsExecute(Sender: TObject); 227 230 begin 231 OptionsForm.LoadFromInterpretter(BrainFuckInterpreter); 228 232 if OptionsForm.ShowModal = mrOK then begin 229 233 OptionsForm.SaveToInterpretter(BrainFuckInterpreter); 230 234 end; 231 235 end;
Note:
See TracChangeset
for help on using the changeset viewer.