- Timestamp:
- May 17, 2019, 10:32:20 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r106 r113 1 1 object FormMain: TFormMain 2 2 Left = 405 3 Height = 5863 Height = 703 4 4 Top = 226 5 Width = 8605 Width = 1032 6 6 Caption = 'LazFuck' 7 ClientHeight = 5618 ClientWidth = 8609 DesignTimePPI = 1 207 ClientHeight = 669 8 ClientWidth = 1032 9 DesignTimePPI = 144 10 10 Menu = MainMenu1 11 11 OnClose = FormClose … … 19 19 Left = 0 20 20 Height = 28 21 Top = 53322 Width = 86021 Top = 641 22 Width = 1032 23 23 Panels = < 24 24 item 25 Width = 7025 Width = 84 26 26 end 27 27 item 28 Width = 7028 Width = 84 29 29 end 30 30 item 31 Width = 8031 Width = 96 32 32 end> 33 33 ParentFont = False … … 36 36 object ToolBarMain: TToolBar 37 37 Left = 0 38 Height = 2638 Height = 31 39 39 Top = 0 40 Width = 86040 Width = 1032 41 41 Images = Core.ImageListMain 42 42 ParentFont = False … … 50 50 end 51 51 object ToolButton2: TToolButton 52 Left = 3 052 Left = 36 53 53 Top = 2 54 54 Action = AProjectOpen … … 57 57 end 58 58 object ToolButton3: TToolButton 59 Left = 7459 Left = 89 60 60 Top = 2 61 61 Action = AProjectSave 62 62 end 63 63 object ToolButton4: TToolButton 64 Left = 1 0364 Left = 124 65 65 Top = 2 66 66 Action = AProjectClose 67 67 end 68 68 object ToolButton5: TToolButton 69 Left = 1 6170 Height = 2869 Left = 194 70 Height = 33 71 71 Top = 2 72 72 Style = tbsSeparator 73 73 end 74 74 object ToolButton6: TToolButton 75 Left = 19775 Left = 239 76 76 Top = 2 77 77 Action = AProgramRun 78 78 end 79 79 object ToolButton7: TToolButton 80 Left = 16880 Left = 204 81 81 Top = 2 82 82 Action = AProgramCompile 83 83 end 84 84 object ToolButton8: TToolButton 85 Left = 1 3285 Left = 159 86 86 Top = 2 87 87 Action = AOptions 88 88 end 89 89 object ToolButton9: TToolButton 90 Left = 28490 Left = 344 91 91 Top = 2 92 92 Action = ABreakpointToggle 93 93 end 94 94 object ToolButton10: TToolButton 95 Left = 2 2695 Left = 274 96 96 Top = 2 97 97 Action = AProgramPause 98 98 end 99 99 object ToolButton11: TToolButton 100 Left = 255100 Left = 309 101 101 Top = 2 102 102 Action = AProgramStop 103 103 end 104 104 object ToolButton12: TToolButton 105 Left = 3 13105 Left = 379 106 106 Top = 2 107 107 Action = AProgramStepOver 108 108 end 109 109 object ToolButton13: TToolButton 110 Left = 342110 Left = 414 111 111 Top = 2 112 112 Action = AProgramStepInto 113 113 end 114 114 object ToolButton14: TToolButton 115 Left = 371115 Left = 449 116 116 Top = 2 117 117 Action = AProgramStepOut 118 118 end 119 119 object ToolButton15: TToolButton 120 Left = 4 00120 Left = 484 121 121 Top = 2 122 122 Action = AProgramRunToCursor 123 123 end 124 124 object ToolButtonTarget: TToolButton 125 Left = 429125 Left = 519 126 126 Hint = 'Target select' 127 127 Top = 2 … … 132 132 end 133 133 object PageControlRight: TPageControl 134 Left = 467135 Height = 507136 Top = 26137 Width = 393134 Left = 560 135 Height = 610 136 Top = 31 137 Width = 472 138 138 ActivePage = TabSheetDebug 139 139 Align = alRight … … 144 144 object TabSheetDebug: TTabSheet 145 145 Caption = 'Debug' 146 ClientHeight = 499147 ClientWidth = 3 59146 ClientHeight = 606 147 ClientWidth = 390 148 148 ParentFont = False 149 149 object PanelInput: TPanel 150 150 Left = 0 151 Height = 64151 Height = 77 152 152 Top = 0 153 Width = 3 59153 Width = 390 154 154 Align = alTop 155 155 BevelOuter = bvNone … … 160 160 Cursor = crVSplit 161 161 Left = 0 162 Height = 5163 Top = 64164 Width = 3 59162 Height = 6 163 Top = 77 164 Width = 390 165 165 Align = alTop 166 166 ResizeAnchor = akTop … … 168 168 object PanelOutput: TPanel 169 169 Left = 0 170 Height = 259171 Top = 69172 Width = 3 59170 Height = 311 171 Top = 83 172 Width = 390 173 173 Align = alTop 174 174 BevelOuter = bvNone … … 179 179 Cursor = crVSplit 180 180 Left = 0 181 Height = 5182 Top = 3 28183 Width = 3 59181 Height = 6 182 Top = 394 183 Width = 390 184 184 Align = alTop 185 185 ResizeAnchor = akTop … … 187 187 object PanelCPU: TPanel 188 188 Left = 0 189 Height = 86190 Top = 333191 Width = 3 59189 Height = 103 190 Top = 400 191 Width = 390 192 192 Align = alTop 193 193 BevelOuter = bvNone … … 198 198 Cursor = crVSplit 199 199 Left = 0 200 Height = 5201 Top = 419202 Width = 3 59200 Height = 6 201 Top = 503 202 Width = 390 203 203 Align = alTop 204 204 ResizeAnchor = akTop … … 206 206 object PanelMemory: TPanel 207 207 Left = 0 208 Height = 75209 Top = 424210 Width = 3 59208 Height = 97 209 Top = 509 210 Width = 390 211 211 Align = alClient 212 212 BevelOuter = bvNone … … 217 217 end 218 218 object Splitter1: TSplitter 219 Left = 462220 Height = 507221 Top = 26222 Width = 5219 Left = 554 220 Height = 610 221 Top = 31 222 Width = 6 223 223 Align = alRight 224 224 ResizeAnchor = akRight … … 226 226 object PanelLeft: TPanel 227 227 Left = 0 228 Height = 507229 Top = 26230 Width = 462228 Height = 610 229 Top = 31 230 Width = 554 231 231 Align = alClient 232 232 BevelOuter = bvNone 233 ClientHeight = 507234 ClientWidth = 462233 ClientHeight = 610 234 ClientWidth = 554 235 235 ParentFont = False 236 236 TabOrder = 4 237 237 object PageControlMain: TPageControl 238 238 Left = 0 239 Height = 384239 Height = 462 240 240 Top = 0 241 Width = 462241 Width = 554 242 242 ActivePage = TabSheetSource 243 243 Align = alClient … … 256 256 object PageControlBottom: TPageControl 257 257 Left = 0 258 Height = 1 18259 Top = 389260 Width = 462258 Height = 142 259 Top = 468 260 Width = 554 261 261 ActivePage = TabSheetMessages 262 262 Align = alBottom … … 273 273 Cursor = crVSplit 274 274 Left = 0 275 Height = 5276 Top = 384277 Width = 462275 Height = 6 276 Top = 462 277 Width = 554 278 278 Align = alBottom 279 279 ResizeAnchor = akBottom … … 282 282 object MainMenu1: TMainMenu 283 283 Images = Core.ImageListMain 284 left = 2 16285 top = 1 36284 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 = 2 16386 top = 192385 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 = 56532 top = 184531 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 = 56538 top = 2 40537 left = 67 538 top = 288 539 539 end 540 540 object TimerRefresh: TTimer 541 541 OnTimer = TimerRefreshTimer 542 left = 56543 top = 296542 left = 67 543 top = 355 544 544 end 545 545 object PopupMenuRecentFiles: TPopupMenu 546 left = 56547 top = 64546 left = 67 547 top = 77 548 548 end 549 549 object PopupMenuTargets: TPopupMenu 550 550 Images = Core.ImageListMain 551 left = 56552 top = 1 19551 left = 67 552 top = 143 553 553 end 554 554 end -
trunk/Forms/UFormMain.pas
r108 r113 418 418 DebugStep: TDebugStep; 419 419 begin 420 DebugStep := Core.CurrentTarget.DebugSteps.SearchByTargetPos(FormTargetCode.SynEditTarget.SelStart );420 DebugStep := Core.CurrentTarget.DebugSteps.SearchByTargetPos(FormTargetCode.SynEditTarget.SelStart - 1); 421 421 if Assigned(DebugStep) then begin 422 FormSourceCode.SynEditSource.SelStart := DebugStep.SourcePosition ;422 FormSourceCode.SynEditSource.SelStart := DebugStep.SourcePosition + 1; 423 423 PageControlMain.TabIndex := 0; 424 424 end; … … 429 429 DebugStep: TDebugStep; 430 430 begin 431 DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart );431 DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart - 1); 432 432 if Assigned(DebugStep) then begin 433 FormTargetCode.SynEditTarget.SelStart := DebugStep.TargetPosition ;433 FormTargetCode.SynEditTarget.SelStart := DebugStep.TargetPosition + 1; 434 434 PageControlMain.TabIndex := 1; 435 435 end; … … 521 521 BreakPoint: TBreakPoint; 522 522 begin 523 DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart );523 DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart - 1); 524 524 if Assigned(DebugStep) then begin 525 525 BreakPoint := Core.CurrentTarget.BreakPoints.SearchByTargetPos(DebugStep.TargetPosition); … … 554 554 if Core.CurrentTarget.State = rsStopped then begin 555 555 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); 557 557 Core.CurrentTarget.BreakPoints.SetSystem(DebugStep.TargetPosition); 558 558 AProgramRun.Execute; 559 559 end else begin 560 DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart );560 DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart - 1); 561 561 Core.CurrentTarget.RunToCursor(DebugStep.TargetPosition); 562 562 end; … … 568 568 begin 569 569 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; 572 572 if PageControlMain.TabIndex = 0 then FormSourceCode.SynEditSource.SetFocus; 573 573 if PageControlMain.TabIndex = 1 then FormTargetCode.SynEditTarget.SetFocus; -
trunk/UCore.lfm
r111 r113 21 21 AppName = 'LazFuck' 22 22 Description = 'Simple BrainFuck IDE written in Lazarus/FPC.' 23 ReleaseDate = 43 59023 ReleaseDate = 43602 24 24 RegistryKey = '\Software\Chronosoft\LazFuck' 25 25 RegistryRoot = rrKeyCurrentUser
Note:
See TracChangeset
for help on using the changeset viewer.