Changeset 41 for trunk/Forms


Ignore:
Timestamp:
Feb 19, 2012, 5:26:03 PM (13 years ago)
Author:
chronos
Message:
  • Added: New Java target.
Location:
trunk/Forms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r39 r41  
    951951        Action = AViewCompilers
    952952      end
    953       object MenuItem19: TMenuItem
    954         Action = AViewInterpretter
    955       end
    956953    end
    957954    object MenuItem10: TMenuItem
     
    10791076      OnExecute = AProgramStopExecute
    10801077      ShortCut = 16497
    1081     end
    1082     object AViewInterpretter: TAction
    1083       Category = 'View'
    1084       Caption = 'Interpretter'
    1085       OnExecute = AViewInterpretterExecute
    10861078    end
    10871079    object AProgramStepInto: TAction
  • trunk/Forms/UFormMain.lrt

    r38 r41  
    2525TMAINFORM.APROGRAMPAUSE.CAPTION=Pause
    2626TMAINFORM.APROGRAMSTOP.CAPTION=Stop
    27 TMAINFORM.AVIEWINTERPRETTER.CAPTION=Interpretter
    2827TMAINFORM.APROGRAMSTEPINTO.CAPTION=Step into
    2928TMAINFORM.APROGRAMSTEPOVER.CAPTION=Step over
  • trunk/Forms/UFormMain.pas

    r40 r41  
    3434    AProgramStepOver: TAction;
    3535    AProgramStepInto: TAction;
    36     AViewInterpretter: TAction;
    3736    AProgramPause: TAction;
    3837    AProgramStop: TAction;
     
    6160    MenuItem17: TMenuItem;
    6261    MenuItem18: TMenuItem;
    63     MenuItem19: TMenuItem;
    6462    MenuItem2: TMenuItem;
    6563    MenuItem20: TMenuItem;
     
    198196
    199197uses
    200   UFormCPU, UApplicationInfo, UFormOptions, UFormMessages,
     198  UFormCPU, UApplicationInfo, UFormOptions, UFormMessages, UTargetJava,
    201199  UTargetDelphi, UTargetPHP, UTargetC, UFormTargets, UFormOutput, UFormInput,
    202200  UFormMemory;
     
    394392  AProgramStop.Enabled := (tcStop in CurrentTarget.Capabilities) and
    395393    (ProjectFileName <> '') and (CurrentTarget.State <> rsStopped);
    396   AProgramCompile.Enabled := (tcCompile in CurrentTarget.Capabilities);
     394  AProgramCompile.Enabled := (tcCompile in CurrentTarget.Capabilities) and
     395    (ProjectFileName <> '');
    397396  AProgramStepInto.Enabled := (tcStepInto in CurrentTarget.Capabilities) and
    398397    (ProjectFileName <> '') and ((CurrentTarget.State = rsPaused) or (CurrentTarget.State = rsStopped));
     
    437436  Targets.Add(TTargetPHP.Create);
    438437  Targets.Add(TTargetC.Create);
     438  Targets.Add(TTargetJava.Create);
    439439  UpdateTargetList;
    440440  LastOpenedList := TLastOpenedList.Create;
     
    577577    Optimization := coNormal;
    578578    SourceCode := MemoSource.Text;
    579     ProgramName := ExtractFileNameOnly(ProjectFileName);
     579    ProjectFileName := Self.ProjectFileName;
     580    ProgramName := ExtractFileNameOnly(Self.ProjectFileName);
    580581    CurrentTarget.Messages.AddMessage('Compiling...');
    581582    Compile;
Note: See TracChangeset for help on using the changeset viewer.