Changeset 59 for trunk/Forms
- Timestamp:
- Dec 3, 2014, 9:09:42 PM (10 years ago)
- Location:
- trunk/Forms
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormCPU.lfm
r39 r59 7 7 ClientHeight = 287 8 8 ClientWidth = 414 9 LCLVersion = ' 0.9.31'9 LCLVersion = '1.3' 10 10 object Label4: TLabel 11 11 Left = 8 12 Height = 1813 Top = 4 214 Width = 8712 Height = 25 13 Top = 48 14 Width = 124 15 15 Caption = 'Step counter:' 16 16 ParentColor = False … … 18 18 object Label7: TLabel 19 19 Left = 8 20 Height = 1821 Top = 6222 Width = 4520 Height = 25 21 Top = 72 22 Width = 63 23 23 Caption = 'Speed:' 24 24 ParentColor = False 25 25 end 26 26 object LabelStepSpeed: TLabel 27 Left = 1 1928 Height = 1829 Top = 6230 Width = 1 327 Left = 192 28 Height = 25 29 Top = 72 30 Width = 15 31 31 Caption = ' ' 32 32 ParentColor = False 33 33 end 34 34 object LabelStepCounter: TLabel 35 Left = 1 1936 Height = 1837 Top = 4 238 Width = 1 335 Left = 192 36 Height = 25 37 Top = 48 38 Width = 15 39 39 Caption = ' ' 40 40 ParentColor = False 41 41 end 42 42 object LabelMemoryPointer: TLabel 43 Left = 1 1944 Height = 1843 Left = 192 44 Height = 25 45 45 Top = 24 46 Width = 1 346 Width = 15 47 47 Caption = ' ' 48 48 ParentColor = False 49 49 end 50 50 object LabelProgramPointer: TLabel 51 Left = 1 1952 Height = 1853 Top = 854 Width = 1 351 Left = 192 52 Height = 25 53 Top = 0 54 Width = 15 55 55 Caption = ' ' 56 56 ParentColor = False … … 58 58 object Label3: TLabel 59 59 Left = 8 60 Height = 1861 Top = 862 Width = 1 1060 Height = 25 61 Top = 0 62 Width = 159 63 63 Caption = 'Program pointer:' 64 64 ParentColor = False … … 66 66 object Label5: TLabel 67 67 Left = 8 68 Height = 1868 Height = 25 69 69 Top = 24 70 Width = 1 0870 Width = 156 71 71 Caption = 'Memory pointer:' 72 72 ParentColor = False -
trunk/Forms/UFormInput.lfm
r39 r59 7 7 ClientHeight = 240 8 8 ClientWidth = 320 9 LCLVersion = ' 0.9.31'9 LCLVersion = '1.3' 10 10 object MemoInput: TMemo 11 Left = 8 12 Height = 210 13 Top = 22 14 Width = 309 15 Anchors = [akTop, akLeft, akRight, akBottom] 11 Left = 4 12 Height = 203 13 Top = 33 14 Width = 312 15 Align = alClient 16 BorderSpacing.Around = 4 16 17 Font.Height = -12 17 18 Font.Name = 'Courier New' … … 22 23 end 23 24 object Label1: TLabel 24 Left = 8 25 Height = 18 26 Top = 8 27 Width = 38 25 Left = 4 26 Height = 25 27 Top = 4 28 Width = 312 29 Align = alTop 30 BorderSpacing.Around = 4 28 31 Caption = 'Input:' 29 32 ParentColor = False -
trunk/Forms/UFormMain.lfm
r52 r59 1 1 object MainForm: TMainForm 2 Left = 2233 Height = 4304 Top = 1765 Width = 6702 Left = 408 3 Height = 586 4 Top = 311 5 Width = 860 6 6 Caption = 'LazFuck' 7 ClientHeight = 4118 ClientWidth = 6707 ClientHeight = 557 8 ClientWidth = 860 9 9 Menu = MainMenu1 10 10 OnCloseQuery = FormCloseQuery … … 12 12 OnDestroy = FormDestroy 13 13 OnShow = FormShow 14 LCLVersion = '1. 1'14 LCLVersion = '1.3' 15 15 WindowState = wsMaximized 16 16 object StatusBarMain: TStatusBar 17 17 Left = 0 18 Height = 2 019 Top = 39120 Width = 67018 Height = 29 19 Top = 528 20 Width = 860 21 21 Panels = < 22 22 item … … 35 35 Height = 26 36 36 Top = 0 37 Width = 67037 Width = 860 38 38 Images = ImageListMain 39 39 ParentShowHint = False … … 128 128 end 129 129 object PageControlRight: TPageControl 130 Left = 277131 Height = 365130 Left = 467 131 Height = 502 132 132 Top = 26 133 133 Width = 393 … … 139 139 object TabSheetDebug: TTabSheet 140 140 Caption = 'Debug' 141 ClientHeight = 357142 ClientWidth = 3 65141 ClientHeight = 496 142 ClientWidth = 315 143 143 object PanelInput: TPanel 144 144 Left = 0 145 145 Height = 64 146 146 Top = 0 147 Width = 3 65147 Width = 315 148 148 Align = alTop 149 149 BevelOuter = bvNone … … 155 155 Height = 5 156 156 Top = 64 157 Width = 3 65157 Width = 315 158 158 Align = alTop 159 159 ResizeAnchor = akTop … … 163 163 Height = 259 164 164 Top = 69 165 Width = 3 65165 Width = 315 166 166 Align = alTop 167 167 BevelOuter = bvNone … … 173 173 Height = 5 174 174 Top = 328 175 Width = 3 65175 Width = 315 176 176 Align = alTop 177 177 ResizeAnchor = akTop … … 181 181 Height = 86 182 182 Top = 333 183 Width = 3 65183 Width = 315 184 184 Align = alTop 185 185 BevelOuter = bvNone … … 190 190 Left = 0 191 191 Height = 5 192 Top = 357193 Width = 3 65192 Top = 419 193 Width = 315 194 194 Align = alTop 195 195 ResizeAnchor = akTop … … 197 197 object PanelMemory: TPanel 198 198 Left = 0 199 Height = 0200 Top = 357201 Width = 3 65199 Height = 72 200 Top = 424 201 Width = 315 202 202 Align = alClient 203 203 BevelOuter = bvNone … … 207 207 end 208 208 object Splitter1: TSplitter 209 Left = 272210 Height = 365209 Left = 462 210 Height = 502 211 211 Top = 26 212 212 Width = 5 … … 216 216 object PanelLeft: TPanel 217 217 Left = 0 218 Height = 365218 Height = 502 219 219 Top = 26 220 Width = 272220 Width = 462 221 221 Align = alClient 222 222 BevelOuter = bvNone 223 ClientHeight = 365224 ClientWidth = 272223 ClientHeight = 502 224 ClientWidth = 462 225 225 TabOrder = 4 226 226 object PageControlMain: TPageControl 227 227 Left = 0 228 Height = 242228 Height = 379 229 229 Top = 0 230 Width = 272230 Width = 462 231 231 ActivePage = TabSheetSource 232 232 Align = alClient … … 244 244 Left = 0 245 245 Height = 118 246 Top = 247247 Width = 272246 Top = 384 247 Width = 462 248 248 ActivePage = TabSheetMessages 249 249 Align = alBottom … … 259 259 Left = 0 260 260 Height = 5 261 Top = 242262 Width = 272261 Top = 379 262 Width = 462 263 263 Align = alBottom 264 264 ResizeAnchor = akBottom -
trunk/Forms/UFormMain.pas
r57 r59 197 197 procedure TMainForm.FormShow(Sender: TObject); 198 198 begin 199 with Core.ScaleDPI do begin 200 ApplyToAll(DesignDPI); 201 ScaleImageList(ImageListMain, DesignDPI); 202 end; 199 203 Core.CoolTranslator1.Translate; 200 204 LoadFromRegistry(HKEY(Core.ApplicationInfo.RegistryRoot), Core.ApplicationInfo.RegistryKey); … … 446 450 procedure TMainForm.AOptionsExecute(Sender: TObject); 447 451 begin 452 OptionsForm.Load; 448 453 //OptionsForm.LoadFromInterpretter(CurrentTarget); 449 454 if OptionsForm.ShowModal = mrOK then begin 450 455 //OptionsForm.SaveToInterpretter(CurrentTarget); 456 OptionsForm.Save; 451 457 end; 452 458 end; -
trunk/Forms/UFormMemory.lfm
r39 r59 7 7 ClientHeight = 259 8 8 ClientWidth = 391 9 LCLVersion = ' 0.9.31'9 LCLVersion = '1.3' 10 10 object Label6: TLabel 11 Left = 8 12 Height = 18 13 Top = 8 14 Width = 57 11 Left = 4 12 Height = 25 13 Top = 4 14 Width = 383 15 Align = alTop 16 BorderSpacing.Around = 4 15 17 Caption = 'Memory:' 16 18 ParentColor = False 17 19 end 18 20 object ListViewMemory: TListView 19 Left = 8 20 Height = 231 21 Top = 24 22 Width = 374 23 Anchors = [akTop, akLeft, akRight, akBottom] 21 Left = 4 22 Height = 222 23 Top = 33 24 Width = 383 25 Align = alClient 26 BorderSpacing.Around = 4 24 27 Columns = < 25 28 item -
trunk/Forms/UFormOptions.lfm
r37 r59 8 8 ClientWidth = 468 9 9 OnShow = FormShow 10 LCLVersion = ' 0.9.31'10 LCLVersion = '1.3' 11 11 object ButtonOk: TButton 12 12 Left = 389 … … 31 31 end 32 32 object SpinEditCellSize: TSpinEdit 33 Left = 1 3634 Height = 2133 Left = 165 34 Height = 35 35 35 Top = 40 36 36 Width = 130 … … 39 39 end 40 40 object SpinEditMemorySize: TSpinEdit 41 Left = 1 3642 Height = 2141 Left = 165 42 Height = 35 43 43 Top = 6 44 44 Width = 130 … … 48 48 object Label1: TLabel 49 49 Left = 8 50 Height = 1450 Height = 25 51 51 Top = 8 52 Width = 6452 Width = 123 53 53 Caption = 'Memory size:' 54 54 ParentColor = False … … 56 56 object Label2: TLabel 57 57 Left = 8 58 Height = 1458 Height = 25 59 59 Top = 40 60 Width = 4360 Width = 79 61 61 Caption = 'Cell size:' 62 62 ParentColor = False … … 64 64 object Label3: TLabel 65 65 Left = 8 66 Height = 1466 Height = 25 67 67 Top = 95 68 Width = 9768 Width = 179 69 69 Caption = 'Interface language:' 70 70 ParentColor = False … … 72 72 object CheckBox1: TCheckBox 73 73 Left = 8 74 Height = 17 75 Top = 120 76 Width = 159 74 Height = 27 75 Top = 128 76 Width = 456 77 Anchors = [akTop, akLeft, akRight] 78 AutoSize = False 77 79 Caption = 'Reopend last opened project' 78 80 TabOrder = 4 79 81 end 80 82 object ComboBoxLanguage: TComboBox 81 Left = 16282 Height = 2183 Top = 8 683 Left = 248 84 Height = 37 85 Top = 83 84 86 Width = 188 85 ItemHeight = 1387 ItemHeight = 0 86 88 Style = csDropDownList 87 89 TabOrder = 5 88 90 end 91 object SpinEditDPIX: TSpinEdit 92 Left = 104 93 Height = 35 94 Top = 193 95 Width = 80 96 MaxValue = 1000 97 MinValue = 1 98 TabOrder = 6 99 Value = 1 100 end 101 object LabelDPI: TLabel 102 Left = 24 103 Height = 25 104 Top = 201 105 Width = 39 106 Caption = 'DPI:' 107 ParentColor = False 108 end 109 object SpinEditDPIY: TSpinEdit 110 Left = 208 111 Height = 35 112 Top = 193 113 Width = 80 114 MaxValue = 1000 115 MinValue = 1 116 TabOrder = 7 117 Value = 1 118 end 119 object LabelX: TLabel 120 Left = 192 121 Height = 25 122 Top = 201 123 Width = 10 124 Caption = 'x' 125 ParentColor = False 126 end 127 object CheckBoxDPIAuto: TCheckBox 128 Left = 8 129 Height = 27 130 Top = 168 131 Width = 448 132 Anchors = [akTop, akLeft, akRight] 133 AutoSize = False 134 Caption = 'Automatic DPI' 135 OnChange = CheckBoxDPIAutoChange 136 TabOrder = 8 137 end 89 138 end -
trunk/Forms/UFormOptions.pas
r51 r59 1 1 unit UFormOptions; 2 2 3 {$mode objfpc}{$H+}3 {$mode delphi}{$H+} 4 4 5 5 interface … … 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 Spin, ComCtrls,UTargetInterpretter;9 Spin, UTargetInterpretter; 10 10 11 11 type … … 17 17 ButtonCancel: TButton; 18 18 CheckBox1: TCheckBox; 19 CheckBoxDPIAuto: TCheckBox; 19 20 ComboBoxLanguage: TComboBox; 20 21 Label1: TLabel; 21 22 Label2: TLabel; 22 23 Label3: TLabel; 24 LabelDPI: TLabel; 25 LabelX: TLabel; 26 SpinEditDPIX: TSpinEdit; 27 SpinEditDPIY: TSpinEdit; 23 28 SpinEditCellSize: TSpinEdit; 24 29 SpinEditMemorySize: TSpinEdit; 25 30 procedure ButtonOkClick(Sender: TObject); 31 procedure CheckBoxDPIAutoChange(Sender: TObject); 26 32 procedure FormShow(Sender: TObject); 27 33 private 28 34 { private declarations } 29 35 public 36 procedure UpdateInterface; 37 procedure Load; 38 procedure Save; 30 39 procedure LoadFromInterpretter(Interpretter: TTargetInterpretter); 31 40 procedure SaveToInterpretter(Interpretter: TTargetInterpretter); … … 52 61 end; 53 62 63 procedure TOptionsForm.UpdateInterface; 64 begin 65 SpinEditDPIX.Enabled := not CheckBoxDPIAuto.Checked; 66 SpinEditDPIY.Enabled := not CheckBoxDPIAuto.Checked; 67 LabelDPI.Enabled := not CheckBoxDPIAuto.Checked; 68 LabelX.Enabled := not CheckBoxDPIAuto.Checked; 69 if CheckBoxDPIAuto.Checked then begin 70 SpinEditDPIX.Value := ScreenInfo.PixelsPerInchX; 71 SpinEditDPIY.Value := ScreenInfo.PixelsPerInchY; 72 end; 73 end; 74 75 procedure TOptionsForm.Load; 76 begin 77 SpinEditDPIX.Value := Core.ScaleDPI.DPI.X; 78 SpinEditDPIY.Value := Core.ScaleDPI.DPI.Y; 79 CheckBoxDPIAuto.Checked := Core.ScaleDPI.AutoDetect; 80 UpdateInterface; 81 end; 82 83 procedure TOptionsForm.Save; 84 begin 85 Core.ScaleDPI.DPI.X := SpinEditDPIX.Value; 86 Core.ScaleDPI.DPI.Y := SpinEditDPIY.Value; 87 Core.ScaleDPI.AutoDetect := CheckBoxDPIAuto.Checked; 88 end; 89 54 90 procedure TOptionsForm.ButtonOkClick(Sender: TObject); 55 91 begin … … 57 93 Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 58 94 Core.OpenProjectOnStart := CheckBox1.Checked; 95 end; 96 97 procedure TOptionsForm.CheckBoxDPIAutoChange(Sender: TObject); 98 begin 99 UpdateInterface; 59 100 end; 60 101 -
trunk/Forms/UFormOutput.lfm
r39 r59 1 1 object FormOutput: TFormOutput 2 2 Left = 256 3 Height = 2403 Height = 440 4 4 Top = 32 5 5 Width = 320 6 6 Caption = 'Output' 7 ClientHeight = 2407 ClientHeight = 440 8 8 ClientWidth = 320 9 LCLVersion = ' 0.9.31'9 LCLVersion = '1.3' 10 10 object Label2: TLabel 11 Left = 8 12 Height = 18 13 Top = 6 14 Width = 49 11 Left = 4 12 Height = 25 13 Top = 4 14 Width = 312 15 Align = alTop 16 BorderSpacing.Around = 4 15 17 Caption = 'Output:' 16 18 ParentColor = False 17 19 end 18 20 object MemoOutput: TMemo 19 Left = 8 20 Height = 211 21 Top = 22 22 Width = 309 23 Anchors = [akTop, akLeft, akRight, akBottom] 21 Left = 4 22 Height = 403 23 Top = 33 24 Width = 312 25 Align = alClient 26 BorderSpacing.Around = 4 24 27 Font.Height = -12 25 28 Font.Name = 'Courier New'
Note:
See TracChangeset
for help on using the changeset viewer.