author | Claus Gittinger <cg@exept.de> |
Thu, 18 Sep 2003 20:45:00 +0200 | |
changeset 7614 | 1a2b6cb3f37d |
parent 7604 | a9d00b75c4be |
child 7624 | 44f0109f5115 |
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 |
#( |
7614 | 61 |
#useNewChangesBrowser false |
62 |
#useNewInspector false |
|
63 |
||
64 |
#autoFormatting false |
|
65 |
#syntaxColoring true |
|
66 |
#fullSelectorCheck false |
|
67 |
||
68 |
#defaultSyntaxColor (Color black) |
|
69 |
#defaultSyntaxEmphasis normal |
|
70 |
||
71 |
#errorColor (Color red) |
|
72 |
||
73 |
#commentColor (Color 12.5 12.5 100) |
|
74 |
#commentEmphasis normal |
|
75 |
||
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) |
7614 | 83 |
#instVarIdentifierColor (Color 33 0 33) |
84 |
||
85 |
#constantColor (Color 25 0 0) |
|
86 |
||
87 |
#showClockInLauncher true |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
88 |
) pairWiseDo:[:k :v | |
7614 | 89 |
DefaultPreferences at:k put:v decodeAsLiteralArray. |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
90 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
91 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
92 |
"/ I prefer red-underwave over red identifier ... |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
93 |
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
|
94 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
95 |
" |
4580 | 96 |
self initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
97 |
" |
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
98 |
|
5236 | 99 |
"Modified: / 4.2.2000 / 20:06:53 / cg" |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
100 |
! ! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
101 |
|
3347 | 102 |
!UserPreferences class methodsFor:'accessing'! |
103 |
||
104 |
current |
|
105 |
CurrentPreferences isNil ifTrue:[ |
|
5712 | 106 |
CurrentPreferences := self new. |
107 |
CurrentPreferences declareAllFrom:(self default). |
|
3347 | 108 |
]. |
109 |
^ CurrentPreferences. |
|
110 |
||
111 |
"Created: / 31.3.1998 / 13:43:03 / cg" |
|
3364 | 112 |
! |
113 |
||
4318 | 114 |
default |
4580 | 115 |
DefaultPreferences isNil ifTrue:[ |
5712 | 116 |
self initializeDefaultPreferences |
4580 | 117 |
]. |
4318 | 118 |
^ DefaultPreferences. |
119 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
120 |
" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
121 |
DefaultPreferences := nil. |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
122 |
" |
4318 | 123 |
! |
124 |
||
3364 | 125 |
reset |
126 |
"resets the CurrentPreferences to its default values" |
|
127 |
||
128 |
CurrentPreferences := nil |
|
129 |
! |
|
130 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
131 |
syntaxColorKeys |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
132 |
"returns the keys of syntax color items" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
133 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
134 |
^#( |
5712 | 135 |
argumentIdentifierColor |
136 |
argumentIdentifierEmphasis |
|
137 |
booleanConstantColor |
|
138 |
booleanConstantEmphasis |
|
139 |
bracketColor |
|
140 |
bracketEmphasis |
|
141 |
classVariableIdentifierColor |
|
142 |
classVariableIdentifierEmphasis |
|
143 |
constantColor |
|
144 |
constantEmphasis |
|
145 |
commentColor |
|
146 |
commentEmphasis |
|
147 |
defaultSyntaxColor |
|
148 |
defaultSyntaxEmphasis |
|
149 |
errorColor |
|
150 |
globalIdentifierColor |
|
151 |
globalIdentifierEmphasis |
|
152 |
globalClassIdentifierColor |
|
153 |
globalClassIdentifierEmphasis |
|
154 |
hereColor |
|
155 |
hereEmphasis |
|
156 |
identifierColor |
|
157 |
identifierEmphasis |
|
158 |
instVarIdentifierColor |
|
159 |
instVarIdentifierEmphasis |
|
160 |
localIdentifierColor |
|
161 |
localIdentifierEmphasis |
|
162 |
methodSelectorColor |
|
163 |
methodSelectorEmphasis |
|
164 |
returnColor |
|
165 |
returnEmphasis |
|
166 |
selectorColor |
|
167 |
selectorEmphasis |
|
168 |
selfColor |
|
169 |
selfEmphasis |
|
170 |
stringColor |
|
171 |
stringEmphasis |
|
172 |
superColor |
|
173 |
superEmphasis |
|
174 |
symbolColor |
|
175 |
symbolEmphasis |
|
176 |
thisContextColor |
|
177 |
thisContextEmphasis |
|
178 |
unknownIdentifierColor |
|
179 |
unknownIdentifierEmphasis |
|
180 |
unimplementedSelectorColor |
|
181 |
unimplementedSelectorEmphasis |
|
4342
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 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
184 |
"Modified: / 5.1.1980 / 00:48:09 / cg" |
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 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
187 |
syntaxColorNames |
3364 | 188 |
"returns the syntax colors for the settings in the launcher" |
189 |
||
4319 | 190 |
"/ warning, the strings below are presented to the user |
191 |
"/ as the syntax-color boxes comboList - however, they are |
|
192 |
"/ also used (without separators) as key into myself. |
|
193 |
"/ Therefore, do not change the strings below. |
|
194 |
"/ I know - this is bad coding .... |
|
195 |
||
3364 | 196 |
^#( |
197 |
'Argument Identifier Color' |
|
198 |
'Boolean Constant Color' |
|
199 |
'Bracket Color' |
|
4320 | 200 |
'Class Variable Identifier Color' |
3364 | 201 |
'Constant Color' |
202 |
'Comment Color' |
|
203 |
'Global Identifier Color' |
|
4024
3a223c79e41c
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4023
diff
changeset
|
204 |
'Global Class Identifier Color' |
3364 | 205 |
'Here Color' |
206 |
'Identifier Color' |
|
3377 | 207 |
'InstVar Identifier Color' |
3364 | 208 |
'Local Identifier Color' |
209 |
'Method Selector Color' |
|
4076 | 210 |
'Return Color' |
3364 | 211 |
'Selector Color' |
212 |
'Self Color' |
|
213 |
'String Color' |
|
214 |
'Super Color' |
|
215 |
'Symbol Color' |
|
216 |
'This Context Color' |
|
217 |
'Unknown Identifier Color' |
|
4319 | 218 |
'Unimplemented Selector Color' |
3377 | 219 |
) |
3364 | 220 |
|
4076 | 221 |
"Modified: / 5.1.1980 / 00:48:09 / cg" |
3347 | 222 |
! ! |
223 |
||
6019 | 224 |
!UserPreferences class methodsFor:'accessing defaultPrefs'! |
225 |
||
6763 | 226 |
fileBrowserClass |
227 |
^ self current fileBrowserClass |
|
228 |
||
229 |
" |
|
230 |
UserPreferences fileBrowserClass |
|
231 |
" |
|
232 |
! |
|
233 |
||
6019 | 234 |
systemBrowserClass |
235 |
^ self current systemBrowserClass |
|
236 |
||
237 |
" |
|
238 |
UserPreferences systemBrowserClass |
|
239 |
" |
|
240 |
! |
|
241 |
||
242 |
versionDiffViewerClass |
|
243 |
^ self current versionDiffViewerClass |
|
244 |
||
245 |
" |
|
246 |
UserPreferences versionDiffViewerClass |
|
247 |
" |
|
248 |
! ! |
|
249 |
||
7028 | 250 |
!UserPreferences class methodsFor:'saving'! |
251 |
||
252 |
saveSettings:userPrefs in:fileName |
|
253 |
"save settings to a settings-file." |
|
254 |
||
255 |
"a temporary kludge for old classVariable-based settings |
|
256 |
- all of those MUST go into the user-preferences dictionary eventually" |
|
257 |
||
258 |
|s screen| |
|
259 |
||
260 |
s := fileName asFilename writeStream. |
|
7106
27bc6fd8067d
More openErrorSignal change preparations
Stefan Vogel <sv@exept.de>
parents:
7087
diff
changeset
|
261 |
s checkNilFileStream. |
7028 | 262 |
|
263 |
screen := Screen current. |
|
264 |
||
265 |
s nextPutLine:'"/ ST/X saved settings'; |
|
266 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
267 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
|
268 |
nextPutLine:'"/'; |
|
269 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
7047
7236b784afa4
httpServer settings to user preferences to allow save in settings file
penk
parents:
7037
diff
changeset
|
270 |
nextPutLine:'"/ ''save settings'' function of the SettingsDialog'; |
7028 | 271 |
nextPutLine:'"/'. |
272 |
s cr. |
|
273 |
||
274 |
s nextPutLine:'"/'. |
|
275 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , AbsoluteTime now printString. |
|
276 |
s nextPutLine:'"/'. |
|
277 |
s cr. |
|
278 |
||
279 |
s nextPutLine:'"/'. |
|
280 |
s nextPutLine:'"/ Display settings:'. |
|
281 |
s nextPutLine:'"/'. |
|
282 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
283 |
s nextPutLine:'Display notNil ifTrue:['. |
|
284 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
|
285 |
screen fixColors notNil ifTrue:[ |
|
286 |
s nextPutLine:' Image flushDeviceImages.'. |
|
287 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
|
288 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
|
289 |
s nextPutLine:' ].'. |
|
290 |
] ifFalse:[ |
|
291 |
s nextPutLine:' Display releaseFixColors.'. |
|
292 |
]. |
|
293 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
294 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
295 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
296 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
297 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
298 |
s nextPutLine:' View defaultStyle:' , View defaultStyle storeString , '.'. |
|
299 |
s nextPutLine:' ].'. |
|
300 |
s nextPutLine:'].'. |
|
301 |
s cr. |
|
302 |
||
303 |
s nextPutLine:'"/'. |
|
304 |
s nextPutLine:'"/ Compiler settings:'. |
|
305 |
s nextPutLine:'"/'. |
|
306 |
s nextPutLine:'Compiler warnSTXSpecials: ' , (Compiler warnSTXSpecials storeString) , '.'; |
|
307 |
nextPutLine:'Compiler warnUnderscoreInIdentifier: ' , (Compiler warnUnderscoreInIdentifier storeString) , '.'; |
|
308 |
nextPutLine:'Compiler warnOldStyleAssignment: ' , (Compiler warnOldStyleAssignment storeString) , '.'; |
|
309 |
nextPutLine:'Compiler warnCommonMistakes: ' , (Compiler warnCommonMistakes storeString) , '.'; |
|
310 |
nextPutLine:'Compiler warnPossibleIncompatibilities: ' , (Compiler warnPossibleIncompatibilities storeString) , '.'; |
|
311 |
nextPutLine:'Compiler allowUnderscoreInIdentifier: ' , (Compiler allowUnderscoreInIdentifier storeString) , '.'; |
|
312 |
nextPutLine:'Compiler allowSqueakExtensions: ' , (Compiler allowSqueakExtensions storeString) , '.'; |
|
313 |
nextPutLine:'Compiler allowDolphinExtensions: ' , (Compiler allowDolphinExtensions storeString) , '.'; |
|
7523
8d6291f02d01
saving of Compiler allowQualifiedNames added
Michael Beyl <mb@exept.de>
parents:
7491
diff
changeset
|
314 |
nextPutLine:'Compiler allowQualifiedNames: ' , (Compiler allowQualifiedNames storeString) , '.'; |
7028 | 315 |
nextPutLine:'Compiler arraysAreImmutable: ' , (Compiler arraysAreImmutable storeString) , '.'; |
316 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
|
317 |
||
318 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
319 |
nextPutLine:'Compiler stcCompilation: ' , (Compiler stcCompilation storeString) , '.'; |
|
320 |
nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:['; |
|
321 |
nextPutLine:' Compiler stcCompilationIncludes: ' , (Compiler stcCompilationIncludes storeString) , '.'; |
|
322 |
nextPutLine:' Compiler stcCompilationDefines: ' , (Compiler stcCompilationDefines storeString) , '.'; |
|
323 |
nextPutLine:' Compiler stcCompilationOptions: ' , (Compiler stcCompilationOptions storeString) , '.'; |
|
324 |
nextPutLine:' ' , (Compiler stcModulePath storeString) , ' asFilename exists ifTrue:['; |
|
325 |
nextPutLine:' Compiler stcModulePath: ' , (Compiler stcModulePath storeString) , '.'; |
|
326 |
nextPutLine:' ].'; |
|
327 |
nextPutLine:' Compiler stcPath: ' , (Compiler stcPath storeString) , '.'; |
|
328 |
nextPutLine:' Compiler ccCompilationOptions: ' , (Compiler ccCompilationOptions storeString) , '.'; |
|
329 |
nextPutLine:' Compiler ccPath: ' , (Compiler ccPath storeString) , '.'; |
|
330 |
nextPutLine:' ObjectFileLoader linkArgs: ' , (ObjectFileLoader linkArgs storeString) , '.'; |
|
331 |
nextPutLine:' ObjectFileLoader linkCommand: ' , (ObjectFileLoader linkCommand storeString) , '.'; |
|
332 |
nextPutLine:' ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'; |
|
333 |
nextPutLine:' ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'; |
|
334 |
nextPutLine:'].'; |
|
335 |
||
336 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
337 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
338 |
||
339 |
HistoryManager notNil ifTrue:[ |
|
340 |
HistoryManager isActive ifTrue:[ |
|
341 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
|
342 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'. |
|
343 |
] ifFalse:[ |
|
344 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
|
345 |
]. |
|
346 |
]. |
|
347 |
||
348 |
ObjectFileLoader notNil ifTrue:[ |
|
349 |
s nextPutLine:'ObjectFileLoader searchedLibraries: ' , (ObjectFileLoader searchedLibraries storeString) , '.'. |
|
350 |
s nextPutLine:'ObjectFileLoader libPath: ' , (ObjectFileLoader libPath storeString) , '.'. |
|
351 |
]. |
|
352 |
||
353 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
354 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
355 |
||
356 |
s cr. |
|
357 |
s nextPutLine:'"/'. |
|
358 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
359 |
s nextPutLine:'"/'. |
|
360 |
s nextPutLine:'ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '.'; |
|
361 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
362 |
nextPutLine:'Object infoPrinting: ' , (Object infoPrinting storeString) , '.'; |
|
363 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
364 |
||
365 |
FlyByHelp isActive ifTrue:[ |
|
366 |
s nextPutLine:'FlyByHelp start.' |
|
367 |
]. |
|
368 |
||
369 |
s cr. |
|
370 |
s nextPutLine:'"/'. |
|
371 |
s nextPutLine:'"/ Edit settings:'. |
|
372 |
s nextPutLine:'"/'. |
|
373 |
"/ s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'. |
|
374 |
s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'. |
|
375 |
s nextPutLine:'UserPreferences current syntaxColoring: ' , (userPrefs syntaxColoring storeString) , '.'. |
|
376 |
(ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[ |
|
377 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'. |
|
378 |
] ifFalse:[ |
|
379 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'. |
|
380 |
]. |
|
381 |
||
382 |
s nextPutLine:'"/'. |
|
383 |
s nextPutLine:'"/ User preference values:'. |
|
384 |
s nextPutLine:'"/'. |
|
385 |
userPrefs keysAndValuesDo:[:k :v | |
|
386 |
(UserPreferences includesSelector:(k , ':') asSymbol) ifTrue:[ |
|
387 |
s nextPutLine:'UserPreferences current ' , k , ':' , v storeString , '.'. |
|
388 |
] ifFalse:[ |
|
389 |
s nextPutLine:'UserPreferences current at:' , k storeString , ' put:' , v storeString , '.'. |
|
390 |
] |
|
391 |
]. |
|
392 |
||
393 |
s cr. |
|
394 |
s nextPutLine:'"/'. |
|
395 |
s nextPutLine:'"/ Misc settings:'. |
|
396 |
s nextPutLine:'"/'. |
|
397 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
398 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
399 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
400 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
401 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
402 |
||
403 |
"/ claus - I dont think its a good idea to save those ... |
|
404 |
nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
405 |
nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
406 |
||
407 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
|
408 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
409 |
nextPutLine:'Display notNil ifTrue:['; |
|
410 |
nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.'; |
|
411 |
nextPutLine:'].'; |
|
412 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
|
413 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
7037
0771e159ad40
Replace referneces to Exception.
Stefan Vogel <sv@exept.de>
parents:
7030
diff
changeset
|
414 |
(NoHandlerError emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[ |
0771e159ad40
Replace referneces to Exception.
Stefan Vogel <sv@exept.de>
parents:
7030
diff
changeset
|
415 |
s nextPutLine:'NoHandlerError emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'. |
7028 | 416 |
]. |
417 |
Processor isTimeSlicing ifTrue:[ |
|
418 |
s nextPutLine:'Processor startTimeSlicing.'. |
|
419 |
s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.'). |
|
420 |
] ifFalse:[ |
|
421 |
s nextPutLine:'Processor stopTimeSlicing.'. |
|
422 |
]. |
|
423 |
||
424 |
s cr. |
|
425 |
s nextPutLine:'"/'. |
|
426 |
s nextPutLine:'"/ Printer settings:'. |
|
427 |
s nextPutLine:'"/'. |
|
428 |
s nextPutLine:'Printer := ' , (Printer name) , '.'; |
|
429 |
nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
430 |
||
431 |
Printer supportsPageSizes ifTrue:[ |
|
432 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
|
433 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
|
434 |
]. |
|
435 |
Printer supportsMargins ifTrue:[ |
|
436 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
|
437 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
|
438 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
|
439 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
|
440 |
]. |
|
441 |
Printer supportsPostscript ifTrue:[ |
|
442 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
|
443 |
]. |
|
444 |
||
445 |
s cr. |
|
446 |
s nextPutLine:'"/'. |
|
447 |
s nextPutLine:'"/ Font settings:'. |
|
448 |
s nextPutLine:'"/ (only restored, if image is restarted on the same display)'. |
|
449 |
s nextPutLine:'"/'. |
|
450 |
s nextPutLine:'Display notNil ifTrue:['. |
|
451 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
|
452 |
s nextPutLine:' View defaultFont: ' , (View defaultFont storeString) , '.'. |
|
453 |
s nextPutLine:' Label defaultFont: ' , (Label defaultFont storeString) , '.'. |
|
454 |
s nextPutLine:' Button defaultFont: ' , (Button defaultFont storeString) , '.'. |
|
455 |
s nextPutLine:' Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'. |
|
456 |
s nextPutLine:' SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'. |
|
457 |
s nextPutLine:' MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'. |
|
458 |
s nextPutLine:' PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'. |
|
459 |
s nextPutLine:' TextView defaultFont: ' , (TextView defaultFont storeString) , '.'. |
|
460 |
s nextPutLine:' EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'. |
|
461 |
s nextPutLine:' CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'. |
|
462 |
s nextPutLine:' ].'. |
|
463 |
s nextPutLine:'].'. |
|
464 |
||
465 |
s cr. |
|
466 |
s nextPutLine:'"/'. |
|
467 |
s nextPutLine:'"/ Language setting:'. |
|
468 |
s nextPutLine:'"/'. |
|
469 |
s nextPutLine:'Smalltalk language: ' , (Smalltalk language storeString) , '.'. |
|
470 |
s nextPutLine:'Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'. |
|
471 |
||
472 |
s cr. |
|
473 |
s nextPutLine:'"/'. |
|
474 |
s nextPutLine:'"/ SourceCodeManager settings:'. |
|
475 |
s nextPutLine:'"/ (only restored, if image is restarted on the same host)'. |
|
476 |
s nextPutLine:'"/'. |
|
477 |
s nextPutLine:'OperatingSystem getHostName = ' , (OperatingSystem getHostName storeString) , ' ifTrue:['. |
|
478 |
s nextPutLine:' Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'. |
|
479 |
(Smalltalk at:#SourceCodeManager) == CVSSourceCodeManager ifTrue:[ |
|
480 |
s nextPutLine:' Smalltalk at:#SourceCodeManager put: CVSSourceCodeManager.'. |
|
481 |
s nextPutLine:' AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '.'. |
|
482 |
s nextPutLine:' CVSSourceCodeManager cvsBinDirectory:' , CVSSourceCodeManager cvsBinDirectory storeString , '.'. |
|
483 |
s nextPutLine:' CVSSourceCodeManager repositoryNamesPerModule:' , CVSSourceCodeManager repositoryNamesPerModule storeString , '.'. |
|
484 |
s nextPutLine:' CVSSourceCodeManager initializeForRepository:' , CVSSourceCodeManager repositoryName storeString , '.'. |
|
485 |
]. |
|
486 |
s nextPutLine:'].'. |
|
487 |
||
488 |
s close. |
|
489 |
||
490 |
" |
|
491 |
Transcript topView application saveSettings |
|
492 |
" |
|
493 |
||
494 |
"Modified: / 6.1.1999 / 14:24:16 / cg" |
|
495 |
! ! |
|
496 |
||
7549 | 497 |
!UserPreferences methodsFor:'accessing'! |
3883 | 498 |
|
5790 | 499 |
at:key put:value |
500 |
|classNameToCheck classToCheck| |
|
501 |
||
6059 | 502 |
value == true ifTrue:[ |
503 |
key == #useNewVersionDiffBrowser ifTrue:[ |
|
5790 | 504 |
classNameToCheck := #'VersionDiffBrowser'. |
6059 | 505 |
]. |
506 |
key == #useNewChangesBrowser ifTrue:[ |
|
5790 | 507 |
classNameToCheck := #'NewChangesBrowser'. |
6059 | 508 |
]. |
6762 | 509 |
key == #useNewFileBrowser ifTrue:[ |
6770 | 510 |
classNameToCheck := #'FileBrowserV2'. |
6761 | 511 |
]. |
6059 | 512 |
key == #useNewSystemBrowser ifTrue:[ |
5790 | 513 |
classNameToCheck := #'NewSystemBrowser'. |
6059 | 514 |
]. |
515 |
key == #useNewInspector ifTrue:[ |
|
5790 | 516 |
classNameToCheck := #'NewInspector::NewInspectorView'. |
6059 | 517 |
]. |
5790 | 518 |
]. |
519 |
||
5791 | 520 |
classNameToCheck notNil ifTrue:[ |
5790 | 521 |
classToCheck := Smalltalk at:classNameToCheck. |
522 |
classToCheck isNil ifTrue:[ |
|
6770 | 523 |
('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR. |
524 |
] ifFalse:[ |
|
525 |
Autoload autoloadFailedSignal handle:[:ex | |
|
526 |
'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR. |
|
527 |
] do:[ |
|
528 |
classToCheck autoload. |
|
529 |
] |
|
5790 | 530 |
] |
531 |
]. |
|
532 |
||
533 |
^ super at:key put:value |
|
7549 | 534 |
! ! |
535 |
||
536 |
!UserPreferences methodsFor:'accessing-pref''d tools'! |
|
5790 | 537 |
|
3883 | 538 |
changesBrowserClass |
539 |
self useNewChangesBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
540 |
^ (NewChangesBrowser ? ChangesBrowser) |
3883 | 541 |
]. |
542 |
^ ChangesBrowser |
|
543 |
||
544 |
"Created: / 17.10.1998 / 14:37:46 / cg" |
|
5535 | 545 |
! |
546 |
||
6763 | 547 |
fileBrowserClass |
548 |
self useNewFileBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
549 |
^ (FileBrowserV2 ? FileBrowser) |
6763 | 550 |
]. |
551 |
^ FileBrowser |
|
552 |
! |
|
553 |
||
6177 | 554 |
inspectorClassSetting |
555 |
self useNewInspector ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
556 |
^ (NewInspector::NewInspectorView ? InspectorView) |
6177 | 557 |
]. |
558 |
^ InspectorView |
|
559 |
||
560 |
"Modified: / 12.11.2001 / 15:47:35 / cg" |
|
561 |
"Created: / 12.11.2001 / 15:49:00 / cg" |
|
5541 | 562 |
! |
563 |
||
5535 | 564 |
systemBrowserClass |
565 |
self useNewSystemBrowser ifTrue:[ |
|
6767
323056b2a065
care for non-existing classes
Claus Gittinger <cg@exept.de>
parents:
6765
diff
changeset
|
566 |
^ (NewSystemBrowser ? SystemBrowser) |
5535 | 567 |
]. |
568 |
^ SystemBrowser |
|
5536 | 569 |
! |
570 |
||
571 |
useNewChangesBrowser |
|
572 |
"using new or old change browser" |
|
573 |
||
574 |
^ self at:#useNewChangesBrowser ifAbsentPut:false |
|
575 |
||
576 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
577 |
! |
|
578 |
||
579 |
useNewChangesBrowser:aBoolean |
|
580 |
"using new or old changeBrowser" |
|
581 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
582 |
self at:#useNewChangesBrowser put:aBoolean |
5536 | 583 |
|
584 |
" |
|
585 |
UserPreferences current useNewChangesBrowser |
|
586 |
" |
|
587 |
||
588 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
589 |
! |
|
590 |
||
6717 | 591 |
useNewFileBrowser |
592 |
"using new or old version diff viewer" |
|
593 |
||
7604
a9d00b75c4be
defaults for new tools are now true.
Claus Gittinger <cg@exept.de>
parents:
7549
diff
changeset
|
594 |
^ self at:#useNewFileBrowser ifAbsentPut:true |
6717 | 595 |
|
596 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
597 |
! |
|
598 |
||
599 |
useNewFileBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
600 |
"using new or old file browser" |
6717 | 601 |
|
602 |
self at:#useNewFileBrowser put:aBoolean |
|
603 |
||
604 |
" |
|
6769 | 605 |
UserPreferences current useNewFileBrowser |
6717 | 606 |
" |
607 |
||
608 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
609 |
! |
|
610 |
||
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
611 |
useNewFileDialog |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
612 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
613 |
|
7604
a9d00b75c4be
defaults for new tools are now true.
Claus Gittinger <cg@exept.de>
parents:
7549
diff
changeset
|
614 |
^ self at:#useNewFileDialog ifAbsentPut:true |
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
615 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
616 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
617 |
useNewFileDialog:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
618 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
619 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
620 |
self at:#useNewFileDialog put:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
621 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
622 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
623 |
UserPreferences current useNewFileDialog:true |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
624 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
625 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
626 |
|
5536 | 627 |
useNewInspector |
628 |
"using new or old inspector" |
|
629 |
||
630 |
^ self at:#useNewInspector ifAbsentPut:false |
|
631 |
||
632 |
" |
|
633 |
UserPreferences current useNewInspector |
|
634 |
" |
|
635 |
||
636 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
637 |
! |
|
638 |
||
639 |
useNewInspector:aBoolean |
|
640 |
"using new or old inspector" |
|
641 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
642 |
self at:#useNewInspector put:aBoolean |
5536 | 643 |
|
644 |
" |
|
645 |
UserPreferences current useNewInspector |
|
646 |
" |
|
647 |
! |
|
648 |
||
6935 | 649 |
useNewSettingsApplication |
6838 | 650 |
"using one application for the settings" |
651 |
||
7604
a9d00b75c4be
defaults for new tools are now true.
Claus Gittinger <cg@exept.de>
parents:
7549
diff
changeset
|
652 |
^ self at:#useNewSettingsApplication ifAbsentPut:true |
6838 | 653 |
! |
654 |
||
6935 | 655 |
useNewSettingsApplication:aBoolean |
6838 | 656 |
"using one application for the settings" |
657 |
||
6935 | 658 |
self at:#useNewSettingsApplication put:aBoolean |
6838 | 659 |
|
660 |
" |
|
6935 | 661 |
UserPreferences current useNewSettingsApplication:true |
6838 | 662 |
" |
663 |
||
664 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
665 |
! |
|
666 |
||
5536 | 667 |
useNewSystemBrowser |
668 |
"using new or old system browser" |
|
669 |
||
7604
a9d00b75c4be
defaults for new tools are now true.
Claus Gittinger <cg@exept.de>
parents:
7549
diff
changeset
|
670 |
^ self at:#useNewSystemBrowser ifAbsentPut:true |
5536 | 671 |
|
672 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
673 |
! |
|
674 |
||
675 |
useNewSystemBrowser:aBoolean |
|
676 |
"using new or old systemBrowser" |
|
677 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
678 |
self at:#useNewSystemBrowser put:aBoolean |
5536 | 679 |
|
680 |
" |
|
5541 | 681 |
UserPreferences current useNewSystemBrowser:true |
5536 | 682 |
" |
683 |
||
684 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
685 |
! |
|
686 |
||
687 |
useNewVersionDiffBrowser |
|
688 |
"using new or old version diff viewer" |
|
689 |
||
6666
26396997886c
default is to use the new versionDiffBrowser
Claus Gittinger <cg@exept.de>
parents:
6525
diff
changeset
|
690 |
^ self at:#useNewVersionDiffBrowser ifAbsentPut:true |
5536 | 691 |
|
692 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
693 |
! |
|
694 |
||
695 |
useNewVersionDiffBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
696 |
"using new or old versionDiffBrowser" |
5536 | 697 |
|
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
698 |
self at:#useNewVersionDiffBrowser put:aBoolean |
5536 | 699 |
|
700 |
" |
|
701 |
UserPreferences current useNewVersionDiffBrowser |
|
702 |
" |
|
703 |
||
704 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
705 |
! |
|
706 |
||
6959 | 707 |
useProcessMonitorV2 |
708 |
"using ProcessMonitorV2 application for display Processes" |
|
709 |
||
7604
a9d00b75c4be
defaults for new tools are now true.
Claus Gittinger <cg@exept.de>
parents:
7549
diff
changeset
|
710 |
^ self at:#useProcessMonitorV2 ifAbsentPut:true |
6959 | 711 |
! |
712 |
||
713 |
useProcessMonitorV2:aBoolean |
|
714 |
"using ProcessMonitorV2 application for display Processes" |
|
715 |
||
716 |
self at:#useProcessMonitorV2 put:aBoolean |
|
717 |
||
718 |
" |
|
719 |
UserPreferences current useProcessMonitorV2:true |
|
720 |
" |
|
721 |
||
722 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
723 |
! |
|
724 |
||
5536 | 725 |
versionDiffViewerClass |
726 |
self useNewVersionDiffBrowser ifTrue:[ |
|
6770 | 727 |
^ (VersionDiffBrowser ? DiffTextView) |
5536 | 728 |
]. |
729 |
^ DiffTextView |
|
3883 | 730 |
! ! |
731 |
||
7549 | 732 |
!UserPreferences methodsFor:'accessing-prefs-UI'! |
3358 | 733 |
|
5071 | 734 |
beepEnabled |
735 |
"return the flag which controls the beeper" |
|
736 |
||
737 |
^ self at:#beepEnabled ifAbsentPut:true |
|
738 |
||
739 |
" |
|
740 |
UserPreferences current beepEnabled |
|
741 |
" |
|
742 |
||
743 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
744 |
"Created: / 3.12.1999 / 17:09:49 / ps" |
|
745 |
! |
|
746 |
||
747 |
beepEnabled:aBoolean |
|
748 |
"set/clear the flag which controls the beeper" |
|
749 |
||
750 |
^ self at:#beepEnabled put:aBoolean |
|
751 |
||
752 |
" |
|
753 |
UserPreferences current beepEnabled:false |
|
754 |
" |
|
755 |
||
756 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
757 |
"Created: / 3.12.1999 / 17:10:27 / ps" |
|
758 |
! |
|
759 |
||
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
760 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
761 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
762 |
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
|
763 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
764 |
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
|
765 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
766 |
^ self at:#focusFollowsMouse ifAbsent:nil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
767 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
768 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
769 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
770 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
771 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
772 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
773 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
774 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
775 |
focusFollowsMouse:aBooleanOrNil |
4121 | 776 |
"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
|
777 |
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
|
778 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
779 |
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
|
780 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
781 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
782 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
783 |
" |
4121 | 784 |
UserPreferences current focusFollowsMouse:true |
785 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
786 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
787 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
788 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
789 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
790 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
791 |
|
5808 | 792 |
opaqueTableColumnResizing |
793 |
"return the flag which controls if table column resizing should be done |
|
794 |
animated (opaque)" |
|
795 |
||
796 |
^ self at:#opaqueTableColumnResizing ifAbsentPut:false |
|
797 |
||
798 |
" |
|
799 |
UserPreferences current opaqueTableColumnResizing |
|
800 |
" |
|
801 |
! |
|
802 |
||
803 |
opaqueTableColumnResizing:aBoolean |
|
804 |
"change the flag which controls if table column resizing should be done |
|
805 |
animated (opaque)" |
|
806 |
||
807 |
^ self at:#opaqueTableColumnResizing put:aBoolean |
|
808 |
||
809 |
" |
|
810 |
UserPreferences current opaqueTableColumnResizing:true |
|
811 |
" |
|
812 |
||
813 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
814 |
! |
|
815 |
||
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
816 |
opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
817 |
"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
|
818 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
819 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
820 |
^ self at:#opaqueVariablePanelResizing ifAbsentPut:false |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
821 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
822 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
823 |
UserPreferences current opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
824 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
825 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
826 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
827 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
828 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
829 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
830 |
opaqueVariablePanelResizing:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
831 |
"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
|
832 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
833 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
834 |
^ self at:#opaqueVariablePanelResizing put:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
835 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
836 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
837 |
UserPreferences current opaqueVariablePanelResizing:true |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
838 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
839 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
840 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
841 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
842 |
|
6525 | 843 |
searchDialogIsModal |
844 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
845 |
||
846 |
^ self at:#searchDialogIsModal ifAbsent:true |
|
847 |
||
848 |
" |
|
849 |
UserPreferences current searchDialogIsModal |
|
850 |
" |
|
851 |
! |
|
852 |
||
853 |
searchDialogIsModal:aBooleanOrNil |
|
854 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
855 |
||
856 |
^ self at:#searchDialogIsModal put:aBooleanOrNil |
|
857 |
||
858 |
" |
|
859 |
UserPreferences current searchDialogIsModal:true |
|
860 |
UserPreferences current searchDialogIsModal:false |
|
861 |
UserPreferences current searchDialogIsModal |
|
862 |
" |
|
863 |
! |
|
864 |
||
6813
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
865 |
st80EditMode |
7118 | 866 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
6813
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
867 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
868 |
^ self at:#st80EditMode ifAbsent:false |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
869 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
870 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
871 |
UserPreferences current st80EditMode |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
872 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
873 |
! |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
874 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
875 |
st80EditMode:aBoolean |
7118 | 876 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
6813
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
877 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
878 |
^ self at:#st80EditMode put:aBoolean |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
879 |
|
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
880 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
881 |
UserPreferences current st80EditMode:true |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
882 |
" |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
883 |
! |
b03e92a48a76
autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents:
6770
diff
changeset
|
884 |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
885 |
startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
886 |
"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
|
887 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
888 |
^ self at:#startTextDragWithControl ifAbsent:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
889 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
890 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
891 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
892 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
893 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
894 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
895 |
startTextDragWithControl:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
896 |
"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
|
897 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
898 |
^ self at:#startTextDragWithControl put:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
899 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
900 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
901 |
UserPreferences current startTextDragWithControl:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
902 |
UserPreferences current startTextDragWithControl:false |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
903 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
904 |
" |
7549 | 905 |
! ! |
906 |
||
907 |
!UserPreferences methodsFor:'accessing-prefs-browser'! |
|
908 |
||
909 |
autoFormatting |
|
910 |
"return the flag which controls automatic formatting of code (in some browsers) |
|
911 |
Notice, the regular browser does not (yet) do automatic formating." |
|
912 |
||
913 |
^ self at:#autoFormatting ifAbsentPut:false |
|
914 |
||
915 |
" |
|
916 |
UserPreferences current autoFormatting |
|
917 |
" |
|
918 |
||
919 |
"Created: / 4.2.2000 / 20:08:08 / cg" |
|
920 |
"Modified: / 5.2.2000 / 15:38:33 / cg" |
|
921 |
! |
|
922 |
||
923 |
autoFormatting:aBoolean |
|
924 |
"turn on/off automatic formatting of code (in some browsers); |
|
925 |
Notice, the regular browser does not (yet) do automatic formating." |
|
926 |
||
927 |
^ self at:#autoFormatting put:aBoolean |
|
928 |
||
929 |
" |
|
930 |
UserPreferences current autoFormatting:true |
|
931 |
UserPreferences current autoFormatting:false |
|
932 |
" |
|
933 |
||
934 |
"Created: / 4.2.2000 / 20:08:26 / cg" |
|
935 |
"Modified: / 5.2.2000 / 15:38:20 / cg" |
|
936 |
! |
|
937 |
||
938 |
enforceCodeStyle |
|
939 |
"return the flag which controls enforcing a certain code style (in some browsers)" |
|
940 |
||
941 |
^ self at:#enforceCodeStyle ifAbsentPut:false |
|
942 |
||
943 |
" |
|
944 |
UserPreferences current enforceCodeStyle |
|
945 |
" |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
946 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
947 |
|
3347 | 948 |
syntaxColoring |
3360 | 949 |
"return the flag which controls syntax coloring (in the browsers)" |
950 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
951 |
^ self at:#syntaxColoring ifAbsentPut:true |
3347 | 952 |
|
953 |
" |
|
954 |
UserPreferences current syntaxColoring |
|
955 |
" |
|
956 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
957 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 958 |
! |
959 |
||
960 |
syntaxColoring:aBoolean |
|
3360 | 961 |
"turn on/off syntaxColoring (in the browsers)." |
962 |
||
3347 | 963 |
^ self at:#syntaxColoring put:aBoolean |
964 |
||
3357 | 965 |
" |
966 |
UserPreferences current syntaxColoring:true |
|
967 |
UserPreferences current syntaxColoring:false |
|
968 |
" |
|
969 |
||
3347 | 970 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 971 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
972 |
! ! |
|
973 |
||
7549 | 974 |
!UserPreferences methodsFor:'accessing-prefs-browser-colors'! |
975 |
||
976 |
emphasisForChangedCode |
|
977 |
|emp| |
|
978 |
||
979 |
emp := self at:#emphasisForChangedCode ifAbsent:nil. |
|
980 |
emp isNil ifTrue:[ |
|
981 |
emp := #color->Color red darkened. |
|
982 |
"/ emp := #color->Color blue darkened. |
|
983 |
self at:#emphasisForChangedCode put:emp. |
|
984 |
]. |
|
985 |
^ emp |
|
6832 | 986 |
! |
987 |
||
7549 | 988 |
emphasisForDifferentPackage |
989 |
|emp| |
|
990 |
||
991 |
emp := self at:#emphasisForDifferentPackage ifAbsent:nil. |
|
992 |
emp isNil ifTrue:[ |
|
993 |
emp := #color->Color brown darkened. |
|
994 |
self at:#emphasisForDifferentPackage put:emp. |
|
995 |
]. |
|
996 |
^ emp |
|
6832 | 997 |
! |
998 |
||
7549 | 999 |
emphasisForModifiedBuffer |
1000 |
|emp| |
|
1001 |
||
1002 |
emp := self at:#emphasisForModifiedBuffer ifAbsent:nil. |
|
1003 |
emp isNil ifTrue:[ |
|
1004 |
emp := #color->Color red darkened. |
|
1005 |
self at:#emphasisForModifiedBuffer put:emp. |
|
1006 |
]. |
|
1007 |
^ emp |
|
6832 | 1008 |
! |
1009 |
||
7549 | 1010 |
emphasisForObsoleteCode |
1011 |
|emp| |
|
1012 |
||
1013 |
emp := self at:#emphasisForObsoleteCode ifAbsent:nil. |
|
1014 |
emp isNil ifTrue:[ |
|
1015 |
emp := #color->Color red. |
|
1016 |
self at:#emphasisForObsoleteCode put:emp. |
|
1017 |
]. |
|
1018 |
^ emp |
|
6832 | 1019 |
! |
1020 |
||
7549 | 1021 |
emphasisForReadVariable |
1022 |
|emp| |
|
1023 |
||
1024 |
emp := self at:#emphasisForReadVariable ifAbsent:nil. |
|
1025 |
emp isNil ifTrue:[ |
|
1026 |
emp := #underline. |
|
1027 |
self at:#emphasisForReadVariable put:emp. |
|
1028 |
]. |
|
1029 |
^ emp |
|
6832 | 1030 |
! |
1031 |
||
7549 | 1032 |
emphasisForWrittenVariable |
1033 |
|emp| |
|
1034 |
||
1035 |
emp := self at:#emphasisForWrittenVariable ifAbsent:nil. |
|
1036 |
emp isNil ifTrue:[ |
|
1037 |
emp := Array with:#underline with:#underlineColor->Color red. |
|
1038 |
self at:#emphasisForWrittenVariable put:emp. |
|
1039 |
]. |
|
1040 |
^ emp |
|
6832 | 1041 |
! ! |
1042 |
||
7549 | 1043 |
!UserPreferences methodsFor:'accessing-prefs-browser-syntaxColoring'! |
3360 | 1044 |
|
1045 |
argumentIdentifierColor |
|
1046 |
"the color used for argument identifiers; |
|
1047 |
If syntaxColoring is turned on." |
|
1048 |
||
1049 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
1050 |
||
1051 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
1052 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
1053 |
! |
|
1054 |
||
1055 |
argumentIdentifierEmphasis |
|
1056 |
"the emphasis used for argument identifiers; |
|
1057 |
If syntaxColoring is turned on." |
|
1058 |
||
1059 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1060 |
||
1061 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
1062 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
1063 |
! |
|
1064 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1065 |
badIdentifierColor |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1066 |
"the color used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1067 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1068 |
|
4336 | 1069 |
^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1070 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1071 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1072 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1073 |
badIdentifierEmphasis |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1074 |
"the emphasis used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1075 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1076 |
|
4628 | 1077 |
^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1078 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
1079 |
"Modified: / 7.7.1999 / 00:30:00 / cg" |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1080 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1081 |
|
3360 | 1082 |
booleanConstantColor |
1083 |
"the color used for boolean constants; |
|
1084 |
If syntaxColoring is turned on." |
|
1085 |
||
1086 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
1087 |
||
1088 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
1089 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
1090 |
! |
|
1091 |
||
1092 |
booleanConstantEmphasis |
|
1093 |
"the emphasis used for boolean constants; |
|
1094 |
If syntaxColoring is turned on." |
|
1095 |
||
1096 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
1097 |
||
1098 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
1099 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
1100 |
! |
|
1101 |
||
3361 | 1102 |
bracketColor |
1103 |
"the color used for brackets; |
|
1104 |
If syntaxColoring is turned on." |
|
1105 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1106 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 1107 |
|
1108 |
" |
|
1109 |
self current at:#bracketColor put:Color red. |
|
1110 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1111 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1112 |
self current bracketColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1113 |
self current bracketEmphasis |
3361 | 1114 |
" |
1115 |
||
1116 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1117 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1118 |
! |
|
1119 |
||
1120 |
bracketEmphasis |
|
1121 |
"the emphasis used for brackets; |
|
1122 |
If syntaxColoring is turned on." |
|
1123 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1124 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 1125 |
|
1126 |
" |
|
1127 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1128 |
self current bracketEmphasis |
3361 | 1129 |
" |
1130 |
||
1131 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1132 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1133 |
! |
|
1134 |
||
4320 | 1135 |
classVariableIdentifierColor |
1136 |
"the color used for classVar/classInstVar identifiers |
|
1137 |
If syntaxColoring is turned on." |
|
1138 |
||
1139 |
^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1140 |
||
1141 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1142 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1143 |
! |
|
1144 |
||
1145 |
classVariableIdentifierEmphasis |
|
1146 |
"the color used for classVar/classInstVar identifiers |
|
1147 |
If syntaxColoring is turned on." |
|
1148 |
||
1149 |
^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1150 |
||
1151 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1152 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1153 |
! |
|
1154 |
||
3360 | 1155 |
commentColor |
1156 |
"the color used for comments; |
|
1157 |
If syntaxColoring is turned on." |
|
1158 |
||
4628 | 1159 |
^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor] |
3360 | 1160 |
|
1161 |
"Created: / 31.3.1998 / 15:10:23 / cg" |
|
3832 | 1162 |
"Modified: / 11.9.1998 / 19:24:04 / cg" |
3360 | 1163 |
! |
1164 |
||
1165 |
commentEmphasis |
|
1166 |
"the emphasis used for comments; |
|
1167 |
If syntaxColoring is turned on." |
|
1168 |
||
4628 | 1169 |
^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis] |
3360 | 1170 |
|
1171 |
"Created: / 31.3.1998 / 15:09:59 / cg" |
|
1172 |
"Modified: / 1.4.1998 / 13:25:53 / cg" |
|
1173 |
! |
|
1174 |
||
5258 | 1175 |
commentEmphasisAndColor |
1176 |
^ Text addEmphasis:(self commentEmphasis) to:(#color->self commentColor). |
|
1177 |
||
1178 |
||
1179 |
! |
|
1180 |
||
3360 | 1181 |
constantColor |
1182 |
"the color used for constants; |
|
1183 |
If syntaxColoring is turned on." |
|
1184 |
||
4628 | 1185 |
^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor] |
3360 | 1186 |
|
1187 |
"Created: / 31.3.1998 / 18:13:15 / cg" |
|
1188 |
"Modified: / 1.4.1998 / 13:20:37 / cg" |
|
1189 |
! |
|
1190 |
||
1191 |
constantEmphasis |
|
1192 |
"the emphasis used for constants; |
|
1193 |
If syntaxColoring is turned on." |
|
1194 |
||
1195 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1196 |
||
1197 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
1198 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
1199 |
! |
|
1200 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1201 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1202 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1203 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1204 |
|
4628 | 1205 |
^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1206 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1207 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1208 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1209 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1210 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1211 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1212 |
|
4628 | 1213 |
^ self at:#defaultSyntaxEmphasis ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1214 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1215 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1216 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1217 |
doesNotUnderstand:aMessage |
4580 | 1218 |
|k def| |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1219 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1220 |
k := aMessage selector. |
6252 | 1221 |
aMessage numArgs == 0 ifTrue:[ |
1222 |
(self includesKey:k) ifTrue:[ |
|
1223 |
^ self at:k |
|
1224 |
]. |
|
1225 |
((def := self class default) includesKey:k) ifTrue:[ |
|
1226 |
^ def at:k |
|
1227 |
]. |
|
1228 |
^ self defaultValue |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1229 |
]. |
6252 | 1230 |
"/ ((aMessage numArgs == 1) |
1231 |
"/ and:[ (k endsWith:$:)]) |
|
1232 |
"/ ifTrue:[ |
|
1233 |
"/ k := (k copyWithoutLast:1) asSymbol. |
|
1234 |
"/ ((self includesKey:k) |
|
1235 |
"/ or:[ self class default includesKey:k ]) ifTrue:[ |
|
1236 |
"/ ^ self at:k put:(aMessage arg1) |
|
1237 |
"/ ]. |
|
1238 |
"/ ]. |
|
1239 |
||
7272 | 1240 |
aMessage numArgs == 1 ifTrue:[ |
7274 | 1241 |
('UserPreferences [info]: obsolete settings key: ' , aMessage selector , ' - ignored.') infoPrintCR. |
7272 | 1242 |
^ nil |
1243 |
]. |
|
6252 | 1244 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1245 |
^ super doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1246 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1247 |
|
4341 | 1248 |
errorColor |
1249 |
"the color used for illegal identifiers; |
|
1250 |
If syntaxColoring is turned on." |
|
1251 |
||
4628 | 1252 |
^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor] |
4341 | 1253 |
|
1254 |
! |
|
1255 |
||
4306 | 1256 |
fullSelectorCheck |
1257 |
"with fullSelector check, selectors are searched immediately for |
|
1258 |
being implemented in the system. This may not be useful on slow machines" |
|
1259 |
||
4628 | 1260 |
^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck] |
4306 | 1261 |
|
1262 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1263 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1264 |
! |
|
1265 |
||
4023 | 1266 |
globalClassIdentifierColor |
1267 |
"the color used for global identifiers which are known to be classes; |
|
1268 |
If syntaxColoring is turned on." |
|
1269 |
||
1270 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1271 |
||
1272 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1273 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1274 |
! |
|
1275 |
||
1276 |
globalClassIdentifierEmphasis |
|
1277 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
1278 |
If syntaxColoring is turned on." |
|
1279 |
||
1280 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1281 |
||
1282 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1283 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
1284 |
! |
|
1285 |
||
3360 | 1286 |
globalIdentifierColor |
1287 |
"the color used for global identifiers; |
|
1288 |
If syntaxColoring is turned on." |
|
1289 |
||
1290 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
1291 |
||
1292 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
1293 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1294 |
! |
|
1295 |
||
1296 |
globalIdentifierEmphasis |
|
1297 |
"the emphasis used for global variable identifiers; |
|
1298 |
If syntaxColoring is turned on." |
|
1299 |
||
1300 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1301 |
||
1302 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
1303 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1304 |
! |
|
1305 |
||
1306 |
hereColor |
|
1307 |
"the color used for the here pseudoVariable; |
|
1308 |
If syntaxColoring is turned on." |
|
1309 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1310 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 1311 |
|
1312 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
1313 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
1314 |
! |
|
1315 |
||
1316 |
hereEmphasis |
|
1317 |
"the emphasis used for the hre special variable; |
|
1318 |
If syntaxColoring is turned on." |
|
1319 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1320 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1321 |
|
1322 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
1323 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
1324 |
! |
|
1325 |
||
1326 |
identifierColor |
|
1327 |
"the color used for other identifiers; |
|
1328 |
If syntaxColoring is turned on." |
|
1329 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1330 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1331 |
|
3362 | 1332 |
" |
1333 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
1334 |
UserPreferences current at:#identifierColor put:Color black. |
|
1335 |
" |
|
1336 |
||
3360 | 1337 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 1338 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 1339 |
! |
1340 |
||
1341 |
identifierEmphasis |
|
1342 |
"the emphasis used for other identifiers; |
|
1343 |
If syntaxColoring is turned on." |
|
1344 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1345 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 1346 |
|
1347 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1348 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1349 |
! |
|
1350 |
||
3378 | 1351 |
instVarIdentifierColor |
3377 | 1352 |
"the color used for instance variable identifiers; |
1353 |
If syntaxColoring is turned on." |
|
1354 |
||
3378 | 1355 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 1356 |
|
1357 |
" |
|
3378 | 1358 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
1359 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
1360 |
UserPreferences current instVarIdentifierColor |
|
3377 | 1361 |
" |
1362 |
||
1363 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 1364 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 1365 |
! |
1366 |
||
3378 | 1367 |
instVarIdentifierEmphasis |
3377 | 1368 |
"the emphais used for instance variable identifiers; |
1369 |
If syntaxColoring is turned on." |
|
1370 |
||
3378 | 1371 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 1372 |
|
1373 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 1374 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 1375 |
! |
1376 |
||
3360 | 1377 |
localIdentifierColor |
1378 |
"the color used for local variable identifiers; |
|
1379 |
If syntaxColoring is turned on." |
|
1380 |
||
1381 |
^ self at:#localIdentifierColor ifAbsentPut:[self identifierColor] |
|
1382 |
||
3362 | 1383 |
" |
1384 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
1385 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
1386 |
" |
|
1387 |
||
3360 | 1388 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 1389 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 1390 |
! |
1391 |
||
1392 |
localIdentifierEmphasis |
|
1393 |
"the emphais used for local variable identifiers; |
|
1394 |
If syntaxColoring is turned on." |
|
1395 |
||
1396 |
^ self at:#localIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1397 |
||
1398 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
1399 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
1400 |
! |
|
1401 |
||
1402 |
methodSelectorColor |
|
1403 |
"the color used for a methods selector pattern; |
|
1404 |
If syntaxColoring is turned on." |
|
1405 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1406 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1407 |
|
1408 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
1409 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
1410 |
! |
|
1411 |
||
1412 |
methodSelectorEmphasis |
|
1413 |
"the emphasis used for a methods selector pattern; |
|
1414 |
If syntaxColoring is turned on." |
|
1415 |
||
4628 | 1416 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis] |
3360 | 1417 |
|
1418 |
"Created: / 31.3.1998 / 15:11:16 / cg" |
|
1419 |
"Modified: / 1.4.1998 / 13:24:20 / cg" |
|
1420 |
! |
|
1421 |
||
4076 | 1422 |
returnColor |
1423 |
"the color used for the return expression; |
|
1424 |
If syntaxColoring is turned on." |
|
1425 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1426 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 1427 |
|
1428 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
1429 |
! |
|
1430 |
||
1431 |
returnEmphasis |
|
1432 |
"the emphasis used for returns; |
|
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:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 1436 |
|
1437 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
1438 |
! |
|
1439 |
||
3360 | 1440 |
selectorColor |
1441 |
"the color used for message selectors; |
|
1442 |
If syntaxColoring is turned on." |
|
1443 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1444 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1445 |
|
1446 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
1447 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
1448 |
! |
|
1449 |
||
1450 |
selectorEmphasis |
|
1451 |
"the emphasis used for message selectors; |
|
1452 |
If syntaxColoring is turned on." |
|
1453 |
||
4628 | 1454 |
^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis] |
3360 | 1455 |
|
1456 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1457 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
|
1458 |
! |
|
1459 |
||
1460 |
selfColor |
|
1461 |
"the color used for the self pseudoVariable; |
|
1462 |
If syntaxColoring is turned on." |
|
1463 |
||
1464 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
1465 |
||
1466 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
1467 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
1468 |
! |
|
1469 |
||
1470 |
selfEmphasis |
|
1471 |
"the emphasis used for the self pseudoVariable; |
|
1472 |
If syntaxColoring is turned on." |
|
1473 |
||
1474 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1475 |
||
1476 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
1477 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
1478 |
! |
|
1479 |
||
1480 |
stringColor |
|
1481 |
"the color used for string constants; |
|
1482 |
If syntaxColoring is turned on." |
|
1483 |
||
1484 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
1485 |
||
1486 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
1487 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
1488 |
! |
|
1489 |
||
1490 |
stringEmphasis |
|
1491 |
"the emphasis used for string constants; |
|
1492 |
If syntaxColoring is turned on." |
|
1493 |
||
1494 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
1495 |
||
1496 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1497 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
1498 |
! |
|
1499 |
||
1500 |
superColor |
|
1501 |
"the color used for the super pseudoVariable; |
|
1502 |
If syntaxColoring is turned on." |
|
1503 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1504 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 1505 |
|
1506 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
1507 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
1508 |
! |
|
1509 |
||
1510 |
superEmphasis |
|
1511 |
"the emphasis used for the super pseudoVariable; |
|
1512 |
If syntaxColoring is turned on." |
|
1513 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1514 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1515 |
|
1516 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
1517 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
1518 |
! |
|
1519 |
||
1520 |
symbolColor |
|
1521 |
"the color used for symbol constants; |
|
1522 |
If syntaxColoring is turned on." |
|
1523 |
||
1524 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
1525 |
||
1526 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
1527 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
1528 |
! |
|
1529 |
||
1530 |
symbolEmphasis |
|
1531 |
"the emphasis used for symbol constants; |
|
1532 |
If syntaxColoring is turned on." |
|
1533 |
||
1534 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
1535 |
||
1536 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
1537 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 1538 |
! |
1539 |
||
1540 |
thisContextColor |
|
3360 | 1541 |
"the color used for the thisContext pseudoVariable; |
1542 |
If syntaxColoring is turned on." |
|
1543 |
||
3355 | 1544 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 1545 |
|
1546 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 1547 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 1548 |
! |
1549 |
||
1550 |
thisContextEmphasis |
|
3360 | 1551 |
"the emphasis used for the thisContext pseudoVariable; |
1552 |
If syntaxColoring is turned on." |
|
1553 |
||
3355 | 1554 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 1555 |
|
1556 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 1557 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 1558 |
! |
1559 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1560 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1561 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1562 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1563 |
|
4628 | 1564 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1565 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1566 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1567 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1568 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1569 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1570 |
|
4628 | 1571 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1572 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1573 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1574 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1575 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1576 |
|
3354 | 1577 |
unknownIdentifierColor |
3360 | 1578 |
"the color used for unknown identifiers; |
1579 |
If syntaxColoring is turned on." |
|
1580 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1581 |
^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor] |
3354 | 1582 |
|
3361 | 1583 |
" |
1584 |
self current at:#unknownIdentifierColor put:Color red. |
|
1585 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1586 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1587 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1588 |
self current unknownIdentifierEmphasis |
3361 | 1589 |
" |
1590 |
||
3354 | 1591 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 1592 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 1593 |
! |
1594 |
||
1595 |
unknownIdentifierEmphasis |
|
3360 | 1596 |
"the emphasis used for unknown identifiers; |
1597 |
If syntaxColoring is turned on." |
|
1598 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1599 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis] |
3354 | 1600 |
|
1601 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 1602 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
3347 | 1603 |
! ! |
1604 |
||
7549 | 1605 |
!UserPreferences methodsFor:'accessing-prefs-fileBrowser'! |
1606 |
||
1607 |
filenameEntryFieldVisibleHolder |
|
1608 |
"get the user preferences for show FileEntryField in FileBrowserV2" |
|
1609 |
||
1610 |
^ self at:#filenameEntryFieldVisibleHolder ifAbsentPut:true |
|
1611 |
||
1612 |
" |
|
1613 |
UserPreferences current filenameEntryFieldVisibleHolder |
|
1614 |
" |
|
1615 |
! |
|
1616 |
||
1617 |
filenameEntryFieldVisibleHolder:aBoolean |
|
1618 |
"set/clear the user preferences for show FileEntryField in FileBrowserV2" |
|
1619 |
||
1620 |
^ self at:#filenameEntryFieldVisibleHolder put:aBoolean |
|
1621 |
! |
|
1622 |
||
1623 |
openAlwaysInTextEditor |
|
1624 |
"get the user preferences for open every file in TextEditor |
|
1625 |
dont use e.g. HtmlEditor for *.html' in FileBrowserV2" |
|
1626 |
||
1627 |
^ self at:#openAlwaysInTextEditor ifAbsentPut:false |
|
1628 |
||
1629 |
" |
|
1630 |
UserPreferences current openAlwaysInTextEditor |
|
1631 |
" |
|
1632 |
! |
|
1633 |
||
1634 |
openAlwaysInTextEditor:aBoolean |
|
1635 |
"set/clear the user preferences for open every file in TextEditor |
|
1636 |
dont use e.g. HtmlEditor for *.html' in FileBrowserV2" |
|
1637 |
||
1638 |
^ self at:#openAlwaysInTextEditor put:aBoolean |
|
1639 |
! |
|
1640 |
||
1641 |
openMultipleApplicationsForType |
|
1642 |
"get the user preferences for open more applications for e.g. TextEditor |
|
1643 |
and not change the contents of already open TextEditor of FileBrowserV2" |
|
1644 |
||
1645 |
^ self at:#openMultipleApplicationsForType ifAbsentPut:false |
|
1646 |
||
1647 |
" |
|
1648 |
UserPreferences current openMultipleApplicationsForType |
|
1649 |
" |
|
1650 |
! |
|
1651 |
||
1652 |
openMultipleApplicationsForType:aBoolean |
|
1653 |
"set/clear the user preferences for open more applications for e.g. TextEditor |
|
1654 |
and not change the contents of already open TextEditor of FileBrowserV2" |
|
1655 |
||
1656 |
^ self at:#openMultipleApplicationsForType put:aBoolean |
|
1657 |
! |
|
1658 |
||
1659 |
showDirectoryTree |
|
1660 |
"get the user preferences for view directorie tree view in FileBrowserV2" |
|
1661 |
||
1662 |
^ self at:#showDirectoryTree ifAbsentPut:true |
|
1663 |
||
1664 |
" |
|
1665 |
UserPreferences current showDirectoryTree |
|
1666 |
" |
|
1667 |
! |
|
1668 |
||
1669 |
showDirectoryTree:aBoolean |
|
1670 |
"set/clear the user preferences for view directorie tree view in FileBrowserV2" |
|
1671 |
||
1672 |
^ self at:#showDirectoryTree put:aBoolean |
|
1673 |
! |
|
1674 |
||
1675 |
showHiddenFiles |
|
1676 |
"get the user preferences for showHiddenFiles in FileBrowserV2" |
|
1677 |
||
1678 |
^ self at:#showHiddenFiles ifAbsentPut:true |
|
1679 |
||
1680 |
" |
|
1681 |
UserPreferences current showHiddenFiles |
|
1682 |
" |
|
1683 |
! |
|
1684 |
||
1685 |
showHiddenFiles:aBoolean |
|
1686 |
"set/clear the user preferences for showHiddenFiles in FileBrowserV2" |
|
1687 |
||
1688 |
||
1689 |
^ self at:#showHiddenFiles put:aBoolean |
|
1690 |
! |
|
1691 |
||
1692 |
sortCaseless |
|
1693 |
"get the user preferences for sort caseless in FileBrowserV2" |
|
1694 |
||
1695 |
^ self at:#sortCaseless ifAbsentPut:true |
|
1696 |
||
1697 |
" |
|
1698 |
UserPreferences current sortCaseless |
|
1699 |
" |
|
1700 |
! |
|
1701 |
||
1702 |
sortCaseless:aBoolean |
|
1703 |
"set/clear the user preferences for sort caseless in FileBrowserV2" |
|
1704 |
||
1705 |
^ self at:#sortCaseless put:aBoolean |
|
1706 |
! |
|
1707 |
||
1708 |
sortDirectoriesBeforeFiles |
|
1709 |
"get the user preferences for sort directories always before files in FileBrowserV2" |
|
1710 |
||
1711 |
^ self at:#sortDirectoriesBeforeFiles ifAbsentPut:true |
|
1712 |
||
1713 |
" |
|
1714 |
UserPreferences current sortDirectoriesBeforeFiles |
|
1715 |
" |
|
1716 |
! |
|
1717 |
||
1718 |
sortDirectoriesBeforeFiles:aBoolean |
|
1719 |
"set/clear the user preferences for sort directories always before files in FileBrowserV2" |
|
1720 |
||
1721 |
^ self at:#sortDirectoriesBeforeFiles put:aBoolean |
|
1722 |
! |
|
1723 |
||
1724 |
toolBarVisibleHolder |
|
1725 |
"get the user preferences for show ToolBar in FileBrowserV2" |
|
1726 |
||
1727 |
^ self at:#toolBarVisibleHolder ifAbsentPut:true |
|
1728 |
||
1729 |
" |
|
1730 |
UserPreferences current toolBarVisibleHolder |
|
1731 |
" |
|
1732 |
! |
|
1733 |
||
1734 |
toolBarVisibleHolder:aBoolean |
|
1735 |
"set/clear the user preferences for show ToolBar in FileBrowserV2" |
|
1736 |
||
1737 |
^ self at:#toolBarVisibleHolder put:aBoolean |
|
1738 |
! |
|
1739 |
||
1740 |
viewDescription |
|
1741 |
"get the user preferences for show file description row in DirectoryContentsBrowser |
|
1742 |
FileBrowserV2" |
|
1743 |
||
1744 |
^ self at:#viewDescription ifAbsentPut:true |
|
1745 |
||
1746 |
" |
|
1747 |
UserPreferences current viewDescription |
|
1748 |
" |
|
1749 |
! |
|
1750 |
||
1751 |
viewDescription:aBoolean |
|
1752 |
"set/clear the user preferences for show file description row in |
|
1753 |
DirectoryContentsBrowser FileBrowserV2" |
|
1754 |
||
1755 |
||
1756 |
^ self at:#viewDescription put:aBoolean |
|
1757 |
! |
|
1758 |
||
1759 |
viewDetails |
|
1760 |
"get the user preferences for view more file properties in rows in DirectoryContentsBrowser |
|
1761 |
of FileBrowserV2" |
|
1762 |
||
1763 |
^ self at:#viewDetails ifAbsentPut:false |
|
1764 |
||
1765 |
" |
|
1766 |
UserPreferences current viewDetails |
|
1767 |
" |
|
1768 |
! |
|
1769 |
||
1770 |
viewDetails:aBoolean |
|
1771 |
"set/clear the user preferences for view more file properties in rows in DirectoryContentsBrowser |
|
1772 |
of FileBrowserV2" |
|
1773 |
||
1774 |
||
1775 |
^ self at:#viewDetails put:aBoolean |
|
1776 |
! |
|
1777 |
||
1778 |
viewDirectoryDescription |
|
1779 |
"get the user preferences for auto open a TextView for Readme .. etc files |
|
1780 |
on change directory" |
|
1781 |
||
1782 |
^ self at:#viewDirectoryDescription ifAbsentPut:false |
|
1783 |
||
1784 |
" |
|
1785 |
UserPreferences current viewDirectoryDescription |
|
1786 |
" |
|
1787 |
! |
|
1788 |
||
1789 |
viewDirectoryDescription:aBoolean |
|
1790 |
"set/clear the user preferences for auto open a TextView for Readme .. etc files |
|
1791 |
on change directory" |
|
1792 |
||
1793 |
||
1794 |
^ self at:#viewDirectoryDescription put:aBoolean |
|
1795 |
! |
|
1796 |
||
1797 |
viewDirsInContentsBrowser |
|
1798 |
"get the user preferences for view directories in contents browser in FileBrowserV2" |
|
1799 |
||
1800 |
^ self at:#viewDirsInContentsBrowser ifAbsentPut:false |
|
1801 |
||
1802 |
" |
|
1803 |
UserPreferences current viewDirsInContentsBrowser |
|
1804 |
" |
|
1805 |
! |
|
1806 |
||
1807 |
viewDirsInContentsBrowser:aBoolean |
|
1808 |
"set/clear the user preferences for view directories in contents browser in FileBrowserV2" |
|
1809 |
||
1810 |
^ self at:#viewDirsInContentsBrowser put:aBoolean |
|
1811 |
! |
|
1812 |
||
1813 |
viewFilesInDirectoryTree |
|
1814 |
"get the user preferences for view files in tree view (not only directories) of FileBrowserV2 |
|
1815 |
" |
|
1816 |
||
1817 |
^ self at:#viewFilesInDirectoryTree ifAbsentPut:false |
|
1818 |
||
1819 |
" |
|
1820 |
UserPreferences current viewFilesInDirectoryTree |
|
1821 |
" |
|
1822 |
! |
|
1823 |
||
1824 |
viewFilesInDirectoryTree:aBoolean |
|
1825 |
"set/clear the user preferences for view files in tree (not only directories) view of FileBrowserV2" |
|
1826 |
||
1827 |
^ self at:#viewFilesInDirectoryTree put:aBoolean |
|
1828 |
! |
|
1829 |
||
1830 |
viewGroup |
|
1831 |
"get the user preferences for show group information row in |
|
1832 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1833 |
||
1834 |
^ self at:#viewGroup ifAbsentPut:false |
|
1835 |
||
1836 |
" |
|
1837 |
UserPreferences current viewGroup |
|
1838 |
" |
|
1839 |
! |
|
1840 |
||
1841 |
viewGroup:aBoolean |
|
1842 |
"set/clear the user preferences for show group information row in |
|
1843 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1844 |
||
1845 |
||
1846 |
^ self at:#viewGroup put:aBoolean |
|
1847 |
! |
|
1848 |
||
1849 |
viewOwner |
|
1850 |
"get the user preferences for show owner information row in |
|
1851 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1852 |
||
1853 |
^ self at:#viewOwner ifAbsentPut:false |
|
1854 |
||
1855 |
" |
|
1856 |
UserPreferences current viewOwner |
|
1857 |
" |
|
1858 |
! |
|
1859 |
||
1860 |
viewOwner:aBoolean |
|
1861 |
"set/clear the user preferences for show owner information row in |
|
1862 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1863 |
||
1864 |
||
1865 |
^ self at:#viewOwner put:aBoolean |
|
1866 |
! |
|
1867 |
||
1868 |
viewPermissions |
|
1869 |
"get the user preferences for show permissions information row in |
|
1870 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1871 |
||
1872 |
^ self at:#viewPermissions ifAbsentPut:false |
|
1873 |
||
1874 |
" |
|
1875 |
UserPreferences current viewPermissions |
|
1876 |
" |
|
1877 |
! |
|
1878 |
||
1879 |
viewPermissions:aBoolean |
|
1880 |
"set/clear the user permissions for show owner information row in |
|
1881 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1882 |
||
1883 |
||
1884 |
^ self at:#viewPermissions put:aBoolean |
|
1885 |
! |
|
1886 |
||
1887 |
viewPreview |
|
1888 |
"get the user preferences for show image previev row in |
|
1889 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1890 |
||
1891 |
^ self at:#viewPreview ifAbsentPut:false |
|
1892 |
||
1893 |
" |
|
1894 |
UserPreferences current viewPreview |
|
1895 |
" |
|
1896 |
! |
|
1897 |
||
1898 |
viewPreview:aBoolean |
|
1899 |
"set/clear the user permissions for show image previev row in |
|
1900 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1901 |
||
1902 |
||
1903 |
^ self at:#viewPreview put:aBoolean |
|
1904 |
! |
|
1905 |
||
1906 |
viewSize |
|
1907 |
"get the user preferences for show size information row in |
|
1908 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1909 |
||
1910 |
^ self at:#viewSize ifAbsentPut:false |
|
1911 |
||
1912 |
" |
|
1913 |
UserPreferences current viewSize |
|
1914 |
" |
|
1915 |
! |
|
1916 |
||
1917 |
viewSize:aBoolean |
|
1918 |
"set/clear the user permissions for show size information row in |
|
1919 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1920 |
||
1921 |
||
1922 |
^ self at:#viewSize put:aBoolean |
|
1923 |
! |
|
1924 |
||
1925 |
viewTime |
|
1926 |
"get the user preferences for show time information row in |
|
1927 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1928 |
||
1929 |
^ self at:#viewTime ifAbsentPut:false |
|
1930 |
||
1931 |
" |
|
1932 |
UserPreferences current viewSize |
|
1933 |
" |
|
1934 |
! |
|
1935 |
||
1936 |
viewTime:aBoolean |
|
1937 |
"set/clear the user permissions for show time information row in |
|
1938 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1939 |
||
1940 |
||
1941 |
^ self at:#viewTime put:aBoolean |
|
1942 |
! |
|
1943 |
||
1944 |
viewType |
|
1945 |
"get the user preferences for show txpe (suffix) information row in |
|
1946 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1947 |
||
1948 |
^ self at:#viewType ifAbsentPut:false |
|
1949 |
||
1950 |
" |
|
1951 |
UserPreferences current viewType |
|
1952 |
" |
|
1953 |
! |
|
1954 |
||
1955 |
viewType:aBoolean |
|
1956 |
"set/clear the user permissions for show type (suffix) information row in |
|
1957 |
DirectoryContentsBrowser of FileBrowserV2" |
|
1958 |
||
1959 |
||
1960 |
^ self at:#viewType put:aBoolean |
|
1961 |
! ! |
|
1962 |
||
1963 |
!UserPreferences methodsFor:'accessing-prefs-times'! |
|
1964 |
||
1965 |
timeToAutoExpandItemsWhenDraggingOver |
|
1966 |
"in a hierarchical tree view" |
|
1967 |
||
1968 |
^ 700 "/ millis |
|
1969 |
! |
|
1970 |
||
1971 |
twoDigitDateHandler |
|
1972 |
"return a block which converts a two-digit date. |
|
1973 |
Possible algorithms: |
|
1974 |
- identity: treat as year 00..99 |
|
1975 |
- add 1900: treat as 1900..1999 |
|
1976 |
- around: treat as 1950..1999 if value is 50..99; 2000..2049 otherwise. |
|
1977 |
||
1978 |
TODO: make this configurable, keep in dictionary and add to settings. |
|
1979 |
" |
|
1980 |
||
1981 |
^ [:x | (x >= 50) ifTrue:[1900+x] ifFalse:[2000+x]]. |
|
1982 |
"/ ^ [:x | 1900+x]. |
|
1983 |
"/ ^ [:x | x]. |
|
1984 |
! ! |
|
1985 |
||
1986 |
!UserPreferences methodsFor:'accessing-prefs-tools'! |
|
1987 |
||
1988 |
allowSendMailFromDebugger |
|
1989 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
1990 |
mail account " |
|
1991 |
||
1992 |
^ self at:#allowSendMailFromDebugger ifAbsent:true |
|
1993 |
||
1994 |
" |
|
1995 |
UserPreferences current allowSendMailFromDebugger |
|
1996 |
" |
|
1997 |
||
1998 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
1999 |
! |
|
2000 |
||
2001 |
allowSendMailFromDebugger:aBoolean |
|
2002 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
2003 |
mail account " |
|
2004 |
||
2005 |
^ self at:#allowSendMailFromDebugger put:aBoolean |
|
2006 |
||
2007 |
" |
|
2008 |
UserPreferences current allowSendMailFromDebugger:true |
|
2009 |
UserPreferences current allowSendMailFromDebugger:false |
|
2010 |
" |
|
2011 |
! |
|
2012 |
||
2013 |
autoDefineWorkspaceVariables |
|
2014 |
"return the flag which controls automatic definition of unknown variables |
|
2015 |
as workspace variables (in doIts)" |
|
2016 |
||
2017 |
^ self at:#autoDefineWorkspaceVariables ifAbsentPut:false |
|
2018 |
||
2019 |
" |
|
2020 |
UserPreferences current autoDefineWorkspaceVariables |
|
2021 |
" |
|
2022 |
! |
|
2023 |
||
2024 |
autoDefineWorkspaceVariables:aBoolean |
|
2025 |
"turn on/off automatic definition of unknown variables |
|
2026 |
as workspace variables (in doIts)" |
|
2027 |
||
2028 |
^ self at:#autoDefineWorkspaceVariables put:aBoolean |
|
2029 |
||
2030 |
" |
|
2031 |
UserPreferences current autoDefineWorkspaceVariables:true |
|
2032 |
UserPreferences current autoDefineWorkspaceVariables:false |
|
2033 |
" |
|
2034 |
! |
|
2035 |
||
2036 |
functionKeySequences |
|
2037 |
"return the collection of function-key macros. |
|
2038 |
Thats a dictionary, which assigns code to F-keys" |
|
2039 |
||
2040 |
^ self at:#functionKeySequences ifAbsentPut:[Dictionary new] |
|
2041 |
||
2042 |
" |
|
2043 |
UserPreferences current functionKeySequences |
|
2044 |
" |
|
2045 |
||
2046 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2047 |
! |
|
2048 |
||
2049 |
showClockInLauncher |
|
2050 |
"return the flag which controls if a clock is shown in the launcher" |
|
2051 |
||
2052 |
^ self at:#showClockInLauncher ifAbsentPut:false |
|
2053 |
||
2054 |
" |
|
2055 |
UserPreferences current showClockInLauncher |
|
2056 |
" |
|
2057 |
||
2058 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2059 |
! |
|
2060 |
||
2061 |
showClockInLauncher:aBooleanOrNil |
|
2062 |
"set/clear the flag which controls if a clock is shown in the launcher" |
|
2063 |
||
2064 |
^ self at:#showClockInLauncher put:aBooleanOrNil |
|
2065 |
||
2066 |
" |
|
2067 |
UserPreferences current showClockInLauncher:false. |
|
2068 |
NewLauncher open. |
|
2069 |
||
2070 |
UserPreferences current showClockInLauncher:true. |
|
2071 |
NewLauncher open. |
|
2072 |
" |
|
2073 |
||
2074 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2075 |
! ! |
|
2076 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2077 |
!UserPreferences methodsFor:'default settings'! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2078 |
|
6169 | 2079 |
listOfPredefinedSyntaxColoringSchemes |
6171 | 2080 |
"return a list of pre-defined syntax highlightning styles |
2081 |
(as shown in the Launchers 'source and debugger settings' dialog." |
|
2082 |
||
2083 |
^ #( |
|
2084 |
(#resetSyntaxColors 'default') |
|
2085 |
(#resetSyntaxColorsGreenComments 'green comments') |
|
2086 |
(#resetSyntaxColorsBlueSelectorsGreenComments 'blue selectors; green comments [dolphin style]') |
|
2087 |
(#resetSyntaxColorsBlueSelectorsGreyComments 'blue selectors; grey comments') |
|
2088 |
(#resetSyntaxColorsAllBlackExceptBadIDs 'no colors, but highlight errors') |
|
2089 |
) |
|
6169 | 2090 |
! |
2091 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2092 |
resetSyntaxColors |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2093 |
"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
|
2094 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2095 |
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
|
2096 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2097 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2098 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2099 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2100 |
resetSyntaxColorsAllBlackExceptBadIDs |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2101 |
"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
|
2102 |
except for bad identifiers, which are underwaved." |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2103 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2104 |
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
|
2105 |
self at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
4344 | 2106 |
self at:#errorColor put:Color black. |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2107 |
self at:#commentColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2108 |
self at:#constantColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2109 |
self at:#methodSelectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2110 |
self at:#selectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2111 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2112 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2113 |
|
6171 | 2114 |
resetSyntaxColorsBlueSelectorsGreenComments |
2115 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2116 |
(with blue selectors and green comments)" |
|
2117 |
||
2118 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2119 |
self at:#commentColor put:(Color green darkened). |
|
2120 |
self at:#commentEmphasis put:#italic. |
|
2121 |
self at:#selectorColor put:(Color blue). |
|
2122 |
self at:#selectorEmphasis put:#normal. |
|
2123 |
self at:#methodSelectorColor put:(Color blue). |
|
2124 |
self at:#methodSelectorEmphasis put:#bold. |
|
2125 |
! |
|
2126 |
||
2127 |
resetSyntaxColorsBlueSelectorsGreyComments |
|
6169 | 2128 |
"resets the colors in the CurrentPreferences to alternative default values |
2129 |
(with blue selectors and grey comments)" |
|
2130 |
||
6171 | 2131 |
self resetSyntaxColorsBlueSelectorsGreenComments. |
2132 |
self at:#commentColor put:(Color gray). |
|
6169 | 2133 |
! |
2134 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2135 |
resetSyntaxColorsGreenComments |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2136 |
"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
|
2137 |
(with green comments)" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2138 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2139 |
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
|
2140 |
self at:#commentColor put:(Color green darkened). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2141 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2142 |
! ! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2143 |
|
7266 | 2144 |
!UserPreferences methodsFor:'default values'! |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2145 |
|
4583 | 2146 |
defaultValue |
2147 |
"the defaultValue for non-existing keys" |
|
2148 |
||
2149 |
^ false |
|
2150 |
! |
|
2151 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2152 |
errorKeyNotFound:aKey |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2153 |
"for any non-existing key, false is returned" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2154 |
|
4583 | 2155 |
^ self defaultValue |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2156 |
! ! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2157 |
|
6937 | 2158 |
!UserPreferences methodsFor:'obsolete'! |
2159 |
||
2160 |
useNewSettinsApplication |
|
7030 | 2161 |
"obsolete - will be removed in next release" |
6937 | 2162 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
2163 |
self obsoleteMethodWarning. |
7029 | 2164 |
^ self useNewSettingsApplication |
6937 | 2165 |
! |
2166 |
||
2167 |
useNewSettinsApplication:aBoolean |
|
7030 | 2168 |
"obsolete - will be removed in next release" |
6937 | 2169 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
2170 |
self obsoleteMethodWarning. |
7029 | 2171 |
self useNewSettingsApplication:aBoolean. |
6937 | 2172 |
! ! |
2173 |
||
7028 | 2174 |
!UserPreferences methodsFor:'saving'! |
2175 |
||
2176 |
saveIn:fileName |
|
2177 |
self class saveSettings:self in:fileName |
|
2178 |
! ! |
|
2179 |
||
3347 | 2180 |
!UserPreferences class methodsFor:'documentation'! |
2181 |
||
2182 |
version |
|
7614 | 2183 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.128 2003-09-18 18:45:00 cg Exp $' |
3347 | 2184 |
! ! |