1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
{
This file is part of the Free Pascal Integrated Development Environment
Copyright (c) 1998 by Berczi Gabor
Global variables for the IDE
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{$i globdir.inc}
unit FPVars;
interface
uses Objects,Views,App,
WUtils,WEditor,
FPConst,
FPDebug,FPRegs,
FPUtils,FPViews,FPCalc;
type
TRecentFileEntry = record
FileName : string;
LastPos : TPoint;
end;
TCompPhase = (cpNothing,cpCompiling,cpLinking,
cpAborted,cpFailed,cpDone);
{Use edit keys according to Borland convention (shift+del,ctrl+ins,shift+ins)
or Microsoft convention (ctrl+x,ctrl+c,ctrl+v).}
Tedit_key_modes=(ekm_borland,ekm_microsoft);
{$ifdef Unix}
{Microsoft convention is default on Unix, because the Borland "paste" key, Shift+Ins,
is not passed on to the program in most X terminal emulators.}
const ekm_default = ekm_microsoft;
{$else}
const ekm_default = ekm_borland;
{$endif}
const ClipboardWindow : PClipboardWindow = nil;
CalcWindow : PCalculator = nil;
RecentFileCount : integer = 0;
LastCompileTime : cardinal = 0;
OpenExts : string = '*.pas;*.pp;*.inc;*.dpr;*.lpr';
HighlightExts : string = '*.pas;*.pp;*.inc;*.dpr;*.lpr';
TabsPattern : string = 'make*;make*.*;fpcmake.loc';
SourceDirs : string = '';
StandardUnits : string = '';
UseStandardUnitsInCodeComplete : boolean = false;
UseAllUnitsInCodeComplete : boolean = true;
ShowOnlyUnique : boolean = true;
PrimaryFile : string = '';
PrimaryFileMain : string = '';
PrimaryFileSwitches : string = '';
PrimaryFilePara : string = '';
GDBOutputFile : string = GDBOutputFileName;
IsEXECompiled : boolean = false;
{ LinkAfter : boolean = true; changed into a function }
MainHasDebugInfo : boolean = false;
UseMouse : boolean = true;
MainFile : string = '';
PrevMainFile : string = '';
EXEFile : ansistring = '';
CompilationPhase : TCompPhase = cpNothing;
{$ifndef NODEBUG}
GDBWindow : PGDBWindow = nil;
DisassemblyWindow : PDisassemblyWindow = nil;
BreakpointsWindow : PBreakpointsWindow = nil;
WatchesWindow : PWatchesWindow = nil;
StackWindow : PStackWindow = nil;
RegistersWindow : PRegistersWindow = nil;
FPUWindow : PFPUWindow = nil;
VectorWindow : PVectorWindow = nil;
{$endif NODEBUG}
UserScreenWindow : PScreenWindow = nil;
HeapView : PFPHeapView = nil;
ClockView : PFPClockView = nil;
HelpFiles : WUtils.PUnsortedStringCollection = nil;
ShowStatusOnError: boolean = true;
StartupDir : string = '.'+DirSep;
IDEDir : string = '.'+DirSep;
{$if defined(WINDOWS) or defined(Unix)}
SystemIDEDir : string = '';
{$endif defined(WINDOWS) or defined(Unix)}
INIFileName : string = ININame;
SwitchesPath : string = SwitchesName;
CtrlMouseAction : integer = acTopicSearch;
AltMouseAction : integer = acBrowseSymbol;
StartupOptions : longint = 0;
LastExitCode : integer = 0;
ASCIIChart : PFPASCIIChart = nil;
BackgroundPath : string = BackgroundName;
DesktopPath : string = DesktopName;
DesktopFileFlags : longint = dfHistoryLists+dfOpenWindows+
dfCodeCompleteWords+dfCodeTemplates;
DesktopLocation : byte = dlConfigFileDir;
AutoSaveOptions : longint = asEnvironment+asDesktop;
MiscOptions : longint = moChangeDirOnOpen+moCloseOnGotoSource;
EditorModified : boolean = false;
IniCenterDebuggerRow : tcentre = do_centre;
SleepTimeOut : longint = trunc(10*18.2);
{$ifdef USE_EXTERNAL_COMPILER}
UseExternalCompiler : boolean = true;
ExternalCompilerExe : string = 'ppc386'+ExeExt;
{$endif USE_EXTERNAL_COMPILER}
ShowReadme : boolean = true;
AskRecompileIfModifiedFlag : boolean = true;
EditKeys:Tedit_key_modes = ekm_default;
{$ifdef SUPPORT_REMOTE}
RemoteMachine : string = '';
RemotePort : string = '2345';
RemoteConfig : string = '';
RemoteIdent : string = '';
RemoteDir : string = '';
RemoteSendCommand : string = 'scp $CONFIG $IDENT $LOCALFILE $REMOTEMACHINE:$REMOTEDIR';
{$endif SUPPORT_REMOTE}
DebuggeeTTY : string = '';
ActionCommands : array[acFirstAction..acLastAction] of word =
(cmHelpTopicSearch,cmGotoCursor,cmToggleBreakpoint,
cmEvaluate,cmAddWatch,cmBrowseAtCursor);
AppPalette : string = CIDEAppColor;
var RecentFiles : array[1..MaxRecentFileCount] of TRecentFileEntry;
implementation
END.
|