Changeset 14 for trunk/UOptionsForm.pas
- Timestamp:
- Feb 11, 2012, 6:27:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UOptionsForm.pas
r13 r14 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 Spin ;9 Spin, UBrainFuck; 10 10 11 11 type … … 17 17 ButtonCancel: TButton; 18 18 Label1: TLabel; 19 Label2: TLabel; 20 SpinEditCellSize: TSpinEdit; 19 21 SpinEditMemorySize: TSpinEdit; 20 22 private 21 23 { private declarations } 22 24 public 23 { public declarations } 25 procedure LoadFromInterpretter(Interpretter: TBrainFuckInterpretter); 26 procedure SaveToInterpretter(Interpretter: TBrainFuckInterpretter); 24 27 end; 25 28 … … 31 34 {$R *.lfm} 32 35 36 { TOptionsForm } 37 38 procedure TOptionsForm.LoadFromInterpretter(Interpretter: TBrainFuckInterpretter 39 ); 40 begin 41 SpinEditCellSize.Value := Interpretter.CellSize; 42 SpinEditMemorySize.Value := Interpretter.MemorySize; 43 end; 44 45 procedure TOptionsForm.SaveToInterpretter(Interpretter: TBrainFuckInterpretter); 46 begin 47 Interpretter.CellSize := SpinEditCellSize.Value; 48 Interpretter.MemorySize := SpinEditMemorySize.Value; 49 end; 50 33 51 end. 34 52
Note:
See TracChangeset
for help on using the changeset viewer.