blob: 1b3e1e6515ac2cb5645d2bf2a89247c605b7f190 (
plain)
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
|
/***********************************************************************/
/* */
/* Objective Caml */
/* */
/* Damien Doligez, projet Para, INRIA Rocquencourt */
/* */
/* Copyright 1998 Institut National de Recherche en Informatique et */
/* en Automatique. All rights reserved. This file is distributed */
/* under the terms of the GNU Library General Public License, with */
/* the special exception on linking described in file ../LICENSE. */
/* */
/***********************************************************************/
/* $Id$ */
#define kMinSystemVersion 0x700
#define kExtraStackSpace (128 * 1024)
#define kMoreMasters 6
#define kScrapThreshold (4 * 1024)
#define kMinimumMemory (32 * 1024)
#define kTitleBarSpace 20
#define kWinBorderSpace 5
#define kPowerStripSpace 20
#define kVisualDelay 8UL /* XXX use double-click time ?? */
#define ktextwidth 32000
#define kHorizScrollDelta 32
#define kGraphScrollDelta 8
#define kScrollBarWidth 15 /* not counting one of the borders. */
#define kTextMarginV 3
#define kTextMarginH 6
#define kMinWindowWidth 64
#define kMinWindowHeight 64
#define keyPgUp 0x74
#define keyPgDn 0x79
#define keyHome 0x73
#define keyEnd 0x77
#define keyF1 0x7A
#define keyF2 0x78
#define keyF3 0x63
#define keyF4 0x76
#define charEnter 0x03
#define charBackspace 0x08
#define charReturn 0x0D
#define charEscape 0x1B
#define charArrowLeft 0x1C
#define charArrowRight 0x1D
#define charArrowUp 0x1E
#define charArrowDown 0x1F
#define charDelete 0x7F
#define kWinUnknown 0
#define kWinUninitialised 1
#define kWinAbout 2
#define kWinToplevel 3
#define kWinGraphics 4
#define kWinDocument 5
#define kWinPrefs 6
#define kWinClipboard 7
#define kCreatorCaml 'Caml'
#define kTypeText 'TEXT'
/* Resource IDs */
#define kToplevelWinTemplate 1000
#define kGraphicsWinTemplate 1001
#define kDocumentWinTemplate 1002
#define kScrollBarTemplate 1000
/* DO NOT CHANGE this definition. */
#define kApplicationIcon 1000
#define kDialogAbout 1000
#define kAlertNeedSys7 1001
#define kAlertBug 1002
#define kAlertGeneric 1003
#define kAlertExit 1004
#define kDialogPrefs 1005
#define kAlertNotYet 1006
#define kAlertSaveAsk 1007
#define kAlertErrorMsg 1008
#define kAlertErrorNum 1009
#define kAlertNeed32BitQD 1010
#define kKeysOK 1000
#define kKeysSaveDontCancel 1001
#define kPrefsDescriptionStr 1000
#define kApplicationMissing -16397
#define kUndoStrings 1000
#define kMiscStrings 1001
#define kPrefsFileNameIdx 1
#define kUntitledIdx 2
#define kClosingIdx 3
#define kQuittingIdx (kClosingIdx + 1)
#define kCannotOpenIdx 5
#define kCloseQuoteIdx 6
#define kSaveAsPromptIdx 7
#define kEmptyIdx 8
#define kCannotWriteIdx 9
#define kWithErrorCodeIdx 10
#define kErrorStrings 1002
#define kMemFull 1
#define kDiskFull 2
#define kDirFull 3
#define kTooManyFiles 4
#define kFileNotFound 5
#define kWriteProtect 6
#define kFileLocked 7
#define kVolLocked 8
#define kFileBusy 9
#define kFileOpen 10
#define kVolOffLine 11
#define kPermDenied 12
#define kWritePermDenied 13
#define kDirNotFound 14
#define kDisconnected 15
#define kIOError 16
#define kAboutText1 1000
#define kAboutText2 1001
#define kMenuBar 1000
#define kCommandLineTemplate 1000
#define kEnvironmentTemplate 1001
/* Sound stuff */
#define kDurationOffset 0x1E
#define kSampleRateOffset 0x34
/* Menus */
#define kMenuApple 1000
#define kMenuFile 1001
#define kMenuEdit 1002
#define kMenuWindows 1003
/***** Apple menu */
#define kItemAbout 1
/***** File menu */
#define kItemNew 1
#define kItemOpen 2
/* - */
#define kItemClose 4
#define kItemSave 5
#define kItemSaveAs 6
#define kItemRevert 7
/* - */
#define kItemPageSetup 9
#define kItemPrint 10
/* - */
#define kItemQuit 12
/***** Edit menu */
#define kItemUndo 1
/* - */
#define kItemCut 3
#define kItemCopy 4
#define kItemPaste 5
#define kItemClear 6
#define kItemSelectAll 7
#define kItemShowClipboard 8
/* - */
#define kItemFind 10
#define kItemReplace 11
/* - */
#define kItemPreferences 13
/***** Windows menu */
#define kItemToplevel 1
#define kItemGraphics 2
/* - */
#define kItemDocuments 4
|