Ignore:
Timestamp:
Feb 29, 2012, 8:23:19 PM (13 years ago)
Author:
chronos
Message:
  • Added: Debugging actions to Run menu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/UExecutor.pas

    r41 r43  
    99
    1010type
     11  TRunState = (rsStopped, rsPaused, rsRunning);
     12
     13  { TExecutor }
     14
    1115  TExecutor = class
     16  private
     17    FRunState: TRunState;
     18    procedure SetRunState(AValue: TRunState);
     19  public
    1220    procedure Run; virtual; abstract;
    1321    procedure Pause; virtual; abstract;
     
    1826    procedure StepOut; virtual; abstract;
    1927    procedure RunToCursor(Pos: Integer); virtual; abstract;
     28    property State: TRunState read FRunState write SetRunState;
    2029  end;
    2130
    2231implementation
    2332
     33{ TExecutor }
     34
     35procedure TExecutor.SetRunState(AValue: TRunState);
     36begin
     37  if FRunState=AValue then Exit;
     38  FRunState:=AValue;
     39end;
     40
    2441end.
    2542
Note: See TracChangeset for help on using the changeset viewer.