- Timestamp:
- Feb 18, 2012, 11:17:14 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.lfm
r33 r34 455 455 } 456 456 end 457 object MenuItem31: TMenuItem458 Action = ACompileAndRun459 end460 457 object MenuItemTarget: TMenuItem 461 458 Caption = 'Target' … … 788 785 ShortCut = 16504 789 786 end 790 object ACompileAndRun: TAction791 Caption = 'Compile and run'792 OnExecute = ACompileAndRunExecute793 end794 787 object AProgramRun: TAction 795 788 Category = 'Program' -
trunk/Forms/UMainForm.lrt
r33 r34 18 18 TMAINFORM.AEXIT.CAPTION=Exit 19 19 TMAINFORM.APROGRAMCOMPILE.CAPTION=Compile 20 TMAINFORM.ACOMPILEANDRUN.CAPTION=Compile and run21 20 TMAINFORM.APROGRAMRUN.CAPTION=Run 22 21 TMAINFORM.AABOUT.CAPTION=About -
trunk/Forms/UMainForm.pas
r33 r34 23 23 AAbout: TAction; 24 24 ABreakpointToggle: TAction; 25 ACompileAndRun: TAction;26 25 AViewCompilers: TAction; 27 26 AGenerateNumber: TAction; … … 73 72 MenuItem29: TMenuItem; 74 73 MenuItem30: TMenuItem; 75 MenuItem31: TMenuItem;76 74 MenuItem32: TMenuItem; 77 75 MenuItem33: TMenuItem; … … 113 111 ToolButton9: TToolButton; 114 112 procedure ABreakpointToggleExecute(Sender: TObject); 115 procedure ACompileAndRunExecute(Sender: TObject);116 113 procedure AProgramCompileExecute(Sender: TObject); 117 114 procedure AExitExecute(Sender: TObject); … … 376 373 TTargetInterpretter(CurrentTarget).Input := InterpreterForm.MemoInput.Lines.Text; 377 374 CurrentTarget.SourceCode := MemoSource.Text; 375 if not CurrentTarget.Compiled then CurrentTarget.Compile; 378 376 CurrentTarget.Run; 379 377 end; … … 502 500 end; 503 501 504 procedure TMainForm.ACompileAndRunExecute(Sender: TObject);505 begin506 with CurrentTarget do begin507 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 517 502 procedure TMainForm.AProgramPauseExecute(Sender: TObject); 518 503 begin -
trunk/Languages/LazFuckIDE.cs.po
r33 r34 97 97 msgstr "PÅepnout bod zastavenÃ" 98 98 99 #: tmainform.acompileandrun.caption100 msgid "Compile and run"101 msgstr "PÅeloÅŸit a spustit"102 103 99 #: tmainform.aexit.caption 104 100 msgid "Exit" … … 182 178 #: tmainform.ashowsourceposition.caption 183 179 msgid "Show position in source" 184 msgstr " "180 msgstr "UkaÅŸ pozici ve zdroji" 185 181 186 182 #: tmainform.ashowtargetposition.caption 187 183 msgid "Show position in target" 188 msgstr " "184 msgstr "UkaÅŸ pozici v cÃli" 189 185 190 186 #: tmainform.ashrinksource.caption … … 248 244 #: tmainform.tabsheetsource.caption 249 245 msgid "Source code" 250 msgstr " "246 msgstr "ZdrojovÃœ kód" 251 247 252 248 #: tmainform.tabsheettarget.caption 253 249 msgid "Target code" 254 msgstr " "250 msgstr "CÃlovÃœ kód" 255 251 256 252 #: toptionsform.buttoncancel.caption -
trunk/Languages/LazFuckIDE.po
r33 r34 88 88 msgstr "" 89 89 90 #: tmainform.acompileandrun.caption91 msgid "Compile and run"92 msgstr ""93 94 90 #: tmainform.aexit.caption 95 91 msgid "Exit" -
trunk/Target/UTarget.pas
r33 r34 259 259 Process.Free; 260 260 end else raise Exception.Create(Format(SCompilerNotFound, [CompilerPath])); 261 end; 262 263 procedure TTarget.Run; 264 var 265 CompiledFile: string; 266 Process: TProcess; 267 begin 261 268 262 CompiledFile := ExtractFilePath(ProjectFileName) + 269 263 'compiled' + DirectorySeparator + Name + DirectorySeparator + … … 280 274 end; 281 275 276 procedure TTarget.Run; 277 begin 278 end; 279 282 280 procedure TTarget.Pause; 283 281 begin -
trunk/Target/UTargetC.pas
r33 r34 139 139 procedure TTargetC.Run; 140 140 begin 141 inherited Run; 141 CompileToFile; 142 inherited; 142 143 end; 143 144 -
trunk/Target/UTargetDelphi.pas
r33 r34 17 17 constructor Create; override; 18 18 procedure Compile; override; 19 procedure Run; override; 19 20 end; 20 21 … … 101 102 end; 102 103 104 procedure TTargetDelphi.Run; 105 begin 106 CompileToFile; 107 inherited Run; 108 end; 109 103 110 end. 104 111 -
trunk/Target/UTargetPHP.pas
r33 r34 98 98 procedure TTargetPHP.Run; 99 99 begin 100 CompileToFile; 100 101 inherited Run; 101 102 end;
Note:
See TracChangeset
for help on using the changeset viewer.