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