author | penk |
Wed, 25 Sep 2002 10:42:51 +0200 | |
changeset 6770 | b9a5aa95c517 |
parent 6769 | 8cd2d038bfc6 |
child 6813 | b03e92a48a76 |
permissions | -rw-r--r-- |
3347 | 1 |
" |
2 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
5712 | 3 |
All Rights Reserved |
3347 | 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 |
||
5516 | 14 |
"{ Package: 'stx:libbasic' }" |
15 |
||
3347 | 16 |
IdentityDictionary subclass:#UserPreferences |
17 |
instanceVariableNames:'' |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
18 |
classVariableNames:'CurrentPreferences DefaultPreferences' |
3347 | 19 |
poolDictionaries:'' |
20 |
category:'System-Support' |
|
21 |
! |
|
22 |
||
23 |
!UserPreferences class methodsFor:'documentation'! |
|
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
5712 | 28 |
All Rights Reserved |
3347 | 29 |
|
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
||
38 |
! |
|
39 |
||
40 |
documentation |
|
41 |
" |
|
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
42 |
A Dictionary for user preference values. |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
43 |
For non-existing keys, either a defaultValue (false), |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
44 |
or the value from a defaultDictionary is returned. |
3353 | 45 |
|
3359 | 46 |
This will eventually keep track of ALL user preferences. |
47 |
(which are currently spread over the system). |
|
48 |
For now, only a few preferences are found here - but this |
|
49 |
will change over time. |
|
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
50 |
|
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
51 |
UserPreferences current at:#foo |
3347 | 52 |
" |
53 |
! ! |
|
54 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
55 |
!UserPreferences class methodsFor:'initialization'! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
56 |
|
4580 | 57 |
initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
58 |
DefaultPreferences := self new. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
59 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
60 |
#( |
5712 | 61 |
#useNewChangesBrowser false |
62 |
#useNewInspector false |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
63 |
|
5712 | 64 |
#autoFormatting false |
65 |
#syntaxColoring true |
|
66 |
#fullSelectorCheck false |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
67 |
|
5712 | 68 |
#defaultSyntaxColor (Color black) |
69 |
#defaultSyntaxEmphasis normal |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
70 |
|
5712 | 71 |
#errorColor (Color red) |
4343 | 72 |
|
5712 | 73 |
#commentColor (Color 12.5 12.5 100) |
74 |
#commentEmphasis normal |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
75 |
|
5712 | 76 |
#methodSelectorEmphasis bold |
77 |
#selectorEmphasis bold |
|
78 |
#unimplementedSelectorColor (Color red) |
|
79 |
#unimplementedSelectorEmphasis normal |
|
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
80 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
81 |
"/ I prefer red-underwave over red identifier ... |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
82 |
"/ #badIdentifierColor (Color red) |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
83 |
|
5712 | 84 |
#constantColor (Color 25 0 0) |
4330
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
85 |
|
5712 | 86 |
#showClockInLauncher true |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
87 |
) pairWiseDo:[:k :v | |
5712 | 88 |
DefaultPreferences at:k put:v decodeAsLiteralArray. |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
89 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
90 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
91 |
"/ I prefer red-underwave over red identifier ... |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
92 |
DefaultPreferences at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
93 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
94 |
" |
4580 | 95 |
self initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
96 |
" |
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
97 |
|
5236 | 98 |
"Modified: / 4.2.2000 / 20:06:53 / cg" |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
99 |
! ! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
100 |
|
3347 | 101 |
!UserPreferences class methodsFor:'accessing'! |
102 |
||
103 |
current |
|
104 |
CurrentPreferences isNil ifTrue:[ |
|
5712 | 105 |
CurrentPreferences := self new. |
106 |
CurrentPreferences declareAllFrom:(self default). |
|
3347 | 107 |
]. |
108 |
^ CurrentPreferences. |
|
109 |
||
110 |
"Created: / 31.3.1998 / 13:43:03 / cg" |
|
3364 | 111 |
! |
112 |
||
4318 | 113 |
default |
4580 | 114 |
DefaultPreferences isNil ifTrue:[ |
5712 | 115 |
self initializeDefaultPreferences |
4580 | 116 |
]. |
4318 | 117 |
^ DefaultPreferences. |
118 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
119 |
" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
120 |
DefaultPreferences := nil. |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
121 |
" |
4318 | 122 |
! |
123 |
||
3364 | 124 |
reset |
125 |
"resets the CurrentPreferences to its default values" |
|
126 |
||
127 |
CurrentPreferences := nil |
|
128 |
! |
|
129 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
130 |
syntaxColorKeys |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
131 |
"returns the keys of syntax color items" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
132 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
133 |
^#( |
5712 | 134 |
argumentIdentifierColor |
135 |
argumentIdentifierEmphasis |
|
136 |
booleanConstantColor |
|
137 |
booleanConstantEmphasis |
|
138 |
bracketColor |
|
139 |
bracketEmphasis |
|
140 |
classVariableIdentifierColor |
|
141 |
classVariableIdentifierEmphasis |
|
142 |
constantColor |
|
143 |
constantEmphasis |
|
144 |
commentColor |
|
145 |
commentEmphasis |
|
146 |
defaultSyntaxColor |
|
147 |
defaultSyntaxEmphasis |
|
148 |
errorColor |
|
149 |
globalIdentifierColor |
|
150 |
globalIdentifierEmphasis |
|
151 |
globalClassIdentifierColor |
|
152 |
globalClassIdentifierEmphasis |
|
153 |
hereColor |
|
154 |
hereEmphasis |
|
155 |
identifierColor |
|
156 |
identifierEmphasis |
|
157 |
instVarIdentifierColor |
|
158 |
instVarIdentifierEmphasis |
|
159 |
localIdentifierColor |
|
160 |
localIdentifierEmphasis |
|
161 |
methodSelectorColor |
|
162 |
methodSelectorEmphasis |
|
163 |
returnColor |
|
164 |
returnEmphasis |
|
165 |
selectorColor |
|
166 |
selectorEmphasis |
|
167 |
selfColor |
|
168 |
selfEmphasis |
|
169 |
stringColor |
|
170 |
stringEmphasis |
|
171 |
superColor |
|
172 |
superEmphasis |
|
173 |
symbolColor |
|
174 |
symbolEmphasis |
|
175 |
thisContextColor |
|
176 |
thisContextEmphasis |
|
177 |
unknownIdentifierColor |
|
178 |
unknownIdentifierEmphasis |
|
179 |
unimplementedSelectorColor |
|
180 |
unimplementedSelectorEmphasis |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
181 |
) |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
182 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
183 |
"Modified: / 5.1.1980 / 00:48:09 / cg" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
184 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
185 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
186 |
syntaxColorNames |
3364 | 187 |
"returns the syntax colors for the settings in the launcher" |
188 |
||
4319 | 189 |
"/ warning, the strings below are presented to the user |
190 |
"/ as the syntax-color boxes comboList - however, they are |
|
191 |
"/ also used (without separators) as key into myself. |
|
192 |
"/ Therefore, do not change the strings below. |
|
193 |
"/ I know - this is bad coding .... |
|
194 |
||
3364 | 195 |
^#( |
196 |
'Argument Identifier Color' |
|
197 |
'Boolean Constant Color' |
|
198 |
'Bracket Color' |
|
4320 | 199 |
'Class Variable Identifier Color' |
3364 | 200 |
'Constant Color' |
201 |
'Comment Color' |
|
202 |
'Global Identifier Color' |
|
4024
3a223c79e41c
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4023
diff
changeset
|
203 |
'Global Class Identifier Color' |
3364 | 204 |
'Here Color' |
205 |
'Identifier Color' |
|
3377 | 206 |
'InstVar Identifier Color' |
3364 | 207 |
'Local Identifier Color' |
208 |
'Method Selector Color' |
|
4076 | 209 |
'Return Color' |
3364 | 210 |
'Selector Color' |
211 |
'Self Color' |
|
212 |
'String Color' |
|
213 |
'Super Color' |
|
214 |
'Symbol Color' |
|
215 |
'This Context Color' |
|
216 |
'Unknown Identifier Color' |
|
4319 | 217 |
'Unimplemented Selector Color' |
3377 | 218 |
) |
3364 | 219 |
|
4076 | 220 |
"Modified: / 5.1.1980 / 00:48:09 / cg" |
3347 | 221 |
! ! |
222 |
||
6019 | 223 |
!UserPreferences class methodsFor:'accessing defaultPrefs'! |
224 |
||
6763 | 225 |
fileBrowserClass |
226 |
^ self current fileBrowserClass |
|
227 |
||
228 |
" |
|
229 |
UserPreferences fileBrowserClass |
|
230 |
" |
|
231 |
! |
|
232 |
||
6019 | 233 |
systemBrowserClass |
234 |
^ self current systemBrowserClass |
|
235 |
||
236 |
" |
|
237 |
UserPreferences systemBrowserClass |
|
238 |
" |
|
239 |
! |
|
240 |
||
241 |
versionDiffViewerClass |
|
242 |
^ self current versionDiffViewerClass |
|
243 |
||
244 |
" |
|
245 |
UserPreferences versionDiffViewerClass |
|
246 |
" |
|
247 |
! ! |
|
248 |
||
5236 | 249 |
!UserPreferences methodsFor:'accessing-pref''d tools'! |
3883 | 250 |
|
5790 | 251 |
at:key put:value |
252 |
|classNameToCheck classToCheck| |
|
253 |
||
6059 | 254 |
value == true ifTrue:[ |
255 |
key == #useNewVersionDiffBrowser ifTrue:[ |
|
5790 | 256 |
classNameToCheck := #'VersionDiffBrowser'. |
6059 | 257 |
]. |
258 |
key == #useNewChangesBrowser ifTrue:[ |
|
5790 | 259 |
classNameToCheck := #'NewChangesBrowser'. |
6059 | 260 |
]. |
6762 | 261 |
key == #useNewFileBrowser ifTrue:[ |
6770 | 262 |
classNameToCheck := #'FileBrowserV2'. |
6761 | 263 |
]. |
6059 | 264 |
key == #useNewSystemBrowser ifTrue:[ |
5790 | 265 |
classNameToCheck := #'NewSystemBrowser'. |
6059 | 266 |
]. |
267 |
key == #useNewInspector ifTrue:[ |
|
5790 | 268 |
classNameToCheck := #'NewInspector::NewInspectorView'. |
6059 | 269 |
]. |
5790 | 270 |
]. |
271 |
||
5791 | 272 |
classNameToCheck notNil ifTrue:[ |
5790 | 273 |
classToCheck := Smalltalk at:classNameToCheck. |
274 |
classToCheck isNil ifTrue:[ |
|
6770 | 275 |
('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR. |
276 |
] ifFalse:[ |
|
277 |
Autoload autoloadFailedSignal handle:[:ex | |
|
278 |
'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR. |
|
279 |
] do:[ |
|
280 |
classToCheck autoload. |
|
281 |
] |
|
5790 | 282 |
] |
283 |
]. |
|
284 |
||
285 |
^ super at:key put:value |
|
286 |
! |
|
287 |
||
3883 | 288 |
changesBrowserClass |
289 |
self useNewChangesBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
290 |
^ (NewChangesBrowser ? ChangesBrowser) |
3883 | 291 |
]. |
292 |
^ ChangesBrowser |
|
293 |
||
294 |
"Created: / 17.10.1998 / 14:37:46 / cg" |
|
5535 | 295 |
! |
296 |
||
6763 | 297 |
fileBrowserClass |
298 |
self useNewFileBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
299 |
^ (FileBrowserV2 ? FileBrowser) |
6763 | 300 |
]. |
301 |
^ FileBrowser |
|
302 |
! |
|
303 |
||
6177 | 304 |
inspectorClassSetting |
305 |
self useNewInspector ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
306 |
^ (NewInspector::NewInspectorView ? InspectorView) |
6177 | 307 |
]. |
308 |
^ InspectorView |
|
309 |
||
310 |
"Modified: / 12.11.2001 / 15:47:35 / cg" |
|
311 |
"Created: / 12.11.2001 / 15:49:00 / cg" |
|
5541 | 312 |
! |
313 |
||
5535 | 314 |
systemBrowserClass |
315 |
self useNewSystemBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
316 |
^ (NewSystemBrowser ? SystemBrowser) |
5535 | 317 |
]. |
318 |
^ SystemBrowser |
|
5536 | 319 |
! |
320 |
||
321 |
useNewChangesBrowser |
|
322 |
"using new or old change browser" |
|
323 |
||
324 |
^ self at:#useNewChangesBrowser ifAbsentPut:false |
|
325 |
||
326 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
327 |
! |
|
328 |
||
329 |
useNewChangesBrowser:aBoolean |
|
330 |
"using new or old changeBrowser" |
|
331 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
332 |
self at:#useNewChangesBrowser put:aBoolean |
5536 | 333 |
|
334 |
" |
|
335 |
UserPreferences current useNewChangesBrowser |
|
336 |
" |
|
337 |
||
338 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
339 |
! |
|
340 |
||
6717 | 341 |
useNewFileBrowser |
342 |
"using new or old version diff viewer" |
|
343 |
||
344 |
^ self at:#useNewFileBrowser ifAbsentPut:false |
|
345 |
||
346 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
347 |
! |
|
348 |
||
349 |
useNewFileBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
350 |
"using new or old file browser" |
6717 | 351 |
|
352 |
self at:#useNewFileBrowser put:aBoolean |
|
353 |
||
354 |
" |
|
6769 | 355 |
UserPreferences current useNewFileBrowser |
6717 | 356 |
" |
357 |
||
358 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
359 |
! |
|
360 |
||
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
361 |
useNewFileDialog |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
362 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
363 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
364 |
^ self at:#useNewFileDialog ifAbsentPut:false |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
365 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
366 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
367 |
useNewFileDialog:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
368 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
369 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
370 |
self at:#useNewFileDialog put:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
371 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
372 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
373 |
UserPreferences current useNewFileDialog:true |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
374 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
375 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
376 |
|
5536 | 377 |
useNewInspector |
378 |
"using new or old inspector" |
|
379 |
||
380 |
^ self at:#useNewInspector ifAbsentPut:false |
|
381 |
||
382 |
" |
|
383 |
UserPreferences current useNewInspector |
|
384 |
" |
|
385 |
||
386 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
387 |
! |
|
388 |
||
389 |
useNewInspector:aBoolean |
|
390 |
"using new or old inspector" |
|
391 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
392 |
self at:#useNewInspector put:aBoolean |
5536 | 393 |
|
394 |
" |
|
395 |
UserPreferences current useNewInspector |
|
396 |
" |
|
397 |
! |
|
398 |
||
399 |
useNewSystemBrowser |
|
400 |
"using new or old system browser" |
|
401 |
||
402 |
^ self at:#useNewSystemBrowser ifAbsentPut:false |
|
403 |
||
404 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
405 |
! |
|
406 |
||
407 |
useNewSystemBrowser:aBoolean |
|
408 |
"using new or old systemBrowser" |
|
409 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
410 |
self at:#useNewSystemBrowser put:aBoolean |
5536 | 411 |
|
412 |
" |
|
5541 | 413 |
UserPreferences current useNewSystemBrowser:true |
5536 | 414 |
" |
415 |
||
416 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
417 |
! |
|
418 |
||
419 |
useNewVersionDiffBrowser |
|
420 |
"using new or old version diff viewer" |
|
421 |
||
6666
26396997886c
default is to use the new versionDiffBrowser
Claus Gittinger <cg@exept.de>
parents:
6525
diff
changeset
|
422 |
^ self at:#useNewVersionDiffBrowser ifAbsentPut:true |
5536 | 423 |
|
424 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
425 |
! |
|
426 |
||
427 |
useNewVersionDiffBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
428 |
"using new or old versionDiffBrowser" |
5536 | 429 |
|
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
430 |
self at:#useNewVersionDiffBrowser put:aBoolean |
5536 | 431 |
|
432 |
" |
|
433 |
UserPreferences current useNewVersionDiffBrowser |
|
434 |
" |
|
435 |
||
436 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
437 |
! |
|
438 |
||
439 |
versionDiffViewerClass |
|
440 |
self useNewVersionDiffBrowser ifTrue:[ |
|
6770 | 441 |
^ (VersionDiffBrowser ? DiffTextView) |
5536 | 442 |
]. |
443 |
^ DiffTextView |
|
3883 | 444 |
! ! |
445 |
||
5236 | 446 |
!UserPreferences methodsFor:'accessing-prefs'! |
447 |
||
448 |
autoFormatting |
|
449 |
"return the flag which controls automatic formatting of code (in some browsers) |
|
450 |
Notice, the regular browser does not (yet) do automatic formating." |
|
451 |
||
452 |
^ self at:#autoFormatting ifAbsentPut:false |
|
453 |
||
454 |
" |
|
455 |
UserPreferences current autoFormatting |
|
456 |
" |
|
457 |
||
458 |
"Created: / 4.2.2000 / 20:08:08 / cg" |
|
459 |
"Modified: / 5.2.2000 / 15:38:33 / cg" |
|
460 |
! |
|
461 |
||
462 |
autoFormatting:aBoolean |
|
463 |
"turn on/off automatic formatting of code (in some browsers); |
|
464 |
Notice, the regular browser does not (yet) do automatic formating." |
|
465 |
||
466 |
^ self at:#autoFormatting put:aBoolean |
|
467 |
||
468 |
" |
|
469 |
UserPreferences current autoFormatting:true |
|
470 |
UserPreferences current autoFormatting:false |
|
471 |
" |
|
472 |
||
473 |
"Created: / 4.2.2000 / 20:08:26 / cg" |
|
474 |
"Modified: / 5.2.2000 / 15:38:20 / cg" |
|
475 |
! |
|
3358 | 476 |
|
5071 | 477 |
beepEnabled |
478 |
"return the flag which controls the beeper" |
|
479 |
||
480 |
^ self at:#beepEnabled ifAbsentPut:true |
|
481 |
||
482 |
" |
|
483 |
UserPreferences current beepEnabled |
|
484 |
" |
|
485 |
||
486 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
487 |
"Created: / 3.12.1999 / 17:09:49 / ps" |
|
488 |
! |
|
489 |
||
490 |
beepEnabled:aBoolean |
|
491 |
"set/clear the flag which controls the beeper" |
|
492 |
||
493 |
^ self at:#beepEnabled put:aBoolean |
|
494 |
||
495 |
" |
|
496 |
UserPreferences current beepEnabled:false |
|
497 |
" |
|
498 |
||
499 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
500 |
"Created: / 3.12.1999 / 17:10:27 / ps" |
|
501 |
! |
|
502 |
||
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
503 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
504 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
505 |
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
|
506 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
507 |
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
|
508 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
509 |
^ self at:#focusFollowsMouse ifAbsent:nil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
510 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
511 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
512 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
513 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
514 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
515 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
516 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
517 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
518 |
focusFollowsMouse:aBooleanOrNil |
4121 | 519 |
"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
|
520 |
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
|
521 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
522 |
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
|
523 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
524 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
525 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
526 |
" |
4121 | 527 |
UserPreferences current focusFollowsMouse:true |
528 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
529 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
530 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
531 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
532 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
533 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
534 |
|
4396
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
535 |
functionKeySequences |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
536 |
"return the collection of function-key macros. |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
537 |
Thats a dictionary, which assigns code to F-keys" |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
538 |
|
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
539 |
^ self at:#functionKeySequences ifAbsentPut:[Dictionary new] |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
540 |
|
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
541 |
" |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
542 |
UserPreferences current functionKeySequences |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
543 |
" |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
544 |
|
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
545 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
546 |
! |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
547 |
|
5808 | 548 |
opaqueTableColumnResizing |
549 |
"return the flag which controls if table column resizing should be done |
|
550 |
animated (opaque)" |
|
551 |
||
552 |
^ self at:#opaqueTableColumnResizing ifAbsentPut:false |
|
553 |
||
554 |
" |
|
555 |
UserPreferences current opaqueTableColumnResizing |
|
556 |
" |
|
557 |
! |
|
558 |
||
559 |
opaqueTableColumnResizing:aBoolean |
|
560 |
"change the flag which controls if table column resizing should be done |
|
561 |
animated (opaque)" |
|
562 |
||
563 |
^ self at:#opaqueTableColumnResizing put:aBoolean |
|
564 |
||
565 |
" |
|
566 |
UserPreferences current opaqueTableColumnResizing:true |
|
567 |
" |
|
568 |
||
569 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
570 |
! |
|
571 |
||
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
572 |
opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
573 |
"return the flag which controls if variable panel resizing should be done |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
574 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
575 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
576 |
^ self at:#opaqueVariablePanelResizing ifAbsentPut:false |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
577 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
578 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
579 |
UserPreferences current opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
580 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
581 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
582 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
583 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
584 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
585 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
586 |
opaqueVariablePanelResizing:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
587 |
"change the flag which controls if variable panel resizing should be done |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
588 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
589 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
590 |
^ self at:#opaqueVariablePanelResizing put:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
591 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
592 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
593 |
UserPreferences current opaqueVariablePanelResizing:true |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
594 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
595 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
596 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
597 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
598 |
|
6525 | 599 |
searchDialogIsModal |
600 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
601 |
||
602 |
^ self at:#searchDialogIsModal ifAbsent:true |
|
603 |
||
604 |
" |
|
605 |
UserPreferences current searchDialogIsModal |
|
606 |
" |
|
607 |
! |
|
608 |
||
609 |
searchDialogIsModal:aBooleanOrNil |
|
610 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
611 |
||
612 |
^ self at:#searchDialogIsModal put:aBooleanOrNil |
|
613 |
||
614 |
" |
|
615 |
UserPreferences current searchDialogIsModal:true |
|
616 |
UserPreferences current searchDialogIsModal:false |
|
617 |
UserPreferences current searchDialogIsModal |
|
618 |
" |
|
619 |
! |
|
620 |
||
4330
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
621 |
showClockInLauncher |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
622 |
"return the flag which controls if a clock is shown in the launcher" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
623 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
624 |
^ self at:#showClockInLauncher ifAbsentPut:false |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
625 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
626 |
" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
627 |
UserPreferences current showClockInLauncher |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
628 |
" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
629 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
630 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
631 |
! |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
632 |
|
4331 | 633 |
showClockInLauncher:aBooleanOrNil |
634 |
"set/clear the flag which controls if a clock is shown in the launcher" |
|
635 |
||
636 |
^ self at:#showClockInLauncher put:aBooleanOrNil |
|
637 |
||
638 |
" |
|
639 |
UserPreferences current showClockInLauncher:false. |
|
640 |
NewLauncher open. |
|
641 |
||
642 |
UserPreferences current showClockInLauncher:true. |
|
643 |
NewLauncher open. |
|
644 |
" |
|
645 |
||
646 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
647 |
! |
|
648 |
||
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
649 |
startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
650 |
"if true, textDrag is only started when the CTRL-key is down" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
651 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
652 |
^ self at:#startTextDragWithControl ifAbsent:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
653 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
654 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
655 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
656 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
657 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
658 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
659 |
startTextDragWithControl:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
660 |
"if true, textDrag is only started when the CTRL-key is down" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
661 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
662 |
^ self at:#startTextDragWithControl put:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
663 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
664 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
665 |
UserPreferences current startTextDragWithControl:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
666 |
UserPreferences current startTextDragWithControl:false |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
667 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
668 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
669 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
670 |
|
3347 | 671 |
syntaxColoring |
3360 | 672 |
"return the flag which controls syntax coloring (in the browsers)" |
673 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
674 |
^ self at:#syntaxColoring ifAbsentPut:true |
3347 | 675 |
|
676 |
" |
|
677 |
UserPreferences current syntaxColoring |
|
678 |
" |
|
679 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
680 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 681 |
! |
682 |
||
683 |
syntaxColoring:aBoolean |
|
3360 | 684 |
"turn on/off syntaxColoring (in the browsers)." |
685 |
||
3347 | 686 |
^ self at:#syntaxColoring put:aBoolean |
687 |
||
3357 | 688 |
" |
689 |
UserPreferences current syntaxColoring:true |
|
690 |
UserPreferences current syntaxColoring:false |
|
691 |
" |
|
692 |
||
3347 | 693 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 694 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
695 |
! ! |
|
696 |
||
5236 | 697 |
!UserPreferences methodsFor:'accessing-syntaxColoring prefs'! |
3360 | 698 |
|
699 |
argumentIdentifierColor |
|
700 |
"the color used for argument identifiers; |
|
701 |
If syntaxColoring is turned on." |
|
702 |
||
703 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
704 |
||
705 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
706 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
707 |
! |
|
708 |
||
709 |
argumentIdentifierEmphasis |
|
710 |
"the emphasis used for argument identifiers; |
|
711 |
If syntaxColoring is turned on." |
|
712 |
||
713 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
714 |
||
715 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
716 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
717 |
! |
|
718 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
719 |
badIdentifierColor |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
720 |
"the color used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
721 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
722 |
|
4336 | 723 |
^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
724 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
725 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
726 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
727 |
badIdentifierEmphasis |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
728 |
"the emphasis used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
729 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
730 |
|
4628 | 731 |
^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
732 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
733 |
"Modified: / 7.7.1999 / 00:30:00 / cg" |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
734 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
735 |
|
3360 | 736 |
booleanConstantColor |
737 |
"the color used for boolean constants; |
|
738 |
If syntaxColoring is turned on." |
|
739 |
||
740 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
741 |
||
742 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
743 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
744 |
! |
|
745 |
||
746 |
booleanConstantEmphasis |
|
747 |
"the emphasis used for boolean constants; |
|
748 |
If syntaxColoring is turned on." |
|
749 |
||
750 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
751 |
||
752 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
753 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
754 |
! |
|
755 |
||
3361 | 756 |
bracketColor |
757 |
"the color used for brackets; |
|
758 |
If syntaxColoring is turned on." |
|
759 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
760 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 761 |
|
762 |
" |
|
763 |
self current at:#bracketColor put:Color red. |
|
764 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
765 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
766 |
self current bracketColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
767 |
self current bracketEmphasis |
3361 | 768 |
" |
769 |
||
770 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
771 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
772 |
! |
|
773 |
||
774 |
bracketEmphasis |
|
775 |
"the emphasis used for brackets; |
|
776 |
If syntaxColoring is turned on." |
|
777 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
778 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 779 |
|
780 |
" |
|
781 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
782 |
self current bracketEmphasis |
3361 | 783 |
" |
784 |
||
785 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
786 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
787 |
! |
|
788 |
||
4320 | 789 |
classVariableIdentifierColor |
790 |
"the color used for classVar/classInstVar identifiers |
|
791 |
If syntaxColoring is turned on." |
|
792 |
||
793 |
^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
794 |
||
795 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
796 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
797 |
! |
|
798 |
||
799 |
classVariableIdentifierEmphasis |
|
800 |
"the color used for classVar/classInstVar identifiers |
|
801 |
If syntaxColoring is turned on." |
|
802 |
||
803 |
^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
804 |
||
805 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
806 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
807 |
! |
|
808 |
||
3360 | 809 |
commentColor |
810 |
"the color used for comments; |
|
811 |
If syntaxColoring is turned on." |
|
812 |
||
4628 | 813 |
^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor] |
3360 | 814 |
|
815 |
"Created: / 31.3.1998 / 15:10:23 / cg" |
|
3832 | 816 |
"Modified: / 11.9.1998 / 19:24:04 / cg" |
3360 | 817 |
! |
818 |
||
819 |
commentEmphasis |
|
820 |
"the emphasis used for comments; |
|
821 |
If syntaxColoring is turned on." |
|
822 |
||
4628 | 823 |
^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis] |
3360 | 824 |
|
825 |
"Created: / 31.3.1998 / 15:09:59 / cg" |
|
826 |
"Modified: / 1.4.1998 / 13:25:53 / cg" |
|
827 |
! |
|
828 |
||
5258 | 829 |
commentEmphasisAndColor |
830 |
^ Text addEmphasis:(self commentEmphasis) to:(#color->self commentColor). |
|
831 |
||
832 |
||
833 |
! |
|
834 |
||
3360 | 835 |
constantColor |
836 |
"the color used for constants; |
|
837 |
If syntaxColoring is turned on." |
|
838 |
||
4628 | 839 |
^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor] |
3360 | 840 |
|
841 |
"Created: / 31.3.1998 / 18:13:15 / cg" |
|
842 |
"Modified: / 1.4.1998 / 13:20:37 / cg" |
|
843 |
! |
|
844 |
||
845 |
constantEmphasis |
|
846 |
"the emphasis used for constants; |
|
847 |
If syntaxColoring is turned on." |
|
848 |
||
849 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
850 |
||
851 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
852 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
853 |
! |
|
854 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
855 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
856 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
857 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
858 |
|
4628 | 859 |
^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
860 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
861 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
862 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
863 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
864 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
865 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
866 |
|
4628 | 867 |
^ self at:#defaultSyntaxEmphasis ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
868 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
869 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
870 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
871 |
doesNotUnderstand:aMessage |
4580 | 872 |
|k def| |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
873 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
874 |
k := aMessage selector. |
6252 | 875 |
aMessage numArgs == 0 ifTrue:[ |
876 |
(self includesKey:k) ifTrue:[ |
|
877 |
^ self at:k |
|
878 |
]. |
|
879 |
((def := self class default) includesKey:k) ifTrue:[ |
|
880 |
^ def at:k |
|
881 |
]. |
|
882 |
^ self defaultValue |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
883 |
]. |
6252 | 884 |
"/ ((aMessage numArgs == 1) |
885 |
"/ and:[ (k endsWith:$:)]) |
|
886 |
"/ ifTrue:[ |
|
887 |
"/ k := (k copyWithoutLast:1) asSymbol. |
|
888 |
"/ ((self includesKey:k) |
|
889 |
"/ or:[ self class default includesKey:k ]) ifTrue:[ |
|
890 |
"/ ^ self at:k put:(aMessage arg1) |
|
891 |
"/ ]. |
|
892 |
"/ ]. |
|
893 |
||
894 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
895 |
^ super doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
896 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
897 |
|
4341 | 898 |
errorColor |
899 |
"the color used for illegal identifiers; |
|
900 |
If syntaxColoring is turned on." |
|
901 |
||
4628 | 902 |
^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor] |
4341 | 903 |
|
904 |
! |
|
905 |
||
4306 | 906 |
fullSelectorCheck |
907 |
"with fullSelector check, selectors are searched immediately for |
|
908 |
being implemented in the system. This may not be useful on slow machines" |
|
909 |
||
4628 | 910 |
^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck] |
4306 | 911 |
|
912 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
913 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
914 |
! |
|
915 |
||
4023 | 916 |
globalClassIdentifierColor |
917 |
"the color used for global identifiers which are known to be classes; |
|
918 |
If syntaxColoring is turned on." |
|
919 |
||
920 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
921 |
||
922 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
923 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
924 |
! |
|
925 |
||
926 |
globalClassIdentifierEmphasis |
|
927 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
928 |
If syntaxColoring is turned on." |
|
929 |
||
930 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
931 |
||
932 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
933 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
934 |
! |
|
935 |
||
3360 | 936 |
globalIdentifierColor |
937 |
"the color used for global identifiers; |
|
938 |
If syntaxColoring is turned on." |
|
939 |
||
940 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
941 |
||
942 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
943 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
944 |
! |
|
945 |
||
946 |
globalIdentifierEmphasis |
|
947 |
"the emphasis used for global variable identifiers; |
|
948 |
If syntaxColoring is turned on." |
|
949 |
||
950 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
951 |
||
952 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
953 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
954 |
! |
|
955 |
||
956 |
hereColor |
|
957 |
"the color used for the here pseudoVariable; |
|
958 |
If syntaxColoring is turned on." |
|
959 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
960 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 961 |
|
962 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
963 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
964 |
! |
|
965 |
||
966 |
hereEmphasis |
|
967 |
"the emphasis used for the hre special variable; |
|
968 |
If syntaxColoring is turned on." |
|
969 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
970 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 971 |
|
972 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
973 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
974 |
! |
|
975 |
||
976 |
identifierColor |
|
977 |
"the color used for other identifiers; |
|
978 |
If syntaxColoring is turned on." |
|
979 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
980 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 981 |
|
3362 | 982 |
" |
983 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
984 |
UserPreferences current at:#identifierColor put:Color black. |
|
985 |
" |
|
986 |
||
3360 | 987 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 988 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 989 |
! |
990 |
||
991 |
identifierEmphasis |
|
992 |
"the emphasis used for other identifiers; |
|
993 |
If syntaxColoring is turned on." |
|
994 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
995 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 996 |
|
997 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
998 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
999 |
! |
|
1000 |
||
3378 | 1001 |
instVarIdentifierColor |
3377 | 1002 |
"the color used for instance variable identifiers; |
1003 |
If syntaxColoring is turned on." |
|
1004 |
||
3378 | 1005 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 1006 |
|
1007 |
" |
|
3378 | 1008 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
1009 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
1010 |
UserPreferences current instVarIdentifierColor |
|
3377 | 1011 |
" |
1012 |
||
1013 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 1014 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 1015 |
! |
1016 |
||
3378 | 1017 |
instVarIdentifierEmphasis |
3377 | 1018 |
"the emphais used for instance variable identifiers; |
1019 |
If syntaxColoring is turned on." |
|
1020 |
||
3378 | 1021 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 1022 |
|
1023 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 1024 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 1025 |
! |
1026 |
||
3360 | 1027 |
localIdentifierColor |
1028 |
"the color used for local variable identifiers; |
|
1029 |
If syntaxColoring is turned on." |
|
1030 |
||
1031 |
^ self at:#localIdentifierColor ifAbsentPut:[self identifierColor] |
|
1032 |
||
3362 | 1033 |
" |
1034 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
1035 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
1036 |
" |
|
1037 |
||
3360 | 1038 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 1039 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 1040 |
! |
1041 |
||
1042 |
localIdentifierEmphasis |
|
1043 |
"the emphais used for local variable identifiers; |
|
1044 |
If syntaxColoring is turned on." |
|
1045 |
||
1046 |
^ self at:#localIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1047 |
||
1048 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
1049 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
1050 |
! |
|
1051 |
||
1052 |
methodSelectorColor |
|
1053 |
"the color used for a methods selector pattern; |
|
1054 |
If syntaxColoring is turned on." |
|
1055 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1056 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1057 |
|
1058 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
1059 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
1060 |
! |
|
1061 |
||
1062 |
methodSelectorEmphasis |
|
1063 |
"the emphasis used for a methods selector pattern; |
|
1064 |
If syntaxColoring is turned on." |
|
1065 |
||
4628 | 1066 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis] |
3360 | 1067 |
|
1068 |
"Created: / 31.3.1998 / 15:11:16 / cg" |
|
1069 |
"Modified: / 1.4.1998 / 13:24:20 / cg" |
|
1070 |
! |
|
1071 |
||
4076 | 1072 |
returnColor |
1073 |
"the color used for the return expression; |
|
1074 |
If syntaxColoring is turned on." |
|
1075 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1076 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 1077 |
|
1078 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
1079 |
! |
|
1080 |
||
1081 |
returnEmphasis |
|
1082 |
"the emphasis used for returns; |
|
1083 |
If syntaxColoring is turned on." |
|
1084 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1085 |
^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 1086 |
|
1087 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
1088 |
! |
|
1089 |
||
3360 | 1090 |
selectorColor |
1091 |
"the color used for message selectors; |
|
1092 |
If syntaxColoring is turned on." |
|
1093 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1094 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1095 |
|
1096 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
1097 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
1098 |
! |
|
1099 |
||
1100 |
selectorEmphasis |
|
1101 |
"the emphasis used for message selectors; |
|
1102 |
If syntaxColoring is turned on." |
|
1103 |
||
4628 | 1104 |
^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis] |
3360 | 1105 |
|
1106 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1107 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
|
1108 |
! |
|
1109 |
||
1110 |
selfColor |
|
1111 |
"the color used for the self pseudoVariable; |
|
1112 |
If syntaxColoring is turned on." |
|
1113 |
||
1114 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
1115 |
||
1116 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
1117 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
1118 |
! |
|
1119 |
||
1120 |
selfEmphasis |
|
1121 |
"the emphasis used for the self pseudoVariable; |
|
1122 |
If syntaxColoring is turned on." |
|
1123 |
||
1124 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1125 |
||
1126 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
1127 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
1128 |
! |
|
1129 |
||
1130 |
stringColor |
|
1131 |
"the color used for string constants; |
|
1132 |
If syntaxColoring is turned on." |
|
1133 |
||
1134 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
1135 |
||
1136 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
1137 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
1138 |
! |
|
1139 |
||
1140 |
stringEmphasis |
|
1141 |
"the emphasis used for string constants; |
|
1142 |
If syntaxColoring is turned on." |
|
1143 |
||
1144 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
1145 |
||
1146 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1147 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
1148 |
! |
|
1149 |
||
1150 |
superColor |
|
1151 |
"the color used for the super pseudoVariable; |
|
1152 |
If syntaxColoring is turned on." |
|
1153 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1154 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 1155 |
|
1156 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
1157 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
1158 |
! |
|
1159 |
||
1160 |
superEmphasis |
|
1161 |
"the emphasis used for the super pseudoVariable; |
|
1162 |
If syntaxColoring is turned on." |
|
1163 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1164 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1165 |
|
1166 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
1167 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
1168 |
! |
|
1169 |
||
1170 |
symbolColor |
|
1171 |
"the color used for symbol constants; |
|
1172 |
If syntaxColoring is turned on." |
|
1173 |
||
1174 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
1175 |
||
1176 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
1177 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
1178 |
! |
|
1179 |
||
1180 |
symbolEmphasis |
|
1181 |
"the emphasis used for symbol constants; |
|
1182 |
If syntaxColoring is turned on." |
|
1183 |
||
1184 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
1185 |
||
1186 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
1187 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 1188 |
! |
1189 |
||
1190 |
thisContextColor |
|
3360 | 1191 |
"the color used for the thisContext pseudoVariable; |
1192 |
If syntaxColoring is turned on." |
|
1193 |
||
3355 | 1194 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 1195 |
|
1196 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 1197 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 1198 |
! |
1199 |
||
1200 |
thisContextEmphasis |
|
3360 | 1201 |
"the emphasis used for the thisContext pseudoVariable; |
1202 |
If syntaxColoring is turned on." |
|
1203 |
||
3355 | 1204 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 1205 |
|
1206 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 1207 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 1208 |
! |
1209 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1210 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1211 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1212 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1213 |
|
4628 | 1214 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1215 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1216 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1217 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1218 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1219 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1220 |
|
4628 | 1221 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1222 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1223 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1224 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1225 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1226 |
|
3354 | 1227 |
unknownIdentifierColor |
3360 | 1228 |
"the color used for unknown identifiers; |
1229 |
If syntaxColoring is turned on." |
|
1230 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1231 |
^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor] |
3354 | 1232 |
|
3361 | 1233 |
" |
1234 |
self current at:#unknownIdentifierColor put:Color red. |
|
1235 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1236 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1237 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1238 |
self current unknownIdentifierEmphasis |
3361 | 1239 |
" |
1240 |
||
3354 | 1241 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 1242 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 1243 |
! |
1244 |
||
1245 |
unknownIdentifierEmphasis |
|
3360 | 1246 |
"the emphasis used for unknown identifiers; |
1247 |
If syntaxColoring is turned on." |
|
1248 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1249 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis] |
3354 | 1250 |
|
1251 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 1252 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
3347 | 1253 |
! ! |
1254 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1255 |
!UserPreferences methodsFor:'default settings'! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1256 |
|
6169 | 1257 |
listOfPredefinedSyntaxColoringSchemes |
6171 | 1258 |
"return a list of pre-defined syntax highlightning styles |
1259 |
(as shown in the Launchers 'source and debugger settings' dialog." |
|
1260 |
||
1261 |
^ #( |
|
1262 |
(#resetSyntaxColors 'default') |
|
1263 |
(#resetSyntaxColorsGreenComments 'green comments') |
|
1264 |
(#resetSyntaxColorsBlueSelectorsGreenComments 'blue selectors; green comments [dolphin style]') |
|
1265 |
(#resetSyntaxColorsBlueSelectorsGreyComments 'blue selectors; grey comments') |
|
1266 |
(#resetSyntaxColorsAllBlackExceptBadIDs 'no colors, but highlight errors') |
|
1267 |
) |
|
6169 | 1268 |
! |
1269 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1270 |
resetSyntaxColors |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1271 |
"resets the colors in the CurrentPreferences to their default values" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1272 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1273 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1274 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1275 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1276 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1277 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1278 |
resetSyntaxColorsAllBlackExceptBadIDs |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1279 |
"resets the colors in the CurrentPreferences to no-color mode, |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1280 |
except for bad identifiers, which are underwaved." |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1281 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1282 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1283 |
self at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
4344 | 1284 |
self at:#errorColor put:Color black. |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1285 |
self at:#commentColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1286 |
self at:#constantColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1287 |
self at:#methodSelectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1288 |
self at:#selectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1289 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1290 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1291 |
|
6171 | 1292 |
resetSyntaxColorsBlueSelectorsGreenComments |
1293 |
"resets the colors in the CurrentPreferences to alternative default values |
|
1294 |
(with blue selectors and green comments)" |
|
1295 |
||
1296 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
1297 |
self at:#commentColor put:(Color green darkened). |
|
1298 |
self at:#commentEmphasis put:#italic. |
|
1299 |
self at:#selectorColor put:(Color blue). |
|
1300 |
self at:#selectorEmphasis put:#normal. |
|
1301 |
self at:#methodSelectorColor put:(Color blue). |
|
1302 |
self at:#methodSelectorEmphasis put:#bold. |
|
1303 |
! |
|
1304 |
||
1305 |
resetSyntaxColorsBlueSelectorsGreyComments |
|
6169 | 1306 |
"resets the colors in the CurrentPreferences to alternative default values |
1307 |
(with blue selectors and grey comments)" |
|
1308 |
||
6171 | 1309 |
self resetSyntaxColorsBlueSelectorsGreenComments. |
1310 |
self at:#commentColor put:(Color gray). |
|
6169 | 1311 |
! |
1312 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1313 |
resetSyntaxColorsGreenComments |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1314 |
"resets the colors in the CurrentPreferences to alternative default values |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1315 |
(with green comments)" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1316 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1317 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1318 |
self at:#commentColor put:(Color green darkened). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1319 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1320 |
! ! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1321 |
|
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1322 |
!UserPreferences methodsFor:'default value'! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1323 |
|
4583 | 1324 |
defaultValue |
1325 |
"the defaultValue for non-existing keys" |
|
1326 |
||
1327 |
^ false |
|
1328 |
! |
|
1329 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1330 |
errorKeyNotFound:aKey |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1331 |
"for any non-existing key, false is returned" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1332 |
|
4583 | 1333 |
^ self defaultValue |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1334 |
! ! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1335 |
|
3347 | 1336 |
!UserPreferences class methodsFor:'documentation'! |
1337 |
||
1338 |
version |
|
6770 | 1339 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.81 2002-09-25 08:42:51 penk Exp $' |
3347 | 1340 |
! ! |