fpvars.pas 5.5 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. {$i globdir.inc}
  13. unit FPVars;
  14. interface
  15. uses Objects,Views,App,
  16. WUtils,WEditor,
  17. FPConst,
  18. FPDebug,FPRegs,
  19. FPUtils,FPViews,FPCalc;
  20. type
  21. TRecentFileEntry = record
  22. FileName : string;
  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 = '*.pas;*.pp;*.inc';
  32. HighlightExts : string = '*.pas;*.pp;*.inc';
  33. TabsPattern : string = 'make*;make*.*;fpcmake.loc';
  34. SourceDirs : string = '';
  35. StandardUnits : string = '';
  36. UseStandardUnitsInCodeComplete : boolean = false;
  37. UseAllUnitsInCodeComplete : boolean = true;
  38. ShowOnlyUnique : boolean = true;
  39. PrimaryFile : string = '';
  40. PrimaryFileMain : string = '';
  41. PrimaryFileSwitches : string = '';
  42. PrimaryFilePara : string = '';
  43. GDBOutputFile : string = GDBOutputFileName;
  44. IsEXECompiled : boolean = false;
  45. { LinkAfter : boolean = true; changed into a function }
  46. MainHasDebugInfo : boolean = false;
  47. UseMouse : boolean = true;
  48. MainFile : string = '';
  49. PrevMainFile : string = '';
  50. EXEFile : string = '';
  51. CompilationPhase : TCompPhase = cpNothing;
  52. {$ifndef NODEBUG}
  53. GDBWindow : PGDBWindow = nil;
  54. DisassemblyWindow : PDisassemblyWindow = nil;
  55. BreakpointsWindow : PBreakpointsWindow = nil;
  56. WatchesWindow : PWatchesWindow = nil;
  57. StackWindow : PStackWindow = nil;
  58. RegistersWindow : PRegistersWindow = nil;
  59. FPUWindow : PFPUWindow = nil;
  60. VectorWindow : PVectorWindow = nil;
  61. {$endif NODEBUG}
  62. UserScreenWindow : PScreenWindow = nil;
  63. HeapView : PFPHeapView = nil;
  64. ClockView : PFPClockView = nil;
  65. HelpFiles : WUtils.PUnsortedStringCollection = nil;
  66. ShowStatusOnError: boolean = true;
  67. StartupDir : string = '.'+DirSep;
  68. IDEDir : string = '.'+DirSep;
  69. {$ifdef Unix}
  70. SystemIDEDir : string = '';
  71. {$endif Unix}
  72. INIFileName : string = ININame;
  73. SwitchesPath : string = SwitchesName;
  74. CtrlMouseAction : integer = acTopicSearch;
  75. AltMouseAction : integer = acBrowseSymbol;
  76. StartupOptions : longint = 0;
  77. LastExitCode : integer = 0;
  78. ASCIIChart : PFPASCIIChart = nil;
  79. BackgroundPath : string = BackgroundName;
  80. DesktopPath : string = DesktopName;
  81. DesktopFileFlags : longint = dfHistoryLists+dfOpenWindows+
  82. dfCodeCompleteWords+dfCodeTemplates;
  83. DesktopLocation : byte = dlConfigFileDir;
  84. AutoSaveOptions : longint = asEnvironment+asDesktop;
  85. MiscOptions : longint = moChangeDirOnOpen+moCloseOnGotoSource;
  86. EditorModified : boolean = false;
  87. IniCenterDebuggerRow : boolean = true;
  88. SleepTimeOut : longint = trunc(10*18.2);
  89. {$ifdef USE_EXTERNAL_COMPILER}
  90. UseExternalCompiler : boolean = true;
  91. ExternalCompilerExe : string = 'ppc386'+ExeExt;
  92. {$endif USE_EXTERNAL_COMPILER}
  93. ShowReadme : boolean = true;
  94. AskRecompileIfModifiedFlag : boolean = true;
  95. {$ifdef SUPPORT_REMOTE}
  96. RemoteMachine : string = '';
  97. RemotePort : string = '2345';
  98. RemoteConfig : string = '';
  99. RemoteIdent : string = '';
  100. RemoteDir : string = '';
  101. RemoteSendCommand : string = 'scp $CONFIG $IDENT $LOCALFILE $REMOTEMACHINE:$REMOTEDIR';
  102. {$endif SUPPORT_REMOTE}
  103. DebuggeeTTY : string = '';
  104. ActionCommands : array[acFirstAction..acLastAction] of word =
  105. (cmHelpTopicSearch,cmGotoCursor,cmToggleBreakpoint,
  106. cmEvaluate,cmAddWatch,cmBrowseAtCursor);
  107. AppPalette : string = CIDEAppColor;
  108. var RecentFiles : array[1..MaxRecentFileCount] of TRecentFileEntry;
  109. implementation
  110. END.
  111. {
  112. $Log$
  113. Revision 1.11 2005-01-08 11:43:18 florian
  114. + vector unit window
  115. Revision 1.10 2004/12/22 15:24:07 peter
  116. * fixed NODEBUG
  117. * set default target to the default target of the compiler
  118. Revision 1.9 2004/11/08 20:28:28 peter
  119. * Breakpoints are now deleted when removed from source, disabling is
  120. still possible from the breakpoint list
  121. * COMPILER_1_0, FVISION, GABOR defines removed, only support new
  122. FV and 1.9.x compilers
  123. * Run directory added to Run menu
  124. * Useless programinfo window removed
  125. Revision 1.8 2002/12/12 00:06:41 pierre
  126. Use fpregs unit
  127. Revision 1.7 2002/11/28 12:53:10 pierre
  128. + global vars used for remote debugging
  129. Revision 1.6 2002/09/10 12:19:14 pierre
  130. * use faster method for loading files by default
  131. Revision 1.5 2002/09/07 15:40:46 peter
  132. * old logs removed and tabs fixed
  133. Revision 1.4 2002/09/04 14:06:36 pierre
  134. + new variables for Unit symbols code complete
  135. Revision 1.3 2002/05/29 22:33:23 pierre
  136. Asciitab now in fvision
  137. }