Changeset 128 for trunk/Forms
- Timestamp:
- Jan 17, 2022, 4:53:31 PM (3 years ago)
- Location:
- trunk/Forms
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r126 r128 334 334 var 335 335 Title: string; 336 CanDebug: Boolean; 336 337 begin 337 338 Title := ''; … … 352 353 AProgramCompile.Enabled := (tcCompile in Core.CurrentTarget.Capabilities) and 353 354 Core.Project.Openned; 354 AProgramStepInto.Enabled := (tcStepInto in Core.CurrentTarget.Capabilities) and 355 Core.Project.Openned and ((Core.CurrentTarget.State = rsPaused) or (Core.CurrentTarget.State = rsStopped)); 356 AProgramStepOut.Enabled := (tcStepOut in Core.CurrentTarget.Capabilities) and 357 Core.Project.Openned and (Core.CurrentTarget.State = rsPaused); 358 AProgramRunToCursor.Enabled := (tcRunToCursor in Core.CurrentTarget.Capabilities) and 359 Core.Project.Openned and ((Core.CurrentTarget.State = rsPaused) or (Core.CurrentTarget.State = rsStopped)); 360 AProgramStepOver.Enabled := (tcStepOver in Core.CurrentTarget.Capabilities) and 361 Core.Project.Openned and ((Core.CurrentTarget.State = rsPaused) or (Core.CurrentTarget.State = rsStopped)); 362 AProgramShowExecutionPoint.Enabled := (tcPause in Core.CurrentTarget.Capabilities) and 363 Core.Project.Openned and (Core.CurrentTarget.State = rsPaused); 355 CanDebug := Core.DebugEnabled and Core.Project.Openned and 356 ((Core.CurrentTarget.State = rsPaused) or (Core.CurrentTarget.State = rsStopped)); 357 AProgramStepInto.Enabled := CanDebug and (tcStepInto in Core.CurrentTarget.Capabilities); 358 AProgramStepOut.Enabled := CanDebug and (tcStepOut in Core.CurrentTarget.Capabilities); 359 AProgramRunToCursor.Enabled := CanDebug and (tcRunToCursor in Core.CurrentTarget.Capabilities); 360 AProgramStepOver.Enabled := CanDebug and (tcStepOver in Core.CurrentTarget.Capabilities); 361 AProgramShowExecutionPoint.Enabled := CanDebug and (tcPause in Core.CurrentTarget.Capabilities); 364 362 AShowSourcePosition.Enabled := Core.CurrentTarget.Compiled; 365 363 AShowTargetPosition.Enabled := Core.CurrentTarget.Compiled; … … 568 566 if Core.CurrentTarget.State = rsStopped then begin 569 567 if not Core.CurrentTarget.Compiled then AProgramCompile.Execute; 570 Core.CurrentTarget.BreakPoints.SetSystem( TDebugStep(Core.CurrentTarget.DebugSteps.First).ProgramPosition);568 Core.CurrentTarget.BreakPoints.SetSystem(Core.CurrentTarget.DebugSteps.First.ProgramPosition); 571 569 AProgramRun.Execute; 572 570 end else Core.CurrentTarget.StepInto; -
trunk/Forms/UFormOptions.lfm
r126 r128 39 39 Top = 10 40 40 Width = 711 41 ActivePage = TabSheet Build41 ActivePage = TabSheetGeneral 42 42 Anchors = [akTop, akLeft, akRight, akBottom] 43 43 ParentFont = False 44 TabIndex = 144 TabIndex = 0 45 45 TabOrder = 2 46 46 object TabSheetGeneral: TTabSheet … … 78 78 TabOrder = 0 79 79 end 80 object CheckBox 1: TCheckBox80 object CheckBoxReopenLastFile: TCheckBox 81 81 Left = 10 82 82 Height = 32 … … 279 279 TabOrder = 7 280 280 end 281 object CheckBoxDebugEnabled: TCheckBox 282 Left = 392 283 Height = 30 284 Top = 12 285 Width = 120 286 Caption = 'Debugging' 287 ParentFont = False 288 TabOrder = 8 289 end 281 290 end 282 291 end -
trunk/Forms/UFormOptions.lrj
r126 r128 5 5 {"hash":231000124,"name":"tformoptions.tabsheetgeneral.caption","sourcebytes":[71,101,110,101,114,97,108],"value":"General"}, 6 6 {"hash":52873082,"name":"tformoptions.label3.caption","sourcebytes":[73,110,116,101,114,102,97,99,101,32,108,97,110,103,117,97,103,101,58],"value":"Interface language:"}, 7 {"hash":100189188,"name":"tformoptions.checkbox 1.caption","sourcebytes":[82,101,111,112,101,110,100,32,108,97,115,116,32,111,112,101,110,101,100,32,112,114,111,106,101,99,116],"value":"Reopend last opened project"},7 {"hash":100189188,"name":"tformoptions.checkboxreopenlastfile.caption","sourcebytes":[82,101,111,112,101,110,100,32,108,97,115,116,32,111,112,101,110,101,100,32,112,114,111,106,101,99,116],"value":"Reopend last opened project"}, 8 8 {"hash":37628553,"name":"tformoptions.checkboxdpiauto.caption","sourcebytes":[65,117,116,111,109,97,116,105,99,32,68,80,73],"value":"Automatic DPI"}, 9 9 {"hash":300234,"name":"tformoptions.labeldpi.caption","sourcebytes":[68,80,73,58],"value":"DPI:"}, … … 18 18 {"hash":243182762,"name":"tformoptions.label2.caption","sourcebytes":[67,101,108,108,32,115,105,122,101,58],"value":"Cell size:"}, 19 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 {"hash":208144671,"name":"tformoptions.checkboxoptimizesetzero.caption","sourcebytes":[83,101,116,32,122,101,114,111],"value":"Set zero"}, 21 {"hash":163419895,"name":"tformoptions.checkboxdebugenabled.caption","sourcebytes":[68,101,98,117,103,103,105,110,103],"value":"Debugging"} 21 22 ]} -
trunk/Forms/UFormOptions.pas
r126 r128 16 16 ButtonOk: TButton; 17 17 ButtonCancel: TButton; 18 CheckBox 1: TCheckBox;18 CheckBoxReopenLastFile: TCheckBox; 19 19 CheckBoxDPIAuto: TCheckBox; 20 20 CheckBoxOptimizeAddSub: TCheckBox; 21 CheckBoxDebugEnabled: TCheckBox; 21 22 CheckBoxOptimizeCopyMultiply: TCheckBox; 22 23 CheckBoxOptimizeSetZero: TCheckBox; … … 96 97 ComboBoxTheme.ItemIndex := ComboBoxTheme.Items.IndexOfObject(Core.ThemeManager.Theme); 97 98 if ComboBoxTheme.ItemIndex = -1 then ComboBoxTheme.ItemIndex := 0; 98 CheckBox 1.Checked := Core.OpenProjectOnStart;99 CheckBoxReopenLastFile.Checked := Core.OpenProjectOnStart; 99 100 CheckBoxOptimizeAddSub.Checked := Core.Optimizations.AddSub; 100 101 CheckBoxOptimizeSetZero.Checked := Core.Optimizations.SetZero; … … 108 109 SpinEditCellSize.Value := Core.CellSize; 109 110 SpinEditMemorySize.Value := Core.MemorySize; 111 CheckBoxDebugEnabled.Checked := Core.DebugEnabled; 112 if Core.OptionsFormTabIndex < PageControl1.PageCount then 113 PageControl1.TabIndex := Core.OptionsFormTabIndex 114 else PageControl1.TabIndex := 0; 110 115 UpdateInterface; 111 116 end; … … 117 122 if ComboBoxTheme.ItemIndex <> -1 then 118 123 Core.ThemeManager.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]); 119 Core.OpenProjectOnStart := CheckBox 1.Checked;124 Core.OpenProjectOnStart := CheckBoxReopenLastFile.Checked; 120 125 Core.ScaleDPI1.DPI := Point(SpinEditDPIX.Value, SpinEditDPIY.Value); 121 126 Core.ScaleDPI1.AutoDetect := CheckBoxDPIAuto.Checked; … … 128 133 Core.Optimizations.RelativeIndexes := CheckBoxOptimizeRelativeIndexes.Checked; 129 134 Core.Optimizations.CopyMultiply := CheckBoxOptimizeCopyMultiply.Checked; 135 Core.DebugEnabled := CheckBoxDebugEnabled.Checked; 136 Core.OptionsFormTabIndex := PageControl1.TabIndex; 130 137 end; 131 138 -
trunk/Forms/UFormSourceCode.lfm
r115 r128 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy 12 LCLVersion = '2. 0.2.0'12 LCLVersion = '2.2.0.4' 13 13 inline SynEditSource: TSynEdit 14 14 Left = 0 15 Height = 49115 Height = 589 16 16 Top = 0 17 Width = 56017 Width = 672 18 18 Align = alClient 19 19 Font.Height = -16 … … 517 517 object PopupMenuSource: TPopupMenu 518 518 Images = Core.ImageListMain 519 left = 154520 top = 154519 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 = 154594 top = 67593 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 = 486648 top = 316647 Left = 486 648 Top = 316 649 649 end 650 650 end -
trunk/Forms/UFormSourceCode.pas
r109 r128 7 7 uses 8 8 Classes, SysUtils, FileUtil, SynEdit, SynHighlighterIni, Forms, Controls, 9 Graphics, Dialogs, StdCtrls,Menus, ActnList, strutils,9 Graphics, Dialogs, Menus, ActnList, strutils, 10 10 SynEditHighlighter, SynHighlighterAny, SynHighlighterJava, UBFHighlighter; 11 11 … … 132 132 end; 133 133 SynEditSource.Text := NewSource; 134 MemoSourceChange(nil); 134 135 end; 135 136 … … 165 166 SetLength(Source, Pos - 1); 166 167 SynEditSource.Text := Source; 168 MemoSourceChange(nil); 167 169 end; 168 170 -
trunk/Forms/UFormTargetCode.pas
r107 r128 9 9 SynHighlighterCpp, SynHighlighterPHP, SynHighlighterJava, 10 10 SynHighlighterPython, SynHighlighterJScript, Forms, Controls, Graphics, 11 Dialogs, StdCtrls,Menus, ActnList, strutils;11 Dialogs, Menus, ActnList, strutils; 12 12 13 13 type
Note:
See TracChangeset
for help on using the changeset viewer.