Changeset 113 for trunk


Ignore:
Timestamp:
May 17, 2019, 10:32:20 PM (5 years ago)
Author:
chronos
Message:
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r106 r113  
    11object FormMain: TFormMain
    22  Left = 405
    3   Height = 586
     3  Height = 703
    44  Top = 226
    5   Width = 860
     5  Width = 1032
    66  Caption = 'LazFuck'
    7   ClientHeight = 561
    8   ClientWidth = 860
    9   DesignTimePPI = 120
     7  ClientHeight = 669
     8  ClientWidth = 1032
     9  DesignTimePPI = 144
    1010  Menu = MainMenu1
    1111  OnClose = FormClose
     
    1919    Left = 0
    2020    Height = 28
    21     Top = 533
    22     Width = 860
     21    Top = 641
     22    Width = 1032
    2323    Panels = <   
    2424      item
    25         Width = 70
     25        Width = 84
    2626      end   
    2727      item
    28         Width = 70
     28        Width = 84
    2929      end   
    3030      item
    31         Width = 80
     31        Width = 96
    3232      end>
    3333    ParentFont = False
     
    3636  object ToolBarMain: TToolBar
    3737    Left = 0
    38     Height = 26
     38    Height = 31
    3939    Top = 0
    40     Width = 860
     40    Width = 1032
    4141    Images = Core.ImageListMain
    4242    ParentFont = False
     
    5050    end
    5151    object ToolButton2: TToolButton
    52       Left = 30
     52      Left = 36
    5353      Top = 2
    5454      Action = AProjectOpen
     
    5757    end
    5858    object ToolButton3: TToolButton
    59       Left = 74
     59      Left = 89
    6060      Top = 2
    6161      Action = AProjectSave
    6262    end
    6363    object ToolButton4: TToolButton
    64       Left = 103
     64      Left = 124
    6565      Top = 2
    6666      Action = AProjectClose
    6767    end
    6868    object ToolButton5: TToolButton
    69       Left = 161
    70       Height = 28
     69      Left = 194
     70      Height = 33
    7171      Top = 2
    7272      Style = tbsSeparator
    7373    end
    7474    object ToolButton6: TToolButton
    75       Left = 197
     75      Left = 239
    7676      Top = 2
    7777      Action = AProgramRun
    7878    end
    7979    object ToolButton7: TToolButton
    80       Left = 168
     80      Left = 204
    8181      Top = 2
    8282      Action = AProgramCompile
    8383    end
    8484    object ToolButton8: TToolButton
    85       Left = 132
     85      Left = 159
    8686      Top = 2
    8787      Action = AOptions
    8888    end
    8989    object ToolButton9: TToolButton
    90       Left = 284
     90      Left = 344
    9191      Top = 2
    9292      Action = ABreakpointToggle
    9393    end
    9494    object ToolButton10: TToolButton
    95       Left = 226
     95      Left = 274
    9696      Top = 2
    9797      Action = AProgramPause
    9898    end
    9999    object ToolButton11: TToolButton
    100       Left = 255
     100      Left = 309
    101101      Top = 2
    102102      Action = AProgramStop
    103103    end
    104104    object ToolButton12: TToolButton
    105       Left = 313
     105      Left = 379
    106106      Top = 2
    107107      Action = AProgramStepOver
    108108    end
    109109    object ToolButton13: TToolButton
    110       Left = 342
     110      Left = 414
    111111      Top = 2
    112112      Action = AProgramStepInto
    113113    end
    114114    object ToolButton14: TToolButton
    115       Left = 371
     115      Left = 449
    116116      Top = 2
    117117      Action = AProgramStepOut
    118118    end
    119119    object ToolButton15: TToolButton
    120       Left = 400
     120      Left = 484
    121121      Top = 2
    122122      Action = AProgramRunToCursor
    123123    end
    124124    object ToolButtonTarget: TToolButton
    125       Left = 429
     125      Left = 519
    126126      Hint = 'Target select'
    127127      Top = 2
     
    132132  end
    133133  object PageControlRight: TPageControl
    134     Left = 467
    135     Height = 507
    136     Top = 26
    137     Width = 393
     134    Left = 560
     135    Height = 610
     136    Top = 31
     137    Width = 472
    138138    ActivePage = TabSheetDebug
    139139    Align = alRight
     
    144144    object TabSheetDebug: TTabSheet
    145145      Caption = 'Debug'
    146       ClientHeight = 499
    147       ClientWidth = 359
     146      ClientHeight = 606
     147      ClientWidth = 390
    148148      ParentFont = False
    149149      object PanelInput: TPanel
    150150        Left = 0
    151         Height = 64
     151        Height = 77
    152152        Top = 0
    153         Width = 359
     153        Width = 390
    154154        Align = alTop
    155155        BevelOuter = bvNone
     
    160160        Cursor = crVSplit
    161161        Left = 0
    162         Height = 5
    163         Top = 64
    164         Width = 359
     162        Height = 6
     163        Top = 77
     164        Width = 390
    165165        Align = alTop
    166166        ResizeAnchor = akTop
     
    168168      object PanelOutput: TPanel
    169169        Left = 0
    170         Height = 259
    171         Top = 69
    172         Width = 359
     170        Height = 311
     171        Top = 83
     172        Width = 390
    173173        Align = alTop
    174174        BevelOuter = bvNone
     
    179179        Cursor = crVSplit
    180180        Left = 0
    181         Height = 5
    182         Top = 328
    183         Width = 359
     181        Height = 6
     182        Top = 394
     183        Width = 390
    184184        Align = alTop
    185185        ResizeAnchor = akTop
     
    187187      object PanelCPU: TPanel
    188188        Left = 0
    189         Height = 86
    190         Top = 333
    191         Width = 359
     189        Height = 103
     190        Top = 400
     191        Width = 390
    192192        Align = alTop
    193193        BevelOuter = bvNone
     
    198198        Cursor = crVSplit
    199199        Left = 0
    200         Height = 5
    201         Top = 419
    202         Width = 359
     200        Height = 6
     201        Top = 503
     202        Width = 390
    203203        Align = alTop
    204204        ResizeAnchor = akTop
     
    206206      object PanelMemory: TPanel
    207207        Left = 0
    208         Height = 75
    209         Top = 424
    210         Width = 359
     208        Height = 97
     209        Top = 509
     210        Width = 390
    211211        Align = alClient
    212212        BevelOuter = bvNone
     
    217217  end
    218218  object Splitter1: TSplitter
    219     Left = 462
    220     Height = 507
    221     Top = 26
    222     Width = 5
     219    Left = 554
     220    Height = 610
     221    Top = 31
     222    Width = 6
    223223    Align = alRight
    224224    ResizeAnchor = akRight
     
    226226  object PanelLeft: TPanel
    227227    Left = 0
    228     Height = 507
    229     Top = 26
    230     Width = 462
     228    Height = 610
     229    Top = 31
     230    Width = 554
    231231    Align = alClient
    232232    BevelOuter = bvNone
    233     ClientHeight = 507
    234     ClientWidth = 462
     233    ClientHeight = 610
     234    ClientWidth = 554
    235235    ParentFont = False
    236236    TabOrder = 4
    237237    object PageControlMain: TPageControl
    238238      Left = 0
    239       Height = 384
     239      Height = 462
    240240      Top = 0
    241       Width = 462
     241      Width = 554
    242242      ActivePage = TabSheetSource
    243243      Align = alClient
     
    256256    object PageControlBottom: TPageControl
    257257      Left = 0
    258       Height = 118
    259       Top = 389
    260       Width = 462
     258      Height = 142
     259      Top = 468
     260      Width = 554
    261261      ActivePage = TabSheetMessages
    262262      Align = alBottom
     
    273273      Cursor = crVSplit
    274274      Left = 0
    275       Height = 5
    276       Top = 384
    277       Width = 462
     275      Height = 6
     276      Top = 462
     277      Width = 554
    278278      Align = alBottom
    279279      ResizeAnchor = akBottom
     
    282282  object MainMenu1: TMainMenu
    283283    Images = Core.ImageListMain
    284     left = 216
    285     top = 136
     284    left = 259
     285    top = 163
    286286    object MenuItem1: TMenuItem
    287287      Caption = 'Project'
     
    383383  object ActionList1: TActionList
    384384    Images = Core.ImageListMain
    385     left = 216
    386     top = 192
     385    left = 259
     386    top = 230
    387387    object AProjectOpen: TAction
    388388      Category = 'Project'
     
    529529    DefaultExt = '.b'
    530530    Filter = 'BrainFuck (*.b)|*.b|Any file (*.*)|*.*'
    531     left = 56
    532     top = 184
     531    left = 67
     532    top = 221
    533533  end
    534534  object SaveDialog1: TSaveDialog
    535535    DefaultExt = '.b'
    536536    Filter = 'BrainFuck (*.b)|*.b|Any file (*.*)|*.*'
    537     left = 56
    538     top = 240
     537    left = 67
     538    top = 288
    539539  end
    540540  object TimerRefresh: TTimer
    541541    OnTimer = TimerRefreshTimer
    542     left = 56
    543     top = 296
     542    left = 67
     543    top = 355
    544544  end
    545545  object PopupMenuRecentFiles: TPopupMenu
    546     left = 56
    547     top = 64
     546    left = 67
     547    top = 77
    548548  end
    549549  object PopupMenuTargets: TPopupMenu
    550550    Images = Core.ImageListMain
    551     left = 56
    552     top = 119
     551    left = 67
     552    top = 143
    553553  end
    554554end
  • trunk/Forms/UFormMain.pas

    r108 r113  
    418418  DebugStep: TDebugStep;
    419419begin
    420   DebugStep := Core.CurrentTarget.DebugSteps.SearchByTargetPos(FormTargetCode.SynEditTarget.SelStart);
     420  DebugStep := Core.CurrentTarget.DebugSteps.SearchByTargetPos(FormTargetCode.SynEditTarget.SelStart - 1);
    421421  if Assigned(DebugStep) then begin
    422     FormSourceCode.SynEditSource.SelStart := DebugStep.SourcePosition;
     422    FormSourceCode.SynEditSource.SelStart := DebugStep.SourcePosition + 1;
    423423    PageControlMain.TabIndex := 0;
    424424  end;
     
    429429  DebugStep: TDebugStep;
    430430begin
    431   DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart);
     431  DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart - 1);
    432432  if Assigned(DebugStep) then begin
    433     FormTargetCode.SynEditTarget.SelStart := DebugStep.TargetPosition;
     433    FormTargetCode.SynEditTarget.SelStart := DebugStep.TargetPosition + 1;
    434434    PageControlMain.TabIndex := 1;
    435435  end;
     
    521521  BreakPoint: TBreakPoint;
    522522begin
    523   DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart);
     523  DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart - 1);
    524524  if Assigned(DebugStep) then begin
    525525    BreakPoint := Core.CurrentTarget.BreakPoints.SearchByTargetPos(DebugStep.TargetPosition);
     
    554554  if Core.CurrentTarget.State = rsStopped then begin
    555555    if not Core.CurrentTarget.Compiled then AProgramCompile.Execute;
    556     DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart);
     556    DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart - 1);
    557557    Core.CurrentTarget.BreakPoints.SetSystem(DebugStep.TargetPosition);
    558558    AProgramRun.Execute;
    559559  end else begin
    560     DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart);
     560    DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart - 1);
    561561    Core.CurrentTarget.RunToCursor(DebugStep.TargetPosition);
    562562  end;
     
    568568begin
    569569  DebugStep := Core.CurrentTarget.DebugSteps.SearchByTargetPos(Core.CurrentTarget.ExecutionPosition);
    570   FormSourceCode.SynEditSource.SelStart := DebugStep.SourcePosition;
    571   FormTargetCode.SynEditTarget.SelStart := DebugStep.TargetPosition;
     570  FormSourceCode.SynEditSource.SelStart := DebugStep.SourcePosition + 1;
     571  FormTargetCode.SynEditTarget.SelStart := DebugStep.TargetPosition + 1;
    572572  if PageControlMain.TabIndex = 0 then FormSourceCode.SynEditSource.SetFocus;
    573573  if PageControlMain.TabIndex = 1 then FormTargetCode.SynEditTarget.SetFocus;
  • trunk/UCore.lfm

    r111 r113  
    2121    AppName = 'LazFuck'
    2222    Description = 'Simple BrainFuck IDE written in Lazarus/FPC.'
    23     ReleaseDate = 43590
     23    ReleaseDate = 43602
    2424    RegistryKey = '\Software\Chronosoft\LazFuck'
    2525    RegistryRoot = rrKeyCurrentUser
Note: See TracChangeset for help on using the changeset viewer.