author | Claus Gittinger <cg@exept.de> |
Thu, 28 Aug 2008 20:06:32 +0200 | |
changeset 11143 | 3712ab6b344b |
parent 11064 | 3d81c222939a |
child 11213 | 8457d57d9b76 |
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 |
|
543 |
"todO: migrate from ClassVar in Number; |
|
544 |
use this for new applications" |
|
545 |
||
546 |
^ $. |
|
547 |
! |
|
548 |
||
549 |
thousandsSeparatorCharacter |
|
550 |
"todO: migrate from ClassVar elsewhere; |
|
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 |
|
5071 | 901 |
beepEnabled |
902 |
"return the flag which controls the beeper" |
|
903 |
||
904 |
^ self at:#beepEnabled ifAbsentPut:true |
|
905 |
||
906 |
" |
|
907 |
UserPreferences current beepEnabled |
|
908 |
" |
|
909 |
||
910 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
911 |
"Created: / 3.12.1999 / 17:09:49 / ps" |
|
912 |
! |
|
913 |
||
914 |
beepEnabled:aBoolean |
|
915 |
"set/clear the flag which controls the beeper" |
|
916 |
||
917 |
^ self at:#beepEnabled put:aBoolean |
|
918 |
||
919 |
" |
|
920 |
UserPreferences current beepEnabled:false |
|
921 |
" |
|
922 |
||
923 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
924 |
"Created: / 3.12.1999 / 17:10:27 / ps" |
|
925 |
! |
|
926 |
||
8676 | 927 |
beepForErrorDialog |
928 |
"return the flag which controls beeping for error dialogs" |
|
929 |
||
9302 | 930 |
^ self at:#beepForErrorDialog ifAbsent:true |
8676 | 931 |
|
932 |
" |
|
933 |
UserPreferences current beepForErrorDialog |
|
934 |
" |
|
935 |
! |
|
936 |
||
937 |
beepForErrorDialog:aBoolean |
|
938 |
"set/clear the flag which controls beeping for error dialogs" |
|
939 |
||
940 |
^ self at:#beepForErrorDialog put:aBoolean |
|
941 |
||
942 |
" |
|
943 |
UserPreferences current beepForErrorDialog:true |
|
944 |
" |
|
945 |
! |
|
946 |
||
947 |
beepForInfoDialog |
|
948 |
"return the flag which controls beeping for info dialogs" |
|
949 |
||
9302 | 950 |
^ self at:#beepForInfoDialog ifAbsent:false |
8676 | 951 |
|
952 |
" |
|
953 |
UserPreferences current beepForInfoDialog |
|
954 |
" |
|
955 |
! |
|
956 |
||
957 |
beepForInfoDialog:aBoolean |
|
958 |
"set/clear the flag which controls beeping for info dialogs" |
|
959 |
||
960 |
^ self at:#beepForInfoDialog put:aBoolean |
|
961 |
||
962 |
" |
|
963 |
UserPreferences current beepForInfoDialog:true |
|
964 |
" |
|
965 |
! |
|
966 |
||
967 |
beepForWarningDialog |
|
968 |
"return the flag which controls beeping for warning dialogs" |
|
969 |
||
9302 | 970 |
^ self at:#beepForWarningDialog ifAbsent:true |
8676 | 971 |
|
972 |
" |
|
973 |
UserPreferences current beepForWarningDialog |
|
974 |
" |
|
975 |
! |
|
976 |
||
977 |
beepForWarningDialog:aBoolean |
|
978 |
"set/clear the flag which controls beeping for warning dialogs" |
|
979 |
||
980 |
^ self at:#beepForWarningDialog put:aBoolean |
|
981 |
||
982 |
" |
|
983 |
UserPreferences current beepForWarningDialog:true |
|
984 |
" |
|
985 |
! |
|
986 |
||
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
987 |
expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
988 |
"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
|
989 |
more lines. Default is not FALSE !!" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
990 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
991 |
^ self at:#expandSelectionOnMouseMoveWithButtonPressed ifAbsent:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
992 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
993 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
994 |
UserPreferences current expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
995 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
996 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
997 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
998 |
expandSelectionOnMouseMoveWithButtonPressed:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
999 |
"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
|
1000 |
more lines. Default is not FALSE !!" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1001 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1002 |
^ self at:#expandSelectionOnMouseMoveWithButtonPressed put:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1003 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1004 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1005 |
UserPreferences current expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1006 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1007 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1008 |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1009 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1010 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1011 |
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
|
1012 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1013 |
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
|
1014 |
|
9913
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
1015 |
^ self at:#focusFollowsMouse ifAbsent:[ Screen current platformName ~= 'WIN32' ] |
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1016 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1017 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1018 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1019 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1020 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1021 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1022 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1023 |
focusFollowsMouse:aBooleanOrNil |
4121 | 1024 |
"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
|
1025 |
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
|
1026 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1027 |
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
|
1028 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1029 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1030 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1031 |
" |
4121 | 1032 |
UserPreferences current focusFollowsMouse:true |
1033 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1034 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1035 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1036 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1037 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
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 |
|
8759 | 1040 |
motionDistanceToStartDrag |
1041 |
"the motion distance (in pixel) to start drag (as opposed to adding to the selection)" |
|
1042 |
||
1043 |
^ "DragMotionDistance ?" 10 |
|
1044 |
! |
|
1045 |
||
5808 | 1046 |
opaqueTableColumnResizing |
1047 |
"return the flag which controls if table column resizing should be done |
|
1048 |
animated (opaque)" |
|
1049 |
||
9302 | 1050 |
^ self at:#opaqueTableColumnResizing ifAbsent:false |
5808 | 1051 |
|
1052 |
" |
|
1053 |
UserPreferences current opaqueTableColumnResizing |
|
1054 |
" |
|
1055 |
! |
|
1056 |
||
1057 |
opaqueTableColumnResizing:aBoolean |
|
1058 |
"change the flag which controls if table column resizing should be done |
|
1059 |
animated (opaque)" |
|
1060 |
||
1061 |
^ self at:#opaqueTableColumnResizing put:aBoolean |
|
1062 |
||
1063 |
" |
|
1064 |
UserPreferences current opaqueTableColumnResizing:true |
|
1065 |
" |
|
1066 |
||
1067 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
1068 |
! |
|
1069 |
||
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1070 |
opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1071 |
"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
|
1072 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1073 |
|
9302 | 1074 |
^ self at:#opaqueVariablePanelResizing ifAbsent:false |
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1075 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1076 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1077 |
UserPreferences current opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1078 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1079 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1080 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1081 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1082 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1083 |
opaqueVariablePanelResizing:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1084 |
"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
|
1085 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1086 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1087 |
^ self at:#opaqueVariablePanelResizing put:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1088 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1089 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1090 |
UserPreferences current opaqueVariablePanelResizing:true |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1091 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1092 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1093 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1094 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1095 |
|
6525 | 1096 |
searchDialogIsModal |
1097 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
1098 |
||
1099 |
^ self at:#searchDialogIsModal ifAbsent:true |
|
1100 |
||
1101 |
" |
|
1102 |
UserPreferences current searchDialogIsModal |
|
1103 |
" |
|
1104 |
! |
|
1105 |
||
1106 |
searchDialogIsModal:aBooleanOrNil |
|
1107 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
1108 |
||
1109 |
^ self at:#searchDialogIsModal put:aBooleanOrNil |
|
1110 |
||
1111 |
" |
|
1112 |
UserPreferences current searchDialogIsModal:true |
|
1113 |
UserPreferences current searchDialogIsModal:false |
|
1114 |
UserPreferences current searchDialogIsModal |
|
1115 |
" |
|
1116 |
! |
|
1117 |
||
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1118 |
startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1119 |
"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
|
1120 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1121 |
^ self at:#startTextDragWithControl ifAbsent:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1122 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1123 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1124 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1125 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1126 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1127 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1128 |
startTextDragWithControl:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1129 |
"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
|
1130 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1131 |
^ self at:#startTextDragWithControl put:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1132 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1133 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1134 |
UserPreferences current startTextDragWithControl:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1135 |
UserPreferences current startTextDragWithControl:false |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1136 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1137 |
" |
7549 | 1138 |
! ! |
1139 |
||
1140 |
!UserPreferences methodsFor:'accessing-prefs-browser'! |
|
1141 |
||
1142 |
autoFormatting |
|
1143 |
"return the flag which controls automatic formatting of code (in some browsers) |
|
1144 |
Notice, the regular browser does not (yet) do automatic formating." |
|
1145 |
||
8233 | 1146 |
^ self at:#autoFormatting ifAbsent:false |
7549 | 1147 |
|
1148 |
" |
|
1149 |
UserPreferences current autoFormatting |
|
1150 |
" |
|
1151 |
||
1152 |
"Created: / 4.2.2000 / 20:08:08 / cg" |
|
1153 |
"Modified: / 5.2.2000 / 15:38:33 / cg" |
|
1154 |
! |
|
1155 |
||
1156 |
autoFormatting:aBoolean |
|
1157 |
"turn on/off automatic formatting of code (in some browsers); |
|
1158 |
Notice, the regular browser does not (yet) do automatic formating." |
|
1159 |
||
1160 |
^ self at:#autoFormatting put:aBoolean |
|
1161 |
||
1162 |
" |
|
1163 |
UserPreferences current autoFormatting:true |
|
1164 |
UserPreferences current autoFormatting:false |
|
1165 |
" |
|
1166 |
||
1167 |
"Created: / 4.2.2000 / 20:08:26 / cg" |
|
1168 |
"Modified: / 5.2.2000 / 15:38:20 / cg" |
|
1169 |
! |
|
1170 |
||
1171 |
enforceCodeStyle |
|
1172 |
"return the flag which controls enforcing a certain code style (in some browsers)" |
|
1173 |
||
8233 | 1174 |
^ self at:#enforceCodeStyle ifAbsent:false |
7549 | 1175 |
|
1176 |
" |
|
1177 |
UserPreferences current enforceCodeStyle |
|
10478 | 1178 |
UserPreferences current enforceCodeStyle:true |
1179 |
UserPreferences current enforceCodeStyle:false |
|
7549 | 1180 |
" |
10478 | 1181 |
|
1182 |
"Modified: / 27-03-2007 / 21:51:42 / cg" |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1183 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1184 |
|
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1185 |
generateComments |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1186 |
"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
|
1187 |
|
8233 | 1188 |
^ self at:#generateComments ifAbsent:true. |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1189 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1190 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1191 |
UserPreferences current generateComments |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1192 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1193 |
! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1194 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1195 |
generateCommentsForGetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1196 |
"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
|
1197 |
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
|
1198 |
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
|
1199 |
|
8233 | 1200 |
^ self generateComments and:[self at:#generateCommentsForGetters ifAbsent:false]. |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1201 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1202 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1203 |
UserPreferences current generateCommentsForGetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1204 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1205 |
! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1206 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1207 |
generateCommentsForSetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1208 |
"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
|
1209 |
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
|
1210 |
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
|
1211 |
|
8233 | 1212 |
^ self generateComments and:[self at:#generateCommentsForSetters ifAbsent:false]. |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1213 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1214 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1215 |
UserPreferences current generateCommentsForSetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1216 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1217 |
! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1218 |
|
9320 | 1219 |
showAcceptCancelBarInBrowser |
1220 |
"experimental." |
|
1221 |
||
1222 |
^ self at:#showAcceptCancelBarInBrowser ifAbsent:false |
|
1223 |
||
1224 |
" |
|
1225 |
UserPreferences current showAcceptCancelBarInBrowser |
|
1226 |
UserPreferences current showAcceptCancelBarInBrowser:true |
|
1227 |
UserPreferences current showAcceptCancelBarInBrowser:false |
|
1228 |
" |
|
1229 |
! |
|
1230 |
||
1231 |
showAcceptCancelBarInBrowser:aBoolean |
|
1232 |
"experimental." |
|
1233 |
||
1234 |
^ self at:#showAcceptCancelBarInBrowser put:aBoolean |
|
1235 |
||
1236 |
" |
|
1237 |
UserPreferences current showAcceptCancelBarInBrowser:true |
|
1238 |
UserPreferences current showAcceptCancelBarInBrowser:false |
|
1239 |
" |
|
1240 |
! |
|
1241 |
||
11064 | 1242 |
showSearchBarInBrowser |
1243 |
||
1244 |
^ self at:#showSearchBarInBrowser ifAbsent:true |
|
1245 |
||
1246 |
" |
|
1247 |
UserPreferences current showSearchBarInBrowser |
|
1248 |
UserPreferences current showSearchBarInBrowser:true |
|
1249 |
UserPreferences current showSearchBarInBrowser:false |
|
1250 |
" |
|
1251 |
! |
|
1252 |
||
1253 |
showSearchBarInBrowser:aBoolean |
|
1254 |
||
1255 |
^ self at:#showSearchBarInBrowser put:aBoolean |
|
1256 |
||
1257 |
" |
|
1258 |
UserPreferences current showSearchBarInBrowser:true |
|
1259 |
UserPreferences current showSearchBarInBrowser:false |
|
1260 |
" |
|
1261 |
! |
|
1262 |
||
3347 | 1263 |
syntaxColoring |
3360 | 1264 |
"return the flag which controls syntax coloring (in the browsers)" |
1265 |
||
8233 | 1266 |
^ self at:#syntaxColoring ifAbsent:true |
3347 | 1267 |
|
1268 |
" |
|
1269 |
UserPreferences current syntaxColoring |
|
1270 |
" |
|
1271 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
1272 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 1273 |
! |
1274 |
||
1275 |
syntaxColoring:aBoolean |
|
3360 | 1276 |
"turn on/off syntaxColoring (in the browsers)." |
1277 |
||
3347 | 1278 |
^ self at:#syntaxColoring put:aBoolean |
1279 |
||
3357 | 1280 |
" |
1281 |
UserPreferences current syntaxColoring:true |
|
1282 |
UserPreferences current syntaxColoring:false |
|
1283 |
" |
|
1284 |
||
3347 | 1285 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 1286 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
1287 |
! ! |
|
1288 |
||
7549 | 1289 |
!UserPreferences methodsFor:'accessing-prefs-browser-colors'! |
1290 |
||
1291 |
emphasisForChangedCode |
|
10177 | 1292 |
"the emphasis for changed code (in changeSet) in the browser" |
1293 |
||
7549 | 1294 |
|emp| |
1295 |
||
1296 |
emp := self at:#emphasisForChangedCode ifAbsent:nil. |
|
1297 |
emp isNil ifTrue:[ |
|
11143 | 1298 |
emp := #color->Color red darkened. |
1299 |
emp := Array with:#bold with:emp. |
|
1300 |
"/ emp := #color->Color blue darkened. |
|
1301 |
self at:#emphasisForChangedCode put:emp. |
|
7549 | 1302 |
]. |
1303 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1304 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1305 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1306 |
self allInstancesDo:[:pref |pref at:#emphasisForChangedCode put:nil]. |
9807 | 1307 |
UserPreferences current emphasisForChangedCode. |
1308 |
UserPreferences current at:#emphasisForChangedCode put:nil. |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1309 |
" |
9807 | 1310 |
|
10177 | 1311 |
"Modified: / 10-11-2006 / 17:27:23 / cg" |
1312 |
! |
|
1313 |
||
1314 |
emphasisForChangedCodeInSmallTeam |
|
1315 |
"the emphasis for changed code (in a remote changeSet) in the browser. |
|
1316 |
You need the SmallTeam extension to be present for this to work." |
|
1317 |
||
1318 |
|emp| |
|
1319 |
||
1320 |
emp := self at:#emphasisForChangedCodeInSmallTeam ifAbsent:nil. |
|
1321 |
emp isNil ifTrue:[ |
|
11143 | 1322 |
emp := #color->Color yellow darkened. |
1323 |
emp := Array with:#bold with:emp. |
|
1324 |
self at:#emphasisForChangedCodeInSmallTeam put:emp. |
|
10177 | 1325 |
]. |
1326 |
^ emp |
|
1327 |
||
1328 |
" |
|
1329 |
self allInstancesDo:[:pref |pref at:#emphasisForChangedCodeInSmallTeam put:nil]. |
|
1330 |
UserPreferences current emphasisForChangedCodeInSmallTeam. |
|
1331 |
UserPreferences current at:#emphasisForChangedCodeInSmallTeam put:nil. |
|
1332 |
" |
|
1333 |
||
1334 |
"Created: / 10-11-2006 / 16:31:00 / cg" |
|
6832 | 1335 |
! |
1336 |
||
7549 | 1337 |
emphasisForDifferentPackage |
1338 |
|emp| |
|
1339 |
||
1340 |
emp := self at:#emphasisForDifferentPackage ifAbsent:nil. |
|
1341 |
emp isNil ifTrue:[ |
|
11143 | 1342 |
emp := #color->Color green darkened. |
1343 |
"/ emp := Array with:#bold with:emp. |
|
1344 |
self at:#emphasisForDifferentPackage put:emp. |
|
7549 | 1345 |
]. |
1346 |
^ emp |
|
9276
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 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1349 |
self allInstancesDo:[:pref |pref at:#emphasisForDifferentPackage put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1350 |
" |
6832 | 1351 |
! |
1352 |
||
7549 | 1353 |
emphasisForModifiedBuffer |
1354 |
|emp| |
|
1355 |
||
1356 |
emp := self at:#emphasisForModifiedBuffer ifAbsent:nil. |
|
1357 |
emp isNil ifTrue:[ |
|
11143 | 1358 |
emp := #color->Color red darkened. |
1359 |
emp := Array with:#bold with:emp. |
|
1360 |
self at:#emphasisForModifiedBuffer put:emp. |
|
7549 | 1361 |
]. |
1362 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1363 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1364 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1365 |
self allInstancesDo:[:pref |pref at:#emphasisForModifiedBuffer put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1366 |
" |
6832 | 1367 |
! |
1368 |
||
7549 | 1369 |
emphasisForObsoleteCode |
1370 |
|emp| |
|
1371 |
||
1372 |
emp := self at:#emphasisForObsoleteCode ifAbsent:nil. |
|
1373 |
emp isNil ifTrue:[ |
|
11143 | 1374 |
emp := #color->Color red. |
1375 |
emp := Array with:#bold with:emp. |
|
1376 |
self at:#emphasisForObsoleteCode put:emp. |
|
7549 | 1377 |
]. |
1378 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1379 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1380 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1381 |
self allInstancesDo:[:pref |pref at:#emphasisForObsoleteCode put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1382 |
" |
6832 | 1383 |
! |
1384 |
||
7549 | 1385 |
emphasisForReadVariable |
1386 |
|emp| |
|
1387 |
||
1388 |
emp := self at:#emphasisForReadVariable ifAbsent:nil. |
|
1389 |
emp isNil ifTrue:[ |
|
11143 | 1390 |
emp := #underline. |
1391 |
self at:#emphasisForReadVariable put:emp. |
|
7549 | 1392 |
]. |
1393 |
^ emp |
|
6832 | 1394 |
! |
1395 |
||
7549 | 1396 |
emphasisForWrittenVariable |
1397 |
|emp| |
|
1398 |
||
1399 |
emp := self at:#emphasisForWrittenVariable ifAbsent:nil. |
|
1400 |
emp isNil ifTrue:[ |
|
11143 | 1401 |
emp := Array with:#underline with:#underlineColor->Color red. |
1402 |
self at:#emphasisForWrittenVariable put:emp. |
|
7549 | 1403 |
]. |
1404 |
^ emp |
|
6832 | 1405 |
! ! |
1406 |
||
7549 | 1407 |
!UserPreferences methodsFor:'accessing-prefs-browser-syntaxColoring'! |
3360 | 1408 |
|
1409 |
argumentIdentifierColor |
|
1410 |
"the color used for argument identifiers; |
|
1411 |
If syntaxColoring is turned on." |
|
1412 |
||
1413 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
1414 |
||
1415 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
1416 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
1417 |
! |
|
1418 |
||
1419 |
argumentIdentifierEmphasis |
|
1420 |
"the emphasis used for argument identifiers; |
|
1421 |
If syntaxColoring is turned on." |
|
1422 |
||
1423 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1424 |
||
1425 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
1426 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
1427 |
! |
|
1428 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1429 |
badIdentifierColor |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1430 |
"the color used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1431 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1432 |
|
4336 | 1433 |
^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1434 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1435 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1436 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1437 |
badIdentifierEmphasis |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1438 |
"the emphasis used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1439 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1440 |
|
4628 | 1441 |
^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1442 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
1443 |
"Modified: / 7.7.1999 / 00:30:00 / cg" |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1444 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1445 |
|
3360 | 1446 |
booleanConstantColor |
1447 |
"the color used for boolean constants; |
|
1448 |
If syntaxColoring is turned on." |
|
1449 |
||
1450 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
1451 |
||
1452 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
1453 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
1454 |
! |
|
1455 |
||
1456 |
booleanConstantEmphasis |
|
1457 |
"the emphasis used for boolean constants; |
|
1458 |
If syntaxColoring is turned on." |
|
1459 |
||
1460 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
1461 |
||
1462 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
1463 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
1464 |
! |
|
1465 |
||
3361 | 1466 |
bracketColor |
1467 |
"the color used for brackets; |
|
1468 |
If syntaxColoring is turned on." |
|
1469 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1470 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 1471 |
|
1472 |
" |
|
1473 |
self current at:#bracketColor put:Color red. |
|
1474 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1475 |
|
11143 | 1476 |
self current bracketColor |
1477 |
self current bracketEmphasis |
|
3361 | 1478 |
" |
1479 |
||
1480 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1481 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1482 |
! |
|
1483 |
||
1484 |
bracketEmphasis |
|
1485 |
"the emphasis used for brackets; |
|
1486 |
If syntaxColoring is turned on." |
|
1487 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1488 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 1489 |
|
1490 |
" |
|
1491 |
self current at:#bracketEmphasis put:#bold |
|
11143 | 1492 |
self current bracketEmphasis |
3361 | 1493 |
" |
1494 |
||
1495 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1496 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1497 |
! |
|
1498 |
||
4320 | 1499 |
classVariableIdentifierColor |
1500 |
"the color used for classVar/classInstVar identifiers |
|
1501 |
If syntaxColoring is turned on." |
|
1502 |
||
1503 |
^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1504 |
||
1505 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1506 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1507 |
! |
|
1508 |
||
1509 |
classVariableIdentifierEmphasis |
|
1510 |
"the color used for classVar/classInstVar identifiers |
|
1511 |
If syntaxColoring is turned on." |
|
1512 |
||
1513 |
^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1514 |
||
1515 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1516 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1517 |
! |
|
1518 |
||
3360 | 1519 |
commentColor |
1520 |
"the color used for comments; |
|
1521 |
If syntaxColoring is turned on." |
|
1522 |
||
4628 | 1523 |
^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor] |
3360 | 1524 |
|
1525 |
"Created: / 31.3.1998 / 15:10:23 / cg" |
|
3832 | 1526 |
"Modified: / 11.9.1998 / 19:24:04 / cg" |
3360 | 1527 |
! |
1528 |
||
1529 |
commentEmphasis |
|
1530 |
"the emphasis used for comments; |
|
1531 |
If syntaxColoring is turned on." |
|
1532 |
||
4628 | 1533 |
^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis] |
3360 | 1534 |
|
1535 |
"Created: / 31.3.1998 / 15:09:59 / cg" |
|
1536 |
"Modified: / 1.4.1998 / 13:25:53 / cg" |
|
1537 |
! |
|
1538 |
||
5258 | 1539 |
commentEmphasisAndColor |
1540 |
^ Text addEmphasis:(self commentEmphasis) to:(#color->self commentColor). |
|
1541 |
||
1542 |
||
1543 |
! |
|
1544 |
||
3360 | 1545 |
constantColor |
1546 |
"the color used for constants; |
|
1547 |
If syntaxColoring is turned on." |
|
1548 |
||
4628 | 1549 |
^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor] |
3360 | 1550 |
|
1551 |
"Created: / 31.3.1998 / 18:13:15 / cg" |
|
1552 |
"Modified: / 1.4.1998 / 13:20:37 / cg" |
|
1553 |
! |
|
1554 |
||
1555 |
constantEmphasis |
|
1556 |
"the emphasis used for constants; |
|
1557 |
If syntaxColoring is turned on." |
|
1558 |
||
1559 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1560 |
||
1561 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
1562 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
1563 |
! |
|
1564 |
||
9834 | 1565 |
controlFlowSelectorColor |
1566 |
"the color used for some selected controlFlow selectors (such as if, while etc.); |
|
1567 |
If syntaxColoring is turned on." |
|
1568 |
||
11143 | 1569 |
^ self at:#controlFlowSelectorColor |
1570 |
ifAbsentPut:[UserPreferences default |
|
1571 |
at:#controlFlowSelectorColor ifAbsent:[self selectorColor]] |
|
9834 | 1572 |
|
1573 |
"Created: / 08-09-2006 / 15:51:20 / cg" |
|
1574 |
! |
|
1575 |
||
1576 |
controlFlowSelectorEmphasis |
|
1577 |
"the emphasis used for some selected controlFlow selectors (such as if, while etc.); |
|
1578 |
If syntaxColoring is turned on." |
|
1579 |
||
11143 | 1580 |
^ self at:#controlFlowSelectorEmphasis |
1581 |
ifAbsentPut:[UserPreferences default |
|
1582 |
at:#controlFlowSelectorEmphasis ifAbsent:[self selectorEmphasis]] |
|
9834 | 1583 |
|
1584 |
"Created: / 08-09-2006 / 15:51:04 / cg" |
|
1585 |
! |
|
1586 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1587 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1588 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1589 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1590 |
|
4628 | 1591 |
^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1592 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1593 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1594 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1595 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1596 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1597 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1598 |
|
4628 | 1599 |
^ self at:#defaultSyntaxEmphasis ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1600 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1601 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1602 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1603 |
doesNotUnderstand:aMessage |
4580 | 1604 |
|k def| |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1605 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1606 |
k := aMessage selector. |
6252 | 1607 |
aMessage numArgs == 0 ifTrue:[ |
11143 | 1608 |
(self includesKey:k) ifTrue:[ |
1609 |
^ self at:k |
|
1610 |
]. |
|
1611 |
((def := self class default) includesKey:k) ifTrue:[ |
|
1612 |
^ def at:k |
|
1613 |
]. |
|
1614 |
^ self defaultValue |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1615 |
]. |
6252 | 1616 |
"/ ((aMessage numArgs == 1) |
1617 |
"/ and:[ (k endsWith:$:)]) |
|
1618 |
"/ ifTrue:[ |
|
1619 |
"/ k := (k copyWithoutLast:1) asSymbol. |
|
11143 | 1620 |
"/ ((self includesKey:k) |
6252 | 1621 |
"/ or:[ self class default includesKey:k ]) ifTrue:[ |
1622 |
"/ ^ self at:k put:(aMessage arg1) |
|
1623 |
"/ ]. |
|
1624 |
"/ ]. |
|
1625 |
||
7272 | 1626 |
aMessage numArgs == 1 ifTrue:[ |
11143 | 1627 |
('UserPreferences [info]: obsolete settings key: ' , aMessage selector , ' - ignored.') infoPrintCR. |
1628 |
^ nil |
|
7272 | 1629 |
]. |
6252 | 1630 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1631 |
^ super doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1632 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1633 |
|
8965
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1634 |
emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1635 |
^ self at:#emphasizeParenthesisLevel ifAbsent:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1636 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1637 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1638 |
UserPreferences current emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1639 |
UserPreferences current emphasizeParenthesisLevel:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1640 |
UserPreferences current emphasizeParenthesisLevel:false |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1641 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1642 |
! |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1643 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1644 |
emphasizeParenthesisLevel:aBoolean |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1645 |
self at:#emphasizeParenthesisLevel put:aBoolean |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1646 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1647 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1648 |
UserPreferences current emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1649 |
UserPreferences current emphasizeParenthesisLevel:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1650 |
UserPreferences current emphasizeParenthesisLevel:false |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1651 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1652 |
! |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1653 |
|
4341 | 1654 |
errorColor |
1655 |
"the color used for illegal identifiers; |
|
1656 |
If syntaxColoring is turned on." |
|
1657 |
||
4628 | 1658 |
^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor] |
4341 | 1659 |
|
1660 |
! |
|
1661 |
||
4306 | 1662 |
fullSelectorCheck |
1663 |
"with fullSelector check, selectors are searched immediately for |
|
1664 |
being implemented in the system. This may not be useful on slow machines" |
|
1665 |
||
4628 | 1666 |
^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck] |
4306 | 1667 |
|
1668 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1669 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1670 |
! |
|
1671 |
||
4023 | 1672 |
globalClassIdentifierColor |
1673 |
"the color used for global identifiers which are known to be classes; |
|
1674 |
If syntaxColoring is turned on." |
|
1675 |
||
1676 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1677 |
||
1678 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1679 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1680 |
! |
|
1681 |
||
1682 |
globalClassIdentifierEmphasis |
|
1683 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
1684 |
If syntaxColoring is turned on." |
|
1685 |
||
1686 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1687 |
||
1688 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1689 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
1690 |
! |
|
1691 |
||
3360 | 1692 |
globalIdentifierColor |
1693 |
"the color used for global identifiers; |
|
1694 |
If syntaxColoring is turned on." |
|
1695 |
||
1696 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
1697 |
||
1698 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
1699 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1700 |
! |
|
1701 |
||
1702 |
globalIdentifierEmphasis |
|
1703 |
"the emphasis used for global variable identifiers; |
|
1704 |
If syntaxColoring is turned on." |
|
1705 |
||
1706 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1707 |
||
1708 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
1709 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1710 |
! |
|
1711 |
||
1712 |
hereColor |
|
1713 |
"the color used for the here pseudoVariable; |
|
1714 |
If syntaxColoring is turned on." |
|
1715 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1716 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 1717 |
|
1718 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
1719 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
1720 |
! |
|
1721 |
||
1722 |
hereEmphasis |
|
1723 |
"the emphasis used for the hre special variable; |
|
1724 |
If syntaxColoring is turned on." |
|
1725 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1726 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1727 |
|
1728 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
1729 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
1730 |
! |
|
1731 |
||
1732 |
identifierColor |
|
1733 |
"the color used for other identifiers; |
|
1734 |
If syntaxColoring is turned on." |
|
1735 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1736 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1737 |
|
3362 | 1738 |
" |
1739 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
1740 |
UserPreferences current at:#identifierColor put:Color black. |
|
1741 |
" |
|
1742 |
||
3360 | 1743 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 1744 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 1745 |
! |
1746 |
||
1747 |
identifierEmphasis |
|
1748 |
"the emphasis used for other identifiers; |
|
1749 |
If syntaxColoring is turned on." |
|
1750 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1751 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 1752 |
|
1753 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1754 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1755 |
! |
|
1756 |
||
3378 | 1757 |
instVarIdentifierColor |
3377 | 1758 |
"the color used for instance variable identifiers; |
1759 |
If syntaxColoring is turned on." |
|
1760 |
||
3378 | 1761 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 1762 |
|
1763 |
" |
|
3378 | 1764 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
1765 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
11143 | 1766 |
UserPreferences current instVarIdentifierColor |
3377 | 1767 |
" |
1768 |
||
1769 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 1770 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 1771 |
! |
1772 |
||
3378 | 1773 |
instVarIdentifierEmphasis |
3377 | 1774 |
"the emphais used for instance variable identifiers; |
1775 |
If syntaxColoring is turned on." |
|
1776 |
||
3378 | 1777 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 1778 |
|
1779 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 1780 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 1781 |
! |
1782 |
||
8420 | 1783 |
jsKeywordColor |
1784 |
^ self at:#jsKeywordColor ifAbsentPut:[self defaultSyntaxColor] |
|
1785 |
! |
|
1786 |
||
1787 |
jsKeywordEmphasis |
|
1788 |
^ self at:#jsKeywordEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
|
1789 |
! |
|
1790 |
||
3360 | 1791 |
localIdentifierColor |
1792 |
"the color used for local variable identifiers; |
|
1793 |
If syntaxColoring is turned on." |
|
1794 |
||
9144 | 1795 |
^ self at:#localIdentifierColor ifAbsent:[self identifierColor] |
3360 | 1796 |
|
3362 | 1797 |
" |
1798 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
1799 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
1800 |
" |
|
1801 |
||
3360 | 1802 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 1803 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 1804 |
! |
1805 |
||
1806 |
localIdentifierEmphasis |
|
1807 |
"the emphais used for local variable identifiers; |
|
1808 |
If syntaxColoring is turned on." |
|
1809 |
||
9144 | 1810 |
^ self at:#localIdentifierEmphasis ifAbsent:[self identifierEmphasis] |
3360 | 1811 |
|
1812 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
1813 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
1814 |
! |
|
1815 |
||
1816 |
methodSelectorColor |
|
1817 |
"the color used for a methods selector pattern; |
|
1818 |
If syntaxColoring is turned on." |
|
1819 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1820 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1821 |
|
1822 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
1823 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
1824 |
! |
|
1825 |
||
1826 |
methodSelectorEmphasis |
|
1827 |
"the emphasis used for a methods selector pattern; |
|
1828 |
If syntaxColoring is turned on." |
|
1829 |
||
4628 | 1830 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis] |
3360 | 1831 |
|
1832 |
"Created: / 31.3.1998 / 15:11:16 / cg" |
|
1833 |
"Modified: / 1.4.1998 / 13:24:20 / cg" |
|
1834 |
! |
|
1835 |
||
9144 | 1836 |
numberConstantColor |
1837 |
"the color used for number constants; |
|
1838 |
If syntaxColoring is turned on." |
|
1839 |
||
1840 |
^ self at:#numberConstantColor ifAbsent:[ self constantColor ] |
|
1841 |
! |
|
1842 |
||
1843 |
numberConstantEmphasis |
|
1844 |
"the emphasis used for number constants; |
|
1845 |
If syntaxColoring is turned on." |
|
1846 |
||
1847 |
^ self at:#numberConstantEmphasis ifAbsent:[ self constantEmphasis ] |
|
1848 |
! |
|
1849 |
||
8551 | 1850 |
poolVariableIdentifierColor |
1851 |
"the color used for pool variable identifiers |
|
1852 |
If syntaxColoring is turned on." |
|
1853 |
||
1854 |
^ self at:#poolVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1855 |
! |
|
1856 |
||
1857 |
poolVariableIdentifierEmphasis |
|
1858 |
"the color used for pool variable identifiers |
|
1859 |
If syntaxColoring is turned on." |
|
1860 |
||
1861 |
^ self at:#poolVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1862 |
! |
|
1863 |
||
4076 | 1864 |
returnColor |
1865 |
"the color used for the return expression; |
|
1866 |
If syntaxColoring is turned on." |
|
1867 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1868 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 1869 |
|
1870 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
1871 |
! |
|
1872 |
||
1873 |
returnEmphasis |
|
1874 |
"the emphasis used for returns; |
|
1875 |
If syntaxColoring is turned on." |
|
1876 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1877 |
^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 1878 |
|
1879 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
1880 |
! |
|
1881 |
||
3360 | 1882 |
selectorColor |
1883 |
"the color used for message selectors; |
|
1884 |
If syntaxColoring is turned on." |
|
1885 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1886 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1887 |
|
1888 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
1889 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
1890 |
! |
|
1891 |
||
1892 |
selectorEmphasis |
|
1893 |
"the emphasis used for message selectors; |
|
1894 |
If syntaxColoring is turned on." |
|
1895 |
||
4628 | 1896 |
^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis] |
3360 | 1897 |
|
1898 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1899 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
|
1900 |
! |
|
1901 |
||
1902 |
selfColor |
|
1903 |
"the color used for the self pseudoVariable; |
|
1904 |
If syntaxColoring is turned on." |
|
1905 |
||
1906 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
1907 |
||
1908 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
1909 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
1910 |
! |
|
1911 |
||
1912 |
selfEmphasis |
|
1913 |
"the emphasis used for the self pseudoVariable; |
|
1914 |
If syntaxColoring is turned on." |
|
1915 |
||
1916 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1917 |
||
1918 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
1919 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
1920 |
! |
|
1921 |
||
1922 |
stringColor |
|
1923 |
"the color used for string constants; |
|
1924 |
If syntaxColoring is turned on." |
|
1925 |
||
1926 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
1927 |
||
1928 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
1929 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
1930 |
! |
|
1931 |
||
1932 |
stringEmphasis |
|
1933 |
"the emphasis used for string constants; |
|
1934 |
If syntaxColoring is turned on." |
|
1935 |
||
1936 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
1937 |
||
1938 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1939 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
1940 |
! |
|
1941 |
||
1942 |
superColor |
|
1943 |
"the color used for the super pseudoVariable; |
|
1944 |
If syntaxColoring is turned on." |
|
1945 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1946 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 1947 |
|
1948 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
1949 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
1950 |
! |
|
1951 |
||
1952 |
superEmphasis |
|
1953 |
"the emphasis used for the super pseudoVariable; |
|
1954 |
If syntaxColoring is turned on." |
|
1955 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1956 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1957 |
|
1958 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
1959 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
1960 |
! |
|
1961 |
||
1962 |
symbolColor |
|
1963 |
"the color used for symbol constants; |
|
1964 |
If syntaxColoring is turned on." |
|
1965 |
||
1966 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
1967 |
||
1968 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
1969 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
1970 |
! |
|
1971 |
||
1972 |
symbolEmphasis |
|
1973 |
"the emphasis used for symbol constants; |
|
1974 |
If syntaxColoring is turned on." |
|
1975 |
||
1976 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
1977 |
||
1978 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
1979 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 1980 |
! |
1981 |
||
1982 |
thisContextColor |
|
3360 | 1983 |
"the color used for the thisContext pseudoVariable; |
1984 |
If syntaxColoring is turned on." |
|
1985 |
||
3355 | 1986 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 1987 |
|
1988 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 1989 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 1990 |
! |
1991 |
||
1992 |
thisContextEmphasis |
|
3360 | 1993 |
"the emphasis used for the thisContext pseudoVariable; |
1994 |
If syntaxColoring is turned on." |
|
1995 |
||
3355 | 1996 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 1997 |
|
1998 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 1999 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 2000 |
! |
2001 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2002 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2003 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2004 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2005 |
|
4628 | 2006 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2007 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2008 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2009 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2010 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2011 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2012 |
|
4628 | 2013 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2014 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2015 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2016 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2017 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2018 |
|
3354 | 2019 |
unknownIdentifierColor |
3360 | 2020 |
"the color used for unknown identifiers; |
2021 |
If syntaxColoring is turned on." |
|
2022 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2023 |
^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor] |
3354 | 2024 |
|
3361 | 2025 |
" |
2026 |
self current at:#unknownIdentifierColor put:Color red. |
|
2027 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2028 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2029 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2030 |
self current unknownIdentifierEmphasis |
3361 | 2031 |
" |
2032 |
||
3354 | 2033 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 2034 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 2035 |
! |
2036 |
||
2037 |
unknownIdentifierEmphasis |
|
3360 | 2038 |
"the emphasis used for unknown identifiers; |
2039 |
If syntaxColoring is turned on." |
|
2040 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2041 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis] |
3354 | 2042 |
|
2043 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 2044 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
3347 | 2045 |
! ! |
2046 |
||
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2047 |
!UserPreferences methodsFor:'accessing-prefs-code'! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2048 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2049 |
categoryForMenuActionsMethods |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2050 |
^ 'menu actions'. |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2051 |
! ! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2052 |
|
10055 | 2053 |
!UserPreferences methodsFor:'accessing-prefs-editor'! |
2054 |
||
2055 |
deleteSetsClipboardText |
|
2056 |
"if true, a delete also updates the clipboard with the deleted text" |
|
2057 |
||
2058 |
^ self at:#deleteSetsClipboardText ifAbsent:false |
|
2059 |
||
2060 |
" |
|
2061 |
UserPreferences current deleteSetsClipboardText |
|
2062 |
" |
|
2063 |
! |
|
2064 |
||
2065 |
deleteSetsClipboardText:aBooleanOrNil |
|
2066 |
"if true, a delete also updates the clipboard with the deleted text" |
|
2067 |
||
2068 |
^ self at:#deleteSetsClipboardText put:aBooleanOrNil |
|
2069 |
||
2070 |
" |
|
2071 |
UserPreferences current deleteSetsClipboardTextdeleteSetsClipboardText:true |
|
2072 |
UserPreferences current deleteSetsClipboardText:false |
|
2073 |
UserPreferences current deleteSetsClipboardText |
|
2074 |
" |
|
2075 |
! |
|
2076 |
||
2077 |
extendedWordSelectMode |
|
2078 |
"when double clicking, include underscore, dollar and at-character as word-characters ? |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2079 |
(default is on)" |
10055 | 2080 |
|
10310
89d972739353
extendedWordSelectMode (underline in word) defaults to true
Claus Gittinger <cg@exept.de>
parents:
10240
diff
changeset
|
2081 |
^ self at:#extendedWordSelectMode ifAbsent:true |
10055 | 2082 |
|
2083 |
" |
|
2084 |
UserPreferences current extendedWordSelectMode |
|
2085 |
" |
|
2086 |
||
2087 |
"Created: / 03-07-2006 / 16:49:58 / cg" |
|
2088 |
! |
|
2089 |
||
2090 |
extendedWordSelectMode:aBoolean |
|
2091 |
"when double clicking, include underscore, dollar and at-character as word-characters ? |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2092 |
(default is on)" |
10055 | 2093 |
|
2094 |
^ self at:#extendedWordSelectMode put:aBoolean |
|
2095 |
||
2096 |
" |
|
2097 |
UserPreferences current extendedWordSelectMode:true |
|
2098 |
UserPreferences current extendedWordSelectMode:false |
|
2099 |
" |
|
2100 |
||
2101 |
"Created: / 03-07-2006 / 16:50:20 / cg" |
|
2102 |
! |
|
2103 |
||
2104 |
numberOfRememberedUndoOperationsInEditor |
|
2105 |
"the number of possible undo-operations. |
|
2106 |
Nil means: unlimited. |
|
2107 |
Notice: you may run out of memory, if editing a lot and the number of undos is not limited." |
|
2108 |
||
2109 |
^ self at:#numberOfRememberedUndoOperationsInEditor ifAbsent:nil |
|
2110 |
||
2111 |
" |
|
2112 |
UserPreferences current numberOfRememberedUndoOperationsInEditor |
|
2113 |
" |
|
2114 |
||
2115 |
"Modified: / 09-10-2006 / 11:01:35 / cg" |
|
2116 |
! |
|
2117 |
||
2118 |
numberOfRememberedUndoOperationsInEditor:aNumberOrNil |
|
2119 |
"the number of possible undo-operations. |
|
2120 |
Nil means: unlimited. |
|
2121 |
Notice: you may run out of memory, if editing a lot and the number of undos is not limited." |
|
2122 |
||
2123 |
^ self at:#numberOfRememberedUndoOperationsInEditor put:aNumberOrNil |
|
2124 |
||
2125 |
" |
|
2126 |
UserPreferences current numberOfRememberedUndoOperationsInEditor:20 |
|
2127 |
" |
|
2128 |
||
2129 |
"Created: / 09-10-2006 / 11:00:56 / cg" |
|
2130 |
! |
|
2131 |
||
2132 |
st80EditMode |
|
2133 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
|
2134 |
||
2135 |
^ self at:#st80EditMode ifAbsent:false |
|
2136 |
||
2137 |
" |
|
2138 |
UserPreferences current st80EditMode |
|
2139 |
" |
|
2140 |
! |
|
2141 |
||
2142 |
st80EditMode:aBoolean |
|
2143 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
|
2144 |
||
2145 |
^ self at:#st80EditMode put:aBoolean |
|
2146 |
||
2147 |
" |
|
2148 |
UserPreferences current st80EditMode:true |
|
2149 |
" |
|
2150 |
! |
|
2151 |
||
2152 |
st80SelectMode |
|
11143 | 2153 |
"select mode, when double clicking as in st80 |
10055 | 2154 |
(select to corresponding lparen/double-quote) ?" |
2155 |
||
2156 |
^ self at:#st80SelectMode ifAbsent:false |
|
2157 |
||
2158 |
" |
|
2159 |
UserPreferences current st80SelectMode |
|
2160 |
" |
|
2161 |
||
2162 |
"Created: / 03-07-2006 / 16:25:19 / cg" |
|
2163 |
! |
|
2164 |
||
2165 |
st80SelectMode:aBoolean |
|
11143 | 2166 |
"select mode, when double clicking as in st80 |
10055 | 2167 |
(select to corresponding lparen/double-quote)." |
2168 |
||
2169 |
^ self at:#st80SelectMode put:aBoolean |
|
2170 |
||
2171 |
" |
|
2172 |
UserPreferences current st80SelectMode:true |
|
2173 |
UserPreferences current st80SelectMode:false |
|
2174 |
" |
|
2175 |
||
2176 |
"Created: / 03-07-2006 / 16:25:27 / cg" |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2177 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2178 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2179 |
whitespaceWordSelectMode |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2180 |
"when double clicking, treat ANY non-whitespace as word-characters ? |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2181 |
(default is off)" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2182 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2183 |
^ self at:#whitespaceWordSelectMode ifAbsent:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2184 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2185 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2186 |
UserPreferences current whitespaceWordSelectMode |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2187 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2188 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2189 |
"Created: / 03-07-2006 / 16:49:58 / cg" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2190 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2191 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2192 |
whitespaceWordSelectMode:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2193 |
"when double clicking, treat ANY non-whitespace as word-characters ? |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2194 |
(default is off)" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2195 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2196 |
^ self at:#whitespaceWordSelectMode put:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2197 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2198 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2199 |
UserPreferences current whitespaceWordSelectMode:true |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2200 |
UserPreferences current whitespaceWordSelectMode:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2201 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2202 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2203 |
"Created: / 03-07-2006 / 16:50:20 / cg" |
10055 | 2204 |
! ! |
2205 |
||
7549 | 2206 |
!UserPreferences methodsFor:'accessing-prefs-times'! |
2207 |
||
2208 |
timeToAutoExpandItemsWhenDraggingOver |
|
2209 |
"in a hierarchical tree view" |
|
2210 |
||
2211 |
^ 700 "/ millis |
|
2212 |
! |
|
2213 |
||
2214 |
twoDigitDateHandler |
|
2215 |
"return a block which converts a two-digit date. |
|
2216 |
Possible algorithms: |
|
11143 | 2217 |
- identity: treat as year 00..99 |
2218 |
- add 1900: treat as 1900..1999 |
|
2219 |
- around: treat as 1950..1999 if value is 50..99; 2000..2049 otherwise. |
|
7549 | 2220 |
|
2221 |
TODO: make this configurable, keep in dictionary and add to settings. |
|
2222 |
" |
|
2223 |
||
2224 |
^ [:x | (x >= 50) ifTrue:[1900+x] ifFalse:[2000+x]]. |
|
2225 |
"/ ^ [:x | 1900+x]. |
|
2226 |
"/ ^ [:x | x]. |
|
2227 |
! ! |
|
2228 |
||
2229 |
!UserPreferences methodsFor:'accessing-prefs-tools'! |
|
2230 |
||
2231 |
allowSendMailFromDebugger |
|
2232 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
2233 |
mail account " |
|
2234 |
||
2235 |
^ self at:#allowSendMailFromDebugger ifAbsent:true |
|
2236 |
||
2237 |
" |
|
2238 |
UserPreferences current allowSendMailFromDebugger |
|
2239 |
" |
|
2240 |
||
2241 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2242 |
! |
|
2243 |
||
2244 |
allowSendMailFromDebugger:aBoolean |
|
2245 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
2246 |
mail account " |
|
2247 |
||
2248 |
^ self at:#allowSendMailFromDebugger put:aBoolean |
|
2249 |
||
2250 |
" |
|
2251 |
UserPreferences current allowSendMailFromDebugger:true |
|
2252 |
UserPreferences current allowSendMailFromDebugger:false |
|
2253 |
" |
|
2254 |
! |
|
2255 |
||
2256 |
autoDefineWorkspaceVariables |
|
2257 |
"return the flag which controls automatic definition of unknown variables |
|
2258 |
as workspace variables (in doIts)" |
|
2259 |
||
9302 | 2260 |
^ self at:#autoDefineWorkspaceVariables ifAbsent:false |
7549 | 2261 |
|
2262 |
" |
|
2263 |
UserPreferences current autoDefineWorkspaceVariables |
|
2264 |
" |
|
2265 |
! |
|
2266 |
||
2267 |
autoDefineWorkspaceVariables:aBoolean |
|
2268 |
"turn on/off automatic definition of unknown variables |
|
2269 |
as workspace variables (in doIts)" |
|
2270 |
||
2271 |
^ self at:#autoDefineWorkspaceVariables put:aBoolean |
|
2272 |
||
2273 |
" |
|
2274 |
UserPreferences current autoDefineWorkspaceVariables:true |
|
2275 |
UserPreferences current autoDefineWorkspaceVariables:false |
|
2276 |
" |
|
2277 |
! |
|
2278 |
||
10540 | 2279 |
autoRaiseDebugger |
2280 |
"if true, the debugger raises itself automatically when entered. |
|
2281 |
The default is true" |
|
2282 |
||
2283 |
^ self at:#autoRaiseDebugger ifAbsent:true |
|
2284 |
||
2285 |
" |
|
2286 |
UserPreferences current autoRaiseDebugger |
|
2287 |
" |
|
2288 |
||
2289 |
"Created: / 15-05-2007 / 13:29:10 / cg" |
|
2290 |
! |
|
2291 |
||
2292 |
autoRaiseDebugger:aBoolean |
|
2293 |
"if true, the debugger raises itself automatically when entered. |
|
2294 |
The default is true" |
|
2295 |
||
2296 |
^ self at:#autoRaiseDebugger put:aBoolean |
|
2297 |
||
2298 |
" |
|
11143 | 2299 |
UserPreferences current autoRaiseDebugger |
10540 | 2300 |
UserPreferences current autoRaiseDebugger:false |
2301 |
UserPreferences current autoRaiseDebugger:true |
|
2302 |
" |
|
2303 |
||
2304 |
"Created: / 15-05-2007 / 13:29:31 / cg" |
|
2305 |
! |
|
2306 |
||
9913
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2307 |
buildDirectory |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2308 |
^ self at:#buildDirectory ifAbsent:nil |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2309 |
! |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2310 |
|
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2311 |
buildDirectory:aFilenameStringOrNil |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2312 |
^ self at:#buildDirectory put:aFilenameStringOrNil |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2313 |
|
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2314 |
" |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2315 |
UserPreferences current buildDirectory |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2316 |
" |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2317 |
! |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2318 |
|
7549 | 2319 |
functionKeySequences |
2320 |
"return the collection of function-key macros. |
|
2321 |
Thats a dictionary, which assigns code to F-keys" |
|
2322 |
||
2323 |
^ self at:#functionKeySequences ifAbsentPut:[Dictionary new] |
|
2324 |
||
2325 |
" |
|
2326 |
UserPreferences current functionKeySequences |
|
2327 |
" |
|
2328 |
||
2329 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2330 |
! |
|
2331 |
||
10661 | 2332 |
infoVisibleInWorkspace |
2333 |
"return the flag which defaults the info-visibility in a workspace application" |
|
2334 |
||
2335 |
^ self at:#infoVisibleInWorkspace ifAbsent:false |
|
2336 |
||
2337 |
"Created: / 14-07-2007 / 16:43:37 / cg" |
|
2338 |
! |
|
2339 |
||
2340 |
infoVisibleInWorkspace:aBooleanOrNil |
|
2341 |
"set the flag which defaults the info-visibility in a workspace application" |
|
2342 |
||
2343 |
^ self at:#infoVisibleInWorkspace put:aBooleanOrNil |
|
2344 |
||
2345 |
"Created: / 14-07-2007 / 16:43:44 / cg" |
|
2346 |
! |
|
2347 |
||
10815 | 2348 |
language |
2349 |
"/ intermediate migration code; |
|
2350 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
2351 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
2352 |
"/ for now, forward to smalltalk, while all references to "Smalltalk-language" |
|
2353 |
"/ are replaced with "UserPreferences current language" |
|
2354 |
||
2355 |
^ Smalltalk language |
|
2356 |
||
2357 |
" |
|
2358 |
UserPreferences current language |
|
2359 |
" |
|
2360 |
||
2361 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
2362 |
! |
|
2363 |
||
2364 |
languageTerritory |
|
2365 |
"/ intermediate migration code; |
|
2366 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
2367 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
2368 |
"/ for now, forward to smalltalk, while all references to "Smalltalk-language" |
|
2369 |
"/ are replaced with "UserPreferences current language" |
|
2370 |
||
2371 |
^ Smalltalk languageTerritory |
|
2372 |
||
2373 |
" |
|
2374 |
UserPreferences current languageTerritory |
|
2375 |
" |
|
2376 |
||
2377 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
2378 |
! |
|
2379 |
||
9989 | 2380 |
localBuild |
2381 |
^ self at:#localBuild ifAbsent:false |
|
2382 |
||
2383 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
2384 |
! |
|
2385 |
||
2386 |
localBuild:aBoolean |
|
2387 |
^ self at:#localBuild put:aBoolean |
|
2388 |
||
2389 |
" |
|
2390 |
UserPreferences current localBuild |
|
2391 |
" |
|
2392 |
||
2393 |
"Created: / 20-09-2006 / 23:55:26 / cg" |
|
2394 |
! |
|
2395 |
||
7549 | 2396 |
showClockInLauncher |
2397 |
"return the flag which controls if a clock is shown in the launcher" |
|
2398 |
||
9302 | 2399 |
^ self at:#showClockInLauncher ifAbsent:false |
7549 | 2400 |
|
2401 |
" |
|
2402 |
UserPreferences current showClockInLauncher |
|
2403 |
" |
|
2404 |
||
2405 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2406 |
! |
|
2407 |
||
2408 |
showClockInLauncher:aBooleanOrNil |
|
2409 |
"set/clear the flag which controls if a clock is shown in the launcher" |
|
2410 |
||
2411 |
^ self at:#showClockInLauncher put:aBooleanOrNil |
|
2412 |
||
2413 |
" |
|
2414 |
UserPreferences current showClockInLauncher:false. |
|
11143 | 2415 |
NewLauncher open. |
7549 | 2416 |
|
2417 |
UserPreferences current showClockInLauncher:true. |
|
11143 | 2418 |
NewLauncher open. |
7549 | 2419 |
" |
2420 |
||
2421 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
7624 | 2422 |
! |
2423 |
||
10661 | 2424 |
toolbarVisibleInWorkspace |
2425 |
"return the flag which defaults the toolbar-visibility in a workspace application" |
|
2426 |
||
10665
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
2427 |
^ self at:#toolbarVisibleInWorkspace ifAbsent:true |
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
2428 |
|
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
2429 |
"Modified: / 18-07-2007 / 08:55:44 / cg" |
10661 | 2430 |
! |
2431 |
||
2432 |
toolbarVisibleInWorkspace:aBooleanOrNil |
|
2433 |
"set the flag which defaults the toolbar-visibility in a workspace application" |
|
2434 |
||
2435 |
^ self at:#toolbarVisibleInWorkspace put:aBooleanOrNil |
|
2436 |
||
2437 |
"Created: / 14-07-2007 / 16:42:09 / cg" |
|
2438 |
! |
|
2439 |
||
11024 | 2440 |
useNewLayoutInDebugger |
2441 |
^ self at:#useNewLayoutInDebugger ifAbsent:true |
|
2442 |
||
2443 |
" |
|
2444 |
UserPreferences current useNewLayoutInDebugger |
|
2445 |
" |
|
2446 |
! |
|
2447 |
||
2448 |
useNewLayoutInDebugger:aBoolean |
|
2449 |
^ self at:#useNewLayoutInDebugger put:aBoolean |
|
2450 |
! |
|
2451 |
||
7624 | 2452 |
useRefactoringSupport |
2453 |
"return the flag which enables/disables use of refactoring package in browser. |
|
2454 |
If enabled, this enables all kinds of refactorings, better search and undo features. |
|
2455 |
There is usually no reason to disable these." |
|
2456 |
||
9302 | 2457 |
^ self at:#useRefactoringSupport ifAbsent:true |
7624 | 2458 |
! |
2459 |
||
2460 |
useRefactoringSupport:aBooleanOrNil |
|
2461 |
"enable/disable use of refactoring package in browser. |
|
2462 |
If enabled, this enables all kinds of refactorings, better search and undo features. |
|
2463 |
There is usually no reason to disable these." |
|
2464 |
||
2465 |
^ self at:#useRefactoringSupport put:aBooleanOrNil |
|
7625 | 2466 |
|
2467 |
" |
|
2468 |
UserPreferences current useRefactoringSupport:false |
|
2469 |
UserPreferences current useRefactoringSupport:true |
|
2470 |
" |
|
11024 | 2471 |
! |
2472 |
||
2473 |
verboseBacktraceInDebugger |
|
2474 |
^ self at:#verboseBacktraceInDebugger ifAbsent:true |
|
2475 |
||
2476 |
" |
|
2477 |
UserPreferences current verboseBacktraceInDebugger |
|
2478 |
" |
|
2479 |
! |
|
2480 |
||
2481 |
verboseBacktraceInDebugger:aBoolean |
|
2482 |
^ self at:#verboseBacktraceInDebugger put:aBoolean |
|
7549 | 2483 |
! ! |
2484 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2485 |
!UserPreferences methodsFor:'default settings'! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2486 |
|
6169 | 2487 |
listOfPredefinedSyntaxColoringSchemes |
6171 | 2488 |
"return a list of pre-defined syntax highlightning styles |
2489 |
(as shown in the Launchers 'source and debugger settings' dialog." |
|
2490 |
||
2491 |
^ #( |
|
11143 | 2492 |
(#resetSyntaxColors 'default') |
2493 |
(#resetSyntaxColorsBlueControlFlowSelectors 'blue controlFlow') |
|
2494 |
(#resetSyntaxColorsGreenComments 'green comments') |
|
2495 |
(#resetSyntaxColorsGreenCommentsBlueControlFlowSelectors 'green comments; blue controlFlow') |
|
2496 |
(#resetSyntaxColorsBlueSelectorsGreenComments 'blue selectors; green comments [dolphin style]') |
|
2497 |
(#resetSyntaxColorsBlueSelectorsGreyComments 'blue selectors; grey comments') |
|
2498 |
(#resetSyntaxColorsToSqueakStyle 'blue selectors; green comments [squeak style]') |
|
2499 |
(#resetSyntaxColorsAllBlackExceptBadIDs 'no colors, but highlight errors') |
|
2500 |
(#resetSyntaxColorsToVW7Style 'light blue comments [vw7 style]') |
|
6171 | 2501 |
) |
9834 | 2502 |
|
2503 |
"Modified: / 08-09-2006 / 16:11:34 / cg" |
|
6169 | 2504 |
! |
2505 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2506 |
resetSyntaxColors |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2507 |
"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
|
2508 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2509 |
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
|
2510 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2511 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2512 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2513 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2514 |
resetSyntaxColorsAllBlackExceptBadIDs |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2515 |
"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
|
2516 |
except for bad identifiers, which are underwaved." |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2517 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2518 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
8551 | 2519 |
self at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
2520 |
self at:#errorColor put:Color black. |
|
2521 |
self at:#commentColor put:Color black. |
|
2522 |
self at:#constantColor put:Color black. |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2523 |
self at:#methodSelectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2524 |
self at:#selectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2525 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2526 |
|
9834 | 2527 |
resetSyntaxColorsBlueControlFlowSelectors |
2528 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2529 |
(with blue control flow selectors)" |
|
2530 |
||
2531 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2532 |
self at:#controlFlowSelectorColor put:(Color blue). |
|
2533 |
||
2534 |
"Created: / 08-09-2006 / 16:11:52 / cg" |
|
2535 |
! |
|
2536 |
||
6171 | 2537 |
resetSyntaxColorsBlueSelectorsGreenComments |
2538 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2539 |
(with blue selectors and green comments)" |
|
2540 |
||
2541 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
8551 | 2542 |
self at:#commentColor put:(Color green darkened). |
2543 |
self at:#commentEmphasis put:#italic. |
|
2544 |
self at:#selectorColor put:(Color blue). |
|
2545 |
self at:#selectorEmphasis put:#normal. |
|
2546 |
self at:#methodSelectorColor put:(Color blue). |
|
6171 | 2547 |
self at:#methodSelectorEmphasis put:#bold. |
2548 |
! |
|
2549 |
||
2550 |
resetSyntaxColorsBlueSelectorsGreyComments |
|
6169 | 2551 |
"resets the colors in the CurrentPreferences to alternative default values |
2552 |
(with blue selectors and grey comments)" |
|
2553 |
||
6171 | 2554 |
self resetSyntaxColorsBlueSelectorsGreenComments. |
2555 |
self at:#commentColor put:(Color gray). |
|
6169 | 2556 |
! |
2557 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2558 |
resetSyntaxColorsGreenComments |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2559 |
"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
|
2560 |
(with green comments)" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2561 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2562 |
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
|
2563 |
self at:#commentColor put:(Color green darkened). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2564 |
|
9144 | 2565 |
! |
2566 |
||
9834 | 2567 |
resetSyntaxColorsGreenCommentsBlueControlFlowSelectors |
2568 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2569 |
(with green comments, blue control flow)" |
|
2570 |
||
2571 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2572 |
self at:#commentColor put:(Color green darkened). |
|
2573 |
self at:#controlFlowSelectorColor put:(Color blue). |
|
2574 |
||
2575 |
"Created: / 08-09-2006 / 16:10:38 / cg" |
|
2576 |
! |
|
2577 |
||
9144 | 2578 |
resetSyntaxColorsToSqueakStyle |
2579 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2580 |
(with blue selectors and green comments)" |
|
2581 |
||
2582 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2583 |
self at:#commentColor put:(Color green darkened). |
|
2584 |
self at:#commentEmphasis put:#italic. |
|
2585 |
self at:#selectorColor put:(Color blue:80). |
|
2586 |
self at:#selectorEmphasis put:#normal. |
|
2587 |
self at:#methodSelectorColor put:(Color black). |
|
2588 |
self at:#methodSelectorEmphasis put:#bold. |
|
2589 |
self at:#globalIdentifierEmphasis put:#bold. |
|
2590 |
self at:#localIdentifierColor put:(Color grey:40). |
|
2591 |
self at:#instVarIdentifierEmphasis put:#bold. |
|
2592 |
self at:#constantColor put:(Color red:67). |
|
9184 | 2593 |
! |
2594 |
||
2595 |
resetSyntaxColorsToVW7Style |
|
2596 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2597 |
(with light blue comments, green variables)" |
|
2598 |
||
2599 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2600 |
self at:#commentColor put:(Color blue lightened). |
|
2601 |
self at:#selectorColor put:(Color black). |
|
2602 |
self at:#selectorEmphasis put:#normal. |
|
2603 |
self at:#methodSelectorColor put:(Color black). |
|
2604 |
self at:#methodSelectorEmphasis put:#bold. |
|
2605 |
self at:#identifierEmphasis put:#normal. |
|
2606 |
self at:#identifierColor put:(Color green darkened). |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2607 |
! ! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2608 |
|
7266 | 2609 |
!UserPreferences methodsFor:'default values'! |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2610 |
|
4583 | 2611 |
defaultValue |
2612 |
"the defaultValue for non-existing keys" |
|
2613 |
||
2614 |
^ false |
|
2615 |
! |
|
2616 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2617 |
errorKeyNotFound:aKey |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2618 |
"for any non-existing key, false is returned" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2619 |
|
4583 | 2620 |
^ self defaultValue |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2621 |
! ! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2622 |
|
10789 | 2623 |
!UserPreferences methodsFor:'misc'! |
2624 |
||
2625 |
flyByHelpSettingChanged |
|
2626 |
FlyByHelp notNil ifTrue:[ |
|
11143 | 2627 |
(CurrentPreferences at:#flyByHelpActive) ifTrue:[ |
2628 |
FlyByHelp start. |
|
2629 |
] ifFalse:[ |
|
2630 |
FlyByHelp stop. |
|
2631 |
]. |
|
10789 | 2632 |
]. |
2633 |
! ! |
|
2634 |
||
6937 | 2635 |
!UserPreferences methodsFor:'obsolete'! |
2636 |
||
2637 |
useNewSettinsApplication |
|
8545 | 2638 |
"obsolete - will be removed in next release. |
2639 |
(this is kept for a while, as it may have found its way into some |
|
2640 |
saved user preference files)" |
|
6937 | 2641 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
2642 |
self obsoleteMethodWarning. |
7029 | 2643 |
^ self useNewSettingsApplication |
6937 | 2644 |
! |
2645 |
||
2646 |
useNewSettinsApplication:aBoolean |
|
7030 | 2647 |
"obsolete - will be removed in next release" |
6937 | 2648 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
2649 |
self obsoleteMethodWarning. |
7029 | 2650 |
self useNewSettingsApplication:aBoolean. |
6937 | 2651 |
! ! |
2652 |
||
7028 | 2653 |
!UserPreferences methodsFor:'saving'! |
2654 |
||
2655 |
saveIn:fileName |
|
2656 |
self class saveSettings:self in:fileName |
|
2657 |
! ! |
|
2658 |
||
3347 | 2659 |
!UserPreferences class methodsFor:'documentation'! |
2660 |
||
2661 |
version |
|
11143 | 2662 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.205 2008-08-28 18:06:32 cg Exp $' |
3347 | 2663 |
! ! |