Changeset 41 for trunk/Forms/UFormMain.pas
- Timestamp:
- Feb 19, 2012, 5:26:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r40 r41 34 34 AProgramStepOver: TAction; 35 35 AProgramStepInto: TAction; 36 AViewInterpretter: TAction;37 36 AProgramPause: TAction; 38 37 AProgramStop: TAction; … … 61 60 MenuItem17: TMenuItem; 62 61 MenuItem18: TMenuItem; 63 MenuItem19: TMenuItem;64 62 MenuItem2: TMenuItem; 65 63 MenuItem20: TMenuItem; … … 198 196 199 197 uses 200 UFormCPU, UApplicationInfo, UFormOptions, UFormMessages, 198 UFormCPU, UApplicationInfo, UFormOptions, UFormMessages, UTargetJava, 201 199 UTargetDelphi, UTargetPHP, UTargetC, UFormTargets, UFormOutput, UFormInput, 202 200 UFormMemory; … … 394 392 AProgramStop.Enabled := (tcStop in CurrentTarget.Capabilities) and 395 393 (ProjectFileName <> '') and (CurrentTarget.State <> rsStopped); 396 AProgramCompile.Enabled := (tcCompile in CurrentTarget.Capabilities); 394 AProgramCompile.Enabled := (tcCompile in CurrentTarget.Capabilities) and 395 (ProjectFileName <> ''); 397 396 AProgramStepInto.Enabled := (tcStepInto in CurrentTarget.Capabilities) and 398 397 (ProjectFileName <> '') and ((CurrentTarget.State = rsPaused) or (CurrentTarget.State = rsStopped)); … … 437 436 Targets.Add(TTargetPHP.Create); 438 437 Targets.Add(TTargetC.Create); 438 Targets.Add(TTargetJava.Create); 439 439 UpdateTargetList; 440 440 LastOpenedList := TLastOpenedList.Create; … … 577 577 Optimization := coNormal; 578 578 SourceCode := MemoSource.Text; 579 ProgramName := ExtractFileNameOnly(ProjectFileName); 579 ProjectFileName := Self.ProjectFileName; 580 ProgramName := ExtractFileNameOnly(Self.ProjectFileName); 580 581 CurrentTarget.Messages.AddMessage('Compiling...'); 581 582 Compile;
Note:
See TracChangeset
for help on using the changeset viewer.