-
Notifications
You must be signed in to change notification settings - Fork 1
/
catypes.pas
189 lines (119 loc) · 5.55 KB
/
catypes.pas
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
unit caTypes;
{$INCLUDE ca.inc}
interface
uses
// Standard Delphi units
Classes,
Controls;
type
//---------------------------------------------------------------------------
// Array types
//---------------------------------------------------------------------------
TcaWordBoolArray = array[Boolean] of Word;
TcaIntBoolArray = array[Boolean] of Integer;
TcaDoubleBoolArray = array[Boolean] of Double;
TcaMouseMessageArray = array[Low(TMouseButton)..High(TMouseButton)] of Word;
//---------------------------------------------------------------------------
// Dynamic array definitions
//---------------------------------------------------------------------------
TcaPointerArray = array of Pointer;
TcaPointerArray2 = array of array of Pointer;
TcaObjectArray = array of TObject;
TcaObjectArray2 = array of array of TObject;
TcaIntegerArray = array of Integer;
TcaIntegerArray2 = array of array of Integer;
TcaDoubleArray = array of Double;
TcaDoubleArray2 = array of array of Double;
TcaExtendedArray = array of Extended;
TcaExtendedArray2 = array of array of Extended;
TcaStringArray = array of String;
TcaStringArray2 = array of array of String;
//---------------------------------------------------------------------------
// ShortString types
//---------------------------------------------------------------------------
String10 = String[10];
String20 = String[20];
String30 = String[30];
String40 = String[40];
String50 = String[50];
String60 = String[60];
String70 = String[70];
String80 = String[80];
String90 = String[90];
String100 = String[100];
String110 = String[110];
String120 = String[120];
String130 = String[130];
String140 = String[140];
String150 = String[150];
String160 = String[160];
String170 = String[170];
String180 = String[180];
String190 = String[190];
String200 = String[200];
String210 = String[210];
String220 = String[220];
String230 = String[230];
String240 = String[240];
String250 = String[250];
//---------------------------------------------------------------------------
// GUID support
//---------------------------------------------------------------------------
TcaUniqueID = string[32];
//---------------------------------------------------------------------------
// Time types
//---------------------------------------------------------------------------
TcaTimePoint = packed record
Year: Word;
Month: Word;
Day: Word;
Hour: Word;
Min: Word;
Sec: Word;
MSec: Word;
end;
//---------------------------------------------------------------------------
// Enumerated types and sets
//---------------------------------------------------------------------------
TcaArrayStringsAlignment = (saLeft, saRight, saPreZero);
TcaButtonLayout = (laGlyphLeftCentered, laGlyphLeft, laGlyphRight, laGlyphTop, laGlyphBottom, laTextLeft, laTextRight);
TcaButtonState = (bsUp, bsDisabled, bsDown, bsExclusive);
TcaButtonStyle = (bsDefault, bsThin, bsFlat, bsNoEdge);
TcaCompareResult = (crFirstGreater, crSecondGreater, crEqual, crUndefined);
TcaFrameStyle = (fsLowered, fsRaised, fsLoweredPanel, fsRaisedPanel, fsLine);
TcaNumGlyphs = 1..2;
TcaSide = (sdLeft, sdTop, sdRight, sdBottom);
TcaSides = set of TcaSide;
TcaSortDirection = (sdAscending, sdDescending, sdNone, sdUndefined);
TcaTextStyle = (tsNormal, tsRaised, tsLowered);
TcaMenuState = (meBig, meSmall);
TcaSizeBarBtnPosition = (spTop, spCenter, spBottom);
TcaSizeBarKind = (sbHorizontal, sbVertical);
TcaSizeBarState = (bsBig, bsSmall);
TcaSizeBarArrows = (baLeftRight, baRightLeft, baUpDown, baDownUp);
TcaArrowType = (atLeft, atRight, atUp, atDown);
TcaLetterCase = (caLower, caUpper, caAny);
TcaXMLTagType = (ttStart, ttEnd, ttEmpty, ttText);
TcaMsgDialogResponse = (mgNone, mgAbort, mgYes, mgOk, mgRetry, mgNo, mgCancel, mgIgnore, mgAll);
TcaCellType = (ctNil, ctObject, ctInteger, ctInt64, ctSingle, ctDouble,
ctExtended, ctString, ctMemo, ctBoolean, ctDateTime, ctFormula);
TcaCellTypes = set of TcaCellType;
TcaChartAxisType = (caLeft, caRight, caTop, caBottom);
TcaOperatorPrecedence = (opHigher, opLower, opSameLeftAssoc, opSameRightAssoc);
TcaTrigUnits = (tuDegrees, tuRadians);
TcaColorColumn = (ccColor, ccName, ccHue, ccSaturation, ccValue, ccIntensity, ccLightness, ccYic);
TcaNodeCheckState = (csFullyUnChecked, csSemiChecked, csFullyChecked);
TcaNodeMatchAction = (maCheck, maClear);
TcaNodeMatchMode = (mmMatch, mmLevel, mmAll);
TcaNumberType = (ntInteger, ntFloat);
TcaCaptionMode = (cmText, cmNumber);
TcaByteSet = set of Byte;
TcaMathOperation = (moAdd, moDivide, moMultiply, moSubtract);
TcaMessageDialogResponse = (drFirst, drSecond, drThird, drUndefined);
TcaWinVersion = (wvUnknown, wvWin95, wvWin98, wvWinNT, wvWin2K, wvWinXP);
TcaOperator = (opEqual, opLessThan, opGreaterThan, opNotEqual, opGreaterThanOrEqual, opLessThanOrEqual, opUnspecified);
TcaShowWindow = (swHide, swMaximize, swMinimize, swRestore, swShow, swShowDefault, swShowMaximized,
swShowMinimized, swShowMinNoActive, swShowNA, swShowNoActivate, swShowNormal);
TcaConjunction = (coAnd, coOr);
implementation
end.