fpvars.pas 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. {$endif NODEBUG}
  61. UserScreenWindow : PScreenWindow = nil;
  62. HeapView : PFPHeapView = nil;
  63. ClockView : PFPClockView = nil;
  64. HelpFiles : WUtils.PUnsortedStringCollection = nil;
  65. ShowStatusOnError: boolean = true;
  66. StartupDir : string = '.'+DirSep;
  67. IDEDir : string = '.'+DirSep;
  68. {$ifdef Unix}
  69. SystemIDEDir : string = '';
  70. {$endif Unix}
  71. INIFileName : string = ININame;
  72. SwitchesPath : string = SwitchesName;
  73. CtrlMouseAction : integer = acTopicSearch;
  74. AltMouseAction : integer = acBrowseSymbol;
  75. StartupOptions : longint = 0;
  76. LastExitCode : integer = 0;
  77. ASCIIChart : PFPASCIIChart = nil;
  78. BackgroundPath : string = BackgroundName;
  79. DesktopPath : string = DesktopName;
  80. DesktopFileFlags : longint = dfHistoryLists+dfOpenWindows+
  81. dfCodeCompleteWords+dfCodeTemplates;
  82. DesktopLocation : byte = dlConfigFileDir;
  83. AutoSaveOptions : longint = asEnvironment+asDesktop;
  84. MiscOptions : longint = moChangeDirOnOpen+moCloseOnGotoSource;
  85. EditorModified : boolean = false;
  86. IniCenterDebuggerRow : boolean = true;
  87. SleepTimeOut : longint = trunc(10*18.2);
  88. {$ifdef USE_EXTERNAL_COMPILER}
  89. UseExternalCompiler : boolean = true;
  90. ExternalCompilerExe : string = 'ppc386'+ExeExt;
  91. {$endif USE_EXTERNAL_COMPILER}
  92. ShowReadme : boolean = true;
  93. AskRecompileIfModifiedFlag : boolean = true;
  94. {$ifdef SUPPORT_REMOTE}
  95. RemoteMachine : string = '';
  96. RemotePort : string = '2345';
  97. RemoteConfig : string = '';
  98. RemoteIdent : string = '';
  99. RemoteDir : string = '';
  100. RemoteSendCommand : string = 'scp $CONFIG $IDENT $LOCALFILE $REMOTEMACHINE:$REMOTEDIR';
  101. {$endif SUPPORT_REMOTE}
  102. DebuggeeTTY : string = '';
  103. ActionCommands : array[acFirstAction..acLastAction] of word =
  104. (cmHelpTopicSearch,cmGotoCursor,cmToggleBreakpoint,
  105. cmEvaluate,cmAddWatch,cmBrowseAtCursor);
  106. AppPalette : string = CIDEAppColor;
  107. var RecentFiles : array[1..MaxRecentFileCount] of TRecentFileEntry;
  108. implementation
  109. END.
  110. {
  111. $Log$
  112. Revision 1.10 2004-12-22 15:24:07 peter
  113. * fixed NODEBUG
  114. * set default target to the default target of the compiler
  115. Revision 1.9 2004/11/08 20:28:28 peter
  116. * Breakpoints are now deleted when removed from source, disabling is
  117. still possible from the breakpoint list
  118. * COMPILER_1_0, FVISION, GABOR defines removed, only support new
  119. FV and 1.9.x compilers
  120. * Run directory added to Run menu
  121. * Useless programinfo window removed
  122. Revision 1.8 2002/12/12 00:06:41 pierre
  123. Use fpregs unit
  124. Revision 1.7 2002/11/28 12:53:10 pierre
  125. + global vars used for remote debugging
  126. Revision 1.6 2002/09/10 12:19:14 pierre
  127. * use faster method for loading files by default
  128. Revision 1.5 2002/09/07 15:40:46 peter
  129. * old logs removed and tabs fixed
  130. Revision 1.4 2002/09/04 14:06:36 pierre
  131. + new variables for Unit symbols code complete
  132. Revision 1.3 2002/05/29 22:33:23 pierre
  133. Asciitab now in fvision
  134. }