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/IDE/Forms/UMainForm.pas

    r42 r43  
    2929  TMainForm = class(TForm)
    3030    ABuild: TAction;
     31    ARunToCursor: TAction;
     32    AStepOut: TAction;
     33    AStepIn: TAction;
     34    AStepOver: TAction;
     35    AReset: TAction;
     36    APause: TAction;
     37    AStop: TAction;
    3138    AViewTargets: TAction;
    3239    AViewCompiledSoruce: TAction;
     
    6875    MenuItem23: TMenuItem;
    6976    MenuItem24: TMenuItem;
     77    MenuItem25: TMenuItem;
     78    MenuItem26: TMenuItem;
     79    MenuItem27: TMenuItem;
     80    MenuItem28: TMenuItem;
     81    MenuItem29: TMenuItem;
     82    MenuItem30: TMenuItem;
     83    MenuItem31: TMenuItem;
     84    MenuItem32: TMenuItem;
    7085    MenuItemProducer: TMenuItem;
    7186    MenuItem3: TMenuItem;
     
    94109    ToolBar1: TToolBar;
    95110    ToolButton1: TToolButton;
     111    ToolButton10: TToolButton;
    96112    ToolButton2: TToolButton;
    97113    ToolButton3: TToolButton;
     
    101117    ToolButton7: TToolButton;
    102118    ToolButton8: TToolButton;
     119    ToolButton9: TToolButton;
    103120    procedure AAboutExecute(Sender: TObject);
    104121    procedure AExitExecute(Sender: TObject);
     
    156173uses
    157174  UMessagesForm, UCodeForm, UProjectManager, UCommon, UAboutForm, UFormOptions,
    158   UFormTargets, UTarget, UAnalyzer, UProducer;
     175  UFormTargets, UTarget, UAnalyzer, UProducer, UExecutor;
    159176
    160177resourcestring
     
    302319  CodeForm.UpdateInterface;
    303320  ProjectManager.UpdateInterface;
     321  APause.Enabled := Project.Active and Assigned(Compiler.Target) and
     322    Assigned(Compiler.Target.Executor) and (Compiler.Target.Executor.State = rsRunning);
     323  ARun.Enabled := Project.Active and Assigned(Compiler.Target) and
     324    Assigned(Compiler.Target.Executor) and ((Compiler.Target.Executor.State = rsStopped) or
     325    (Compiler.Target.Executor.State = rsPaused));
     326  AStop.Enabled := Project.Active and Assigned(Compiler.Target) and
     327    Assigned(Compiler.Target.Executor) and ((Compiler.Target.Executor.State = rsRunning) or
     328    (Compiler.Target.Executor.State = rsPaused));
     329  AStepIn.Enabled := Project.Active and Assigned(Compiler.Target) and
     330    Assigned(Compiler.Target.Executor) and ((Compiler.Target.Executor.State = rsRunning) or
     331    (Compiler.Target.Executor.State = rsPaused));
     332  AStepOut.Enabled := AStepIn.Enabled;
     333  AStepOver.Enabled := AStepIn.Enabled;
     334  ARunToCursor.Enabled := AStepIn.Enabled;
    304335end;
    305336
Note: See TracChangeset for help on using the changeset viewer.