Changeset 64 for trunk/Forms
- Timestamp:
- Dec 4, 2014, 2:59:28 PM (10 years ago)
- Location:
- trunk/Forms
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r63 r64 194 194 FCurrentTarget.OnChangeState := TargetStateChanged; 195 195 FCurrentTarget.OnLog := TargetLogExecute; 196 FCurrentTarget.OptimizationLevel := Core.OptimizationLevel; 196 197 FCurrentTarget.Messages.OnChange := MessagesChanged; 197 198 end; … … 469 470 //OptionsForm.SaveToInterpretter(CurrentTarget); 470 471 OptionsForm.Save; 472 if Assigned(CurrentTarget) then 473 CurrentTarget.OptimizationLevel := Core.OptimizationLevel; 471 474 end; 472 475 end; … … 476 479 with CurrentTarget do begin 477 480 AProgramStop.Execute; 478 Optimization := coNormal;479 481 SourceCode := FormSourceCode.MemoSource.Text; 480 482 ProjectFileName := Core.Project.FileName; -
trunk/Forms/UFormOptions.lfm
r59 r64 1 1 object OptionsForm: TOptionsForm 2 2 Left = 415 3 Height = 2793 Height = 339 4 4 Top = 210 5 5 Width = 468 6 6 Caption = 'Options' 7 ClientHeight = 2797 ClientHeight = 339 8 8 ClientWidth = 468 9 9 OnShow = FormShow … … 12 12 Left = 389 13 13 Height = 25 14 Top = 24714 Top = 307 15 15 Width = 75 16 16 Anchors = [akRight, akBottom] … … 23 23 Left = 304 24 24 Height = 25 25 Top = 24725 Top = 307 26 26 Width = 75 27 27 Anchors = [akRight, akBottom] … … 80 80 TabOrder = 4 81 81 end 82 object ComboBoxLanguage: TComboBox83 Left = 24884 Height = 3785 Top = 8386 Width = 18887 ItemHeight = 088 Style = csDropDownList89 TabOrder = 590 end91 82 object SpinEditDPIX: TSpinEdit 92 83 Left = 104 … … 96 87 MaxValue = 1000 97 88 MinValue = 1 98 TabOrder = 689 TabOrder = 5 99 90 Value = 1 100 91 end … … 114 105 MaxValue = 1000 115 106 MinValue = 1 116 TabOrder = 7107 TabOrder = 6 117 108 Value = 1 118 109 end … … 134 125 Caption = 'Automatic DPI' 135 126 OnChange = CheckBoxDPIAutoChange 127 TabOrder = 7 128 end 129 object Label4: TLabel 130 Left = 16 131 Height = 25 132 Top = 248 133 Width = 221 134 Caption = 'Compiler optimizations:' 135 ParentColor = False 136 end 137 object ComboBoxLanguage: TComboBox 138 Left = 248 139 Height = 37 140 Top = 83 141 Width = 188 142 ItemHeight = 0 143 Style = csDropDownList 136 144 TabOrder = 8 137 145 end 146 object ComboBoxOptimizatipn: TComboBox 147 Left = 256 148 Height = 37 149 Top = 240 150 Width = 188 151 ItemHeight = 0 152 Items.Strings = ( 153 'None' 154 'Normal' 155 ) 156 Style = csDropDownList 157 TabOrder = 9 158 end 138 159 end -
trunk/Forms/UFormOptions.lrt
r59 r64 9 9 TOPTIONSFORM.LABELX.CAPTION=x 10 10 TOPTIONSFORM.CHECKBOXDPIAUTO.CAPTION=Automatic DPI 11 TOPTIONSFORM.LABEL4.CAPTION=Compiler optimizations: -
trunk/Forms/UFormOptions.pas
r59 r64 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 Spin, UTargetInterpretter ;9 Spin, UTargetInterpretter, UTarget; 10 10 11 11 type … … 19 19 CheckBoxDPIAuto: TCheckBox; 20 20 ComboBoxLanguage: TComboBox; 21 ComboBoxOptimizatipn: TComboBox; 21 22 Label1: TLabel; 22 23 Label2: TLabel; 23 24 Label3: TLabel; 25 Label4: TLabel; 24 26 LabelDPI: TLabel; 25 27 LabelX: TLabel; … … 78 80 SpinEditDPIY.Value := Core.ScaleDPI.DPI.Y; 79 81 CheckBoxDPIAuto.Checked := Core.ScaleDPI.AutoDetect; 82 ComboBoxOptimizatipn.ItemIndex := Integer(Core.OptimizationLevel); 80 83 UpdateInterface; 81 84 end; … … 86 89 Core.ScaleDPI.DPI.Y := SpinEditDPIY.Value; 87 90 Core.ScaleDPI.AutoDetect := CheckBoxDPIAuto.Checked; 91 Core.OptimizationLevel := TCompilerOptimization(ComboBoxOptimizatipn.ItemIndex); 88 92 end; 89 93 -
trunk/Forms/UFormTargetCode.lfm
r48 r64 7 7 ClientHeight = 240 8 8 ClientWidth = 320 9 LCLVersion = '1. 1'9 LCLVersion = '1.3' 10 10 object MemoTarget: TMemo 11 11 Left = 0 … … 14 14 Width = 320 15 15 Align = alClient 16 Font.Name = 'Courier New' 17 ParentFont = False 16 18 PopupMenu = PopupMenuTarget 17 19 ReadOnly = True
Note:
See TracChangeset
for help on using the changeset viewer.