fpvars.pas 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. WUtils,
  16. FPConst,FPUtils,FPViews,FPCalc;
  17. type
  18. TRecentFileEntry = record
  19. FileName : string;
  20. LastPos : TPoint;
  21. end;
  22. TCompPhase = (cpNothing,cpCompiling,cpLinking,cpFailed,cpDone);
  23. const ClipboardWindow : PClipboardWindow = nil;
  24. CalcWindow : PCalculator = nil;
  25. RecentFileCount : integer = 0;
  26. OpenExts : string[80] = '*.pas;*.pp;*.inc';
  27. HighlightExts : string[80] = '*.pas;*.pp;*.inc';
  28. TabsPattern : string = 'make*;make*.*';
  29. SourceDirs : string = '';
  30. PrimaryFile : string = '';
  31. PrimaryFileMain : string = '';
  32. PrimaryFileSwitches : string = '';
  33. PrimaryFilePara : string = '';
  34. GDBOutputFile : string = 'gdb$$$.txt';
  35. IsEXECompiled : boolean = false;
  36. MainFile : string = '';
  37. EXEFile : string = '';
  38. CompilationPhase : TCompPhase = cpNothing;
  39. ProgramInfoWindow: PProgramInfoWindow = nil;
  40. GDBWindow : PGDBWindow = nil;
  41. UserScreenWindow : PScreenWindow = nil;
  42. HeapView : PFPHeapView = nil;
  43. HelpFiles : WUtils.PUnsortedStringCollection = nil;
  44. ShowStatusOnError: boolean = true;
  45. StartupDir : string = '.'+DirSep;
  46. IDEDir : string = '.'+DirSep;
  47. INIPath : string = ININame;
  48. SwitchesPath : string = SwitchesName;
  49. CtrlMouseAction : integer = acTopicSearch;
  50. AltMouseAction : integer = acBrowseSymbol;
  51. StartupOptions : longint = 0;
  52. LastExitCode : integer = 0;
  53. ASCIIChart : PFPASCIIChart = nil;
  54. DesktopPath : string = DesktopName;
  55. DesktopFileFlags : longint = dfHistoryLists+dfOpenWindows;
  56. DesktopLocation : byte = dlConfigFileDir;
  57. AutoSaveOptions : longint = asEnvironment+asDesktop;
  58. MiscOptions : longint = moChangeDirOnOpen+moCloseOnGotoSource;
  59. ActionCommands : array[acFirstAction..acLastAction] of word =
  60. (cmHelpTopicSearch,cmGotoCursor,cmToggleBreakpoint,
  61. cmEvaluate,cmAddWatch,cmBrowseAtCursor);
  62. AppPalette : string = CIDEAppColor;
  63. var RecentFiles : array[1..MaxRecentFileCount] of TRecentFileEntry;
  64. implementation
  65. END.
  66. {
  67. $Log$
  68. Revision 1.15 1999-03-23 15:11:36 peter
  69. * desktop saving things
  70. * vesa mode
  71. * preferences dialog
  72. Revision 1.14 1999/03/19 16:04:32 peter
  73. * new compiler dialog
  74. Revision 1.13 1999/03/16 12:38:15 peter
  75. * tools macro fixes
  76. + tph writer
  77. + first things for resource files
  78. Revision 1.12 1999/03/12 01:14:02 peter
  79. * flag if trytoopen should look for other extensions
  80. + browser tab in the tools-compiler
  81. Revision 1.11 1999/03/08 14:58:15 peter
  82. + prompt with dialogs for tools
  83. Revision 1.10 1999/03/01 15:42:07 peter
  84. + Added dummy entries for functions not yet implemented
  85. * MenuBar didn't update itself automatically on command-set changes
  86. * Fixed Debugging/Profiling options dialog
  87. * TCodeEditor converts spaces to tabs at save only if efUseTabChars is
  88. set
  89. * efBackSpaceUnindents works correctly
  90. + 'Messages' window implemented
  91. + Added '$CAP MSG()' and '$CAP EDIT' to available tool-macros
  92. + Added TP message-filter support (for ex. you can call GREP thru
  93. GREP2MSG and view the result in the messages window - just like in TP)
  94. * A 'var' was missing from the param-list of THelpFacility.TopicSearch,
  95. so topic search didn't work...
  96. * In FPHELP.PAS there were still context-variables defined as word instead
  97. of THelpCtx
  98. * StdStatusKeys() was missing from the statusdef for help windows
  99. + Topic-title for index-table can be specified when adding a HTML-files
  100. Revision 1.9 1999/02/19 18:43:48 peter
  101. + open dialog supports mask list
  102. Revision 1.8 1999/02/11 13:10:04 pierre
  103. + GDBWindow only with -dGDBWindow for now : still buggy !!
  104. Revision 1.7 1999/02/05 12:07:55 pierre
  105. + SourceDirs added
  106. Revision 1.6 1999/02/04 13:15:40 pierre
  107. + TabsPattern added
  108. Revision 1.5 1999/01/21 11:54:26 peter
  109. + tools menu
  110. + speedsearch in symbolbrowser
  111. * working run command
  112. Revision 1.4 1999/01/12 14:29:41 peter
  113. + Implemented still missing 'switch' entries in Options menu
  114. + Pressing Ctrl-B sets ASCII mode in editor, after which keypresses (even
  115. ones with ASCII < 32 ; entered with Alt+<###>) are interpreted always as
  116. ASCII chars and inserted directly in the text.
  117. + Added symbol browser
  118. * splitted fp.pas to fpide.pas
  119. Revision 1.3 1999/01/04 11:49:52 peter
  120. * 'Use tab characters' now works correctly
  121. + Syntax highlight now acts on File|Save As...
  122. + Added a new class to syntax highlight: 'hex numbers'.
  123. * There was something very wrong with the palette managment. Now fixed.
  124. + Added output directory (-FE<xxx>) support to 'Directories' dialog...
  125. * Fixed some possible bugs in Running/Compiling, and the compilation/run
  126. process revised
  127. Revision 1.1 1998/12/28 15:47:54 peter
  128. + Added user screen support, display & window
  129. + Implemented Editor,Mouse Options dialog
  130. + Added location of .INI and .CFG file
  131. + Option (INI) file managment implemented (see bottom of Options Menu)
  132. + Switches updated
  133. + Run program
  134. Revision 1.0 1998/12/23 07:34:40 gabor
  135. }