Ignore:
Timestamp:
Feb 18, 2012, 11:17:14 PM (13 years ago)
Author:
chronos
Message:
  • Removed: Action Compile and run. Now Compile is executed before Run action if not compiled yet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UMainForm.pas

    r33 r34  
    2323    AAbout: TAction;
    2424    ABreakpointToggle: TAction;
    25     ACompileAndRun: TAction;
    2625    AViewCompilers: TAction;
    2726    AGenerateNumber: TAction;
     
    7372    MenuItem29: TMenuItem;
    7473    MenuItem30: TMenuItem;
    75     MenuItem31: TMenuItem;
    7674    MenuItem32: TMenuItem;
    7775    MenuItem33: TMenuItem;
     
    113111    ToolButton9: TToolButton;
    114112    procedure ABreakpointToggleExecute(Sender: TObject);
    115     procedure ACompileAndRunExecute(Sender: TObject);
    116113    procedure AProgramCompileExecute(Sender: TObject);
    117114    procedure AExitExecute(Sender: TObject);
     
    376373    TTargetInterpretter(CurrentTarget).Input := InterpreterForm.MemoInput.Lines.Text;
    377374  CurrentTarget.SourceCode := MemoSource.Text;
     375  if not CurrentTarget.Compiled then CurrentTarget.Compile;
    378376  CurrentTarget.Run;
    379377end;
     
    502500end;
    503501
    504 procedure TMainForm.ACompileAndRunExecute(Sender: TObject);
    505 begin
    506   with CurrentTarget do begin
    507     Optimization := coNormal;
    508     SourceCode := MemoSource.Text;
    509     ProgramName := ExtractFileNameOnly(ProjectFileName);
    510     ProjectFileName := Self.ProjectFileName;
    511     Compile;
    512     CompileToFile;
    513     if CompiledExtension <> '' then Run;
    514   end;
    515 end;
    516 
    517502procedure TMainForm.AProgramPauseExecute(Sender: TObject);
    518503begin
Note: See TracChangeset for help on using the changeset viewer.