fpvars.pas 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. $Id$
  3. This file is part of the Free Pascal Integrated Development Environment
  4. Copyright (c) 1998 by Berczi Gabor
  5. Global variables 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 FPVars;
  13. interface
  14. uses Objects,Views,App,
  15. FPConst,FPUtils,FPViews,FPCalc;
  16. type
  17. TRecentFileEntry = record
  18. FileName : string;
  19. LastPos : TPoint;
  20. end;
  21. TCompPhase = (cpNothing,cpCompiling,cpLinking,cpFailed,cpDone);
  22. const ClipboardWindow : PClipboardWindow = nil;
  23. CalcWindow : PCalculator = nil;
  24. RecentFileCount : integer = 0;
  25. HighlightExts : string[80] = '*.pas;*.pp;*.inc';
  26. TabsPattern : string = 'make*;make*.*';
  27. SourceDirs : string = '';
  28. PrimaryFile : string = '';
  29. IsEXECompiled : boolean = false;
  30. MainFile : string = '';
  31. EXEFile : string = '';
  32. CompilationPhase : TCompPhase = cpNothing;
  33. ProgramInfoWindow: PProgramInfoWindow = nil;
  34. UserScreenWindow : PScreenWindow = nil;
  35. HelpFiles : FPViews.PUnsortedStringCollection = nil;
  36. ShowStatusOnError: boolean = true;
  37. StartupDir : string = '.'+DirSep;
  38. INIPath : string = ININame;
  39. SwitchesPath : string = SwitchesName;
  40. CtrlMouseAction : integer = acTopicSearch;
  41. AltMouseAction : integer = acBrowseSymbol;
  42. StartupOptions : longint = 0;
  43. LastExitCode : integer = 0;
  44. ActionCommands : array[acFirstAction..acLastAction] of word =
  45. (cmHelpTopicSearch,cmGotoCursor,cmToggleBreakpoint,
  46. cmEvaluate,cmAddWatch,cmBrowseAtCursor);
  47. AppPalette : string = CIDEAppColor;
  48. var RecentFiles : array[1..MaxRecentFileCount] of TRecentFileEntry;
  49. implementation
  50. END.
  51. {
  52. $Log$
  53. Revision 1.7 1999-02-05 12:07:55 pierre
  54. + SourceDirs added
  55. Revision 1.6 1999/02/04 13:15:40 pierre
  56. + TabsPattern added
  57. Revision 1.5 1999/01/21 11:54:26 peter
  58. + tools menu
  59. + speedsearch in symbolbrowser
  60. * working run command
  61. Revision 1.4 1999/01/12 14:29:41 peter
  62. + Implemented still missing 'switch' entries in Options menu
  63. + Pressing Ctrl-B sets ASCII mode in editor, after which keypresses (even
  64. ones with ASCII < 32 ; entered with Alt+<###>) are interpreted always as
  65. ASCII chars and inserted directly in the text.
  66. + Added symbol browser
  67. * splitted fp.pas to fpide.pas
  68. Revision 1.3 1999/01/04 11:49:52 peter
  69. * 'Use tab characters' now works correctly
  70. + Syntax highlight now acts on File|Save As...
  71. + Added a new class to syntax highlight: 'hex numbers'.
  72. * There was something very wrong with the palette managment. Now fixed.
  73. + Added output directory (-FE<xxx>) support to 'Directories' dialog...
  74. * Fixed some possible bugs in Running/Compiling, and the compilation/run
  75. process revised
  76. Revision 1.1 1998/12/28 15:47:54 peter
  77. + Added user screen support, display & window
  78. + Implemented Editor,Mouse Options dialog
  79. + Added location of .INI and .CFG file
  80. + Option (INI) file managment implemented (see bottom of Options Menu)
  81. + Switches updated
  82. + Run program
  83. Revision 1.0 1998/12/23 07:34:40 gabor
  84. }