Changeset 126 for trunk/Forms/UFormOptions.pas
- Timestamp:
- Jan 14, 2022, 7:13:36 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormOptions.pas
r115 r126 20 20 CheckBoxOptimizeAddSub: TCheckBox; 21 21 CheckBoxOptimizeCopyMultiply: TCheckBox; 22 CheckBoxOptimizeSetZero: TCheckBox; 22 23 CheckBoxOptimizeMerge: TCheckBox; 23 24 CheckBoxOptimizeRelativeIndexes: TCheckBox; … … 42 43 TabSheetBuild: TTabSheet; 43 44 procedure CheckBoxDPIAutoChange(Sender: TObject); 45 procedure CheckBoxOptimizeCopyMultiplyChange(Sender: TObject); 46 procedure CheckBoxOptimizeRelativeIndexesChange(Sender: TObject); 44 47 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 45 48 procedure FormCreate(Sender: TObject); … … 81 84 end; 82 85 CheckBoxOptimizeAddSub.Enabled := ComboBoxOptimization.ItemIndex > 0; 86 CheckBoxOptimizeSetZero.Enabled := ComboBoxOptimization.ItemIndex > 0; 83 87 CheckBoxOptimizeMerge.Enabled := ComboBoxOptimization.ItemIndex > 0; 84 88 CheckBoxOptimizeRelativeIndexes.Enabled := ComboBoxOptimization.ItemIndex > 0; … … 94 98 CheckBox1.Checked := Core.OpenProjectOnStart; 95 99 CheckBoxOptimizeAddSub.Checked := Core.Optimizations.AddSub; 100 CheckBoxOptimizeSetZero.Checked := Core.Optimizations.SetZero; 96 101 CheckBoxOptimizeMerge.Checked := Core.Optimizations.Merge; 97 102 CheckBoxOptimizeRelativeIndexes.Checked := Core.Optimizations.RelativeIndexes; … … 119 124 Core.MemorySize := SpinEditMemorySize.Value; 120 125 Core.Optimizations.AddSub := CheckBoxOptimizeAddSub.Checked; 126 Core.Optimizations.SetZero := CheckBoxOptimizeSetZero.Checked; 121 127 Core.Optimizations.Merge := CheckBoxOptimizeMerge.Checked; 122 128 Core.Optimizations.RelativeIndexes := CheckBoxOptimizeRelativeIndexes.Checked; … … 127 133 begin 128 134 UpdateInterface; 135 end; 136 137 procedure TFormOptions.CheckBoxOptimizeCopyMultiplyChange(Sender: TObject); 138 begin 139 // Needed for optimize copy multiply 140 if CheckBoxOptimizeCopyMultiply.Checked then 141 CheckBoxOptimizeRelativeIndexes.Checked := True; 142 end; 143 144 procedure TFormOptions.CheckBoxOptimizeRelativeIndexesChange(Sender: TObject); 145 begin 146 // Needed for optimize copy multiply 147 if not CheckBoxOptimizeRelativeIndexes.Checked then 148 CheckBoxOptimizeCopyMultiply.Checked := False; 129 149 end; 130 150
Note:
See TracChangeset
for help on using the changeset viewer.