fpvars.pas 5.2 KB

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