author | penk |
Mon, 09 Dec 2002 17:45:49 +0100 | |
changeset 6928 | 142aa9516720 |
parent 6927 | 827a055ffe2e |
child 6935 | 7cc9b6a59299 |
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 |
||
6816 | 249 |
!UserPreferences methodsFor:'accessing-colors'! |
250 |
||
251 |
emphasisForChangedCode |
|
252 |
|clr| |
|
253 |
||
254 |
clr := self at:#emphasisForChangedCode ifAbsent:nil. |
|
255 |
clr isNil ifTrue:[ |
|
256 |
clr := #color->Color red darkened |
|
257 |
"/ clr := #color->Color blue darkened |
|
258 |
]. |
|
259 |
^ clr |
|
260 |
! ! |
|
261 |
||
5236 | 262 |
!UserPreferences methodsFor:'accessing-pref''d tools'! |
3883 | 263 |
|
5790 | 264 |
at:key put:value |
265 |
|classNameToCheck classToCheck| |
|
266 |
||
6059 | 267 |
value == true ifTrue:[ |
268 |
key == #useNewVersionDiffBrowser ifTrue:[ |
|
5790 | 269 |
classNameToCheck := #'VersionDiffBrowser'. |
6059 | 270 |
]. |
271 |
key == #useNewChangesBrowser ifTrue:[ |
|
5790 | 272 |
classNameToCheck := #'NewChangesBrowser'. |
6059 | 273 |
]. |
6762 | 274 |
key == #useNewFileBrowser ifTrue:[ |
6770 | 275 |
classNameToCheck := #'FileBrowserV2'. |
6761 | 276 |
]. |
6059 | 277 |
key == #useNewSystemBrowser ifTrue:[ |
5790 | 278 |
classNameToCheck := #'NewSystemBrowser'. |
6059 | 279 |
]. |
280 |
key == #useNewInspector ifTrue:[ |
|
5790 | 281 |
classNameToCheck := #'NewInspector::NewInspectorView'. |
6059 | 282 |
]. |
5790 | 283 |
]. |
284 |
||
5791 | 285 |
classNameToCheck notNil ifTrue:[ |
5790 | 286 |
classToCheck := Smalltalk at:classNameToCheck. |
287 |
classToCheck isNil ifTrue:[ |
|
6770 | 288 |
('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR. |
289 |
] ifFalse:[ |
|
290 |
Autoload autoloadFailedSignal handle:[:ex | |
|
291 |
'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR. |
|
292 |
] do:[ |
|
293 |
classToCheck autoload. |
|
294 |
] |
|
5790 | 295 |
] |
296 |
]. |
|
297 |
||
298 |
^ super at:key put:value |
|
299 |
! |
|
300 |
||
3883 | 301 |
changesBrowserClass |
302 |
self useNewChangesBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
303 |
^ (NewChangesBrowser ? ChangesBrowser) |
3883 | 304 |
]. |
305 |
^ ChangesBrowser |
|
306 |
||
307 |
"Created: / 17.10.1998 / 14:37:46 / cg" |
|
5535 | 308 |
! |
309 |
||
6763 | 310 |
fileBrowserClass |
311 |
self useNewFileBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
312 |
^ (FileBrowserV2 ? FileBrowser) |
6763 | 313 |
]. |
314 |
^ FileBrowser |
|
315 |
! |
|
316 |
||
6177 | 317 |
inspectorClassSetting |
318 |
self useNewInspector ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
319 |
^ (NewInspector::NewInspectorView ? InspectorView) |
6177 | 320 |
]. |
321 |
^ InspectorView |
|
322 |
||
323 |
"Modified: / 12.11.2001 / 15:47:35 / cg" |
|
324 |
"Created: / 12.11.2001 / 15:49:00 / cg" |
|
5541 | 325 |
! |
326 |
||
5535 | 327 |
systemBrowserClass |
328 |
self useNewSystemBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
329 |
^ (NewSystemBrowser ? SystemBrowser) |
5535 | 330 |
]. |
331 |
^ SystemBrowser |
|
5536 | 332 |
! |
333 |
||
334 |
useNewChangesBrowser |
|
335 |
"using new or old change browser" |
|
336 |
||
337 |
^ self at:#useNewChangesBrowser ifAbsentPut:false |
|
338 |
||
339 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
340 |
! |
|
341 |
||
342 |
useNewChangesBrowser:aBoolean |
|
343 |
"using new or old changeBrowser" |
|
344 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
345 |
self at:#useNewChangesBrowser put:aBoolean |
5536 | 346 |
|
347 |
" |
|
348 |
UserPreferences current useNewChangesBrowser |
|
349 |
" |
|
350 |
||
351 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
352 |
! |
|
353 |
||
6717 | 354 |
useNewFileBrowser |
355 |
"using new or old version diff viewer" |
|
356 |
||
357 |
^ self at:#useNewFileBrowser ifAbsentPut:false |
|
358 |
||
359 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
360 |
! |
|
361 |
||
362 |
useNewFileBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
363 |
"using new or old file browser" |
6717 | 364 |
|
365 |
self at:#useNewFileBrowser put:aBoolean |
|
366 |
||
367 |
" |
|
6769 | 368 |
UserPreferences current useNewFileBrowser |
6717 | 369 |
" |
370 |
||
371 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
372 |
! |
|
373 |
||
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
374 |
useNewFileDialog |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
375 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
376 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
377 |
^ self at:#useNewFileDialog ifAbsentPut:false |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
378 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
379 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
380 |
useNewFileDialog:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
381 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
382 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
383 |
self at:#useNewFileDialog put:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
384 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
385 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
386 |
UserPreferences current useNewFileDialog:true |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
387 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
388 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
389 |
|
5536 | 390 |
useNewInspector |
391 |
"using new or old inspector" |
|
392 |
||
393 |
^ self at:#useNewInspector ifAbsentPut:false |
|
394 |
||
395 |
" |
|
396 |
UserPreferences current useNewInspector |
|
397 |
" |
|
398 |
||
399 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
400 |
! |
|
401 |
||
402 |
useNewInspector:aBoolean |
|
403 |
"using new or old inspector" |
|
404 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
405 |
self at:#useNewInspector put:aBoolean |
5536 | 406 |
|
407 |
" |
|
408 |
UserPreferences current useNewInspector |
|
409 |
" |
|
410 |
! |
|
411 |
||
6838 | 412 |
useNewSettinsApplication |
413 |
"using one application for the settings" |
|
414 |
||
415 |
^ self at:#useNewSettinsApplication ifAbsentPut:false |
|
416 |
! |
|
417 |
||
418 |
useNewSettinsApplication:aBoolean |
|
419 |
"using one application for the settings" |
|
420 |
||
421 |
self at:#useNewSettinsApplication put:aBoolean |
|
422 |
||
423 |
" |
|
424 |
UserPreferences current useNewSettinsApplication:true |
|
425 |
" |
|
426 |
||
427 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
428 |
! |
|
429 |
||
5536 | 430 |
useNewSystemBrowser |
431 |
"using new or old system browser" |
|
432 |
||
433 |
^ self at:#useNewSystemBrowser ifAbsentPut:false |
|
434 |
||
435 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
436 |
! |
|
437 |
||
438 |
useNewSystemBrowser:aBoolean |
|
439 |
"using new or old systemBrowser" |
|
440 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
441 |
self at:#useNewSystemBrowser put:aBoolean |
5536 | 442 |
|
443 |
" |
|
5541 | 444 |
UserPreferences current useNewSystemBrowser:true |
5536 | 445 |
" |
446 |
||
447 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
448 |
! |
|
449 |
||
450 |
useNewVersionDiffBrowser |
|
451 |
"using new or old version diff viewer" |
|
452 |
||
6666
26396997886c
default is to use the new versionDiffBrowser
Claus Gittinger <cg@exept.de>
parents:
6525
diff
changeset
|
453 |
^ self at:#useNewVersionDiffBrowser ifAbsentPut:true |
5536 | 454 |
|
455 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
456 |
! |
|
457 |
||
458 |
useNewVersionDiffBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
459 |
"using new or old versionDiffBrowser" |
5536 | 460 |
|
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
461 |
self at:#useNewVersionDiffBrowser put:aBoolean |
5536 | 462 |
|
463 |
" |
|
464 |
UserPreferences current useNewVersionDiffBrowser |
|
465 |
" |
|
466 |
||
467 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
468 |
! |
|
469 |
||
470 |
versionDiffViewerClass |
|
471 |
self useNewVersionDiffBrowser ifTrue:[ |
|
6770 | 472 |
^ (VersionDiffBrowser ? DiffTextView) |
5536 | 473 |
]. |
474 |
^ DiffTextView |
|
3883 | 475 |
! ! |
476 |
||
5236 | 477 |
!UserPreferences methodsFor:'accessing-prefs'! |
478 |
||
6927 | 479 |
allowSendMailFromDebugger |
480 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
481 |
mail account " |
|
482 |
||
6928 | 483 |
^ self at:#allowSendMailFromDebugger ifAbsent:true |
6927 | 484 |
|
485 |
" |
|
486 |
UserPreferences current allowSendMailFromDebugger |
|
487 |
" |
|
488 |
||
489 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
490 |
! |
|
491 |
||
492 |
allowSendMailFromDebugger:aBoolean |
|
493 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
494 |
mail account " |
|
495 |
||
496 |
^ self at:#allowSendMailFromDebugger put:aBoolean |
|
497 |
||
498 |
" |
|
499 |
UserPreferences current allowSendMailFromDebugger:true |
|
500 |
UserPreferences current allowSendMailFromDebugger:false |
|
501 |
" |
|
502 |
! |
|
503 |
||
6813
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
504 |
autoDefineWorkspaceVariables |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
505 |
"return the flag which controls automatic definition of unknown variables |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
506 |
as workspace variables (in doIts)" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
507 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
508 |
^ self at:#autoDefineWorkspaceVariables ifAbsentPut:false |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
509 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
510 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
511 |
UserPreferences current autoDefineWorkspaceVariables |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
512 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
513 |
! |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
514 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
515 |
autoDefineWorkspaceVariables:aBoolean |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
516 |
"turn on/off automatic definition of unknown variables |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
517 |
as workspace variables (in doIts)" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
518 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
519 |
^ self at:#autoDefineWorkspaceVariables put:aBoolean |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
520 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
521 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
522 |
UserPreferences current autoDefineWorkspaceVariables:true |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
523 |
UserPreferences current autoDefineWorkspaceVariables:false |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
524 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
525 |
! |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
526 |
|
5236 | 527 |
autoFormatting |
528 |
"return the flag which controls automatic formatting of code (in some browsers) |
|
529 |
Notice, the regular browser does not (yet) do automatic formating." |
|
530 |
||
531 |
^ self at:#autoFormatting ifAbsentPut:false |
|
532 |
||
533 |
" |
|
534 |
UserPreferences current autoFormatting |
|
535 |
" |
|
536 |
||
537 |
"Created: / 4.2.2000 / 20:08:08 / cg" |
|
538 |
"Modified: / 5.2.2000 / 15:38:33 / cg" |
|
539 |
! |
|
540 |
||
541 |
autoFormatting:aBoolean |
|
542 |
"turn on/off automatic formatting of code (in some browsers); |
|
543 |
Notice, the regular browser does not (yet) do automatic formating." |
|
544 |
||
545 |
^ self at:#autoFormatting put:aBoolean |
|
546 |
||
547 |
" |
|
548 |
UserPreferences current autoFormatting:true |
|
549 |
UserPreferences current autoFormatting:false |
|
550 |
" |
|
551 |
||
552 |
"Created: / 4.2.2000 / 20:08:26 / cg" |
|
553 |
"Modified: / 5.2.2000 / 15:38:20 / cg" |
|
554 |
! |
|
3358 | 555 |
|
5071 | 556 |
beepEnabled |
557 |
"return the flag which controls the beeper" |
|
558 |
||
559 |
^ self at:#beepEnabled ifAbsentPut:true |
|
560 |
||
561 |
" |
|
562 |
UserPreferences current beepEnabled |
|
563 |
" |
|
564 |
||
565 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
566 |
"Created: / 3.12.1999 / 17:09:49 / ps" |
|
567 |
! |
|
568 |
||
569 |
beepEnabled:aBoolean |
|
570 |
"set/clear the flag which controls the beeper" |
|
571 |
||
572 |
^ self at:#beepEnabled put:aBoolean |
|
573 |
||
574 |
" |
|
575 |
UserPreferences current beepEnabled:false |
|
576 |
" |
|
577 |
||
578 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
579 |
"Created: / 3.12.1999 / 17:10:27 / ps" |
|
580 |
! |
|
581 |
||
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
582 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
583 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
584 |
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
|
585 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
586 |
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
|
587 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
588 |
^ self at:#focusFollowsMouse ifAbsent:nil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
589 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
590 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
591 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
592 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
593 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
594 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
595 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
596 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
597 |
focusFollowsMouse:aBooleanOrNil |
4121 | 598 |
"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
|
599 |
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
|
600 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
601 |
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
|
602 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
603 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
604 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
605 |
" |
4121 | 606 |
UserPreferences current focusFollowsMouse:true |
607 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
608 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
609 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
610 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
611 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
612 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
613 |
|
4396
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
614 |
functionKeySequences |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
615 |
"return the collection of function-key macros. |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
616 |
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
|
617 |
|
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
618 |
^ self at:#functionKeySequences ifAbsentPut:[Dictionary new] |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
619 |
|
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
620 |
" |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
621 |
UserPreferences current functionKeySequences |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
622 |
" |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
623 |
|
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
624 |
"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
|
625 |
! |
951890a68aba
added functionKeySequences (no need for a global)
Claus Gittinger <cg@exept.de>
parents:
4344
diff
changeset
|
626 |
|
5808 | 627 |
opaqueTableColumnResizing |
628 |
"return the flag which controls if table column resizing should be done |
|
629 |
animated (opaque)" |
|
630 |
||
631 |
^ self at:#opaqueTableColumnResizing ifAbsentPut:false |
|
632 |
||
633 |
" |
|
634 |
UserPreferences current opaqueTableColumnResizing |
|
635 |
" |
|
636 |
! |
|
637 |
||
638 |
opaqueTableColumnResizing:aBoolean |
|
639 |
"change the flag which controls if table column resizing should be done |
|
640 |
animated (opaque)" |
|
641 |
||
642 |
^ self at:#opaqueTableColumnResizing put:aBoolean |
|
643 |
||
644 |
" |
|
645 |
UserPreferences current opaqueTableColumnResizing:true |
|
646 |
" |
|
647 |
||
648 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
649 |
! |
|
650 |
||
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
651 |
opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
652 |
"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
|
653 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
654 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
655 |
^ self at:#opaqueVariablePanelResizing ifAbsentPut:false |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
656 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
657 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
658 |
UserPreferences current opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
659 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
660 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
661 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
662 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
663 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
664 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
665 |
opaqueVariablePanelResizing:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
666 |
"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
|
667 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
668 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
669 |
^ self at:#opaqueVariablePanelResizing put:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
670 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
671 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
672 |
UserPreferences current opaqueVariablePanelResizing:true |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
673 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
674 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
675 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
676 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
677 |
|
6525 | 678 |
searchDialogIsModal |
679 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
680 |
||
681 |
^ self at:#searchDialogIsModal ifAbsent:true |
|
682 |
||
683 |
" |
|
684 |
UserPreferences current searchDialogIsModal |
|
685 |
" |
|
686 |
! |
|
687 |
||
688 |
searchDialogIsModal:aBooleanOrNil |
|
689 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
690 |
||
691 |
^ self at:#searchDialogIsModal put:aBooleanOrNil |
|
692 |
||
693 |
" |
|
694 |
UserPreferences current searchDialogIsModal:true |
|
695 |
UserPreferences current searchDialogIsModal:false |
|
696 |
UserPreferences current searchDialogIsModal |
|
697 |
" |
|
698 |
! |
|
699 |
||
4330
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
700 |
showClockInLauncher |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
701 |
"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
|
702 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
703 |
^ self at:#showClockInLauncher ifAbsentPut:false |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
704 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
705 |
" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
706 |
UserPreferences current showClockInLauncher |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
707 |
" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
708 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
709 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
710 |
! |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
711 |
|
4331 | 712 |
showClockInLauncher:aBooleanOrNil |
713 |
"set/clear the flag which controls if a clock is shown in the launcher" |
|
714 |
||
715 |
^ self at:#showClockInLauncher put:aBooleanOrNil |
|
716 |
||
717 |
" |
|
718 |
UserPreferences current showClockInLauncher:false. |
|
719 |
NewLauncher open. |
|
720 |
||
721 |
UserPreferences current showClockInLauncher:true. |
|
722 |
NewLauncher open. |
|
723 |
" |
|
724 |
||
725 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
726 |
! |
|
727 |
||
6813
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
728 |
st80EditMode |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
729 |
"editing as in st80 (do not allwo cursor behond endOfLine/endOftext)." |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
730 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
731 |
^ self at:#st80EditMode ifAbsent:false |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
732 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
733 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
734 |
UserPreferences current st80EditMode |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
735 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
736 |
! |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
737 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
738 |
st80EditMode:aBoolean |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
739 |
"editing as in st80 (do not allwo cursor behond endOfLine/endOftext)." |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
740 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
741 |
^ self at:#st80EditMode put:aBoolean |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
742 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
743 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
744 |
UserPreferences current st80EditMode:true |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
745 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
746 |
! |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
747 |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
748 |
startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
749 |
"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
|
750 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
751 |
^ self at:#startTextDragWithControl ifAbsent:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
752 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
753 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
754 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
755 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
756 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
757 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
758 |
startTextDragWithControl:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
759 |
"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
|
760 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
761 |
^ self at:#startTextDragWithControl put:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
762 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
763 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
764 |
UserPreferences current startTextDragWithControl:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
765 |
UserPreferences current startTextDragWithControl:false |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
766 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
767 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
768 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
769 |
|
3347 | 770 |
syntaxColoring |
3360 | 771 |
"return the flag which controls syntax coloring (in the browsers)" |
772 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
773 |
^ self at:#syntaxColoring ifAbsentPut:true |
3347 | 774 |
|
775 |
" |
|
776 |
UserPreferences current syntaxColoring |
|
777 |
" |
|
778 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
779 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 780 |
! |
781 |
||
782 |
syntaxColoring:aBoolean |
|
3360 | 783 |
"turn on/off syntaxColoring (in the browsers)." |
784 |
||
3347 | 785 |
^ self at:#syntaxColoring put:aBoolean |
786 |
||
3357 | 787 |
" |
788 |
UserPreferences current syntaxColoring:true |
|
789 |
UserPreferences current syntaxColoring:false |
|
790 |
" |
|
791 |
||
3347 | 792 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 793 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
794 |
! ! |
|
795 |
||
6832 | 796 |
!UserPreferences methodsFor:'accessing-prefs fileBrowser'! |
797 |
||
798 |
filenameEntryFieldVisibleHolder |
|
799 |
"get the user preferences for show FileEntryField in FileBrowserV2" |
|
800 |
||
801 |
^ self at:#filenameEntryFieldVisibleHolder ifAbsentPut:true |
|
802 |
||
803 |
" |
|
804 |
UserPreferences current filenameEntryFieldVisibleHolder |
|
805 |
" |
|
806 |
! |
|
807 |
||
808 |
filenameEntryFieldVisibleHolder:aBoolean |
|
809 |
"set/clear the user preferences for show FileEntryField in FileBrowserV2" |
|
810 |
||
811 |
^ self at:#filenameEntryFieldVisibleHolder put:aBoolean |
|
812 |
! |
|
813 |
||
814 |
openAlwaysInTextEditor |
|
815 |
"get the user preferences for open every file in TextEditor |
|
816 |
dont use e.g. HtmlEditor for *.html' in FileBrowserV2" |
|
817 |
||
818 |
^ self at:#openAlwaysInTextEditor ifAbsentPut:false |
|
819 |
||
820 |
" |
|
821 |
UserPreferences current openAlwaysInTextEditor |
|
822 |
" |
|
823 |
! |
|
824 |
||
825 |
openAlwaysInTextEditor:aBoolean |
|
826 |
"set/clear the user preferences for open every file in TextEditor |
|
827 |
dont use e.g. HtmlEditor for *.html' in FileBrowserV2" |
|
828 |
||
829 |
^ self at:#openAlwaysInTextEditor put:aBoolean |
|
830 |
! |
|
831 |
||
832 |
openMultipleApplicationsForType |
|
833 |
"get the user preferences for open more applications for e.g. TextEditor |
|
834 |
and not change the contents of already open TextEditor of FileBrowserV2" |
|
835 |
||
836 |
^ self at:#openMultipleApplicationsForType ifAbsentPut:false |
|
837 |
||
838 |
" |
|
839 |
UserPreferences current openMultipleApplicationsForType |
|
840 |
" |
|
841 |
! |
|
842 |
||
843 |
openMultipleApplicationsForType:aBoolean |
|
844 |
"set/clear the user preferences for open more applications for e.g. TextEditor |
|
845 |
and not change the contents of already open TextEditor of FileBrowserV2" |
|
846 |
||
847 |
^ self at:#openMultipleApplicationsForType put:aBoolean |
|
848 |
! |
|
849 |
||
850 |
showDirectoryTree |
|
851 |
"get the user preferences for view directorie tree view in FileBrowserV2" |
|
852 |
||
853 |
^ self at:#showDirectoryTree ifAbsentPut:true |
|
854 |
||
855 |
" |
|
856 |
UserPreferences current showDirectoryTree |
|
857 |
" |
|
858 |
! |
|
859 |
||
860 |
showDirectoryTree:aBoolean |
|
861 |
"set/clear the user preferences for view directorie tree view in FileBrowserV2" |
|
862 |
||
863 |
^ self at:#showDirectoryTree put:aBoolean |
|
864 |
! |
|
865 |
||
866 |
showHiddenFiles |
|
867 |
"get the user preferences for showHiddenFiles in FileBrowserV2" |
|
868 |
||
869 |
^ self at:#showHiddenFiles ifAbsentPut:true |
|
870 |
||
871 |
" |
|
872 |
UserPreferences current showHiddenFiles |
|
873 |
" |
|
874 |
! |
|
875 |
||
876 |
showHiddenFiles:aBoolean |
|
877 |
"set/clear the user preferences for showHiddenFiles in FileBrowserV2" |
|
878 |
||
879 |
||
880 |
^ self at:#showHiddenFiles put:aBoolean |
|
881 |
! |
|
882 |
||
883 |
sortCaseless |
|
884 |
"get the user preferences for sort caseless in FileBrowserV2" |
|
885 |
||
886 |
^ self at:#sortCaseless ifAbsentPut:true |
|
887 |
||
888 |
" |
|
889 |
UserPreferences current sortCaseless |
|
890 |
" |
|
891 |
! |
|
892 |
||
893 |
sortCaseless:aBoolean |
|
894 |
"set/clear the user preferences for sort caseless in FileBrowserV2" |
|
895 |
||
896 |
^ self at:#sortCaseless put:aBoolean |
|
897 |
! |
|
898 |
||
899 |
sortDirectoriesBeforeFiles |
|
900 |
"get the user preferences for sort directories always before files in FileBrowserV2" |
|
901 |
||
902 |
^ self at:#sortDirectoriesBeforeFiles ifAbsentPut:true |
|
903 |
||
904 |
" |
|
905 |
UserPreferences current sortDirectoriesBeforeFiles |
|
906 |
" |
|
907 |
! |
|
908 |
||
909 |
sortDirectoriesBeforeFiles:aBoolean |
|
910 |
"set/clear the user preferences for sort directories always before files in FileBrowserV2" |
|
911 |
||
912 |
^ self at:#sortDirectoriesBeforeFiles put:aBoolean |
|
913 |
! |
|
914 |
||
915 |
toolBarVisibleHolder |
|
916 |
"get the user preferences for show ToolBar in FileBrowserV2" |
|
917 |
||
918 |
^ self at:#toolBarVisibleHolder ifAbsentPut:true |
|
919 |
||
920 |
" |
|
921 |
UserPreferences current toolBarVisibleHolder |
|
922 |
" |
|
923 |
! |
|
924 |
||
925 |
toolBarVisibleHolder:aBoolean |
|
926 |
"set/clear the user preferences for show ToolBar in FileBrowserV2" |
|
927 |
||
928 |
^ self at:#toolBarVisibleHolder put:aBoolean |
|
929 |
! |
|
930 |
||
931 |
viewDescription |
|
932 |
"get the user preferences for show file description row in DirectoryContentsBrowser |
|
933 |
FileBrowserV2" |
|
934 |
||
935 |
^ self at:#viewDescription ifAbsentPut:true |
|
936 |
||
937 |
" |
|
938 |
UserPreferences current viewDescription |
|
939 |
" |
|
940 |
! |
|
941 |
||
942 |
viewDescription:aBoolean |
|
943 |
"set/clear the user preferences for show file description row in |
|
944 |
DirectoryContentsBrowser FileBrowserV2" |
|
945 |
||
946 |
||
947 |
^ self at:#viewDescription put:aBoolean |
|
948 |
! |
|
949 |
||
950 |
viewDetails |
|
951 |
"get the user preferences for view more file properties in rows in DirectoryContentsBrowser |
|
952 |
of FileBrowserV2" |
|
953 |
||
954 |
^ self at:#viewDetails ifAbsentPut:false |
|
955 |
||
956 |
" |
|
957 |
UserPreferences current viewDetails |
|
958 |
" |
|
959 |
! |
|
960 |
||
961 |
viewDetails:aBoolean |
|
962 |
"set/clear the user preferences for view more file properties in rows in DirectoryContentsBrowser |
|
963 |
of FileBrowserV2" |
|
964 |
||
965 |
||
966 |
^ self at:#viewDetails put:aBoolean |
|
967 |
! |
|
968 |
||
969 |
viewDirectoryDescription |
|
970 |
"get the user preferences for auto open a TextView for Readme .. etc files |
|
971 |
on change directory" |
|
972 |
||
973 |
^ self at:#viewDirectoryDescription ifAbsentPut:false |
|
974 |
||
975 |
" |
|
976 |
UserPreferences current viewDirectoryDescription |
|
977 |
" |
|
978 |
! |
|
979 |
||
980 |
viewDirectoryDescription:aBoolean |
|
981 |
"set/clear the user preferences for auto open a TextView for Readme .. etc files |
|
982 |
on change directory" |
|
983 |
||
984 |
||
985 |
^ self at:#viewDirectoryDescription put:aBoolean |
|
986 |
! |
|
987 |
||
988 |
viewDirsInContentsBrowser |
|
989 |
"get the user preferences for view directories in contents browser in FileBrowserV2" |
|
990 |
||
991 |
^ self at:#viewDirsInContentsBrowser ifAbsentPut:false |
|
992 |
||
993 |
" |
|
994 |
UserPreferences current viewDirsInContentsBrowser |
|
995 |
" |
|
996 |
! |
|
997 |
||
998 |
viewDirsInContentsBrowser:aBoolean |
|
999 |
"set/clear the user preferences for view directories in contents browser in FileBrowserV2" |
|
1000 |
||
1001 |
^ self at:#viewDirsInContentsBrowser put:aBoolean |
|
1002 |
! |
|
1003 |
||
1004 |
viewFilesInDirectoryTree |
|
1005 |
"get the user preferences for view files in tree view (not only directories) of FileBrowserV2 |
|
1006 |
" |
|
1007 |
||
1008 |
^ self at:#viewFilesInDirectoryTree ifAbsentPut:false |
|
1009 |
||
1010 |
" |
|
1011 |
UserPreferences current viewFilesInDirectoryTree |
|
1012 |
" |
|
1013 |
! |
|
1014 |
||
1015 |
viewFilesInDirectoryTree:aBoolean |
|
1016 |
"set/clear the user preferences for view files in tree (not only directories) view of FileBrowserV2" |
|
1017 |
||
1018 |
^ self at:#viewFilesInDirectoryTree put:aBoolean |
|
1019 |
! |
|
1020 |
||
1021 |
viewGroup |
|
1022 |
"get the user preferences for show group information row in |
|
1023 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1024 |
||
1025 |
^ self at:#viewGroup ifAbsentPut:false |
|
1026 |
||
1027 |
" |
|
1028 |
UserPreferences current viewGroup |
|
1029 |
" |
|
1030 |
! |
|
1031 |
||
1032 |
viewGroup:aBoolean |
|
1033 |
"set/clear the user preferences for show group information row in |
|
1034 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1035 |
||
1036 |
||
1037 |
^ self at:#viewGroup put:aBoolean |
|
1038 |
! |
|
1039 |
||
1040 |
viewOwner |
|
1041 |
"get the user preferences for show owner information row in |
|
1042 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1043 |
||
1044 |
^ self at:#viewOwner ifAbsentPut:false |
|
1045 |
||
1046 |
" |
|
1047 |
UserPreferences current viewOwner |
|
1048 |
" |
|
1049 |
! |
|
1050 |
||
1051 |
viewOwner:aBoolean |
|
1052 |
"set/clear the user preferences for show owner information row in |
|
1053 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1054 |
||
1055 |
||
1056 |
^ self at:#viewOwner put:aBoolean |
|
1057 |
! |
|
1058 |
||
1059 |
viewPermissions |
|
1060 |
"get the user preferences for show permissions information row in |
|
1061 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1062 |
||
1063 |
^ self at:#viewPermissions ifAbsentPut:false |
|
1064 |
||
1065 |
" |
|
1066 |
UserPreferences current viewPermissions |
|
1067 |
" |
|
1068 |
! |
|
1069 |
||
1070 |
viewPermissions:aBoolean |
|
1071 |
"set/clear the user permissions for show owner information row in |
|
1072 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1073 |
||
1074 |
||
1075 |
^ self at:#viewPermissions put:aBoolean |
|
1076 |
! |
|
1077 |
||
1078 |
viewPreview |
|
1079 |
"get the user preferences for show image previev row in |
|
1080 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1081 |
||
1082 |
^ self at:#viewPreview ifAbsentPut:false |
|
1083 |
||
1084 |
" |
|
1085 |
UserPreferences current viewPreview |
|
1086 |
" |
|
1087 |
! |
|
1088 |
||
1089 |
viewPreview:aBoolean |
|
1090 |
"set/clear the user permissions for show image previev row in |
|
1091 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1092 |
||
1093 |
||
1094 |
^ self at:#viewPreview put:aBoolean |
|
1095 |
! |
|
1096 |
||
1097 |
viewSize |
|
1098 |
"get the user preferences for show size information row in |
|
1099 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1100 |
||
1101 |
^ self at:#viewSize ifAbsentPut:false |
|
1102 |
||
1103 |
" |
|
1104 |
UserPreferences current viewSize |
|
1105 |
" |
|
1106 |
! |
|
1107 |
||
1108 |
viewSize:aBoolean |
|
1109 |
"set/clear the user permissions for show size information row in |
|
1110 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1111 |
||
1112 |
||
1113 |
^ self at:#viewSize put:aBoolean |
|
1114 |
! |
|
1115 |
||
1116 |
viewTime |
|
1117 |
"get the user preferences for show time information row in |
|
1118 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1119 |
||
1120 |
^ self at:#viewTime ifAbsentPut:false |
|
1121 |
||
1122 |
" |
|
1123 |
UserPreferences current viewSize |
|
1124 |
" |
|
1125 |
! |
|
1126 |
||
1127 |
viewTime:aBoolean |
|
1128 |
"set/clear the user permissions for show time information row in |
|
1129 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1130 |
||
1131 |
||
1132 |
^ self at:#viewTime put:aBoolean |
|
1133 |
! |
|
1134 |
||
1135 |
viewType |
|
1136 |
"get the user preferences for show txpe (suffix) information row in |
|
1137 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1138 |
||
1139 |
^ self at:#viewType ifAbsentPut:false |
|
1140 |
||
1141 |
" |
|
1142 |
UserPreferences current viewType |
|
1143 |
" |
|
1144 |
! |
|
1145 |
||
1146 |
viewType:aBoolean |
|
1147 |
"set/clear the user permissions for show type (suffix) information row in |
|
1148 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1149 |
||
1150 |
||
1151 |
^ self at:#viewType put:aBoolean |
|
1152 |
! ! |
|
1153 |
||
6818 | 1154 |
!UserPreferences methodsFor:'accessing-prefs-times'! |
1155 |
||
1156 |
timeToAutoExpandItemsWhenDraggingOver |
|
1157 |
"in a hierarchical tree view" |
|
1158 |
||
1159 |
^ 700 "/ millis |
|
1160 |
! ! |
|
1161 |
||
5236 | 1162 |
!UserPreferences methodsFor:'accessing-syntaxColoring prefs'! |
3360 | 1163 |
|
1164 |
argumentIdentifierColor |
|
1165 |
"the color used for argument identifiers; |
|
1166 |
If syntaxColoring is turned on." |
|
1167 |
||
1168 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
1169 |
||
1170 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
1171 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
1172 |
! |
|
1173 |
||
1174 |
argumentIdentifierEmphasis |
|
1175 |
"the emphasis used for argument identifiers; |
|
1176 |
If syntaxColoring is turned on." |
|
1177 |
||
1178 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1179 |
||
1180 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
1181 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
1182 |
! |
|
1183 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1184 |
badIdentifierColor |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1185 |
"the color used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1186 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1187 |
|
4336 | 1188 |
^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1189 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1190 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1191 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1192 |
badIdentifierEmphasis |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1193 |
"the emphasis used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1194 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1195 |
|
4628 | 1196 |
^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1197 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
1198 |
"Modified: / 7.7.1999 / 00:30:00 / cg" |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1199 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1200 |
|
3360 | 1201 |
booleanConstantColor |
1202 |
"the color used for boolean constants; |
|
1203 |
If syntaxColoring is turned on." |
|
1204 |
||
1205 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
1206 |
||
1207 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
1208 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
1209 |
! |
|
1210 |
||
1211 |
booleanConstantEmphasis |
|
1212 |
"the emphasis used for boolean constants; |
|
1213 |
If syntaxColoring is turned on." |
|
1214 |
||
1215 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
1216 |
||
1217 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
1218 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
1219 |
! |
|
1220 |
||
3361 | 1221 |
bracketColor |
1222 |
"the color used for brackets; |
|
1223 |
If syntaxColoring is turned on." |
|
1224 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1225 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 1226 |
|
1227 |
" |
|
1228 |
self current at:#bracketColor put:Color red. |
|
1229 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1230 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1231 |
self current bracketColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1232 |
self current bracketEmphasis |
3361 | 1233 |
" |
1234 |
||
1235 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1236 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1237 |
! |
|
1238 |
||
1239 |
bracketEmphasis |
|
1240 |
"the emphasis used for brackets; |
|
1241 |
If syntaxColoring is turned on." |
|
1242 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1243 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 1244 |
|
1245 |
" |
|
1246 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1247 |
self current bracketEmphasis |
3361 | 1248 |
" |
1249 |
||
1250 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1251 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1252 |
! |
|
1253 |
||
4320 | 1254 |
classVariableIdentifierColor |
1255 |
"the color used for classVar/classInstVar identifiers |
|
1256 |
If syntaxColoring is turned on." |
|
1257 |
||
1258 |
^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1259 |
||
1260 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1261 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1262 |
! |
|
1263 |
||
1264 |
classVariableIdentifierEmphasis |
|
1265 |
"the color used for classVar/classInstVar identifiers |
|
1266 |
If syntaxColoring is turned on." |
|
1267 |
||
1268 |
^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1269 |
||
1270 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1271 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1272 |
! |
|
1273 |
||
3360 | 1274 |
commentColor |
1275 |
"the color used for comments; |
|
1276 |
If syntaxColoring is turned on." |
|
1277 |
||
4628 | 1278 |
^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor] |
3360 | 1279 |
|
1280 |
"Created: / 31.3.1998 / 15:10:23 / cg" |
|
3832 | 1281 |
"Modified: / 11.9.1998 / 19:24:04 / cg" |
3360 | 1282 |
! |
1283 |
||
1284 |
commentEmphasis |
|
1285 |
"the emphasis used for comments; |
|
1286 |
If syntaxColoring is turned on." |
|
1287 |
||
4628 | 1288 |
^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis] |
3360 | 1289 |
|
1290 |
"Created: / 31.3.1998 / 15:09:59 / cg" |
|
1291 |
"Modified: / 1.4.1998 / 13:25:53 / cg" |
|
1292 |
! |
|
1293 |
||
5258 | 1294 |
commentEmphasisAndColor |
1295 |
^ Text addEmphasis:(self commentEmphasis) to:(#color->self commentColor). |
|
1296 |
||
1297 |
||
1298 |
! |
|
1299 |
||
3360 | 1300 |
constantColor |
1301 |
"the color used for constants; |
|
1302 |
If syntaxColoring is turned on." |
|
1303 |
||
4628 | 1304 |
^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor] |
3360 | 1305 |
|
1306 |
"Created: / 31.3.1998 / 18:13:15 / cg" |
|
1307 |
"Modified: / 1.4.1998 / 13:20:37 / cg" |
|
1308 |
! |
|
1309 |
||
1310 |
constantEmphasis |
|
1311 |
"the emphasis used for constants; |
|
1312 |
If syntaxColoring is turned on." |
|
1313 |
||
1314 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1315 |
||
1316 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
1317 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
1318 |
! |
|
1319 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1320 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1321 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1322 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1323 |
|
4628 | 1324 |
^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1325 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1326 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1327 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1328 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1329 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1330 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1331 |
|
4628 | 1332 |
^ self at:#defaultSyntaxEmphasis ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1333 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1334 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1335 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1336 |
doesNotUnderstand:aMessage |
4580 | 1337 |
|k def| |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1338 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1339 |
k := aMessage selector. |
6252 | 1340 |
aMessage numArgs == 0 ifTrue:[ |
1341 |
(self includesKey:k) ifTrue:[ |
|
1342 |
^ self at:k |
|
1343 |
]. |
|
1344 |
((def := self class default) includesKey:k) ifTrue:[ |
|
1345 |
^ def at:k |
|
1346 |
]. |
|
1347 |
^ self defaultValue |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1348 |
]. |
6252 | 1349 |
"/ ((aMessage numArgs == 1) |
1350 |
"/ and:[ (k endsWith:$:)]) |
|
1351 |
"/ ifTrue:[ |
|
1352 |
"/ k := (k copyWithoutLast:1) asSymbol. |
|
1353 |
"/ ((self includesKey:k) |
|
1354 |
"/ or:[ self class default includesKey:k ]) ifTrue:[ |
|
1355 |
"/ ^ self at:k put:(aMessage arg1) |
|
1356 |
"/ ]. |
|
1357 |
"/ ]. |
|
1358 |
||
1359 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1360 |
^ super doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1361 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1362 |
|
4341 | 1363 |
errorColor |
1364 |
"the color used for illegal identifiers; |
|
1365 |
If syntaxColoring is turned on." |
|
1366 |
||
4628 | 1367 |
^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor] |
4341 | 1368 |
|
1369 |
! |
|
1370 |
||
4306 | 1371 |
fullSelectorCheck |
1372 |
"with fullSelector check, selectors are searched immediately for |
|
1373 |
being implemented in the system. This may not be useful on slow machines" |
|
1374 |
||
4628 | 1375 |
^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck] |
4306 | 1376 |
|
1377 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1378 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1379 |
! |
|
1380 |
||
4023 | 1381 |
globalClassIdentifierColor |
1382 |
"the color used for global identifiers which are known to be classes; |
|
1383 |
If syntaxColoring is turned on." |
|
1384 |
||
1385 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1386 |
||
1387 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1388 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1389 |
! |
|
1390 |
||
1391 |
globalClassIdentifierEmphasis |
|
1392 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
1393 |
If syntaxColoring is turned on." |
|
1394 |
||
1395 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1396 |
||
1397 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1398 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
1399 |
! |
|
1400 |
||
3360 | 1401 |
globalIdentifierColor |
1402 |
"the color used for global identifiers; |
|
1403 |
If syntaxColoring is turned on." |
|
1404 |
||
1405 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
1406 |
||
1407 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
1408 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1409 |
! |
|
1410 |
||
1411 |
globalIdentifierEmphasis |
|
1412 |
"the emphasis used for global variable identifiers; |
|
1413 |
If syntaxColoring is turned on." |
|
1414 |
||
1415 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1416 |
||
1417 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
1418 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1419 |
! |
|
1420 |
||
1421 |
hereColor |
|
1422 |
"the color used for the here pseudoVariable; |
|
1423 |
If syntaxColoring is turned on." |
|
1424 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1425 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 1426 |
|
1427 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
1428 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
1429 |
! |
|
1430 |
||
1431 |
hereEmphasis |
|
1432 |
"the emphasis used for the hre special variable; |
|
1433 |
If syntaxColoring is turned on." |
|
1434 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1435 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1436 |
|
1437 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
1438 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
1439 |
! |
|
1440 |
||
1441 |
identifierColor |
|
1442 |
"the color used for other identifiers; |
|
1443 |
If syntaxColoring is turned on." |
|
1444 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1445 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1446 |
|
3362 | 1447 |
" |
1448 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
1449 |
UserPreferences current at:#identifierColor put:Color black. |
|
1450 |
" |
|
1451 |
||
3360 | 1452 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 1453 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 1454 |
! |
1455 |
||
1456 |
identifierEmphasis |
|
1457 |
"the emphasis used for other identifiers; |
|
1458 |
If syntaxColoring is turned on." |
|
1459 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1460 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 1461 |
|
1462 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1463 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1464 |
! |
|
1465 |
||
3378 | 1466 |
instVarIdentifierColor |
3377 | 1467 |
"the color used for instance variable identifiers; |
1468 |
If syntaxColoring is turned on." |
|
1469 |
||
3378 | 1470 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 1471 |
|
1472 |
" |
|
3378 | 1473 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
1474 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
1475 |
UserPreferences current instVarIdentifierColor |
|
3377 | 1476 |
" |
1477 |
||
1478 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 1479 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 1480 |
! |
1481 |
||
3378 | 1482 |
instVarIdentifierEmphasis |
3377 | 1483 |
"the emphais used for instance variable identifiers; |
1484 |
If syntaxColoring is turned on." |
|
1485 |
||
3378 | 1486 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 1487 |
|
1488 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 1489 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 1490 |
! |
1491 |
||
3360 | 1492 |
localIdentifierColor |
1493 |
"the color used for local variable identifiers; |
|
1494 |
If syntaxColoring is turned on." |
|
1495 |
||
1496 |
^ self at:#localIdentifierColor ifAbsentPut:[self identifierColor] |
|
1497 |
||
3362 | 1498 |
" |
1499 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
1500 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
1501 |
" |
|
1502 |
||
3360 | 1503 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 1504 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 1505 |
! |
1506 |
||
1507 |
localIdentifierEmphasis |
|
1508 |
"the emphais used for local variable identifiers; |
|
1509 |
If syntaxColoring is turned on." |
|
1510 |
||
1511 |
^ self at:#localIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1512 |
||
1513 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
1514 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
1515 |
! |
|
1516 |
||
1517 |
methodSelectorColor |
|
1518 |
"the color used for a methods selector pattern; |
|
1519 |
If syntaxColoring is turned on." |
|
1520 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1521 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1522 |
|
1523 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
1524 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
1525 |
! |
|
1526 |
||
1527 |
methodSelectorEmphasis |
|
1528 |
"the emphasis used for a methods selector pattern; |
|
1529 |
If syntaxColoring is turned on." |
|
1530 |
||
4628 | 1531 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis] |
3360 | 1532 |
|
1533 |
"Created: / 31.3.1998 / 15:11:16 / cg" |
|
1534 |
"Modified: / 1.4.1998 / 13:24:20 / cg" |
|
1535 |
! |
|
1536 |
||
4076 | 1537 |
returnColor |
1538 |
"the color used for the return expression; |
|
1539 |
If syntaxColoring is turned on." |
|
1540 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1541 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 1542 |
|
1543 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
1544 |
! |
|
1545 |
||
1546 |
returnEmphasis |
|
1547 |
"the emphasis used for returns; |
|
1548 |
If syntaxColoring is turned on." |
|
1549 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1550 |
^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 1551 |
|
1552 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
1553 |
! |
|
1554 |
||
3360 | 1555 |
selectorColor |
1556 |
"the color used for message selectors; |
|
1557 |
If syntaxColoring is turned on." |
|
1558 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1559 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1560 |
|
1561 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
1562 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
1563 |
! |
|
1564 |
||
1565 |
selectorEmphasis |
|
1566 |
"the emphasis used for message selectors; |
|
1567 |
If syntaxColoring is turned on." |
|
1568 |
||
4628 | 1569 |
^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis] |
3360 | 1570 |
|
1571 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1572 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
|
1573 |
! |
|
1574 |
||
1575 |
selfColor |
|
1576 |
"the color used for the self pseudoVariable; |
|
1577 |
If syntaxColoring is turned on." |
|
1578 |
||
1579 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
1580 |
||
1581 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
1582 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
1583 |
! |
|
1584 |
||
1585 |
selfEmphasis |
|
1586 |
"the emphasis used for the self pseudoVariable; |
|
1587 |
If syntaxColoring is turned on." |
|
1588 |
||
1589 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1590 |
||
1591 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
1592 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
1593 |
! |
|
1594 |
||
1595 |
stringColor |
|
1596 |
"the color used for string constants; |
|
1597 |
If syntaxColoring is turned on." |
|
1598 |
||
1599 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
1600 |
||
1601 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
1602 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
1603 |
! |
|
1604 |
||
1605 |
stringEmphasis |
|
1606 |
"the emphasis used for string constants; |
|
1607 |
If syntaxColoring is turned on." |
|
1608 |
||
1609 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
1610 |
||
1611 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1612 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
1613 |
! |
|
1614 |
||
1615 |
superColor |
|
1616 |
"the color used for the super pseudoVariable; |
|
1617 |
If syntaxColoring is turned on." |
|
1618 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1619 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 1620 |
|
1621 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
1622 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
1623 |
! |
|
1624 |
||
1625 |
superEmphasis |
|
1626 |
"the emphasis used for the super pseudoVariable; |
|
1627 |
If syntaxColoring is turned on." |
|
1628 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1629 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1630 |
|
1631 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
1632 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
1633 |
! |
|
1634 |
||
1635 |
symbolColor |
|
1636 |
"the color used for symbol constants; |
|
1637 |
If syntaxColoring is turned on." |
|
1638 |
||
1639 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
1640 |
||
1641 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
1642 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
1643 |
! |
|
1644 |
||
1645 |
symbolEmphasis |
|
1646 |
"the emphasis used for symbol constants; |
|
1647 |
If syntaxColoring is turned on." |
|
1648 |
||
1649 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
1650 |
||
1651 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
1652 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 1653 |
! |
1654 |
||
1655 |
thisContextColor |
|
3360 | 1656 |
"the color used for the thisContext pseudoVariable; |
1657 |
If syntaxColoring is turned on." |
|
1658 |
||
3355 | 1659 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 1660 |
|
1661 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 1662 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 1663 |
! |
1664 |
||
1665 |
thisContextEmphasis |
|
3360 | 1666 |
"the emphasis used for the thisContext pseudoVariable; |
1667 |
If syntaxColoring is turned on." |
|
1668 |
||
3355 | 1669 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 1670 |
|
1671 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 1672 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 1673 |
! |
1674 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1675 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1676 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1677 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1678 |
|
4628 | 1679 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1680 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1681 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1682 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1683 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1684 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1685 |
|
4628 | 1686 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1687 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1688 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1689 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1690 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1691 |
|
3354 | 1692 |
unknownIdentifierColor |
3360 | 1693 |
"the color used for unknown identifiers; |
1694 |
If syntaxColoring is turned on." |
|
1695 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1696 |
^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor] |
3354 | 1697 |
|
3361 | 1698 |
" |
1699 |
self current at:#unknownIdentifierColor put:Color red. |
|
1700 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1701 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1702 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1703 |
self current unknownIdentifierEmphasis |
3361 | 1704 |
" |
1705 |
||
3354 | 1706 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 1707 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 1708 |
! |
1709 |
||
1710 |
unknownIdentifierEmphasis |
|
3360 | 1711 |
"the emphasis used for unknown identifiers; |
1712 |
If syntaxColoring is turned on." |
|
1713 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1714 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis] |
3354 | 1715 |
|
1716 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 1717 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
3347 | 1718 |
! ! |
1719 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1720 |
!UserPreferences methodsFor:'default settings'! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1721 |
|
6169 | 1722 |
listOfPredefinedSyntaxColoringSchemes |
6171 | 1723 |
"return a list of pre-defined syntax highlightning styles |
1724 |
(as shown in the Launchers 'source and debugger settings' dialog." |
|
1725 |
||
1726 |
^ #( |
|
1727 |
(#resetSyntaxColors 'default') |
|
1728 |
(#resetSyntaxColorsGreenComments 'green comments') |
|
1729 |
(#resetSyntaxColorsBlueSelectorsGreenComments 'blue selectors; green comments [dolphin style]') |
|
1730 |
(#resetSyntaxColorsBlueSelectorsGreyComments 'blue selectors; grey comments') |
|
1731 |
(#resetSyntaxColorsAllBlackExceptBadIDs 'no colors, but highlight errors') |
|
1732 |
) |
|
6169 | 1733 |
! |
1734 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1735 |
resetSyntaxColors |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1736 |
"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
|
1737 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1738 |
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
|
1739 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1740 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1741 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1742 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1743 |
resetSyntaxColorsAllBlackExceptBadIDs |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1744 |
"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
|
1745 |
except for bad identifiers, which are underwaved." |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1746 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1747 |
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
|
1748 |
self at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
4344 | 1749 |
self at:#errorColor put:Color black. |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1750 |
self at:#commentColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1751 |
self at:#constantColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1752 |
self at:#methodSelectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1753 |
self at:#selectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1754 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1755 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1756 |
|
6171 | 1757 |
resetSyntaxColorsBlueSelectorsGreenComments |
1758 |
"resets the colors in the CurrentPreferences to alternative default values |
|
1759 |
(with blue selectors and green comments)" |
|
1760 |
||
1761 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
1762 |
self at:#commentColor put:(Color green darkened). |
|
1763 |
self at:#commentEmphasis put:#italic. |
|
1764 |
self at:#selectorColor put:(Color blue). |
|
1765 |
self at:#selectorEmphasis put:#normal. |
|
1766 |
self at:#methodSelectorColor put:(Color blue). |
|
1767 |
self at:#methodSelectorEmphasis put:#bold. |
|
1768 |
! |
|
1769 |
||
1770 |
resetSyntaxColorsBlueSelectorsGreyComments |
|
6169 | 1771 |
"resets the colors in the CurrentPreferences to alternative default values |
1772 |
(with blue selectors and grey comments)" |
|
1773 |
||
6171 | 1774 |
self resetSyntaxColorsBlueSelectorsGreenComments. |
1775 |
self at:#commentColor put:(Color gray). |
|
6169 | 1776 |
! |
1777 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1778 |
resetSyntaxColorsGreenComments |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1779 |
"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
|
1780 |
(with green comments)" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1781 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1782 |
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
|
1783 |
self at:#commentColor put:(Color green darkened). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1784 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1785 |
! ! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
1786 |
|
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1787 |
!UserPreferences methodsFor:'default value'! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1788 |
|
4583 | 1789 |
defaultValue |
1790 |
"the defaultValue for non-existing keys" |
|
1791 |
||
1792 |
^ false |
|
1793 |
! |
|
1794 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1795 |
errorKeyNotFound:aKey |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1796 |
"for any non-existing key, false is returned" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1797 |
|
4583 | 1798 |
^ self defaultValue |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1799 |
! ! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
1800 |
|
3347 | 1801 |
!UserPreferences class methodsFor:'documentation'! |
1802 |
||
1803 |
version |
|
6928 | 1804 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.88 2002-12-09 16:45:49 penk Exp $' |
3347 | 1805 |
! ! |