author | Claus Gittinger <cg@exept.de> |
Mon, 22 Feb 1999 22:06:24 +0100 | |
changeset 3996 | 3183ccccabaa |
parent 3883 | 8e0771f4a196 |
child 4023 | 46805a0a73b3 |
permissions | -rw-r--r-- |
3347 | 1 |
" |
2 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
14 |
IdentityDictionary subclass:#UserPreferences |
|
15 |
instanceVariableNames:'' |
|
16 |
classVariableNames:'CurrentPreferences' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Support' |
|
19 |
! |
|
20 |
||
21 |
!UserPreferences class methodsFor:'documentation'! |
|
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
||
36 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
3353 | 40 |
Not yet finished. |
41 |
||
3359 | 42 |
This will eventually keep track of ALL user preferences. |
43 |
(which are currently spread over the system). |
|
44 |
For now, only a few preferences are found here - but this |
|
45 |
will change over time. |
|
3347 | 46 |
" |
47 |
! ! |
|
48 |
||
49 |
!UserPreferences class methodsFor:'accessing'! |
|
50 |
||
51 |
current |
|
52 |
CurrentPreferences isNil ifTrue:[ |
|
53 |
CurrentPreferences := self new |
|
54 |
]. |
|
55 |
^ CurrentPreferences. |
|
56 |
||
57 |
"Created: / 31.3.1998 / 13:43:03 / cg" |
|
3364 | 58 |
! |
59 |
||
60 |
reset |
|
61 |
"resets the CurrentPreferences to its default values" |
|
62 |
||
63 |
CurrentPreferences := nil |
|
64 |
! |
|
65 |
||
66 |
syntaxColors |
|
67 |
"returns the syntax colors for the settings in the launcher" |
|
68 |
||
69 |
^#( |
|
70 |
'Argument Identifier Color' |
|
71 |
'Boolean Constant Color' |
|
72 |
'Bracket Color' |
|
73 |
'Constant Color' |
|
74 |
'Comment Color' |
|
75 |
'Global Identifier Color' |
|
76 |
'Here Color' |
|
77 |
'Identifier Color' |
|
3377 | 78 |
'InstVar Identifier Color' |
3364 | 79 |
'Local Identifier Color' |
80 |
'Method Selector Color' |
|
81 |
'Selector Color' |
|
82 |
'Self Color' |
|
83 |
'String Color' |
|
84 |
'Super Color' |
|
85 |
'Symbol Color' |
|
86 |
'This Context Color' |
|
87 |
'Unknown Identifier Color' |
|
3377 | 88 |
) |
3364 | 89 |
|
3377 | 90 |
"Modified: / 16.4.1998 / 18:32:23 / cg" |
3347 | 91 |
! ! |
92 |
||
3883 | 93 |
!UserPreferences methodsFor:'accessing - pref''d tools'! |
94 |
||
95 |
changesBrowserClass |
|
96 |
self useNewChangesBrowser ifTrue:[ |
|
97 |
^ NewChangesBrowser |
|
98 |
]. |
|
99 |
^ ChangesBrowser |
|
100 |
||
101 |
"Created: / 17.10.1998 / 14:37:46 / cg" |
|
102 |
! ! |
|
103 |
||
3360 | 104 |
!UserPreferences methodsFor:'accessing - prefs'! |
3358 | 105 |
|
3347 | 106 |
syntaxColoring |
3360 | 107 |
"return the flag which controls syntax coloring (in the browsers)" |
108 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
109 |
^ self at:#syntaxColoring ifAbsentPut:true |
3347 | 110 |
|
111 |
" |
|
112 |
UserPreferences current syntaxColoring |
|
113 |
" |
|
114 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
115 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 116 |
! |
117 |
||
118 |
syntaxColoring:aBoolean |
|
3360 | 119 |
"turn on/off syntaxColoring (in the browsers)." |
120 |
||
3347 | 121 |
^ self at:#syntaxColoring put:aBoolean |
122 |
||
3357 | 123 |
" |
124 |
UserPreferences current syntaxColoring:true |
|
125 |
UserPreferences current syntaxColoring:false |
|
126 |
" |
|
127 |
||
3347 | 128 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 129 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
3409 | 130 |
! |
131 |
||
3875
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
132 |
useNewChangesBrowser |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
133 |
"using new or old change browser" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
134 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
135 |
^ self at:#useNewChangesBrowser ifAbsentPut:false |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
136 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
137 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
138 |
! |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
139 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
140 |
useNewChangesBrowser:aBoolean |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
141 |
"using new or old changeBrowser" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
142 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
143 |
^ self at:#useNewChangesBrowser put:aBoolean |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
144 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
145 |
" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
146 |
UserPreferences current useNewChangesBrowser |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
147 |
" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
148 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
149 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
150 |
! |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
151 |
|
3409 | 152 |
useNewInspector |
153 |
"using new or old inspector" |
|
154 |
||
155 |
^ self at:#useNewInspector ifAbsentPut:false |
|
3883 | 156 |
|
157 |
" |
|
158 |
UserPreferences current useNewInspector |
|
159 |
" |
|
160 |
||
161 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
3409 | 162 |
! |
163 |
||
164 |
useNewInspector:aBoolean |
|
165 |
"using new or old inspector" |
|
166 |
||
167 |
^ self at:#useNewInspector put:aBoolean |
|
168 |
||
169 |
" |
|
170 |
UserPreferences current useNewInspector |
|
171 |
" |
|
3360 | 172 |
! ! |
173 |
||
174 |
!UserPreferences methodsFor:'accessing - syntaxColoring prefs'! |
|
175 |
||
176 |
argumentIdentifierColor |
|
177 |
"the color used for argument identifiers; |
|
178 |
If syntaxColoring is turned on." |
|
179 |
||
180 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
181 |
||
182 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
183 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
184 |
! |
|
185 |
||
186 |
argumentIdentifierEmphasis |
|
187 |
"the emphasis used for argument identifiers; |
|
188 |
If syntaxColoring is turned on." |
|
189 |
||
190 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
191 |
||
192 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
193 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
194 |
! |
|
195 |
||
196 |
booleanConstantColor |
|
197 |
"the color used for boolean constants; |
|
198 |
If syntaxColoring is turned on." |
|
199 |
||
200 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
201 |
||
202 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
203 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
204 |
! |
|
205 |
||
206 |
booleanConstantEmphasis |
|
207 |
"the emphasis used for boolean constants; |
|
208 |
If syntaxColoring is turned on." |
|
209 |
||
210 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
211 |
||
212 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
213 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
214 |
! |
|
215 |
||
3361 | 216 |
bracketColor |
217 |
"the color used for brackets; |
|
218 |
If syntaxColoring is turned on." |
|
219 |
||
220 |
^ self at:#bracketColor ifAbsentPut:[Color black] |
|
221 |
||
222 |
" |
|
223 |
self current at:#bracketColor put:Color red. |
|
224 |
self current at:#bracketEmphasis put:#bold |
|
225 |
" |
|
226 |
||
227 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
228 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
229 |
! |
|
230 |
||
231 |
bracketEmphasis |
|
232 |
"the emphasis used for brackets; |
|
233 |
If syntaxColoring is turned on." |
|
234 |
||
235 |
^ self at:#bracketEmphasis ifAbsentPut:#normal |
|
236 |
||
237 |
" |
|
238 |
self current at:#bracketEmphasis put:#bold |
|
239 |
" |
|
240 |
||
241 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
242 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
243 |
! |
|
244 |
||
3360 | 245 |
commentColor |
246 |
"the color used for comments; |
|
247 |
If syntaxColoring is turned on." |
|
248 |
||
3832 | 249 |
^ self at:#commentColor |
250 |
ifAbsentPut:[ "/ Color red:0 green:67 blue:0 |
|
3835 | 251 |
Color red:12.5 green:12.5 blue:100 |
252 |
"/ Color blue lightened |
|
3832 | 253 |
"/ Color blue darkened |
254 |
] |
|
3360 | 255 |
|
256 |
"Created: / 31.3.1998 / 15:10:23 / cg" |
|
3832 | 257 |
"Modified: / 11.9.1998 / 19:24:04 / cg" |
3360 | 258 |
! |
259 |
||
260 |
commentEmphasis |
|
261 |
"the emphasis used for comments; |
|
262 |
If syntaxColoring is turned on." |
|
263 |
||
264 |
^ self at:#commentEmphasis ifAbsentPut:#italic |
|
265 |
||
266 |
"Created: / 31.3.1998 / 15:09:59 / cg" |
|
267 |
"Modified: / 1.4.1998 / 13:25:53 / cg" |
|
268 |
! |
|
269 |
||
270 |
constantColor |
|
271 |
"the color used for constants; |
|
272 |
If syntaxColoring is turned on." |
|
273 |
||
274 |
^ self at:#constantColor ifAbsentPut:[Color red darkened darkened] |
|
275 |
||
276 |
"Created: / 31.3.1998 / 18:13:15 / cg" |
|
277 |
"Modified: / 1.4.1998 / 13:20:37 / cg" |
|
278 |
! |
|
279 |
||
280 |
constantEmphasis |
|
281 |
"the emphasis used for constants; |
|
282 |
If syntaxColoring is turned on." |
|
283 |
||
284 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
285 |
||
286 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
287 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
288 |
! |
|
289 |
||
290 |
globalIdentifierColor |
|
291 |
"the color used for global identifiers; |
|
292 |
If syntaxColoring is turned on." |
|
293 |
||
294 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
295 |
||
296 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
297 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
298 |
! |
|
299 |
||
300 |
globalIdentifierEmphasis |
|
301 |
"the emphasis used for global variable identifiers; |
|
302 |
If syntaxColoring is turned on." |
|
303 |
||
304 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
305 |
||
306 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
307 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
308 |
! |
|
309 |
||
310 |
hereColor |
|
311 |
"the color used for the here pseudoVariable; |
|
312 |
If syntaxColoring is turned on." |
|
313 |
||
314 |
^ self at:#hereColor ifAbsentPut:[self identifierColor] |
|
315 |
||
316 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
317 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
318 |
! |
|
319 |
||
320 |
hereEmphasis |
|
321 |
"the emphasis used for the hre special variable; |
|
322 |
If syntaxColoring is turned on." |
|
323 |
||
324 |
^ self at:#hereEmphasis ifAbsentPut:[self identifierEmphasis] |
|
325 |
||
326 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
327 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
328 |
! |
|
329 |
||
330 |
identifierColor |
|
331 |
"the color used for other identifiers; |
|
332 |
If syntaxColoring is turned on." |
|
333 |
||
334 |
^ self at:#identifierColor ifAbsentPut:[Color black "green darkened darkened"] |
|
335 |
||
3362 | 336 |
" |
337 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
338 |
UserPreferences current at:#identifierColor put:Color black. |
|
339 |
" |
|
340 |
||
3360 | 341 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 342 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 343 |
! |
344 |
||
345 |
identifierEmphasis |
|
346 |
"the emphasis used for other identifiers; |
|
347 |
If syntaxColoring is turned on." |
|
348 |
||
349 |
^ self at:#identifierEmphasis ifAbsentPut:#normal |
|
350 |
||
351 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
352 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
353 |
! |
|
354 |
||
3378 | 355 |
instVarIdentifierColor |
3377 | 356 |
"the color used for instance variable identifiers; |
357 |
If syntaxColoring is turned on." |
|
358 |
||
3378 | 359 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 360 |
|
361 |
" |
|
3378 | 362 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
363 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
364 |
UserPreferences current instVarIdentifierColor |
|
3377 | 365 |
" |
366 |
||
367 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 368 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 369 |
! |
370 |
||
3378 | 371 |
instVarIdentifierEmphasis |
3377 | 372 |
"the emphais used for instance variable identifiers; |
373 |
If syntaxColoring is turned on." |
|
374 |
||
3378 | 375 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 376 |
|
377 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 378 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 379 |
! |
380 |
||
3360 | 381 |
localIdentifierColor |
382 |
"the color used for local variable identifiers; |
|
383 |
If syntaxColoring is turned on." |
|
384 |
||
385 |
^ self at:#localIdentifierColor ifAbsentPut:[self identifierColor] |
|
386 |
||
3362 | 387 |
" |
388 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
389 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
390 |
" |
|
391 |
||
3360 | 392 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 393 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 394 |
! |
395 |
||
396 |
localIdentifierEmphasis |
|
397 |
"the emphais used for local variable identifiers; |
|
398 |
If syntaxColoring is turned on." |
|
399 |
||
400 |
^ self at:#localIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
401 |
||
402 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
403 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
404 |
! |
|
405 |
||
406 |
methodSelectorColor |
|
407 |
"the color used for a methods selector pattern; |
|
408 |
If syntaxColoring is turned on." |
|
409 |
||
410 |
^ self at:#methodSelectorColor ifAbsentPut:[Color black] |
|
411 |
||
412 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
413 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
414 |
! |
|
415 |
||
416 |
methodSelectorEmphasis |
|
417 |
"the emphasis used for a methods selector pattern; |
|
418 |
If syntaxColoring is turned on." |
|
419 |
||
420 |
^ self at:#methodSelectorEmphasis ifAbsentPut:#bold |
|
421 |
||
422 |
"Created: / 31.3.1998 / 15:11:16 / cg" |
|
423 |
"Modified: / 1.4.1998 / 13:24:20 / cg" |
|
424 |
! |
|
425 |
||
426 |
selectorColor |
|
427 |
"the color used for message selectors; |
|
428 |
If syntaxColoring is turned on." |
|
429 |
||
430 |
^ self at:#selectorColor ifAbsentPut:[Color black] |
|
431 |
||
432 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
433 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
434 |
! |
|
435 |
||
436 |
selectorEmphasis |
|
437 |
"the emphasis used for message selectors; |
|
438 |
If syntaxColoring is turned on." |
|
439 |
||
440 |
^ self at:#selectorEmphasis ifAbsentPut:#bold |
|
441 |
||
442 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
443 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
|
444 |
! |
|
445 |
||
446 |
selfColor |
|
447 |
"the color used for the self pseudoVariable; |
|
448 |
If syntaxColoring is turned on." |
|
449 |
||
450 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
451 |
||
452 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
453 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
454 |
! |
|
455 |
||
456 |
selfEmphasis |
|
457 |
"the emphasis used for the self pseudoVariable; |
|
458 |
If syntaxColoring is turned on." |
|
459 |
||
460 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
461 |
||
462 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
463 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
464 |
! |
|
465 |
||
466 |
stringColor |
|
467 |
"the color used for string constants; |
|
468 |
If syntaxColoring is turned on." |
|
469 |
||
470 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
471 |
||
472 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
473 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
474 |
! |
|
475 |
||
476 |
stringEmphasis |
|
477 |
"the emphasis used for string constants; |
|
478 |
If syntaxColoring is turned on." |
|
479 |
||
480 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
481 |
||
482 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
483 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
484 |
! |
|
485 |
||
486 |
superColor |
|
487 |
"the color used for the super pseudoVariable; |
|
488 |
If syntaxColoring is turned on." |
|
489 |
||
490 |
^ self at:#superColor ifAbsentPut:[self identifierColor] |
|
491 |
||
492 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
493 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
494 |
! |
|
495 |
||
496 |
superEmphasis |
|
497 |
"the emphasis used for the super pseudoVariable; |
|
498 |
If syntaxColoring is turned on." |
|
499 |
||
500 |
^ self at:#superEmphasis ifAbsentPut:[self identifierEmphasis] |
|
501 |
||
502 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
503 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
504 |
! |
|
505 |
||
506 |
symbolColor |
|
507 |
"the color used for symbol constants; |
|
508 |
If syntaxColoring is turned on." |
|
509 |
||
510 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
511 |
||
512 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
513 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
514 |
! |
|
515 |
||
516 |
symbolEmphasis |
|
517 |
"the emphasis used for symbol constants; |
|
518 |
If syntaxColoring is turned on." |
|
519 |
||
520 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
521 |
||
522 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
523 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 524 |
! |
525 |
||
526 |
thisContextColor |
|
3360 | 527 |
"the color used for the thisContext pseudoVariable; |
528 |
If syntaxColoring is turned on." |
|
529 |
||
3355 | 530 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 531 |
|
532 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 533 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 534 |
! |
535 |
||
536 |
thisContextEmphasis |
|
3360 | 537 |
"the emphasis used for the thisContext pseudoVariable; |
538 |
If syntaxColoring is turned on." |
|
539 |
||
3355 | 540 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 541 |
|
542 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 543 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 544 |
! |
545 |
||
546 |
unknownIdentifierColor |
|
3360 | 547 |
"the color used for unknown identifiers; |
548 |
If syntaxColoring is turned on." |
|
549 |
||
3355 | 550 |
^ self at:#unknownIdentifierColor ifAbsentPut:[Color red darkened] |
3354 | 551 |
|
3361 | 552 |
" |
553 |
self current at:#unknownIdentifierColor put:Color red. |
|
554 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
555 |
" |
|
556 |
||
3354 | 557 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 558 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 559 |
! |
560 |
||
561 |
unknownIdentifierEmphasis |
|
3360 | 562 |
"the emphasis used for unknown identifiers; |
563 |
If syntaxColoring is turned on." |
|
564 |
||
3355 | 565 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3354 | 566 |
|
567 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 568 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
3347 | 569 |
! ! |
570 |
||
571 |
!UserPreferences class methodsFor:'documentation'! |
|
572 |
||
573 |
version |
|
3883 | 574 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.22 1998-10-17 13:26:54 cg Exp $' |
3347 | 575 |
! ! |