Changeset 70 for trunk/Forms
- Timestamp:
- Oct 11, 2015, 6:50:33 PM (9 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r68 r70 12 12 OnDestroy = FormDestroy 13 13 OnShow = FormShow 14 LCLVersion = '1. 3'14 LCLVersion = '1.5' 15 15 WindowState = wsMaximized 16 16 object StatusBarMain: TStatusBar -
trunk/Forms/UFormMain.pas
r67 r70 167 167 uses 168 168 UCore, UFormCPU, UFormOptions, UFormMessages, UFormTargets, UFormOutput, UFormInput, 169 UFormMemory, UFormSourceCode, UFormTargetCode, UTargetInterpretter, UFormLog; 169 UFormMemory, UFormSourceCode, UFormTargetCode, UTargetInterpretter, UFormLog, 170 UBFTarget; 170 171 171 172 resourcestring … … 454 455 begin 455 456 OptionsForm.Load; 456 //OptionsForm.LoadFromInterpretter(CurrentTarget);457 457 if OptionsForm.ShowModal = mrOK then begin 458 //OptionsForm.SaveToInterpretter(CurrentTarget);459 458 OptionsForm.Save; 460 if Assigned(Core.CurrentTarget) then 459 if Assigned(Core.CurrentTarget) then begin 461 460 Core.CurrentTarget.OptimizationLevel := Core.OptimizationLevel; 461 if Core.CurrentTarget is TBFTarget then begin 462 TBFTarget(Core.CurrentTarget).CellSize := Core.CellSize; 463 TBFTarget(Core.CurrentTarget).MemorySize := Core.MemorySize; 464 end; 465 end; 462 466 end; 463 467 end; -
trunk/Forms/UFormOptions.lfm
r67 r70 8 8 ClientWidth = 468 9 9 OnShow = FormShow 10 LCLVersion = '1. 3'10 LCLVersion = '1.5' 11 11 object ButtonOk: TButton 12 12 Left = 389 -
trunk/Forms/UFormOptions.pas
r64 r70 39 39 procedure Load; 40 40 procedure Save; 41 procedure LoadFromInterpretter(Interpretter: TTargetInterpretter);42 procedure SaveToInterpretter(Interpretter: TTargetInterpretter);43 41 end; 44 42 … … 81 79 CheckBoxDPIAuto.Checked := Core.ScaleDPI.AutoDetect; 82 80 ComboBoxOptimizatipn.ItemIndex := Integer(Core.OptimizationLevel); 81 SpinEditCellSize.Value := Core.CellSize; 82 SpinEditMemorySize.Value := Core.MemorySize; 83 83 UpdateInterface; 84 84 end; … … 90 90 Core.ScaleDPI.AutoDetect := CheckBoxDPIAuto.Checked; 91 91 Core.OptimizationLevel := TCompilerOptimization(ComboBoxOptimizatipn.ItemIndex); 92 Core.CellSize := SpinEditCellSize.Value; 93 Core.MemorySize := SpinEditMemorySize.Value; 92 94 end; 93 95 … … 104 106 end; 105 107 106 procedure TOptionsForm.LoadFromInterpretter(Interpretter: TTargetInterpretter107 );108 begin109 SpinEditCellSize.Value := Interpretter.CellSize;110 SpinEditMemorySize.Value := Interpretter.MemorySize;111 end;112 113 procedure TOptionsForm.SaveToInterpretter(Interpretter: TTargetInterpretter);114 begin115 Interpretter.CellSize := SpinEditCellSize.Value;116 Interpretter.MemorySize := SpinEditMemorySize.Value;117 end;118 119 108 end. 120 109
Note:
See TracChangeset
for help on using the changeset viewer.