fprun.pas 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. $Id$
  3. This file is part of the Free Pascal Integrated Development Environment
  4. Copyright (c) 1998 by Berczi Gabor
  5. Compiler call routines for the IDE
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. unit FPRun;
  13. interface
  14. procedure DoRun;
  15. implementation
  16. uses
  17. Dos,Mouse,Video,
  18. FPViews,FPVars,FPUtils,FPIntf,
  19. FPCompile,FPUsrScr
  20. {
  21. ;
  22. procedure TIDEApp.DoRun;
  23. var
  24. ExeFile : string;
  25. begin
  26. if (MainFile='') or (CompilationPhase<>cpDone) then
  27. DoCompile(cRun);
  28. if (MainFile='') or (CompilationPhase<>cpDone) then
  29. begin
  30. ErrorBox('Oooops, nothing to run.',nil);
  31. Exit;
  32. end;
  33. ExeFile:=MakeExeName(MainFile);
  34. if UserScreen=nil then
  35. begin
  36. ErrorBox('Sorry, user screen not available.',nil);
  37. Exit;
  38. end;
  39. DoneMouse;
  40. DoneVideo;
  41. UserScreen^.SwitchTo;
  42. // Exec(ExeFile,GetRunParameters);
  43. UserScreen^.SwitchBack;
  44. InitVideo;
  45. InitMouse;
  46. ReDraw;
  47. UpdateScreen(true);
  48. end;
  49. end.
  50. {
  51. $Log$
  52. Revision 1.3 1999-02-08 09:31:01 florian
  53. + some split heap stuff, in $ifdef TEMPHEAP
  54. Revision 1.2 1999/01/12 14:29:38 peter
  55. + Implemented still missing 'switch' entries in Options menu
  56. + Pressing Ctrl-B sets ASCII mode in editor, after which keypresses (even
  57. ones with ASCII < 32 ; entered with Alt+<###>) are interpreted always as
  58. ASCII chars and inserted directly in the text.
  59. + Added symbol browser
  60. * splitted fp.pas to fpide.pas
  61. Revision 1.1 1998/12/28 15:47:52 peter
  62. + Added user screen support, display & window
  63. + Implemented Editor,Mouse Options dialog
  64. + Added location of .INI and .CFG file
  65. + Option (INI) file managment implemented (see bottom of Options Menu)
  66. + Switches updated
  67. + Run program
  68. }