fpvars.pas 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. OpenExts : string[80] = '*.pas;*.pp;*.inc';
  26. HighlightExts : string[80] = '*.pas;*.pp;*.inc';
  27. TabsPattern : string = 'make*;make*.*';
  28. SourceDirs : string = '';
  29. PrimaryFile : string = '';
  30. GDBOutputFile : string = 'gdb$$$.txt';
  31. IsEXECompiled : boolean = false;
  32. MainFile : string = '';
  33. EXEFile : string = '';
  34. CompilationPhase : TCompPhase = cpNothing;
  35. ProgramInfoWindow: PProgramInfoWindow = nil;
  36. GDBWindow : PGDBWindow = nil;
  37. UserScreenWindow : PScreenWindow = nil;
  38. HelpFiles : FPViews.PUnsortedStringCollection = nil;
  39. ShowStatusOnError: boolean = true;
  40. StartupDir : string = '.'+DirSep;
  41. INIPath : string = ININame;
  42. SwitchesPath : string = SwitchesName;
  43. CtrlMouseAction : integer = acTopicSearch;
  44. AltMouseAction : integer = acBrowseSymbol;
  45. StartupOptions : longint = 0;
  46. LastExitCode : integer = 0;
  47. ActionCommands : array[acFirstAction..acLastAction] of word =
  48. (cmHelpTopicSearch,cmGotoCursor,cmToggleBreakpoint,
  49. cmEvaluate,cmAddWatch,cmBrowseAtCursor);
  50. AppPalette : string = CIDEAppColor;
  51. var RecentFiles : array[1..MaxRecentFileCount] of TRecentFileEntry;
  52. implementation
  53. END.
  54. {
  55. $Log$
  56. Revision 1.9 1999-02-19 18:43:48 peter
  57. + open dialog supports mask list
  58. Revision 1.8 1999/02/11 13:10:04 pierre
  59. + GDBWindow only with -dGDBWindow for now : still buggy !!
  60. Revision 1.7 1999/02/05 12:07:55 pierre
  61. + SourceDirs added
  62. Revision 1.6 1999/02/04 13:15:40 pierre
  63. + TabsPattern added
  64. Revision 1.5 1999/01/21 11:54:26 peter
  65. + tools menu
  66. + speedsearch in symbolbrowser
  67. * working run command
  68. Revision 1.4 1999/01/12 14:29:41 peter
  69. + Implemented still missing 'switch' entries in Options menu
  70. + Pressing Ctrl-B sets ASCII mode in editor, after which keypresses (even
  71. ones with ASCII < 32 ; entered with Alt+<###>) are interpreted always as
  72. ASCII chars and inserted directly in the text.
  73. + Added symbol browser
  74. * splitted fp.pas to fpide.pas
  75. Revision 1.3 1999/01/04 11:49:52 peter
  76. * 'Use tab characters' now works correctly
  77. + Syntax highlight now acts on File|Save As...
  78. + Added a new class to syntax highlight: 'hex numbers'.
  79. * There was something very wrong with the palette managment. Now fixed.
  80. + Added output directory (-FE<xxx>) support to 'Directories' dialog...
  81. * Fixed some possible bugs in Running/Compiling, and the compilation/run
  82. process revised
  83. Revision 1.1 1998/12/28 15:47:54 peter
  84. + Added user screen support, display & window
  85. + Implemented Editor,Mouse Options dialog
  86. + Added location of .INI and .CFG file
  87. + Option (INI) file managment implemented (see bottom of Options Menu)
  88. + Switches updated
  89. + Run program
  90. Revision 1.0 1998/12/23 07:34:40 gabor
  91. }