author | Claus Gittinger <cg@exept.de> |
Fri, 25 Jun 1999 17:48:09 +0200 | |
changeset 4317 | aba88adaf752 |
parent 4316 | c3934d0d1e3e |
child 4318 | 39f9a91bc44e |
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:'' |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
16 |
classVariableNames:'CurrentPreferences DefaultPreferences' |
3347 | 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 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
49 |
!UserPreferences class methodsFor:'initialization'! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
50 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
51 |
initialize |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
52 |
DefaultPreferences := self new. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
53 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
54 |
#( |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
55 |
#useNewChangesBrowser false |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
56 |
#useNewInspector false |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
57 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
58 |
#syntaxColoring true |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
59 |
#fullSelectorCheck false |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
60 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
61 |
#defaultSyntaxColor (Color black) |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
62 |
#defaultSyntaxEmphasis normal |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
63 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
64 |
#commentColor (Color 12.5 12.5 100) |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
65 |
#commentEmphasis italic |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
66 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
67 |
#methodSelectorEmphasis bold |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
68 |
#selectorEmphasis bold |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
69 |
#unimplementedSelectorColor (Color red) |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
70 |
#unimplementedSelectorEmphasis normal |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
71 |
#unknownIdentifierColor (Color red) |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
72 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
73 |
#constantColor (Color 25 0 0) |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
74 |
) pairWiseDo:[:k :v | |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
75 |
DefaultPreferences at:k put:v decodeAsLiteralArray. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
76 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
77 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
78 |
" |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
79 |
self initialize |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
80 |
" |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
81 |
! ! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
82 |
|
3347 | 83 |
!UserPreferences class methodsFor:'accessing'! |
84 |
||
85 |
current |
|
86 |
CurrentPreferences isNil ifTrue:[ |
|
87 |
CurrentPreferences := self new |
|
88 |
]. |
|
89 |
^ CurrentPreferences. |
|
90 |
||
91 |
"Created: / 31.3.1998 / 13:43:03 / cg" |
|
3364 | 92 |
! |
93 |
||
94 |
reset |
|
95 |
"resets the CurrentPreferences to its default values" |
|
96 |
||
97 |
CurrentPreferences := nil |
|
98 |
! |
|
99 |
||
100 |
syntaxColors |
|
101 |
"returns the syntax colors for the settings in the launcher" |
|
102 |
||
103 |
^#( |
|
104 |
'Argument Identifier Color' |
|
105 |
'Boolean Constant Color' |
|
106 |
'Bracket Color' |
|
107 |
'Constant Color' |
|
108 |
'Comment Color' |
|
109 |
'Global Identifier Color' |
|
4024
3a223c79e41c
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4023
diff
changeset
|
110 |
'Global Class Identifier Color' |
3364 | 111 |
'Here Color' |
112 |
'Identifier Color' |
|
3377 | 113 |
'InstVar Identifier Color' |
3364 | 114 |
'Local Identifier Color' |
115 |
'Method Selector Color' |
|
4076 | 116 |
'Return Color' |
3364 | 117 |
'Selector Color' |
118 |
'Self Color' |
|
119 |
'String Color' |
|
120 |
'Super Color' |
|
121 |
'Symbol Color' |
|
122 |
'This Context Color' |
|
123 |
'Unknown Identifier Color' |
|
3377 | 124 |
) |
3364 | 125 |
|
4076 | 126 |
"Modified: / 5.1.1980 / 00:48:09 / cg" |
3347 | 127 |
! ! |
128 |
||
3883 | 129 |
!UserPreferences methodsFor:'accessing - pref''d tools'! |
130 |
||
131 |
changesBrowserClass |
|
132 |
self useNewChangesBrowser ifTrue:[ |
|
133 |
^ NewChangesBrowser |
|
134 |
]. |
|
135 |
^ ChangesBrowser |
|
136 |
||
137 |
"Created: / 17.10.1998 / 14:37:46 / cg" |
|
138 |
! ! |
|
139 |
||
3360 | 140 |
!UserPreferences methodsFor:'accessing - prefs'! |
3358 | 141 |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
142 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
143 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
144 |
follow the mouse (as in X) - as opposed to click mode (as in MS-win). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
145 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
146 |
The returned value has 3 states: true/false and nil, which means: as defined in styleSheet." |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
147 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
148 |
^ self at:#focusFollowsMouse ifAbsent:nil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
149 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
150 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
151 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
152 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
153 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
154 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
155 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
156 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
157 |
focusFollowsMouse:aBooleanOrNil |
4121 | 158 |
"set/clear the flag which controls if the keyboard focus should |
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
159 |
follow the mouse (as in X) - as opposed to click mode (as in MS-win). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
160 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
161 |
Allowed are: true/false and nil, which means: as defined in styleSheet." |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
162 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
163 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
164 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
165 |
" |
4121 | 166 |
UserPreferences current focusFollowsMouse:true |
167 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
168 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
169 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
170 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
171 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
172 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
173 |
|
3347 | 174 |
syntaxColoring |
3360 | 175 |
"return the flag which controls syntax coloring (in the browsers)" |
176 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
177 |
^ self at:#syntaxColoring ifAbsentPut:true |
3347 | 178 |
|
179 |
" |
|
180 |
UserPreferences current syntaxColoring |
|
181 |
" |
|
182 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
183 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 184 |
! |
185 |
||
186 |
syntaxColoring:aBoolean |
|
3360 | 187 |
"turn on/off syntaxColoring (in the browsers)." |
188 |
||
3347 | 189 |
^ self at:#syntaxColoring put:aBoolean |
190 |
||
3357 | 191 |
" |
192 |
UserPreferences current syntaxColoring:true |
|
193 |
UserPreferences current syntaxColoring:false |
|
194 |
" |
|
195 |
||
3347 | 196 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 197 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
3409 | 198 |
! |
199 |
||
3875
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
200 |
useNewChangesBrowser |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
201 |
"using new or old change browser" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
202 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
203 |
^ self at:#useNewChangesBrowser ifAbsentPut:false |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
204 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
205 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
206 |
! |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
207 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
208 |
useNewChangesBrowser:aBoolean |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
209 |
"using new or old changeBrowser" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
210 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
211 |
^ self at:#useNewChangesBrowser put:aBoolean |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
212 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
213 |
" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
214 |
UserPreferences current useNewChangesBrowser |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
215 |
" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
216 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
217 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
218 |
! |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
219 |
|
3409 | 220 |
useNewInspector |
221 |
"using new or old inspector" |
|
222 |
||
223 |
^ self at:#useNewInspector ifAbsentPut:false |
|
3883 | 224 |
|
225 |
" |
|
226 |
UserPreferences current useNewInspector |
|
227 |
" |
|
228 |
||
229 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
3409 | 230 |
! |
231 |
||
232 |
useNewInspector:aBoolean |
|
233 |
"using new or old inspector" |
|
234 |
||
235 |
^ self at:#useNewInspector put:aBoolean |
|
236 |
||
237 |
" |
|
238 |
UserPreferences current useNewInspector |
|
239 |
" |
|
3360 | 240 |
! ! |
241 |
||
242 |
!UserPreferences methodsFor:'accessing - syntaxColoring prefs'! |
|
243 |
||
244 |
argumentIdentifierColor |
|
245 |
"the color used for argument identifiers; |
|
246 |
If syntaxColoring is turned on." |
|
247 |
||
248 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
249 |
||
250 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
251 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
252 |
! |
|
253 |
||
254 |
argumentIdentifierEmphasis |
|
255 |
"the emphasis used for argument identifiers; |
|
256 |
If syntaxColoring is turned on." |
|
257 |
||
258 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
259 |
||
260 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
261 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
262 |
! |
|
263 |
||
264 |
booleanConstantColor |
|
265 |
"the color used for boolean constants; |
|
266 |
If syntaxColoring is turned on." |
|
267 |
||
268 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
269 |
||
270 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
271 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
272 |
! |
|
273 |
||
274 |
booleanConstantEmphasis |
|
275 |
"the emphasis used for boolean constants; |
|
276 |
If syntaxColoring is turned on." |
|
277 |
||
278 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
279 |
||
280 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
281 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
282 |
! |
|
283 |
||
3361 | 284 |
bracketColor |
285 |
"the color used for brackets; |
|
286 |
If syntaxColoring is turned on." |
|
287 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
288 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 289 |
|
290 |
" |
|
291 |
self current at:#bracketColor put:Color red. |
|
292 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
293 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
294 |
self current bracketColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
295 |
self current bracketEmphasis |
3361 | 296 |
" |
297 |
||
298 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
299 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
300 |
! |
|
301 |
||
302 |
bracketEmphasis |
|
303 |
"the emphasis used for brackets; |
|
304 |
If syntaxColoring is turned on." |
|
305 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
306 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 307 |
|
308 |
" |
|
309 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
310 |
self current bracketEmphasis |
3361 | 311 |
" |
312 |
||
313 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
314 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
315 |
! |
|
316 |
||
3360 | 317 |
commentColor |
318 |
"the color used for comments; |
|
319 |
If syntaxColoring is turned on." |
|
320 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
321 |
^ self at:#commentColor ifAbsentPut:[DefaultPreferences at:#commentColor] |
3360 | 322 |
|
323 |
"Created: / 31.3.1998 / 15:10:23 / cg" |
|
3832 | 324 |
"Modified: / 11.9.1998 / 19:24:04 / cg" |
3360 | 325 |
! |
326 |
||
327 |
commentEmphasis |
|
328 |
"the emphasis used for comments; |
|
329 |
If syntaxColoring is turned on." |
|
330 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
331 |
^ self at:#commentEmphasis ifAbsentPut:[DefaultPreferences at:#commentEmphasis] |
3360 | 332 |
|
333 |
"Created: / 31.3.1998 / 15:09:59 / cg" |
|
334 |
"Modified: / 1.4.1998 / 13:25:53 / cg" |
|
335 |
! |
|
336 |
||
337 |
constantColor |
|
338 |
"the color used for constants; |
|
339 |
If syntaxColoring is turned on." |
|
340 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
341 |
^ self at:#constantColor ifAbsentPut:[DefaultPreferences at:#constantColor] |
3360 | 342 |
|
343 |
"Created: / 31.3.1998 / 18:13:15 / cg" |
|
344 |
"Modified: / 1.4.1998 / 13:20:37 / cg" |
|
345 |
! |
|
346 |
||
347 |
constantEmphasis |
|
348 |
"the emphasis used for constants; |
|
349 |
If syntaxColoring is turned on." |
|
350 |
||
351 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
352 |
||
353 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
354 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
355 |
! |
|
356 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
357 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
358 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
359 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
360 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
361 |
^ self at:#defaultSyntaxColor ifAbsentPut:[DefaultPreferences at:#defaultSyntaxColor] |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
362 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
363 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
364 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
365 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
366 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
367 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
368 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
369 |
^ self at:#defaultSyntaxEmphasis ifAbsentPut:[DefaultPreferences at:#defaultSyntaxEmphasis] |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
370 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
371 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
372 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
373 |
doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
374 |
|k| |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
375 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
376 |
k := aMessage selector. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
377 |
(self includesKey:k) ifTrue:[ |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
378 |
^ self at:k |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
379 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
380 |
(DefaultPreferences includesKey:k) ifTrue:[ |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
381 |
^ DefaultPreferences at:k |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
382 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
383 |
^ super doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
384 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
385 |
|
4306 | 386 |
fullSelectorCheck |
387 |
"with fullSelector check, selectors are searched immediately for |
|
388 |
being implemented in the system. This may not be useful on slow machines" |
|
389 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
390 |
^ self at:#fullSelectorCheck ifAbsentPut:[DefaultPreferences at:#fullSelectorCheck] |
4306 | 391 |
|
392 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
393 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
394 |
! |
|
395 |
||
4023 | 396 |
globalClassIdentifierColor |
397 |
"the color used for global identifiers which are known to be classes; |
|
398 |
If syntaxColoring is turned on." |
|
399 |
||
400 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
401 |
||
402 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
403 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
404 |
! |
|
405 |
||
406 |
globalClassIdentifierEmphasis |
|
407 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
408 |
If syntaxColoring is turned on." |
|
409 |
||
410 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
411 |
||
412 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
413 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
414 |
! |
|
415 |
||
3360 | 416 |
globalIdentifierColor |
417 |
"the color used for global identifiers; |
|
418 |
If syntaxColoring is turned on." |
|
419 |
||
420 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
421 |
||
422 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
423 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
424 |
! |
|
425 |
||
426 |
globalIdentifierEmphasis |
|
427 |
"the emphasis used for global variable identifiers; |
|
428 |
If syntaxColoring is turned on." |
|
429 |
||
430 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
431 |
||
432 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
433 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
434 |
! |
|
435 |
||
436 |
hereColor |
|
437 |
"the color used for the here pseudoVariable; |
|
438 |
If syntaxColoring is turned on." |
|
439 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
440 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 441 |
|
442 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
443 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
444 |
! |
|
445 |
||
446 |
hereEmphasis |
|
447 |
"the emphasis used for the hre special variable; |
|
448 |
If syntaxColoring is turned on." |
|
449 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
450 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 451 |
|
452 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
453 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
454 |
! |
|
455 |
||
456 |
identifierColor |
|
457 |
"the color used for other identifiers; |
|
458 |
If syntaxColoring is turned on." |
|
459 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
460 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 461 |
|
3362 | 462 |
" |
463 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
464 |
UserPreferences current at:#identifierColor put:Color black. |
|
465 |
" |
|
466 |
||
3360 | 467 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 468 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 469 |
! |
470 |
||
471 |
identifierEmphasis |
|
472 |
"the emphasis used for other identifiers; |
|
473 |
If syntaxColoring is turned on." |
|
474 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
475 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 476 |
|
477 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
478 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
479 |
! |
|
480 |
||
3378 | 481 |
instVarIdentifierColor |
3377 | 482 |
"the color used for instance variable identifiers; |
483 |
If syntaxColoring is turned on." |
|
484 |
||
3378 | 485 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 486 |
|
487 |
" |
|
3378 | 488 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
489 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
490 |
UserPreferences current instVarIdentifierColor |
|
3377 | 491 |
" |
492 |
||
493 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 494 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 495 |
! |
496 |
||
3378 | 497 |
instVarIdentifierEmphasis |
3377 | 498 |
"the emphais used for instance variable identifiers; |
499 |
If syntaxColoring is turned on." |
|
500 |
||
3378 | 501 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 502 |
|
503 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 504 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 505 |
! |
506 |
||
3360 | 507 |
localIdentifierColor |
508 |
"the color used for local variable identifiers; |
|
509 |
If syntaxColoring is turned on." |
|
510 |
||
511 |
^ self at:#localIdentifierColor ifAbsentPut:[self identifierColor] |
|
512 |
||
3362 | 513 |
" |
514 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
515 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
516 |
" |
|
517 |
||
3360 | 518 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 519 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 520 |
! |
521 |
||
522 |
localIdentifierEmphasis |
|
523 |
"the emphais used for local variable identifiers; |
|
524 |
If syntaxColoring is turned on." |
|
525 |
||
526 |
^ self at:#localIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
527 |
||
528 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
529 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
530 |
! |
|
531 |
||
532 |
methodSelectorColor |
|
533 |
"the color used for a methods selector pattern; |
|
534 |
If syntaxColoring is turned on." |
|
535 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
536 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 537 |
|
538 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
539 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
540 |
! |
|
541 |
||
542 |
methodSelectorEmphasis |
|
543 |
"the emphasis used for a methods selector pattern; |
|
544 |
If syntaxColoring is turned on." |
|
545 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
546 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[DefaultPreferences at:#methodSelectorEmphasis] |
3360 | 547 |
|
548 |
"Created: / 31.3.1998 / 15:11:16 / cg" |
|
549 |
"Modified: / 1.4.1998 / 13:24:20 / cg" |
|
550 |
! |
|
551 |
||
4076 | 552 |
returnColor |
553 |
"the color used for the return expression; |
|
554 |
If syntaxColoring is turned on." |
|
555 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
556 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 557 |
|
558 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
559 |
! |
|
560 |
||
561 |
returnEmphasis |
|
562 |
"the emphasis used for returns; |
|
563 |
If syntaxColoring is turned on." |
|
564 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
565 |
^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 566 |
|
567 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
568 |
! |
|
569 |
||
3360 | 570 |
selectorColor |
571 |
"the color used for message selectors; |
|
572 |
If syntaxColoring is turned on." |
|
573 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
574 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 575 |
|
576 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
577 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
578 |
! |
|
579 |
||
580 |
selectorEmphasis |
|
581 |
"the emphasis used for message selectors; |
|
582 |
If syntaxColoring is turned on." |
|
583 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
584 |
^ self at:#selectorEmphasis ifAbsentPut:[DefaultPreferences at:#selectorEmphasis] |
3360 | 585 |
|
586 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
587 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
|
588 |
! |
|
589 |
||
590 |
selfColor |
|
591 |
"the color used for the self pseudoVariable; |
|
592 |
If syntaxColoring is turned on." |
|
593 |
||
594 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
595 |
||
596 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
597 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
598 |
! |
|
599 |
||
600 |
selfEmphasis |
|
601 |
"the emphasis used for the self pseudoVariable; |
|
602 |
If syntaxColoring is turned on." |
|
603 |
||
604 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
605 |
||
606 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
607 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
608 |
! |
|
609 |
||
610 |
stringColor |
|
611 |
"the color used for string constants; |
|
612 |
If syntaxColoring is turned on." |
|
613 |
||
614 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
615 |
||
616 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
617 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
618 |
! |
|
619 |
||
620 |
stringEmphasis |
|
621 |
"the emphasis used for string constants; |
|
622 |
If syntaxColoring is turned on." |
|
623 |
||
624 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
625 |
||
626 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
627 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
628 |
! |
|
629 |
||
630 |
superColor |
|
631 |
"the color used for the super pseudoVariable; |
|
632 |
If syntaxColoring is turned on." |
|
633 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
634 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 635 |
|
636 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
637 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
638 |
! |
|
639 |
||
640 |
superEmphasis |
|
641 |
"the emphasis used for the super pseudoVariable; |
|
642 |
If syntaxColoring is turned on." |
|
643 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
644 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 645 |
|
646 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
647 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
648 |
! |
|
649 |
||
650 |
symbolColor |
|
651 |
"the color used for symbol constants; |
|
652 |
If syntaxColoring is turned on." |
|
653 |
||
654 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
655 |
||
656 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
657 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
658 |
! |
|
659 |
||
660 |
symbolEmphasis |
|
661 |
"the emphasis used for symbol constants; |
|
662 |
If syntaxColoring is turned on." |
|
663 |
||
664 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
665 |
||
666 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
667 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 668 |
! |
669 |
||
670 |
thisContextColor |
|
3360 | 671 |
"the color used for the thisContext pseudoVariable; |
672 |
If syntaxColoring is turned on." |
|
673 |
||
3355 | 674 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 675 |
|
676 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 677 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 678 |
! |
679 |
||
680 |
thisContextEmphasis |
|
3360 | 681 |
"the emphasis used for the thisContext pseudoVariable; |
682 |
If syntaxColoring is turned on." |
|
683 |
||
3355 | 684 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 685 |
|
686 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 687 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 688 |
! |
689 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
690 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
691 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
692 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
693 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
694 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[DefaultPreferences at:#unimplementedSelectorColor] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
695 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
696 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
697 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
698 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
699 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
700 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
701 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[DefaultPreferences at:#unimplementedSelectorEmphasis] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
702 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
703 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
704 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
705 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
706 |
|
3354 | 707 |
unknownIdentifierColor |
3360 | 708 |
"the color used for unknown identifiers; |
709 |
If syntaxColoring is turned on." |
|
710 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
711 |
^ self at:#unknownIdentifierColor ifAbsentPut:[DefaultPreferences at:#unknownIdentifierColor] |
3354 | 712 |
|
3361 | 713 |
" |
714 |
self current at:#unknownIdentifierColor put:Color red. |
|
715 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
716 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
717 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
718 |
self current unknownIdentifierEmphasis |
3361 | 719 |
" |
720 |
||
3354 | 721 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 722 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 723 |
! |
724 |
||
725 |
unknownIdentifierEmphasis |
|
3360 | 726 |
"the emphasis used for unknown identifiers; |
727 |
If syntaxColoring is turned on." |
|
728 |
||
3355 | 729 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3354 | 730 |
|
731 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 732 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
3347 | 733 |
! ! |
734 |
||
735 |
!UserPreferences class methodsFor:'documentation'! |
|
736 |
||
737 |
version |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
738 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.30 1999-06-25 15:48:09 cg Exp $' |
3347 | 739 |
! ! |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
740 |
UserPreferences initialize! |