fpvars.pas 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. {$i globdir.inc}
  13. unit FPVars;
  14. interface
  15. uses Objects,Views,App,
  16. WUtils,WEditor,
  17. FPConst,
  18. FPDebug,
  19. FPUtils,FPViews,FPCalc;
  20. type
  21. TRecentFileEntry = record
  22. FileName : string{$ifdef GABOR}[60]{$endif};
  23. LastPos : TPoint;
  24. end;
  25. TCompPhase = (cpNothing,cpCompiling,cpLinking,
  26. cpAborted,cpFailed,cpDone);
  27. const ClipboardWindow : PClipboardWindow = nil;
  28. CalcWindow : PCalculator = nil;
  29. RecentFileCount : integer = 0;
  30. LastCompileTime : cardinal = 0;
  31. OpenExts : string{$ifdef GABOR}[40]{$endif} = '*.pas;*.pp;*.inc';
  32. HighlightExts : string{$ifdef GABOR}[40]{$endif} = '*.pas;*.pp;*.inc';
  33. TabsPattern : string{$ifdef GABOR}[40]{$endif} = 'make*;make*.*';
  34. SourceDirs : string{$ifdef GABOR}[40]{$endif} = '';
  35. StandardUnits : string{$ifdef GABOR}[40]{$endif} = '';
  36. UseStandardUnitsInCodeComplete : boolean = true;
  37. UseAllUnitsInCodeComplete : boolean = true;
  38. ShowOnlyUnique : boolean = true;
  39. PrimaryFile : string{$ifdef GABOR}[60]{$endif} = '';
  40. PrimaryFileMain : string{$ifdef GABOR}[60]{$endif} = '';
  41. PrimaryFileSwitches : string{$ifdef GABOR}[80]{$endif} = '';
  42. PrimaryFilePara : string{$ifdef GABOR}[80]{$endif} = '';
  43. GDBOutputFile : string{$ifdef GABOR}[50]{$endif} = GDBOutputFileName;
  44. IsEXECompiled : boolean = false;
  45. { LinkAfter : boolean = true; changed into a function }
  46. MainHasDebugInfo : boolean = false;
  47. UseMouse : boolean = true;
  48. MainFile : string{$ifdef GABOR}[60]{$endif} = '';
  49. PrevMainFile : string{$ifdef GABOR}[60]{$endif} = '';
  50. EXEFile : string{$ifdef GABOR}[60]{$endif} = '';
  51. CompilationPhase : TCompPhase = cpNothing;
  52. ProgramInfoWindow: PProgramInfoWindow = nil;
  53. GDBWindow : PGDBWindow = nil;
  54. DisassemblyWindow : PDisassemblyWindow = nil;
  55. BreakpointsWindow : PBreakpointsWindow = nil;
  56. WatchesWindow : PWatchesWindow = nil;
  57. UserScreenWindow : PScreenWindow = nil;
  58. StackWindow : PStackWindow = nil;
  59. RegistersWindow : PRegistersWindow = nil;
  60. FPUWindow : PFPUWindow = nil;
  61. HeapView : PFPHeapView = nil;
  62. ClockView : PFPClockView = nil;
  63. HelpFiles : WUtils.PUnsortedStringCollection = nil;
  64. ShowStatusOnError: boolean = true;
  65. StartupDir : string{$ifdef GABOR}[60]{$endif} = '.'+DirSep;
  66. IDEDir : string{$ifdef GABOR}[60]{$endif} = '.'+DirSep;
  67. {$ifdef Unix}
  68. SystemIDEDir : string{$ifdef GABOR}[60]{$endif} = '';
  69. {$endif Unix}
  70. INIFileName : string{$ifdef GABOR}[50]{$endif} = ININame;
  71. SwitchesPath : string{$ifdef GABOR}[60]{$endif} = SwitchesName;
  72. CtrlMouseAction : integer = acTopicSearch;
  73. AltMouseAction : integer = acBrowseSymbol;
  74. StartupOptions : longint = 0;
  75. LastExitCode : integer = 0;
  76. ASCIIChart : PFPASCIIChart = nil;
  77. BackgroundPath : string{$ifdef GABOR}[60]{$endif} = BackgroundName;
  78. DesktopPath : string{$ifdef GABOR}[60]{$endif} = DesktopName;
  79. DesktopFileFlags : longint = dfHistoryLists+dfOpenWindows+
  80. dfCodeCompleteWords+dfCodeTemplates;
  81. DesktopLocation : byte = dlConfigFileDir;
  82. AutoSaveOptions : longint = asEnvironment+asDesktop;
  83. MiscOptions : longint = moChangeDirOnOpen+moCloseOnGotoSource;
  84. EditorModified : boolean = false;
  85. IniCenterDebuggerRow : boolean = true;
  86. SleepTimeOut : longint = trunc(10*18.2);
  87. {$ifdef USE_EXTERNAL_COMPILER}
  88. UseExternalCompiler : boolean = true;
  89. ExternalCompilerExe : string = 'ppc386'+ExeExt;
  90. {$endif USE_EXTERNAL_COMPILER}
  91. ShowReadme : boolean = true;
  92. AskRecompileIfModifiedFlag : boolean = true;
  93. ActionCommands : array[acFirstAction..acLastAction] of word =
  94. (cmHelpTopicSearch,cmGotoCursor,cmToggleBreakpoint,
  95. cmEvaluate,cmAddWatch,cmBrowseAtCursor);
  96. AppPalette : string = CIDEAppColor;
  97. var RecentFiles : array[1..MaxRecentFileCount] of TRecentFileEntry;
  98. implementation
  99. END.
  100. {
  101. $Log$
  102. Revision 1.5 2002-09-07 15:40:46 peter
  103. * old logs removed and tabs fixed
  104. Revision 1.4 2002/09/04 14:06:36 pierre
  105. + new variables for Unit symbols code complete
  106. Revision 1.3 2002/05/29 22:33:23 pierre
  107. Asciitab now in fvision
  108. }