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