Changeset 115 for trunk/Forms
- Timestamp:
- Oct 13, 2020, 8:05:14 PM (4 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormLog.pas
r96 r115 35 35 procedure TFormLog.FormCreate(Sender: TObject); 36 36 begin 37 Core. CoolTranslator1.TranslateComponentRecursive(Self);37 Core.Translator.TranslateComponentRecursive(Self); 38 38 Core.ThemeManager.UseTheme(Self); 39 39 end; -
trunk/Forms/UFormMain.lfm
r113 r115 1 1 object FormMain: TFormMain 2 Left = 4 052 Left = 430 3 3 Height = 703 4 Top = 2 264 Top = 249 5 5 Width = 1032 6 6 Caption = 'LazFuck' … … 14 14 OnDestroy = FormDestroy 15 15 OnShow = FormShow 16 LCLVersion = '2.0. 2.0'16 LCLVersion = '2.0.10.0' 17 17 WindowState = wsMaximized 18 18 object StatusBarMain: TStatusBar 19 19 Left = 0 20 Height = 2 821 Top = 64 120 Height = 27 21 Top = 642 22 22 Width = 1032 23 23 Panels = < … … 73 73 end 74 74 object ToolButton6: TToolButton 75 Left = 23 975 Left = 237 76 76 Top = 2 77 77 Action = AProgramRun 78 78 end 79 79 object ToolButton7: TToolButton 80 Left = 20 480 Left = 202 81 81 Top = 2 82 82 Action = AProgramCompile … … 88 88 end 89 89 object ToolButton9: TToolButton 90 Left = 34 490 Left = 342 91 91 Top = 2 92 92 Action = ABreakpointToggle 93 93 end 94 94 object ToolButton10: TToolButton 95 Left = 27 495 Left = 272 96 96 Top = 2 97 97 Action = AProgramPause 98 98 end 99 99 object ToolButton11: TToolButton 100 Left = 30 9100 Left = 307 101 101 Top = 2 102 102 Action = AProgramStop 103 103 end 104 104 object ToolButton12: TToolButton 105 Left = 37 9105 Left = 377 106 106 Top = 2 107 107 Action = AProgramStepOver 108 108 end 109 109 object ToolButton13: TToolButton 110 Left = 41 4110 Left = 412 111 111 Top = 2 112 112 Action = AProgramStepInto 113 113 end 114 114 object ToolButton14: TToolButton 115 Left = 44 9115 Left = 447 116 116 Top = 2 117 117 Action = AProgramStepOut 118 118 end 119 119 object ToolButton15: TToolButton 120 Left = 48 4120 Left = 482 121 121 Top = 2 122 122 Action = AProgramRunToCursor 123 123 end 124 124 object ToolButtonTarget: TToolButton 125 Left = 51 9125 Left = 517 126 126 Hint = 'Target select' 127 127 Top = 2 … … 133 133 object PageControlRight: TPageControl 134 134 Left = 560 135 Height = 61 0135 Height = 611 136 136 Top = 31 137 137 Width = 472 … … 144 144 object TabSheetDebug: TTabSheet 145 145 Caption = 'Debug' 146 ClientHeight = 60 6146 ClientHeight = 607 147 147 ClientWidth = 390 148 148 ParentFont = False … … 206 206 object PanelMemory: TPanel 207 207 Left = 0 208 Height = 9 7208 Height = 98 209 209 Top = 509 210 210 Width = 390 … … 218 218 object Splitter1: TSplitter 219 219 Left = 554 220 Height = 61 0220 Height = 611 221 221 Top = 31 222 222 Width = 6 … … 226 226 object PanelLeft: TPanel 227 227 Left = 0 228 Height = 61 0228 Height = 611 229 229 Top = 31 230 230 Width = 554 231 231 Align = alClient 232 232 BevelOuter = bvNone 233 ClientHeight = 61 0233 ClientHeight = 611 234 234 ClientWidth = 554 235 235 ParentFont = False … … 237 237 object PageControlMain: TPageControl 238 238 Left = 0 239 Height = 46 2239 Height = 463 240 240 Top = 0 241 241 Width = 554 … … 257 257 Left = 0 258 258 Height = 142 259 Top = 46 8259 Top = 469 260 260 Width = 554 261 261 ActivePage = TabSheetMessages … … 274 274 Left = 0 275 275 Height = 6 276 Top = 46 2276 Top = 463 277 277 Width = 554 278 278 Align = alBottom … … 282 282 object MainMenu1: TMainMenu 283 283 Images = Core.ImageListMain 284 left = 259285 top = 163284 Left = 259 285 Top = 163 286 286 object MenuItem1: TMenuItem 287 287 Caption = 'Project' … … 383 383 object ActionList1: TActionList 384 384 Images = Core.ImageListMain 385 left = 259386 top = 230385 Left = 259 386 Top = 230 387 387 object AProjectOpen: TAction 388 388 Category = 'Project' … … 529 529 DefaultExt = '.b' 530 530 Filter = 'BrainFuck (*.b)|*.b|Any file (*.*)|*.*' 531 left = 67532 top = 221531 Left = 67 532 Top = 221 533 533 end 534 534 object SaveDialog1: TSaveDialog 535 535 DefaultExt = '.b' 536 536 Filter = 'BrainFuck (*.b)|*.b|Any file (*.*)|*.*' 537 left = 67538 top = 288537 Left = 67 538 Top = 288 539 539 end 540 540 object TimerRefresh: TTimer 541 541 OnTimer = TimerRefreshTimer 542 left = 67543 top = 355542 Left = 67 543 Top = 355 544 544 end 545 545 object PopupMenuRecentFiles: TPopupMenu 546 left = 67547 top = 77546 Left = 67 547 Top = 77 548 548 end 549 549 object PopupMenuTargets: TPopupMenu 550 Images = Core.ImageListMain 551 left = 67 552 top = 143 550 Left = 67 551 Top = 143 553 552 end 554 553 end -
trunk/Forms/UFormMain.pas
r114 r115 146 146 procedure ProjectOpen(FileName: string); 147 147 procedure UpdateToolBarHints; 148 procedure DockForm(Form: TForm; DockSite: TWinControl); 148 149 procedure DockInit; 149 150 procedure LastOpenedListChange(Sender: TObject); … … 170 171 UCore, UFormCPU, UFormOptions, UFormMessages, UFormTargets, UFormOutput, UFormInput, 171 172 UFormMemory, UFormSourceCode, UFormTargetCode, UTargetInterpretter, UFormLog, 172 UBFTarget , UFormAbout;173 UBFTarget; 173 174 174 175 resourcestring … … 267 268 end; 268 269 270 procedure TFormMain.DockForm(Form: TForm; DockSite: TWinControl); 271 begin 272 Form.ManualDock(DockSite, nil, alClient); 273 Form.Align := alClient; 274 Form.Show; 275 end; 276 269 277 procedure TFormMain.DockInit; 270 278 begin 271 FormSourceCode.ManualDock(TabSheetSource, nil, alClient); 272 FormSourceCode.Align := alClient; 273 FormSourceCode.Show; 274 FormTargetCode.ManualDock(TabSheetTarget, nil, alClient); 275 FormTargetCode.Align := alClient; 276 FormTargetCode.Show; 277 FormCPU.ManualDock(PanelCPU, nil, alClient); 278 FormCPU.Align := alClient; 279 FormCPU.Show; 280 FormInput.ManualDock(PanelInput, nil, alClient); 281 FormInput.Align := alClient; 282 FormInput.Show; 283 FormOutput.ManualDock(PanelOutput, nil, alClient); 284 FormOutput.Align := alClient; 285 FormOutput.Show; 286 FormMemory.ManualDock(PanelMemory, nil, alClient); 287 FormMemory.Align := alClient; 288 FormMemory.Show; 289 FormMessages.ManualDock(TabSheetMessages, nil, alClient); 290 FormMessages.Align := alClient; 291 FormMessages.Show; 279 DockForm(FormSourceCode, TabSheetSource); 280 DockForm(FormTargetCode, TabSheetTarget); 281 DockForm(FormCPU, PanelCPU); 282 DockForm(FormInput, PanelInput); 283 DockForm(FormOutput, PanelOutput); 284 DockForm(FormMemory, PanelMemory); 285 DockForm(FormMessages, TabSheetMessages); 292 286 PageControlRight.Width := FormMain.Width div 3; 293 287 PageControlBottom.Height := FormMain.Height div 5; … … 534 528 procedure TFormMain.AAboutExecute(Sender: TObject); 535 529 begin 536 FormAbout := TFormAbout.Create(nil); 537 try 538 FormAbout.ApplicationInfo := Core.ApplicationInfo; 539 FormAbout.CoolTranslator := Core.CoolTranslator1; 540 Core.ScaleDPI1.ScaleControl(FormAbout, Core.ScaleDPI1.DesignDPI); 541 FormAbout.ShowModal; 542 finally 543 FreeAndNil(FormAbout); 544 end; 530 Core.AboutDialog.Show; 545 531 end; 546 532 -
trunk/Forms/UFormOptions.pas
r96 r115 88 88 procedure TFormOptions.Load; 89 89 begin 90 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core. CoolTranslator1.Language);90 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.Translator.Language); 91 91 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 92 92 ComboBoxTheme.ItemIndex := ComboBoxTheme.Items.IndexOfObject(Core.ThemeManager.Theme); … … 109 109 begin 110 110 if ComboBoxLanguage.ItemIndex <> -1 then 111 Core. CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);111 Core.Translator.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 112 112 if ComboBoxTheme.ItemIndex <> -1 then 113 113 Core.ThemeManager.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]); … … 137 137 procedure TFormOptions.FormCreate(Sender: TObject); 138 138 begin 139 Core. CoolTranslator1.TranslateComponentRecursive(Self);139 Core.Translator.TranslateComponentRecursive(Self); 140 140 Core.ThemeManager.UseTheme(Self); 141 141 Core.ThemeManager.Themes.LoadToStrings(ComboBoxTheme.Items); 142 Core. CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);142 Core.Translator.LanguageListToStrings(ComboBoxLanguage.Items); 143 143 end; 144 144 -
trunk/Forms/UFormSourceCode.lfm
r109 r115 1 1 object FormSourceCode: TFormSourceCode 2 2 Left = 459 3 Height = 4913 Height = 589 4 4 Top = 278 5 Width = 5605 Width = 672 6 6 Caption = 'Source code' 7 ClientHeight = 4918 ClientWidth = 5609 DesignTimePPI = 1 207 ClientHeight = 589 8 ClientWidth = 672 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy … … 17 17 Width = 560 18 18 Align = alClient 19 Font.Height = -1 319 Font.Height = -16 20 20 Font.Name = 'Courier New' 21 21 Font.Pitch = fpFixed … … 29 29 OnKeyUp = MemoSourceKeyUp 30 30 OnMouseDown = MemoSourceMouseDown 31 Gutter.Width = 6731 Gutter.Width = 80 32 32 Gutter.MouseActions = <> 33 33 RightGutter.Width = 0 … … 479 479 inline SynLeftGutterPartList1: TSynGutterPartList 480 480 object SynGutterMarks1: TSynGutterMarks 481 Width = 3 0481 Width = 36 482 482 MouseActions = <> 483 483 end 484 484 object SynGutterLineNumber1: TSynGutterLineNumber 485 Width = 17485 Width = 21 486 486 MouseActions = <> 487 487 MarkupInfo.Background = clBtnFace … … 493 493 end 494 494 object SynGutterChanges1: TSynGutterChanges 495 Width = 5495 Width = 6 496 496 MouseActions = <> 497 497 ModifiedColor = 59900 … … 506 506 object SynGutterCodeFolding1: TSynGutterCodeFolding 507 507 AutoSize = False 508 Width = 1 2508 Width = 14 509 509 MouseActions = <> 510 510 MarkupInfo.Background = clNone … … 517 517 object PopupMenuSource: TPopupMenu 518 518 Images = Core.ImageListMain 519 left = 1 28520 top = 1 28519 left = 154 520 top = 154 521 521 object MenuItem23: TMenuItem 522 522 Action = FormMain.ABreakpointToggle … … 591 591 object ActionList1: TActionList 592 592 Images = Core.ImageListMain 593 left = 1 28594 top = 56593 left = 154 594 top = 67 595 595 object AGenerateNumber: TAction 596 596 Caption = 'Generate number' … … 645 645 DefaultFilter = 'Soubory Java (*.java)|*.java' 646 646 Enabled = False 647 left = 4 05648 top = 263647 left = 486 648 top = 316 649 649 end 650 650 end -
trunk/Forms/UFormTargetOptions.lfm
r103 r115 1 1 object FormTargetOptions: TFormTargetOptions 2 Left = 4293 Height = 24 74 Top = 2285 Width = 5 062 Left = 667 3 Height = 242 4 Top = 613 5 Width = 586 6 6 Caption = 'Target options' 7 ClientHeight = 24 78 ClientWidth = 5 067 ClientHeight = 242 8 ClientWidth = 586 9 9 DesignTimePPI = 144 10 10 OnClose = FormClose 11 11 OnCreate = FormCreate 12 12 OnShow = FormShow 13 LCLVersion = '2.0. 0.4'13 LCLVersion = '2.0.10.0' 14 14 object Edit1: TEdit 15 15 Left = 10 16 Height = 3316 Height = 42 17 17 Top = 38 18 Width = 38918 Width = 469 19 19 Anchors = [akTop, akLeft, akRight] 20 20 ParentFont = False … … 23 23 object Label1: TLabel 24 24 Left = 10 25 Height = 2 525 Height = 24 26 26 Top = 8 27 Width = 1 4427 Width = 155 28 28 Caption = 'Compiler location:' 29 29 ParentColor = False … … 31 31 end 32 32 object ButtonCompiler: TButton 33 Left = 4 0933 Left = 489 34 34 Height = 37 35 35 Top = 42 … … 42 42 end 43 43 object ButtonExecute: TButton 44 Left = 4 0944 Left = 489 45 45 Height = 37 46 46 Top = 115 … … 54 54 object Edit2: TEdit 55 55 Left = 10 56 Height = 3356 Height = 42 57 57 Top = 115 58 Width = 38958 Width = 469 59 59 Anchors = [akTop, akLeft, akRight] 60 60 ParentFont = False … … 63 63 object Label2: TLabel 64 64 Left = 10 65 Height = 2 565 Height = 24 66 66 Top = 86 67 Width = 1 3967 Width = 151 68 68 Caption = 'Executor location:' 69 69 ParentColor = False … … 71 71 end 72 72 object ButtonOk: TButton 73 Left = 38373 Left = 463 74 74 Height = 37 75 Top = 19 675 Top = 191 76 76 Width = 109 77 77 Anchors = [akRight, akBottom] … … 82 82 end 83 83 object ButtonCancel: TButton 84 Left = 24884 Left = 328 85 85 Height = 37 86 Top = 19 686 Top = 191 87 87 Width = 109 88 88 Anchors = [akRight, akBottom] … … 95 95 DefaultExt = '.exe' 96 96 Filter = 'Program (*.exe)|*.exe|JakÃœkoliv soubor (*.*)|*.*' 97 left = 11898 top = 14597 Left = 118 98 Top = 145 99 99 end 100 100 end -
trunk/Forms/UFormTargetOptions.pas
r96 r115 68 68 procedure TFormTargetOptions.FormCreate(Sender: TObject); 69 69 begin 70 Core. CoolTranslator1.TranslateComponentRecursive(Self);70 Core.Translator.TranslateComponentRecursive(Self); 71 71 Core.ThemeManager.UseTheme(Self); 72 72 end; -
trunk/Forms/UFormTargets.pas
r96 r115 44 44 procedure TFormTargets.FormCreate(Sender: TObject); 45 45 begin 46 Core. CoolTranslator1.TranslateComponentRecursive(Self);46 Core.Translator.TranslateComponentRecursive(Self); 47 47 Core.ThemeManager.UseTheme(Self); 48 48 end;
Note:
See TracChangeset
for help on using the changeset viewer.