fpvars.pas 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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{$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*.*;fpcmake.loc';
  34. SourceDirs : string{$ifdef GABOR}[40]{$endif} = '';
  35. StandardUnits : string{$ifdef GABOR}[40]{$endif} = '';
  36. UseStandardUnitsInCodeComplete : boolean = false;
  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. {$ifdef SUPPORT_REMOTE}
  94. RemoteMachine : string = '';
  95. RemotePort : string = '2345';
  96. RemoteConfig : string = '';
  97. RemoteIdent : string = '';
  98. RemoteDir : string = '';
  99. RemoteSendCommand : string = 'scp $CONFIG $IDENT $LOCALFILE $REMOTEMACHINE:$REMOTEDIR';
  100. {$endif SUPPORT_REMOTE}
  101. DebuggeeTTY : string = '';
  102. ActionCommands : array[acFirstAction..acLastAction] of word =
  103. (cmHelpTopicSearch,cmGotoCursor,cmToggleBreakpoint,
  104. cmEvaluate,cmAddWatch,cmBrowseAtCursor);
  105. AppPalette : string = CIDEAppColor;
  106. var RecentFiles : array[1..MaxRecentFileCount] of TRecentFileEntry;
  107. implementation
  108. END.
  109. {
  110. $Log$
  111. Revision 1.8 2002-12-12 00:06:41 pierre
  112. Use fpregs unit
  113. Revision 1.7 2002/11/28 12:53:10 pierre
  114. + global vars used for remote debugging
  115. Revision 1.6 2002/09/10 12:19:14 pierre
  116. * use faster method for loading files by default
  117. Revision 1.5 2002/09/07 15:40:46 peter
  118. * old logs removed and tabs fixed
  119. Revision 1.4 2002/09/04 14:06:36 pierre
  120. + new variables for Unit symbols code complete
  121. Revision 1.3 2002/05/29 22:33:23 pierre
  122. Asciitab now in fvision
  123. }