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