Changeset 126 for trunk/Forms
- Timestamp:
- Jan 14, 2022, 7:13:36 PM (3 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r116 r126 306 306 Core.CurrentTarget := TTarget(Core.Targets[0]); 307 307 Core.Optimizations.AddSub := ReadBoolWithDefault('OptimizationAddSubEnabled', True); 308 Core.Optimizations.SetZero := ReadBoolWithDefault('OptimizationSetZeroEnabled', True); 308 309 Core.Optimizations.Merge := ReadBoolWithDefault('OptimizationMerge', True); 309 310 Core.Optimizations.CopyMultiply := ReadBoolWithDefault('OptimizationCopyMultiplyEnabled', True); … … 321 322 WriteString('TargetName', Core.CurrentTarget.Name); 322 323 WriteBool('OptimizationAddSubEnabled', Core.Optimizations.AddSub); 324 WriteBool('OptimizationSetZeroEnabled', Core.Optimizations.SetZero); 323 325 WriteBool('OptimizationMerge', Core.Optimizations.Merge); 324 326 WriteBool('OptimizationCopyMultiplyEnabled', Core.Optimizations.CopyMultiply); -
trunk/Forms/UFormOptions.lfm
r103 r126 11 11 OnCreate = FormCreate 12 12 OnShow = FormShow 13 LCLVersion = '2. 0.0.4'13 LCLVersion = '2.2.0.4' 14 14 object ButtonOk: TButton 15 15 Left = 631 … … 46 46 object TabSheetGeneral: TTabSheet 47 47 Caption = 'General' 48 ClientHeight = 27749 ClientWidth = 58548 ClientHeight = 331 49 ClientWidth = 701 50 50 ParentFont = False 51 51 object Panel1: TPanel 52 52 Left = 0 53 Height = 27753 Height = 331 54 54 Top = 0 55 Width = 58555 Width = 701 56 56 Align = alClient 57 57 BevelOuter = bvNone 58 ClientHeight = 27759 ClientWidth = 58558 ClientHeight = 331 59 ClientWidth = 701 60 60 ParentFont = False 61 61 TabOrder = 0 62 62 object Label3: TLabel 63 63 Left = 10 64 Height = 2 064 Height = 26 65 65 Top = 58 66 Width = 1 2766 Width = 164 67 67 Caption = 'Interface language:' 68 ParentColor = False69 68 ParentFont = False 70 69 end 71 70 object ComboBoxLanguage: TComboBox 72 71 Left = 307 73 Height = 3372 Height = 41 74 73 Top = 58 75 74 Width = 226 76 ItemHeight = 2575 ItemHeight = 0 77 76 ParentFont = False 78 77 Style = csDropDownList … … 83 82 Height = 32 84 83 Top = 102 85 Width = 1 14484 Width = 1260 86 85 Anchors = [akTop, akLeft, akRight] 87 86 AutoSize = False … … 94 93 Height = 32 95 94 Top = 150 96 Width = 1 13495 Width = 1250 97 96 Anchors = [akTop, akLeft, akRight] 98 97 AutoSize = False … … 104 103 object LabelDPI: TLabel 105 104 Left = 36 106 Height = 2 0107 Top = 192 108 Width = 26105 Height = 26 106 Top = 192 107 Width = 35 109 108 Caption = 'DPI:' 110 ParentColor = False111 109 ParentFont = False 112 110 end 113 111 object SpinEditDPIX: TSpinEdit 114 112 Left = 134 115 Height = 28113 Height = 42 116 114 Top = 190 117 115 Width = 96 … … 124 122 object SpinEditDPIY: TSpinEdit 125 123 Left = 259 126 Height = 28124 Height = 42 127 125 Top = 192 128 126 Width = 96 … … 135 133 object LabelX: TLabel 136 134 Left = 240 137 Height = 2 0138 Top = 192 139 Width = 7135 Height = 26 136 Top = 192 137 Width = 10 140 138 Caption = 'x' 141 ParentColor = False142 139 ParentFont = False 143 140 end 144 141 object LabelTheme: TLabel 145 142 Left = 10 146 Height = 2 0143 Height = 26 147 144 Top = 19 148 Width = 48145 Width = 63 149 146 Caption = 'Theme:' 150 ParentColor = False151 147 ParentFont = False 152 148 end 153 149 object ComboBoxTheme: TComboBox 154 150 Left = 307 155 Height = 33151 Height = 41 156 152 Top = 10 157 153 Width = 226 158 ItemHeight = 25154 ItemHeight = 0 159 155 ParentFont = False 160 156 Style = csDropDownList … … 165 161 object TabSheetBuild: TTabSheet 166 162 Caption = 'Build' 167 ClientHeight = 33 3168 ClientWidth = 70 3163 ClientHeight = 331 164 ClientWidth = 701 169 165 ParentFont = False 170 166 object Panel2: TPanel 171 167 Left = 0 172 Height = 33 3168 Height = 331 173 169 Top = 0 174 Width = 70 3170 Width = 701 175 171 Align = alClient 176 172 BevelOuter = bvNone 177 ClientHeight = 33 3178 ClientWidth = 70 3173 ClientHeight = 331 174 ClientWidth = 701 179 175 ParentFont = False 180 176 TabOrder = 0 181 177 object Label4: TLabel 182 178 Left = 10 183 Height = 2 5179 Height = 26 184 180 Top = 125 185 Width = 189181 Width = 202 186 182 Caption = 'Compiler optimizations:' 187 ParentColor = False188 183 ParentFont = False 189 184 end 190 185 object ComboBoxOptimization: TComboBox 191 186 Left = 298 192 Height = 3 3193 Top = 12 5187 Height = 38 188 Top = 120 194 189 Width = 226 195 ItemHeight = 25190 ItemHeight = 0 196 191 Items.Strings = ( 197 192 'None' … … 205 200 object CheckBoxOptimizeAddSub: TCheckBox 206 201 Left = 37 207 Height = 29202 Height = 30 208 203 Top = 163 209 Width = 2 28204 Width = 236 210 205 Caption = 'Addition and subtraction' 211 206 ParentFont = False … … 214 209 object CheckBoxOptimizeMerge: TCheckBox 215 210 Left = 37 216 Height = 29217 Top = 192218 Width = 2 18211 Height = 30 212 Top = 224 213 Width = 227 219 214 Caption = 'Merge same operations' 220 215 ParentFont = False … … 223 218 object CheckBoxOptimizeCopyMultiply: TCheckBox 224 219 Left = 37 225 Height = 29226 Top = 2 50227 Width = 14 1220 Height = 30 221 Top = 282 222 Width = 142 228 223 Caption = 'Copy multiply' 224 OnChange = CheckBoxOptimizeCopyMultiplyChange 229 225 ParentFont = False 230 226 TabOrder = 3 … … 232 228 object CheckBoxOptimizeRelativeIndexes: TCheckBox 233 229 Left = 37 234 Height = 29235 Top = 2 21236 Width = 1 55230 Height = 30 231 Top = 253 232 Width = 162 237 233 Caption = 'Relative indexes' 234 OnChange = CheckBoxOptimizeRelativeIndexesChange 238 235 ParentFont = False 239 236 TabOrder = 4 … … 241 238 object Label2: TLabel 242 239 Left = 10 243 Height = 2 5244 Top = 48245 Width = 66240 Height = 26 241 Top = 64 242 Width = 73 246 243 Caption = 'Cell size:' 247 ParentColor = False248 244 ParentFont = False 249 245 end 250 246 object Label1: TLabel 251 247 Left = 10 252 Height = 2 5253 Top = 1 0254 Width = 1 05248 Height = 26 249 Top = 16 250 Width = 112 255 251 Caption = 'Memory size:' 256 ParentColor = False257 252 ParentFont = False 258 253 end 259 254 object SpinEditMemorySize: TSpinEdit 260 255 Left = 198 261 Height = 33256 Height = 42 262 257 Top = 7 263 258 Width = 156 … … 268 263 object SpinEditCellSize: TSpinEdit 269 264 Left = 198 270 Height = 33271 Top = 48265 Height = 42 266 Top = 56 272 267 Width = 156 273 268 MaxValue = 2000000000 274 269 ParentFont = False 275 270 TabOrder = 6 271 end 272 object CheckBoxOptimizeSetZero: TCheckBox 273 Left = 37 274 Height = 30 275 Top = 192 276 Width = 93 277 Caption = 'Set zero' 278 ParentFont = False 279 TabOrder = 7 276 280 end 277 281 end -
trunk/Forms/UFormOptions.lrj
r103 r126 17 17 {"hash":150963587,"name":"tformoptions.checkboxoptimizerelativeindexes.caption","sourcebytes":[82,101,108,97,116,105,118,101,32,105,110,100,101,120,101,115],"value":"Relative indexes"}, 18 18 {"hash":243182762,"name":"tformoptions.label2.caption","sourcebytes":[67,101,108,108,32,115,105,122,101,58],"value":"Cell size:"}, 19 {"hash":239490586,"name":"tformoptions.label1.caption","sourcebytes":[77,101,109,111,114,121,32,115,105,122,101,58],"value":"Memory size:"} 19 {"hash":239490586,"name":"tformoptions.label1.caption","sourcebytes":[77,101,109,111,114,121,32,115,105,122,101,58],"value":"Memory size:"}, 20 {"hash":208144671,"name":"tformoptions.checkboxoptimizesetzero.caption","sourcebytes":[83,101,116,32,122,101,114,111],"value":"Set zero"} 20 21 ]} -
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.