author | Claus Gittinger <cg@exept.de> |
Sun, 01 Feb 2015 22:54:34 +0100 | |
changeset 17359 | 61d90dff9c88 |
parent 17358 | 035642dad279 |
child 17397 | 5c84b07aca76 |
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 |
||
17316 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
3347 | 16 |
IdentityDictionary subclass:#UserPreferences |
9742 | 17 |
instanceVariableNames:'' |
18 |
classVariableNames:'CurrentPreferences DefaultPreferences' |
|
19 |
poolDictionaries:'' |
|
20 |
category:'System-Support' |
|
3347 | 21 |
! |
22 |
||
23 |
!UserPreferences class methodsFor:'documentation'! |
|
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
11143 | 28 |
All Rights Reserved |
3347 | 29 |
|
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
||
38 |
! |
|
39 |
||
40 |
documentation |
|
41 |
" |
|
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
42 |
A Dictionary for user preference values. |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
43 |
For non-existing keys, either a defaultValue (false), |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
44 |
or the value from a defaultDictionary is returned. |
3353 | 45 |
|
3359 | 46 |
This will eventually keep track of ALL user preferences. |
8676 | 47 |
For now, not all preferences are found here - |
48 |
(some of them are currently spread over the system - especially, in Class-Variables) |
|
49 |
- but this will change over time. |
|
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
50 |
|
10887 | 51 |
If more prefs are added, think about adding a corresponding UI to the SystemSettingsDialog too. |
52 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
53 |
UserPreferences current at:#foo |
3347 | 54 |
" |
55 |
! ! |
|
56 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
57 |
!UserPreferences class methodsFor:'initialization'! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
58 |
|
4580 | 59 |
initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
60 |
DefaultPreferences := self new. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
61 |
|
10240
9b59aa4f7bd4
dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents:
10177
diff
changeset
|
62 |
Color isNil "Smalltalk isStandAloneApp" ifTrue:[ |
11694 | 63 |
^ self. |
10240
9b59aa4f7bd4
dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents:
10177
diff
changeset
|
64 |
]. |
9b59aa4f7bd4
dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents:
10177
diff
changeset
|
65 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
66 |
#( |
11694 | 67 |
#useNewChangesBrowser false |
68 |
#useNewInspector false |
|
69 |
#showClockInLauncher true |
|
70 |
||
71 |
#autoFormatting false |
|
72 |
#syntaxColoring true |
|
73 |
#fullSelectorCheck false |
|
74 |
||
75 |
#defaultSyntaxColor (Color black) |
|
76 |
#defaultSyntaxEmphasis normal |
|
77 |
||
78 |
#errorColor (Color red) |
|
79 |
||
80 |
"/ #commentColor (Color 12.5 12.5 100) |
|
16589 | 81 |
#commentColor (Color 0 50 0) |
11694 | 82 |
#commentEmphasis normal |
83 |
||
84 |
#methodSelectorEmphasis bold |
|
85 |
#selectorEmphasis bold |
|
86 |
#unimplementedSelectorColor (Color red) |
|
87 |
#unimplementedSelectorEmphasis normal |
|
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
88 |
|
14004 | 89 |
"/ I prefer red-underwave over red identifier ... |
90 |
"/ #badIdentifierColor (Color red) |
|
11694 | 91 |
#instVarIdentifierColor (Color 33 0 33) |
92 |
||
14004 | 93 |
"/ I prefer redish background |
94 |
"/ #sideEffectAssignmentColor (Color 75 0 0) |
|
14062 | 95 |
"/ #sideEffectAssignmentBackgroundColor (Color 100 86 86) |
11143 | 96 |
|
11694 | 97 |
#jsKeywordEmphasis bold |
16589 | 98 |
"/ #jsKeywordColor (Color black) |
11694 | 99 |
#jsKeywordColor (Color 33 33 0) |
100 |
||
101 |
#controlFlowSelectorColor (Color 0 0 100) |
|
15865 | 102 |
#debugSelectorColor (Color 80 0 0) |
103 |
#errorRaisingSelectorColor (Color 80 0 0) |
|
16589 | 104 |
"/ #constantColor (Color 25 0 0) |
11694 | 105 |
#constantColor (Color 64 8 8) |
8420 | 106 |
|
16589 | 107 |
#globalIdentifierColor (Color 67 0 67) |
108 |
#unknownIdentifierColor (Color 67 0 67) |
|
109 |
||
15864 | 110 |
#returnColor (Color 0 0 100) |
111 |
#returnEmphasis bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
112 |
) pairWiseDo:[:k :v | |
11694 | 113 |
DefaultPreferences at:k put:(v decodeAsLiteralArray). |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
114 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
115 |
|
9913
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
116 |
"/ I prefer red-underwave over red identifier ... |
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
117 |
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
|
118 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
119 |
" |
4580 | 120 |
self initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
121 |
" |
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
122 |
|
14062 | 123 |
"Modified: / 16-03-2012 / 10:35:42 / cg" |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
124 |
! ! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
125 |
|
3347 | 126 |
!UserPreferences class methodsFor:'accessing'! |
127 |
||
128 |
current |
|
129 |
CurrentPreferences isNil ifTrue:[ |
|
11143 | 130 |
CurrentPreferences := self new. |
131 |
CurrentPreferences addAll:self default. |
|
132 |
CurrentPreferences flyByHelpSettingChanged. |
|
3347 | 133 |
]. |
134 |
^ CurrentPreferences. |
|
135 |
||
8420 | 136 |
" |
137 |
CurrentPreferences := nil |
|
138 |
" |
|
3364 | 139 |
! |
140 |
||
4318 | 141 |
default |
4580 | 142 |
DefaultPreferences isNil ifTrue:[ |
11143 | 143 |
self initializeDefaultPreferences |
4580 | 144 |
]. |
4318 | 145 |
^ DefaultPreferences. |
146 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
147 |
" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
148 |
DefaultPreferences := nil. |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
149 |
" |
4318 | 150 |
! |
151 |
||
3364 | 152 |
reset |
153 |
"resets the CurrentPreferences to its default values" |
|
154 |
||
155 |
CurrentPreferences := nil |
|
156 |
! |
|
157 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
158 |
syntaxColorKeys |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
159 |
"returns the keys of syntax color items" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
160 |
|
17359 | 161 |
^ self syntaxColorNamesAndKeys collectAll:[:each | each from:2] |
162 |
||
163 |
" |
|
164 |
self syntaxColorKeys |
|
165 |
" |
|
166 |
||
167 |
"/ ^#( |
|
168 |
"/ argumentIdentifierColor |
|
169 |
"/ argumentIdentifierEmphasis |
|
170 |
"/ booleanConstantColor |
|
171 |
"/ booleanConstantEmphasis |
|
172 |
"/ bracketColor |
|
173 |
"/ bracketEmphasis |
|
174 |
"/ classVariableIdentifierColor |
|
175 |
"/ classVariableIdentifierEmphasis |
|
176 |
"/ constantColor |
|
177 |
"/ constantEmphasis |
|
178 |
"/ controlFlowSelectorColor |
|
179 |
"/ controlFlowSelectorEmphasis |
|
180 |
"/ commentColor |
|
181 |
"/ commentEmphasis |
|
182 |
"/ defaultSyntaxColor |
|
183 |
"/ defaultSyntaxEmphasis |
|
184 |
"/ errorColor |
|
185 |
"/ globalIdentifierColor |
|
186 |
"/ globalIdentifierEmphasis |
|
187 |
"/ globalClassIdentifierColor |
|
188 |
"/ globalClassIdentifierEmphasis |
|
189 |
"/ hereColor |
|
190 |
"/ hereEmphasis |
|
191 |
"/ identifierColor |
|
192 |
"/ identifierEmphasis |
|
193 |
"/ instVarIdentifierColor |
|
194 |
"/ instVarIdentifierEmphasis |
|
195 |
"/ localIdentifierColor |
|
196 |
"/ localIdentifierEmphasis |
|
197 |
"/ methodSelectorColor |
|
198 |
"/ methodSelectorEmphasis |
|
199 |
"/ poolVariableIdentifierColor |
|
200 |
"/ poolVariableIdentifierEmphasis |
|
201 |
"/ returnColor |
|
202 |
"/ returnEmphasis |
|
203 |
"/ selectorColor |
|
204 |
"/ selectorEmphasis |
|
205 |
"/ selfColor |
|
206 |
"/ selfEmphasis |
|
207 |
"/ stringColor |
|
208 |
"/ stringEmphasis |
|
209 |
"/ superColor |
|
210 |
"/ superEmphasis |
|
211 |
"/ symbolColor |
|
212 |
"/ symbolEmphasis |
|
213 |
"/ thisContextColor |
|
214 |
"/ thisContextEmphasis |
|
215 |
"/ unknownIdentifierColor |
|
216 |
"/ unknownIdentifierEmphasis |
|
217 |
"/ unimplementedSelectorColor |
|
218 |
"/ unimplementedSelectorEmphasis |
|
219 |
"/ sideEffectAssignmentBackgroundColor |
|
220 |
"/ sideEffectAssignmentColor |
|
221 |
"/ colorForInstrumentedFullyCoveredCode |
|
222 |
"/ emphasisForInstrumentedFullyCoveredCode |
|
223 |
"/ colorForInstrumentedPartiallyCoveredCode |
|
224 |
"/ emphasisForInstrumentedPartiallyCoveredCode |
|
225 |
"/ colorForInstrumentedNeverCalledCode |
|
226 |
"/ emphasisForInstrumentedNeverCalledCode |
|
227 |
"/ ) |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
228 |
|
14007 | 229 |
"Modified: / 14-02-2012 / 10:17:46 / cg" |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
230 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
231 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
232 |
syntaxColorNames |
3364 | 233 |
"returns the syntax colors for the settings in the launcher" |
234 |
||
17359 | 235 |
^ self syntaxColorNamesAndKeys collect:#first. |
236 |
||
237 |
"/"/ warning, the strings below are presented to the user |
|
238 |
"/"/ as the syntax-color boxes comboList - however, they are |
|
239 |
"/"/ also used (without separators) as key into myself. |
|
240 |
"/"/ Therefore, do not change the strings below. |
|
241 |
"/"/ I know - this is bad coding .... |
|
242 |
"/ |
|
243 |
"/^#( |
|
244 |
"/'Argument Identifier Color' |
|
245 |
"/'Boolean Constant Color' |
|
246 |
"/'Bracket Color' |
|
247 |
"/'Class Variable Identifier Color' |
|
248 |
"/'Collection Enumeration Selector Color' |
|
249 |
"/'Constant Color' |
|
250 |
"/'Control Flow Selector Color' |
|
251 |
"/'Comment Color' |
|
252 |
"/'Debug Selector Color' |
|
253 |
"/'Error Raising Selector Color' |
|
254 |
"/'Global Identifier Color' |
|
255 |
"/'Global Class Identifier Color' |
|
256 |
"/'Here Color' |
|
257 |
"/'Identifier Color' |
|
258 |
"/'InstVar Identifier Color' |
|
259 |
"/'Local Identifier Color' |
|
260 |
"/'Method Selector Color' |
|
261 |
"/'Pool Variable Identifier Color' |
|
262 |
"/'Return Color' |
|
263 |
"/'Selector Color' |
|
264 |
"/'Self Color' |
|
265 |
"/'Side Effect Assignment Color' |
|
266 |
"/'Side Effect Assignment Background Color' |
|
267 |
"/'String Color' |
|
268 |
"/'Super Color' |
|
269 |
"/'Symbol Color' |
|
270 |
"/'This Context Color' |
|
271 |
"/'Unknown Identifier Color' |
|
272 |
"/'Unimplemented Selector Color' |
|
273 |
"/'Side Effect Assignment Color' |
|
274 |
"/'Coverage: Reached Color' |
|
275 |
"/'Coverage: Partially Reached Color' |
|
276 |
"/'Coverage: Unreached Color' |
|
277 |
"/) |
|
3364 | 278 |
|
14012 | 279 |
"Modified: / 14-02-2012 / 15:51:38 / cg" |
17359 | 280 |
! |
281 |
||
282 |
syntaxColorNamesAndKeys |
|
283 |
"returns the names and keys of syntax color items" |
|
284 |
||
285 |
^#( |
|
286 |
( |
|
287 |
'Argument Identifier Color' |
|
288 |
argumentIdentifierColor |
|
289 |
argumentIdentifierEmphasis |
|
290 |
) |
|
291 |
( |
|
292 |
'Boolean Constant Color' |
|
293 |
booleanConstantColor |
|
294 |
booleanConstantEmphasis |
|
295 |
) |
|
296 |
( |
|
297 |
'Bracket Color' |
|
298 |
bracketColor |
|
299 |
bracketEmphasis |
|
300 |
) |
|
301 |
( |
|
302 |
'Class Variable Identifier Color' |
|
303 |
classVariableIdentifierColor |
|
304 |
classVariableIdentifierEmphasis |
|
305 |
) |
|
306 |
( |
|
307 |
'Constant Color' |
|
308 |
constantColor |
|
309 |
constantEmphasis |
|
310 |
) |
|
311 |
( |
|
312 |
'Control Flow Selector Color' |
|
313 |
controlFlowSelectorColor |
|
314 |
controlFlowSelectorEmphasis |
|
315 |
) |
|
316 |
( |
|
317 |
'Comment Color' |
|
318 |
commentColor |
|
319 |
commentEmphasis |
|
320 |
) |
|
321 |
( |
|
322 |
'Collection Enumeration Selector Color' |
|
323 |
collectionEnumerationSelectorColor |
|
324 |
collectionEnumerationSelectorEmphasis |
|
325 |
) |
|
326 |
( |
|
327 |
'Debug Selector Color' |
|
328 |
debugSelectorColor |
|
329 |
debugSelectorEmphasis |
|
330 |
) |
|
331 |
( |
|
332 |
'Default Syntax Color' |
|
333 |
defaultSyntaxColor |
|
334 |
defaultSyntaxEmphasis |
|
335 |
) |
|
336 |
( |
|
337 |
'Error Raising Selector Color' |
|
338 |
errorColor |
|
339 |
errorEmphasis |
|
340 |
) |
|
341 |
( |
|
342 |
'Global Identifier Color' |
|
343 |
globalIdentifierColor |
|
344 |
globalIdentifierEmphasis |
|
345 |
) |
|
346 |
( |
|
347 |
'Global Class Identifier Color' |
|
348 |
globalClassIdentifierColor |
|
349 |
globalClassIdentifierEmphasis |
|
350 |
) |
|
351 |
( |
|
352 |
'Here Color' |
|
353 |
hereColor |
|
354 |
hereEmphasis |
|
355 |
) |
|
356 |
( |
|
357 |
'Identifier Color' |
|
358 |
identifierColor |
|
359 |
identifierEmphasis |
|
360 |
) |
|
361 |
( |
|
362 |
'InstVar Identifier Color' |
|
363 |
instVarIdentifierColor |
|
364 |
instVarIdentifierEmphasis |
|
365 |
) |
|
366 |
( |
|
367 |
'Local Identifier Color' |
|
368 |
localIdentifierColor |
|
369 |
localIdentifierEmphasis |
|
370 |
) |
|
371 |
( |
|
372 |
'Method Selector Color' |
|
373 |
methodSelectorColor |
|
374 |
methodSelectorEmphasis |
|
375 |
) |
|
376 |
( |
|
377 |
'Pool Variable Identifier Color' |
|
378 |
poolVariableIdentifierColor |
|
379 |
poolVariableIdentifierEmphasis |
|
380 |
) |
|
381 |
( |
|
382 |
'Return Color' |
|
383 |
returnColor |
|
384 |
returnEmphasis |
|
385 |
) |
|
386 |
( |
|
387 |
'Selector Color' |
|
388 |
selectorColor |
|
389 |
selectorEmphasis |
|
390 |
) |
|
391 |
( |
|
392 |
'Self Color' |
|
393 |
selfColor |
|
394 |
selfEmphasis |
|
395 |
) |
|
396 |
( |
|
397 |
'String Color' |
|
398 |
stringColor |
|
399 |
stringEmphasis |
|
400 |
) |
|
401 |
( |
|
402 |
'Super Color' |
|
403 |
superColor |
|
404 |
superEmphasis |
|
405 |
) |
|
406 |
( |
|
407 |
'Symbol Color' |
|
408 |
symbolColor |
|
409 |
symbolEmphasis |
|
410 |
) |
|
411 |
( |
|
412 |
'This Context Color' |
|
413 |
thisContextColor |
|
414 |
thisContextEmphasis |
|
415 |
) |
|
416 |
( |
|
417 |
'Unknown Identifier Color' |
|
418 |
unknownIdentifierColor |
|
419 |
unknownIdentifierEmphasis |
|
420 |
) |
|
421 |
( |
|
422 |
'Unimplemented Selector Color' |
|
423 |
unimplementedSelectorColor |
|
424 |
unimplementedSelectorEmphasis |
|
425 |
) |
|
426 |
( |
|
427 |
'Side Effect Assignment Color' |
|
428 |
sideEffectAssignmentColor |
|
429 |
sideEffectAssignmentColorEmphasis |
|
430 |
) |
|
431 |
( |
|
432 |
'Side Effect Assignment Background Color' |
|
433 |
sideEffectAssignmentBackgroundColor |
|
434 |
sideEffectAssignmentBackgroundColorEmphasis |
|
435 |
) |
|
436 |
( |
|
437 |
'Coverage: Reached Color' |
|
438 |
colorForInstrumentedFullyCoveredCode |
|
439 |
emphasisForInstrumentedFullyCoveredCode |
|
440 |
) |
|
441 |
( |
|
442 |
'Coverage: Partially Reached Color' |
|
443 |
colorForInstrumentedPartiallyCoveredCode |
|
444 |
emphasisForInstrumentedPartiallyCoveredCode |
|
445 |
) |
|
446 |
( |
|
447 |
'Coverage: Unreached Color' |
|
448 |
colorForInstrumentedNeverCalledCode |
|
449 |
emphasisForInstrumentedNeverCalledCode |
|
450 |
) |
|
451 |
) |
|
452 |
||
453 |
"Modified: / 14-02-2012 / 10:17:46 / cg" |
|
3347 | 454 |
! ! |
455 |
||
13399 | 456 |
!UserPreferences class methodsFor:'accessing - defaults'! |
457 |
||
458 |
defaultUserSettingsFile |
|
16651 | 459 |
^ (Filename usersPrivateSmalltalkDirectory) / 'settings.stx' |
13399 | 460 |
|
461 |
"Created: / 06-10-2008 / 08:27:15 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
462 |
! ! |
|
463 |
||
6019 | 464 |
!UserPreferences class methodsFor:'accessing defaultPrefs'! |
465 |
||
11006
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
466 |
defaultSettingsFilename |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
467 |
^ 'settings.stx' |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
468 |
! |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
469 |
|
6763 | 470 |
fileBrowserClass |
12949
1780725fdc63
comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents:
12947
diff
changeset
|
471 |
"the class to be used for file browsing (used to be the simple FileBrowser, but is now the FileBrowserV2)" |
1780725fdc63
comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents:
12947
diff
changeset
|
472 |
|
6763 | 473 |
^ self current fileBrowserClass |
474 |
||
475 |
" |
|
476 |
UserPreferences fileBrowserClass |
|
477 |
" |
|
12949
1780725fdc63
comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents:
12947
diff
changeset
|
478 |
|
1780725fdc63
comment/format in: #fileBrowserClass
Claus Gittinger <cg@exept.de>
parents:
12947
diff
changeset
|
479 |
"Modified: / 17-07-2010 / 14:50:34 / cg" |
6763 | 480 |
! |
481 |
||
6019 | 482 |
systemBrowserClass |
483 |
^ self current systemBrowserClass |
|
484 |
||
485 |
" |
|
486 |
UserPreferences systemBrowserClass |
|
487 |
" |
|
488 |
! |
|
489 |
||
490 |
versionDiffViewerClass |
|
491 |
^ self current versionDiffViewerClass |
|
492 |
||
493 |
" |
|
494 |
UserPreferences versionDiffViewerClass |
|
495 |
" |
|
496 |
! ! |
|
497 |
||
7028 | 498 |
!UserPreferences class methodsFor:'saving'! |
499 |
||
500 |
saveSettings:userPrefs in:fileName |
|
501 |
"save settings to a settings-file." |
|
502 |
||
11143 | 503 |
"a temporary kludge for old classVariable-based settings |
7028 | 504 |
- all of those MUST go into the user-preferences dictionary eventually" |
505 |
||
14307 | 506 |
|screen| |
7028 | 507 |
|
508 |
screen := Screen current. |
|
509 |
||
14307 | 510 |
fileName asFilename writingFileDo:[:s| |
511 |
s nextPutLine:'"/ ST/X saved settings'; |
|
512 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
513 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
|
514 |
nextPutLine:'"/'; |
|
515 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
516 |
nextPutLine:'"/ ''save settings'' function of the SettingsDialog'; |
|
517 |
nextPutLine:'"/'. |
|
518 |
s cr. |
|
519 |
||
520 |
s nextPutLine:'"/'. |
|
521 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , Timestamp now printString. |
|
522 |
s nextPutLine:'"/'. |
|
523 |
s cr. |
|
524 |
||
525 |
s nextPutLine:'"/'. |
|
526 |
s nextPutLine:'"/ Display settings:'. |
|
527 |
s nextPutLine:'"/'. |
|
528 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
529 |
s nextPutLine:'Display notNil ifTrue:['. |
|
530 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
|
531 |
screen fixColors notNil ifTrue:[ |
|
532 |
s nextPutLine:' Image flushDeviceImages.'. |
|
533 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
|
534 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
|
535 |
s nextPutLine:' ].'. |
|
536 |
] ifFalse:[ |
|
537 |
s nextPutLine:' Display releaseFixColors.'. |
|
538 |
]. |
|
539 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
540 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
541 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
542 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
543 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
544 |
s nextPutLine:' View defaultStyle:' , View defaultStyle storeString , '.'. |
|
545 |
s nextPutLine:' ].'. |
|
546 |
s nextPutLine:'].'. |
|
547 |
s cr. |
|
548 |
||
549 |
s nextPutLine:'"/'. |
|
550 |
s nextPutLine:'"/ Parser/Compiler settings:'. |
|
551 |
s nextPutLine:'"/'. |
|
552 |
s nextPutLine:'ParserFlags warnSTXSpecials: ' , (ParserFlags warnSTXSpecials storeString) , '.'; |
|
553 |
nextPutLine:'ParserFlags warnings: ' , (ParserFlags warnings storeString) , '.'; |
|
554 |
nextPutLine:'ParserFlags warnUnderscoreInIdentifier: ' , (ParserFlags warnUnderscoreInIdentifier storeString) , '.'; |
|
555 |
nextPutLine:'ParserFlags warnOldStyleAssignment: ' , (ParserFlags warnOldStyleAssignment storeString) , '.'; |
|
556 |
nextPutLine:'ParserFlags warnCommonMistakes: ' , (ParserFlags warnCommonMistakes storeString) , '.'; |
|
557 |
nextPutLine:'ParserFlags warnPossibleIncompatibilities: ' , (ParserFlags warnPossibleIncompatibilities storeString) , '.'; |
|
558 |
nextPutLine:'ParserFlags allowUnderscoreInIdentifier: ' , (ParserFlags allowUnderscoreInIdentifier storeString) , '.'; |
|
559 |
nextPutLine:'ParserFlags allowSqueakExtensions: ' , (ParserFlags allowSqueakExtensions storeString) , '.'; |
|
560 |
nextPutLine:'ParserFlags allowDolphinExtensions: ' , (ParserFlags allowDolphinExtensions storeString) , '.'; |
|
561 |
nextPutLine:'ParserFlags allowQualifiedNames: ' , (ParserFlags allowQualifiedNames storeString) , '.'; |
|
562 |
nextPutLine:'ParserFlags arraysAreImmutable: ' , (ParserFlags arraysAreImmutable storeString) , '.'; |
|
14358
0537cf5714b0
lineNumberInfo moved from parser to parserflags
Claus Gittinger <cg@exept.de>
parents:
14342
diff
changeset
|
563 |
nextPutLine:'ParserFlags lineNumberInfo: ' , (ParserFlags lineNumberInfo storeString) , '.'; |
14307 | 564 |
|
565 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
566 |
nextPutLine:'ParserFlags stcCompilation: ' , (ParserFlags stcCompilation storeString) , '.'; |
|
567 |
nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:['; |
|
568 |
nextPutLine:' ParserFlags stcCompilationIncludes: ' , (ParserFlags stcCompilationIncludes storeString) , '.'; |
|
569 |
nextPutLine:' ParserFlags stcCompilationDefines: ' , (ParserFlags stcCompilationDefines storeString) , '.'; |
|
570 |
nextPutLine:' ParserFlags stcCompilationOptions: ' , (ParserFlags stcCompilationOptions storeString) , '.'; |
|
571 |
nextPutLine:' ' , (ParserFlags stcModulePath storeString) , ' asFilename exists ifTrue:['; |
|
572 |
nextPutLine:' ParserFlags stcModulePath: ' , (ParserFlags stcModulePath storeString) , '.'; |
|
573 |
nextPutLine:' ].'; |
|
574 |
nextPutLine:' ParserFlags stcPath: ' , (ParserFlags stcPath storeString) , '.'; |
|
575 |
nextPutLine:' ParserFlags ccCompilationOptions: ' , (ParserFlags ccCompilationOptions storeString) , '.'; |
|
576 |
nextPutLine:' ParserFlags ccPath: ' , (ParserFlags ccPath storeString) , '.'; |
|
577 |
nextPutLine:' ParserFlags linkArgs: ' , (ParserFlags linkArgs storeString) , '.'; |
|
578 |
nextPutLine:' ParserFlags linkSharedArgs: ' , (ParserFlags linkSharedArgs storeString) , '.'; |
|
579 |
nextPutLine:' ParserFlags linkCommand: ' , (ParserFlags linkCommand storeString) , '.'; |
|
580 |
nextPutLine:' ParserFlags makeCommand: ' , (ParserFlags makeCommand storeString) , '.'; |
|
581 |
nextPutLine:' ParserFlags libPath: ' , (ParserFlags libPath storeString) , '.'; |
|
582 |
nextPutLine:' ParserFlags searchedLibraries: ' , (ParserFlags searchedLibraries storeString) , '.'; |
|
583 |
nextPutLine:'].'; |
|
584 |
||
585 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
586 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
587 |
||
588 |
HistoryManager notNil ifTrue:[ |
|
589 |
HistoryManager isActive ifTrue:[ |
|
590 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
|
591 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'. |
|
592 |
] ifFalse:[ |
|
593 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
|
594 |
]. |
|
595 |
]. |
|
596 |
||
597 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
598 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
599 |
||
600 |
s cr. |
|
601 |
s nextPutLine:'"/'. |
|
602 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
603 |
s nextPutLine:'"/'. |
|
604 |
s nextPutLine:'Smalltalk hasNoConsole ifFalse:[ ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '].'; |
|
605 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
|
606 |
nextPutLine:'Smalltalk hasNoConsole ifFalse:[ Object infoPrinting: ' , (Object infoPrinting storeString) , '].'; |
|
607 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
|
608 |
||
609 |
"/ FlyByHelp isActive ifTrue:[ |
|
610 |
"/ s nextPutLine:'FlyByHelp start.' |
|
611 |
"/ ]. |
|
612 |
||
613 |
s cr. |
|
614 |
s nextPutLine:'"/'. |
|
615 |
s nextPutLine:'"/ Edit settings:'. |
|
616 |
s nextPutLine:'"/'. |
|
617 |
"/ s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'. |
|
16467 | 618 |
"/ s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'. |
14307 | 619 |
s nextPutLine:'UserPreferences current syntaxColoring: ' , (userPrefs syntaxColoring storeString) , '.'. |
620 |
(ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[ |
|
621 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'. |
|
11983 | 622 |
] ifFalse:[ |
14307 | 623 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'. |
624 |
]. |
|
625 |
||
626 |
s nextPutLine:'"/'. |
|
627 |
s nextPutLine:'"/ User preference values:'. |
|
628 |
s nextPutLine:'"/'. |
|
629 |
userPrefs keysAndValuesDo:[:k :v | |
|
630 |
|putSelector| |
|
631 |
||
632 |
putSelector := (k , ':') asSymbolIfInterned. |
|
633 |
(UserPreferences includesSelector:putSelector) ifTrue:[ |
|
634 |
s nextPutAll:'UserPreferences current '; |
|
635 |
nextPutAll:putSelector. |
|
636 |
] ifFalse:[ |
|
637 |
s nextPutAll:'UserPreferences current at:'. |
|
638 |
k storeOn:s. |
|
639 |
s nextPutAll:' put:'. |
|
640 |
]. |
|
641 |
v storeOn:s. |
|
642 |
s nextPut:$.; cr. |
|
643 |
]. |
|
644 |
||
645 |
s cr. |
|
646 |
s nextPutLine:'"/'. |
|
647 |
s nextPutLine:'"/ GC settings:'. |
|
648 |
s nextPutLine:'"/'. |
|
649 |
s nextPutLine:'ObjectMemory newSpaceSize: ' , (ObjectMemory newSpaceSize storeString) , '.'; |
|
650 |
nextPutLine:'ObjectMemory dynamicCodeGCTrigger: ' , (ObjectMemory dynamicCodeGCTrigger storeString) , '.'; |
|
651 |
nextPutLine:'ObjectMemory freeSpaceGCAmount: ' , (ObjectMemory freeSpaceGCAmount storeString) , '.'; |
|
652 |
nextPutLine:'ObjectMemory freeSpaceGCLimit: ' , (ObjectMemory freeSpaceGCLimit storeString) , '.'; |
|
653 |
nextPutLine:'ObjectMemory incrementalGCLimit: ' , (ObjectMemory incrementalGCLimit storeString) , '.'; |
|
654 |
nextPutLine:'ObjectMemory oldSpaceCompressLimit: ' , (ObjectMemory oldSpaceCompressLimit storeString) , '.'; |
|
655 |
nextPutLine:'ObjectMemory oldSpaceIncrement: ' , (ObjectMemory oldSpaceIncrement storeString) , '.'. |
|
656 |
||
657 |
s cr. |
|
658 |
s nextPutLine:'"/'. |
|
659 |
s nextPutLine:'"/ Misc settings:'. |
|
660 |
s nextPutLine:'"/'. |
|
661 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
662 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
663 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
664 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
665 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
666 |
||
667 |
"/ claus - I dont think its a good idea to save those ... |
|
668 |
"/ nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
|
669 |
"/ nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
670 |
||
671 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
|
672 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
673 |
nextPutLine:'Display notNil ifTrue:['; |
|
674 |
nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.'; |
|
675 |
nextPutLine:'].'; |
|
676 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
|
677 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
678 |
(NoHandlerError emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[ |
|
679 |
s nextPutLine:'NoHandlerError emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'. |
|
680 |
]. |
|
681 |
Processor isTimeSlicing ifTrue:[ |
|
682 |
s nextPutLine:'Processor startTimeSlicing.'. |
|
683 |
s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.'). |
|
684 |
] ifFalse:[ |
|
685 |
s nextPutLine:'Processor stopTimeSlicing.'. |
|
686 |
]. |
|
687 |
||
688 |
s cr. |
|
689 |
s nextPutLine:'"/'. |
|
690 |
s nextPutLine:'"/ Printer settings:'. |
|
691 |
s nextPutLine:'"/'. |
|
692 |
Printer notNil ifTrue:[ |
|
693 |
s nextPutLine:'Printer := ' , (Printer name) , '.'. |
|
694 |
Printer supportsPrintingToCommand ifTrue:[ |
|
695 |
s nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
696 |
]. |
|
697 |
Printer supportsPageSizes ifTrue:[ |
|
698 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
|
699 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
|
700 |
]. |
|
701 |
Printer supportsMargins ifTrue:[ |
|
702 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
|
703 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
|
704 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
|
705 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
|
706 |
]. |
|
707 |
Printer supportsPostscript ifTrue:[ |
|
708 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
|
709 |
]. |
|
710 |
]. |
|
711 |
s cr. |
|
712 |
s nextPutLine:'"/'. |
|
713 |
s nextPutLine:'"/ Font settings:'. |
|
714 |
s nextPutLine:'"/ (only restored, if image is restarted on the same display)'. |
|
715 |
s nextPutLine:'"/'. |
|
716 |
s nextPutLine:'Display notNil ifTrue:['. |
|
717 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
|
15748 | 718 |
{ |
16278 | 719 |
SimpleView . Label . CheckBox . CheckLabel . Button . Toggle . |
15748 | 720 |
SelectionInListView . MenuView . MenuPanel . NoteBookView . PullDownMenu . |
721 |
TextView . EditTextView . CodeView |
|
722 |
} do:[:cls | |
|
723 |
s nextPutLine:' ',cls name,' defaultFont: ' , (cls defaultFont storeString) , '.'. |
|
724 |
]. |
|
14307 | 725 |
s nextPutLine:' ].'. |
726 |
s nextPutLine:'].'. |
|
727 |
||
728 |
s cr. |
|
729 |
s nextPutLine:'"/'. |
|
730 |
s nextPutLine:'"/ SourceCodeManager settings:'. |
|
731 |
s nextPutLine:'"/ (repositories are networked nowadays, so the settings are host independent)'. |
|
732 |
s nextPutLine:'"/'. |
|
733 |
s nextPutLine:'Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'. |
|
16484 | 734 |
s nextPutLine:'AbstractSourceCodeManager notNil ifTrue:[AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '].'. |
14307 | 735 |
|
736 |
AbstractSourceCodeManager availableManagers do:[:eachManager | |
|
737 |
eachManager savePreferencesOn:s |
|
11983 | 738 |
]. |
14761 | 739 |
s syncData. |
7028 | 740 |
]. |
741 |
||
742 |
" |
|
743 |
Transcript topView application saveSettings |
|
744 |
" |
|
745 |
||
9492 | 746 |
"Modified: / 09-08-2006 / 18:52:14 / fm" |
14358
0537cf5714b0
lineNumberInfo moved from parser to parserflags
Claus Gittinger <cg@exept.de>
parents:
14342
diff
changeset
|
747 |
"Modified: / 26-09-2012 / 13:33:47 / cg" |
7028 | 748 |
! ! |
749 |
||
7549 | 750 |
!UserPreferences methodsFor:'accessing'! |
3883 | 751 |
|
13941 | 752 |
at:key |
753 |
^ super at:key asSymbol |
|
754 |
||
755 |
"Created: / 15-01-2012 / 14:27:29 / cg" |
|
756 |
! |
|
757 |
||
758 |
at:key ifAbsent:exceptionValue |
|
759 |
^ super at:key asSymbol ifAbsent:exceptionValue |
|
760 |
||
761 |
"Created: / 15-01-2012 / 14:27:21 / cg" |
|
762 |
! |
|
763 |
||
5790 | 764 |
at:key put:value |
765 |
|classNameToCheck classToCheck| |
|
766 |
||
13119 | 767 |
"/ key isSymbol ifFalse:[ |
768 |
"/ self halt. |
|
769 |
"/ self at:key asSymbol put:value. |
|
770 |
"/ ^ self |
|
771 |
"/ ]. |
|
772 |
||
6059 | 773 |
value == true ifTrue:[ |
13119 | 774 |
key == #useNewVersionDiffBrowser ifTrue:[ |
775 |
classNameToCheck := #'VersionDiffBrowser'. |
|
776 |
]. |
|
777 |
key == #useNewChangesBrowser ifTrue:[ |
|
778 |
classNameToCheck := #'NewChangesBrowser'. |
|
779 |
]. |
|
780 |
key == #useNewFileBrowser ifTrue:[ |
|
781 |
classNameToCheck := #'FileBrowserV2'. |
|
782 |
]. |
|
783 |
key == #useNewSystemBrowser ifTrue:[ |
|
784 |
classNameToCheck := #'Tools::NewSystemBrowser'. |
|
785 |
]. |
|
786 |
key == #useNewInspector ifTrue:[ |
|
787 |
classNameToCheck := #'NewInspector::NewInspectorView'. |
|
788 |
]. |
|
5790 | 789 |
]. |
790 |
||
5791 | 791 |
classNameToCheck notNil ifTrue:[ |
13119 | 792 |
classToCheck := Smalltalk at:classNameToCheck. |
793 |
classToCheck isNil ifTrue:[ |
|
794 |
('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR. |
|
795 |
] ifFalse:[ |
|
796 |
Autoload autoloadFailedSignal handle:[:ex | |
|
797 |
'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR. |
|
798 |
] do:[ |
|
799 |
classToCheck autoload. |
|
800 |
] |
|
801 |
] |
|
5790 | 802 |
]. |
803 |
||
13941 | 804 |
^ super at:key asSymbol put:value |
805 |
||
806 |
"Modified: / 15-01-2012 / 14:26:53 / cg" |
|
7549 | 807 |
! ! |
808 |
||
16467 | 809 |
!UserPreferences methodsFor:'accessing-changes & history'! |
810 |
||
811 |
changeFileName |
|
812 |
"were to keep changes" |
|
813 |
||
814 |
^self |
|
815 |
at: #'changeFileName' |
|
816 |
ifAbsent: nil |
|
817 |
! |
|
818 |
||
819 |
changeFileName:aFilename |
|
820 |
"were to keep changes" |
|
821 |
||
822 |
self |
|
823 |
at: #'changeFileName' |
|
824 |
put: aFilename. |
|
825 |
! ! |
|
16278 | 826 |
|
14342 | 827 |
!UserPreferences methodsFor:'accessing-locale'! |
828 |
||
829 |
dateInputFormat |
|
830 |
"return a format used when tools read a date from the user" |
|
831 |
||
832 |
^ self |
|
833 |
at:#dateInputFormat |
|
834 |
ifAbsentPut:[ |
|
835 |
(self language == #en and:[ self languageTerritory ~= #en]) |
|
836 |
ifTrue:[ '%m %d %y' ] |
|
837 |
ifFalse:[ '%d %m %y' ] |
|
838 |
] |
|
839 |
! |
|
840 |
||
841 |
dateInputFormat:aFormatString |
|
842 |
"return a format used when tools read a date from the user" |
|
843 |
||
844 |
^ self |
|
845 |
at:#dateInputFormat |
|
846 |
ifAbsentPut:[ |
|
847 |
(self language == #en and:[ self languageTerritory ~= #en]) |
|
848 |
ifTrue:[ '%m %d %y' ] |
|
849 |
ifFalse:[ '%d %m %y' ] |
|
850 |
] |
|
851 |
||
852 |
" |
|
853 |
UserPreferences current dateInputFormat:'%d %m %y' -- european |
|
854 |
UserPreferences current dateInputFormat:'%m %d %y' -- us |
|
855 |
" |
|
856 |
! |
|
857 |
||
858 |
decimalPointCharacter |
|
859 |
"toDo: migrate from ClassVar in Number; |
|
860 |
use this for new applications" |
|
861 |
||
862 |
^ $. |
|
863 |
! |
|
864 |
||
865 |
thousandsSeparatorCharacter |
|
866 |
"toDo: migrate from ClassVar elsewhere; |
|
867 |
use this for new applications" |
|
868 |
||
869 |
^ $' |
|
870 |
! ! |
|
871 |
||
14267 | 872 |
!UserPreferences methodsFor:'accessing-misc'! |
873 |
||
874 |
selectorNamespacesEnabled |
|
875 |
"Return true, if selector namespaces support is enabled |
|
876 |
for this system. Note, that this method may return true |
|
877 |
even if selector namespaces are not supported by this system. |
|
878 |
||
879 |
This is rather user setting. To ask whether the selector namespaces |
|
880 |
support should be used, use: |
|
881 |
||
882 |
UserPreferences current selectorNamespacesSupportedAndEnabled |
|
883 |
" |
|
884 |
||
885 |
^self at:#selectorNamespacesEnabled ifAbsent:[false]. |
|
886 |
||
887 |
" |
|
888 |
UserPreferences current selectorNamespacesEnabled |
|
889 |
UserPreferences current selectorNamespacesSupportedAndEnabled |
|
890 |
||
891 |
UserPreferences current selectorNamespacesEnabled: true. |
|
892 |
UserPreferences current selectorNamespacesEnabled: false. |
|
893 |
" |
|
894 |
||
895 |
"Created: / 19-07-2012 / 15:26:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
896 |
! |
|
897 |
||
898 |
selectorNamespacesEnabled: aBoolean |
|
899 |
"Enables/disables selector namespaces support for this system. |
|
900 |
Please note that even if selector namespaces are enabled here, |
|
901 |
they may not be supported by the system/VM. |
|
902 |
||
903 |
This is rather user setting. To ask whether the selector namespaces |
|
904 |
are supported use |
|
905 |
||
906 |
ConfigurableFeatures includesFeature:#SelectorNamespaces |
|
907 |
" |
|
908 |
||
909 |
self at:#selectorNamespacesEnabled put: aBoolean |
|
910 |
||
911 |
" |
|
912 |
UserPreferences current selectorNamespacesEnabled |
|
913 |
UserPreferences current selectorNamespacesSupportedAndEnabled |
|
914 |
||
915 |
UserPreferences current selectorNamespacesEnabled: true. |
|
916 |
UserPreferences current selectorNamespacesEnabled: false. |
|
917 |
" |
|
918 |
||
919 |
"Created: / 19-07-2012 / 15:27:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
920 |
! |
|
921 |
||
922 |
selectorNamespacesSupportedAndEnabled |
|
923 |
"Return true, if selector namespaces are both enabled |
|
924 |
and supported by this system/VM, false otherwise |
|
925 |
" |
|
926 |
||
927 |
^ (ConfigurableFeatures includesFeature:#SelectorNamespaces) |
|
928 |
and:[self selectorNamespacesEnabled] |
|
929 |
||
930 |
" |
|
931 |
UserPreferences current selectorNamespacesEnabled |
|
932 |
UserPreferences current selectorNamespacesSupportedAndEnabled |
|
933 |
||
934 |
UserPreferences current selectorNamespacesEnabled: true. |
|
935 |
UserPreferences current selectorNamespacesEnabled: false. |
|
936 |
" |
|
937 |
||
938 |
"Created: / 19-07-2012 / 15:32:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
939 |
! ! |
|
940 |
||
10723 | 941 |
!UserPreferences methodsFor:'accessing-misc-communication'! |
942 |
||
11023 | 943 |
dotNetBridgeRunsInIDE |
11930 | 944 |
"a debugging flag: if true, the dotNetBridge is assumed to be |
945 |
already running and the bridge-exe will not be started by st/x" |
|
946 |
||
11023 | 947 |
^ self at:#dotNetBridgeRunsInIDE ifAbsent:false |
948 |
! |
|
949 |
||
950 |
dotNetBridgeRunsInIDE:aBoolean |
|
11930 | 951 |
"a debugging flag: if true, the dotNetBridge is assumed to be |
952 |
already running and the bridge-exe will not be started by st/x" |
|
953 |
||
11023 | 954 |
^ self at:#dotNetBridgeRunsInIDE put:aBoolean |
955 |
! |
|
956 |
||
957 |
dotNetBridgeVerbose |
|
958 |
^ self at:#dotNetBridgeVerbose ifAbsent:false |
|
11027 | 959 |
|
960 |
" |
|
961 |
UserPreferences current dotNetBridgeVerbose |
|
962 |
" |
|
11023 | 963 |
! |
964 |
||
965 |
dotNetBridgeVerbose:aBoolean |
|
966 |
^ self at:#dotNetBridgeVerbose put:aBoolean |
|
967 |
! |
|
968 |
||
11930 | 969 |
javaBridgeRunsInIDE |
970 |
"a debugging flag: if true, the javaBridge is assumed to be |
|
971 |
already running and the bridge-exe will not be started by st/x" |
|
972 |
||
973 |
^ self at:#javaBridgeRunsInIDE ifAbsent:false |
|
974 |
! |
|
975 |
||
976 |
javaBridgeRunsInIDE:aBoolean |
|
977 |
"a debugging flag: if true, the javaBridge is assumed to be |
|
978 |
already running and the bridge-exe will not be started by st/x" |
|
979 |
||
980 |
^ self at:#javaBridgeRunsInIDE put:aBoolean |
|
981 |
! |
|
982 |
||
12792 | 983 |
logHTTPRequests |
984 |
^ self at:#logHTTPRequests ifAbsent:false |
|
985 |
! |
|
986 |
||
987 |
logHTTPRequests:aBoolean |
|
988 |
^ self at:#logHTTPRequests put:aBoolean |
|
989 |
||
990 |
" |
|
991 |
UserPreferences current logHTTPRequests |
|
992 |
UserPreferences current logHTTPRequests:true |
|
993 |
UserPreferences current logHTTPRequests:false |
|
994 |
" |
|
995 |
! |
|
996 |
||
997 |
logSOAPRequests |
|
12793 | 998 |
^ (self soapLoggingLevel ? 0) > 0 |
12792 | 999 |
! |
1000 |
||
1001 |
logSOAPRequests:aBoolean |
|
12793 | 1002 |
self soapLoggingLevel:(aBoolean ifTrue:3 ifFalse:0) |
12792 | 1003 |
|
1004 |
" |
|
1005 |
UserPreferences current logSOAPRequests |
|
1006 |
UserPreferences current logSOAPRequests:true |
|
1007 |
UserPreferences current logSOAPRequests:false |
|
1008 |
" |
|
1009 |
! |
|
1010 |
||
10723 | 1011 |
smtpServerName |
1012 |
^ self at:#smtpServerName ifAbsent:nil |
|
1013 |
||
1014 |
"Created: / 20-09-2007 / 15:59:20 / cg" |
|
1015 |
! |
|
1016 |
||
1017 |
smtpServerName:aHostnameString |
|
1018 |
^ self at:#smtpServerName put:aHostnameString |
|
1019 |
||
1020 |
" |
|
1021 |
UserPreferences current smtpServerName |
|
1022 |
UserPreferences current smtpServerName:'mailhost' |
|
1023 |
" |
|
1024 |
||
1025 |
"Created: / 20-09-2007 / 15:59:58 / cg" |
|
12562 | 1026 |
! |
1027 |
||
12563 | 1028 |
soapErrorDebugging |
1029 |
"open a debugger on error, or report it as a soap-error" |
|
1030 |
||
1031 |
^ self at:#soapErrorDebugging ifAbsent:false |
|
1032 |
! |
|
1033 |
||
1034 |
soapErrorDebugging:aBoolean |
|
1035 |
"open a debugger on error, or report it as a soap-error" |
|
1036 |
^ self at:#soapErrorDebugging put:aBoolean |
|
12774
3d5e2c85faef
comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents:
12619
diff
changeset
|
1037 |
|
3d5e2c85faef
comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents:
12619
diff
changeset
|
1038 |
" |
3d5e2c85faef
comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents:
12619
diff
changeset
|
1039 |
UserPreferences current soapErrorDebugging:true |
3d5e2c85faef
comment/format in: #soapErrorDebugging:
Claus Gittinger <cg@exept.de>
parents:
12619
diff
changeset
|
1040 |
" |
12563 | 1041 |
! |
1042 |
||
12562 | 1043 |
soapLoggingLevel |
1044 |
^ self at:#soapLoggingLevel ifAbsent:nil |
|
1045 |
! |
|
1046 |
||
1047 |
soapLoggingLevel:anIntegerBetween0_and_3 |
|
1048 |
^ self at:#soapLoggingLevel put:anIntegerBetween0_and_3 |
|
13884 | 1049 |
! |
1050 |
||
1051 |
socksProxyHost |
|
1052 |
^ self at:#socksProxyHost ifAbsent:nil |
|
1053 |
||
1054 |
"Created: / 27-12-2011 / 14:40:27 / cg" |
|
1055 |
! |
|
1056 |
||
13885 | 1057 |
socksProxyHost:aString |
1058 |
^ self at:#socksProxyHost put:aString |
|
1059 |
||
1060 |
"Created: / 27-12-2011 / 14:42:15 / cg" |
|
1061 |
! |
|
1062 |
||
13884 | 1063 |
socksProxyPort |
1064 |
^ self at:#socksProxyPort ifAbsent:nil |
|
1065 |
||
1066 |
"Created: / 27-12-2011 / 14:40:32 / cg" |
|
13885 | 1067 |
! |
1068 |
||
1069 |
socksProxyPort:aNumber |
|
1070 |
^ self at:#socksProxyPort put:aNumber |
|
1071 |
||
1072 |
"Created: / 27-12-2011 / 14:42:29 / cg" |
|
10723 | 1073 |
! ! |
1074 |
||
7549 | 1075 |
!UserPreferences methodsFor:'accessing-pref''d tools'! |
5790 | 1076 |
|
13477
2cf9f960c33e
added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents:
13470
diff
changeset
|
1077 |
changeSetBrowserClass |
15960 | 1078 |
|
1079 |
| class className | |
|
1080 |
||
1081 |
className := self at: #changeSetBrowserClassName ifAbsent:[nil]. |
|
1082 |
className notNil ifTrue:[ |
|
1083 |
class := Smalltalk at: className asSymbol. |
|
1084 |
class notNil ifTrue:[ ^ class ]. |
|
1085 |
]. |
|
1086 |
||
1087 |
"Original code" |
|
1088 |
^ ChangeSetBrowser. |
|
1089 |
"/^ Tools::ChangeSetBrowser2 ? ChangeSetBrowser |
|
14252 | 1090 |
|
1091 |
self useNewChangeSetBrowser ifTrue:[ |
|
1092 |
^ Tools::ChangeSetBrowser2 ? ChangeSetBrowser |
|
1093 |
]. |
|
15893 | 1094 |
^ ChangeSetBrowser ? Tools::ChangeSetBrowser2 |
14252 | 1095 |
|
1096 |
" |
|
1097 |
self current changeSetBrowserClass |
|
1098 |
" |
|
13477
2cf9f960c33e
added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents:
13470
diff
changeset
|
1099 |
|
2cf9f960c33e
added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents:
13470
diff
changeset
|
1100 |
"Created: / 01-07-2011 / 16:33:13 / cg" |
13523 | 1101 |
"Modified: / 25-07-2011 / 12:21:42 / sr" |
15960 | 1102 |
"Modified: / 25-01-2012 / 17:11:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1103 |
! |
|
1104 |
||
1105 |
changeSetBrowserClass: aClass |
|
1106 |
||
1107 |
self at: #changeSetBrowserClassName put: aClass name. |
|
1108 |
||
1109 |
" |
|
1110 |
UserPreferences current changeSetBrowserClass |
|
1111 |
UserPreferences current changeSetBrowserClass: Tools::ChangeSetBrowser2. |
|
1112 |
UserPreferences current changeSetBrowserClass: ChangeSetBrowser. |
|
1113 |
" |
|
1114 |
||
1115 |
"Created: / 25-01-2012 / 17:08:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
13477
2cf9f960c33e
added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents:
13470
diff
changeset
|
1116 |
! |
2cf9f960c33e
added: #changeSetBrowserClass
Claus Gittinger <cg@exept.de>
parents:
13470
diff
changeset
|
1117 |
|
3883 | 1118 |
changesBrowserClass |
14252 | 1119 |
"the browser to be used for the changeFile" |
1120 |
||
15960 | 1121 |
| class className | |
1122 |
||
1123 |
className := self at: #changesBrowserClassName ifAbsent:[nil]. |
|
1124 |
className notNil ifTrue:[ |
|
1125 |
class := Smalltalk at: className asSymbol. |
|
1126 |
class notNil ifTrue:[ ^ class ]. |
|
1127 |
]. |
|
1128 |
||
1129 |
"/ Old code |
|
3883 | 1130 |
self useNewChangesBrowser ifTrue:[ |
14252 | 1131 |
^ (NewChangesBrowser ? ChangesBrowser) |
3883 | 1132 |
]. |
1133 |
^ ChangesBrowser |
|
1134 |
||
14252 | 1135 |
"Created: / 17-10-1998 / 14:37:46 / cg" |
15960 | 1136 |
"Modified: / 25-01-2012 / 17:11:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1137 |
! |
|
1138 |
||
1139 |
changesBrowserClass: aClass |
|
1140 |
||
1141 |
self at: #changesBrowserClassName put: aClass name. |
|
1142 |
||
1143 |
" |
|
1144 |
UserPreferences current changesBrowserClass |
|
1145 |
UserPreferences current changesBrowserClass: Tools::ChangeSetBrowser2. |
|
1146 |
UserPreferences current changesBrowserClass: ChangeSetBrowser. |
|
1147 |
" |
|
1148 |
||
1149 |
"Created: / 25-01-2012 / 17:12:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
5535 | 1150 |
! |
1151 |
||
14735 | 1152 |
externalDiffCommandTemplate |
1153 |
"the external command to use for diff" |
|
1154 |
||
1155 |
^ self |
|
1156 |
at:#externalDiffCommandTemplate |
|
1157 |
ifAbsent:[ |
|
1158 |
OperatingSystem isMSDOSlike ifTrue:[ |
|
1159 |
'diff %1 %2' |
|
1160 |
] ifFalse:[ |
|
1161 |
'diff -b %1 %2' |
|
1162 |
] |
|
1163 |
] |
|
1164 |
||
14736 | 1165 |
" |
1166 |
UserPreferences current externalDiffCommandTemplate |
|
1167 |
" |
|
1168 |
||
14735 | 1169 |
"Modified: / 13-10-1998 / 15:53:05 / cg" |
1170 |
"Created: / 26-07-2012 / 15:06:31 / cg" |
|
1171 |
! |
|
1172 |
||
1173 |
externalDiffCommandTemplate:aString |
|
1174 |
"the external command to use for diff. |
|
1175 |
The default is 'diff %1 %2' on msdos and 'diff -b %1 %2' on unix" |
|
1176 |
||
1177 |
self at:#externalDiffCommandTemplate put:aString |
|
1178 |
||
1179 |
" |
|
1180 |
UserPreferences current externalDiffCommandTemplate |
|
1181 |
" |
|
1182 |
! |
|
1183 |
||
6177 | 1184 |
inspectorClassSetting |
1185 |
self useNewInspector ifTrue:[ |
|
11143 | 1186 |
^ (NewInspector::NewInspectorView ? InspectorView) |
6177 | 1187 |
]. |
1188 |
^ InspectorView |
|
1189 |
||
1190 |
"Modified: / 12.11.2001 / 15:47:35 / cg" |
|
1191 |
"Created: / 12.11.2001 / 15:49:00 / cg" |
|
5541 | 1192 |
! |
1193 |
||
11005 | 1194 |
showTipOfTheDayAtStartup |
1195 |
^ self at:#showTipOfTheDayAtStartup ifAbsent:false |
|
1196 |
! |
|
1197 |
||
1198 |
showTipOfTheDayAtStartup:aBoolean |
|
1199 |
self at:#showTipOfTheDayAtStartup put:aBoolean. |
|
1200 |
! |
|
1201 |
||
5535 | 1202 |
systemBrowserClass |
1203 |
self useNewSystemBrowser ifTrue:[ |
|
11143 | 1204 |
^ ((Tools::NewSystemBrowser ? NewSystemBrowser) ? SystemBrowser) |
5535 | 1205 |
]. |
1206 |
^ SystemBrowser |
|
5536 | 1207 |
! |
1208 |
||
13502 | 1209 |
testRunnerClass |
1210 |
self useTestRunner2 ifTrue:[ |
|
1211 |
^ Tools::TestRunner2 ? TestRunner |
|
1212 |
]. |
|
1213 |
^ TestRunner |
|
1214 |
||
1215 |
"Created: / 06-07-2011 / 13:55:03 / cg" |
|
1216 |
! |
|
1217 |
||
13486 | 1218 |
useInspector2 |
1219 |
"using brand new or old inspector" |
|
1220 |
||
1221 |
^ self at:#useInspector2 ifAbsent:false |
|
1222 |
||
1223 |
" |
|
1224 |
UserPreferences current useInspector2 |
|
1225 |
" |
|
1226 |
||
1227 |
"Modified: / 17-10-1998 / 14:45:12 / cg" |
|
1228 |
"Created: / 03-07-2011 / 22:35:50 / cg" |
|
1229 |
! |
|
1230 |
||
1231 |
useInspector2:aBoolean |
|
1232 |
"using very new or old inspector" |
|
1233 |
||
1234 |
self at:#useInspector2 put:aBoolean |
|
1235 |
||
1236 |
" |
|
1237 |
UserPreferences current useInspector2 |
|
1238 |
" |
|
1239 |
||
1240 |
"Created: / 03-07-2011 / 22:36:13 / cg" |
|
1241 |
! |
|
1242 |
||
10924 | 1243 |
useNativeFileDialog |
13047 | 1244 |
^ self nativeFileDialogs |
1245 |
||
1246 |
"Modified: / 24-08-2010 / 17:02:10 / sr" |
|
10924 | 1247 |
! |
1248 |
||
1249 |
useNativeFileDialog:aBoolean |
|
13047 | 1250 |
self nativeFileDialogs:aBoolean |
1251 |
||
1252 |
"Modified: / 24-08-2010 / 17:02:13 / sr" |
|
10924 | 1253 |
! |
1254 |
||
14252 | 1255 |
useNewChangeSetBrowser |
1256 |
"using old or jan's changeSetBrowser for package diffs" |
|
1257 |
||
1258 |
^ self at:#useNewChangeSetBrowser ifAbsent:false |
|
1259 |
||
1260 |
"Modified: / 13-10-1998 / 15:53:05 / cg" |
|
1261 |
"Created: / 26-07-2012 / 15:06:31 / cg" |
|
1262 |
! |
|
1263 |
||
1264 |
useNewChangeSetBrowser:aBoolean |
|
1265 |
"using old or jan's changeSetBrowser for package diffs" |
|
1266 |
||
1267 |
^ self at:#useNewChangeSetBrowser put:aBoolean |
|
1268 |
||
1269 |
"Created: / 26-07-2012 / 15:06:50 / cg" |
|
1270 |
! |
|
1271 |
||
5536 | 1272 |
useNewChangesBrowser |
14252 | 1273 |
"using new or old change browser for the changes file" |
5536 | 1274 |
|
9302 | 1275 |
^ self at:#useNewChangesBrowser ifAbsent:false |
5536 | 1276 |
|
14252 | 1277 |
"Modified: / 13-10-1998 / 15:53:05 / cg" |
1278 |
"Modified (comment): / 26-07-2012 / 15:04:37 / cg" |
|
5536 | 1279 |
! |
1280 |
||
1281 |
useNewChangesBrowser:aBoolean |
|
14252 | 1282 |
"using new or old changeBrowser for the changes file" |
5536 | 1283 |
|
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
1284 |
self at:#useNewChangesBrowser put:aBoolean |
5536 | 1285 |
|
1286 |
" |
|
1287 |
UserPreferences current useNewChangesBrowser |
|
1288 |
" |
|
1289 |
||
14252 | 1290 |
"Modified: / 13-10-1998 / 15:53:21 / cg" |
1291 |
"Modified (comment): / 26-07-2012 / 15:04:39 / cg" |
|
5536 | 1292 |
! |
1293 |
||
6717 | 1294 |
useNewFileBrowser |
1295 |
"using new or old version diff viewer" |
|
1296 |
||
9302 | 1297 |
^ self at:#useNewFileBrowser ifAbsent:(FileBrowserV2 notNil and:[FileBrowserV2 isLoaded]) |
6717 | 1298 |
|
1299 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
1300 |
! |
|
1301 |
||
1302 |
useNewFileBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1303 |
"using new or old file browser" |
6717 | 1304 |
|
1305 |
self at:#useNewFileBrowser put:aBoolean |
|
1306 |
||
1307 |
" |
|
6769 | 1308 |
UserPreferences current useNewFileBrowser |
6717 | 1309 |
" |
1310 |
||
1311 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
1312 |
! |
|
1313 |
||
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1314 |
useNewFileDialog |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1315 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1316 |
|
9302 | 1317 |
^ self at:#useNewFileDialog ifAbsent:true |
13973
c5f0893cbb11
comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents:
13967
diff
changeset
|
1318 |
|
c5f0893cbb11
comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents:
13967
diff
changeset
|
1319 |
" |
c5f0893cbb11
comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents:
13967
diff
changeset
|
1320 |
UserPreferences current useNewFileDialog:false |
c5f0893cbb11
comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents:
13967
diff
changeset
|
1321 |
UserPreferences current useNewFileDialog:true |
c5f0893cbb11
comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents:
13967
diff
changeset
|
1322 |
" |
c5f0893cbb11
comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents:
13967
diff
changeset
|
1323 |
|
c5f0893cbb11
comment/format in: #useNewFileDialog
Claus Gittinger <cg@exept.de>
parents:
13967
diff
changeset
|
1324 |
"Modified (comment): / 23-01-2012 / 17:25:01 / cg" |
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1325 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1326 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1327 |
useNewFileDialog:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1328 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1329 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1330 |
self at:#useNewFileDialog put:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1331 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1332 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1333 |
UserPreferences current useNewFileDialog:true |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1334 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1335 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1336 |
|
5536 | 1337 |
useNewInspector |
1338 |
"using new or old inspector" |
|
1339 |
||
9302 | 1340 |
^ self at:#useNewInspector ifAbsent:false |
5536 | 1341 |
|
1342 |
" |
|
1343 |
UserPreferences current useNewInspector |
|
1344 |
" |
|
1345 |
||
1346 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
1347 |
! |
|
1348 |
||
1349 |
useNewInspector:aBoolean |
|
1350 |
"using new or old inspector" |
|
1351 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
1352 |
self at:#useNewInspector put:aBoolean |
5536 | 1353 |
|
1354 |
" |
|
1355 |
UserPreferences current useNewInspector |
|
1356 |
" |
|
1357 |
! |
|
1358 |
||
6935 | 1359 |
useNewSettingsApplication |
6838 | 1360 |
"using one application for the settings" |
1361 |
||
9302 | 1362 |
^ self at:#useNewSettingsApplication ifAbsent:true |
6838 | 1363 |
! |
1364 |
||
6935 | 1365 |
useNewSettingsApplication:aBoolean |
6838 | 1366 |
"using one application for the settings" |
1367 |
||
6935 | 1368 |
self at:#useNewSettingsApplication put:aBoolean |
6838 | 1369 |
|
1370 |
" |
|
6935 | 1371 |
UserPreferences current useNewSettingsApplication:true |
6838 | 1372 |
" |
1373 |
||
1374 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
1375 |
! |
|
1376 |
||
5536 | 1377 |
useNewSystemBrowser |
1378 |
"using new or old system browser" |
|
1379 |
||
8593 | 1380 |
|newSystemBrowserClass useIt| |
8000 | 1381 |
|
1382 |
newSystemBrowserClass := (Tools::NewSystemBrowser ? NewSystemBrowser). |
|
8593 | 1383 |
useIt := self at:#useNewSystemBrowser ifAbsent:nil. |
1384 |
useIt isNil ifTrue:[ |
|
11143 | 1385 |
useIt := (newSystemBrowserClass notNil and:[ newSystemBrowserClass isLoaded]). |
1386 |
useIt ifTrue:[ |
|
1387 |
self at:#useNewSystemBrowser put:true. |
|
1388 |
]. |
|
8593 | 1389 |
]. |
11143 | 1390 |
^ useIt |
5536 | 1391 |
! |
1392 |
||
1393 |
useNewSystemBrowser:aBoolean |
|
1394 |
"using new or old systemBrowser" |
|
1395 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
1396 |
self at:#useNewSystemBrowser put:aBoolean |
5536 | 1397 |
|
1398 |
" |
|
5541 | 1399 |
UserPreferences current useNewSystemBrowser:true |
5536 | 1400 |
" |
1401 |
||
1402 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
1403 |
! |
|
1404 |
||
1405 |
useNewVersionDiffBrowser |
|
1406 |
"using new or old version diff viewer" |
|
1407 |
||
9302 | 1408 |
^ self at:#useNewVersionDiffBrowser ifAbsent:true |
5536 | 1409 |
|
1410 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
1411 |
! |
|
1412 |
||
1413 |
useNewVersionDiffBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
1414 |
"using new or old versionDiffBrowser" |
5536 | 1415 |
|
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
1416 |
self at:#useNewVersionDiffBrowser put:aBoolean |
5536 | 1417 |
|
1418 |
" |
|
1419 |
UserPreferences current useNewVersionDiffBrowser |
|
1420 |
" |
|
1421 |
||
1422 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
1423 |
! |
|
1424 |
||
6959 | 1425 |
useProcessMonitorV2 |
1426 |
"using ProcessMonitorV2 application for display Processes" |
|
1427 |
||
9302 | 1428 |
^ self at:#useProcessMonitorV2 ifAbsent:(ProcessMonitorV2 notNil) |
6959 | 1429 |
! |
1430 |
||
1431 |
useProcessMonitorV2:aBoolean |
|
1432 |
"using ProcessMonitorV2 application for display Processes" |
|
1433 |
||
1434 |
self at:#useProcessMonitorV2 put:aBoolean |
|
1435 |
||
1436 |
" |
|
1437 |
UserPreferences current useProcessMonitorV2:true |
|
1438 |
" |
|
1439 |
||
1440 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
1441 |
! |
|
1442 |
||
9302 | 1443 |
useSmalltalkDocumentViewer |
1444 |
"using the smalltalk-DocumentViewer (as opposed to the native systems Browser) |
|
1445 |
to display documentation" |
|
1446 |
||
1447 |
^ self at:#useSmalltalkDocumentViewer ifAbsent:true |
|
1448 |
||
1449 |
" |
|
1450 |
UserPreferences current useSmalltalkDocumentViewer |
|
1451 |
UserPreferences current useSmalltalkDocumentViewer:false |
|
1452 |
" |
|
1453 |
! |
|
1454 |
||
1455 |
useSmalltalkDocumentViewer:aBoolean |
|
1456 |
"using the smalltalk-DocumentViewer (as opposed to the native systems Browser) |
|
1457 |
to display documentation" |
|
1458 |
||
1459 |
^ self at:#useSmalltalkDocumentViewer put:aBoolean |
|
1460 |
! |
|
1461 |
||
13501 | 1462 |
useTestRunner2 |
1463 |
"using new or old test runner" |
|
1464 |
||
1465 |
^ self at:#useTestRunner2 ifAbsent:true |
|
1466 |
||
1467 |
"Created: / 06-07-2011 / 13:41:33 / cg" |
|
1468 |
! |
|
1469 |
||
1470 |
useTestRunner2:aBoolean |
|
1471 |
"using new or old test runner" |
|
1472 |
||
1473 |
self at:#useTestRunner2 put:aBoolean |
|
1474 |
||
1475 |
" |
|
1476 |
UserPreferences current useTestRunner2:true |
|
1477 |
" |
|
1478 |
||
1479 |
"Created: / 06-07-2011 / 13:41:40 / cg" |
|
1480 |
! |
|
1481 |
||
16542 | 1482 |
useXTermViewIfAvailable |
1483 |
"switch between xtermView (xembed) and vt100 (st/x emulation) |
|
1484 |
if possible on that architecture." |
|
1485 |
||
1486 |
^ self at:#useXTermViewIfAvailable ifAbsent:false |
|
1487 |
||
1488 |
" |
|
1489 |
UserPreferences current useXTermViewIfAvailable |
|
1490 |
" |
|
1491 |
! |
|
1492 |
||
1493 |
useXTermViewIfAvailable:aBoolean |
|
1494 |
"switch between xtermView (xembed) and vt100 (st/x emulation) |
|
1495 |
if possible on that architecture." |
|
1496 |
||
1497 |
self at:#useXTermViewIfAvailable put:aBoolean |
|
1498 |
||
1499 |
" |
|
1500 |
UserPreferences current useXTermViewIfAvailable |
|
1501 |
" |
|
1502 |
! |
|
1503 |
||
5536 | 1504 |
versionDiffViewerClass |
1505 |
self useNewVersionDiffBrowser ifTrue:[ |
|
11143 | 1506 |
^ (VersionDiffBrowser ? DiffTextView) |
5536 | 1507 |
]. |
10992 | 1508 |
^ DiffCodeView |
3883 | 1509 |
! ! |
1510 |
||
7549 | 1511 |
!UserPreferences methodsFor:'accessing-prefs-UI'! |
3358 | 1512 |
|
11390 | 1513 |
allowMouseWheelZoom |
1514 |
"return the flag which controls if text can be magnified via the ALT-wheel-action" |
|
1515 |
||
1516 |
^ self at:#allowMouseWheelZoom ifAbsent:[ true ] |
|
1517 |
||
1518 |
" |
|
1519 |
UserPreferences current allowMouseWheelZoom |
|
1520 |
" |
|
1521 |
! |
|
1522 |
||
1523 |
allowMouseWheelZoom:aBooleanOrNil |
|
1524 |
"set/clear the flag which controls if text can be magnified via the ALT-wheel-action" |
|
1525 |
||
1526 |
^ self at:#allowMouseWheelZoom put:aBooleanOrNil |
|
1527 |
||
1528 |
" |
|
1529 |
UserPreferences current allowMouseWheelZoom:true |
|
1530 |
UserPreferences current allowMouseWheelZoom:false |
|
1531 |
UserPreferences current allowMouseWheelZoom |
|
1532 |
" |
|
1533 |
! |
|
1534 |
||
14342 | 1535 |
avoidConfirmationsForExperiencedUsers |
1536 |
"some confirmers ara annoying, if you are an experienced st/x user" |
|
1537 |
||
1538 |
^ self at:#avoidConfirmationsForExperiencedUsers ifAbsent:[ false ] |
|
1539 |
||
1540 |
" |
|
1541 |
UserPreferences current avoidConfirmationsForExperiencedUsers |
|
14698 | 1542 |
UserPreferences current avoidConfirmationsForExperiencedUsers:true |
14342 | 1543 |
" |
1544 |
||
1545 |
"Created: / 05-09-2012 / 11:26:55 / cg" |
|
1546 |
! |
|
1547 |
||
1548 |
avoidConfirmationsForExperiencedUsers:aBooleanOrNil |
|
1549 |
"some confirmers ara annoying, if you are an experienced st/x user. |
|
1550 |
Set/clear the flag which controls this" |
|
1551 |
||
1552 |
^ self at:#avoidConfirmationsForExperiencedUsers put:aBooleanOrNil |
|
1553 |
||
1554 |
" |
|
1555 |
UserPreferences current avoidConfirmationsForExperiencedUsers:true |
|
1556 |
" |
|
1557 |
||
1558 |
"Created: / 05-09-2012 / 11:27:09 / cg" |
|
1559 |
! |
|
1560 |
||
11929 | 1561 |
avoidSlowDrawingOperationsUnderWindows |
1562 |
^ OperatingSystem isMSWINDOWSlike |
|
1563 |
! |
|
1564 |
||
5071 | 1565 |
beepEnabled |
1566 |
"return the flag which controls the beeper" |
|
1567 |
||
1568 |
^ self at:#beepEnabled ifAbsentPut:true |
|
1569 |
||
1570 |
" |
|
1571 |
UserPreferences current beepEnabled |
|
1572 |
" |
|
1573 |
||
1574 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
1575 |
"Created: / 3.12.1999 / 17:09:49 / ps" |
|
1576 |
! |
|
1577 |
||
1578 |
beepEnabled:aBoolean |
|
1579 |
"set/clear the flag which controls the beeper" |
|
1580 |
||
1581 |
^ self at:#beepEnabled put:aBoolean |
|
1582 |
||
1583 |
" |
|
1584 |
UserPreferences current beepEnabled:false |
|
1585 |
" |
|
1586 |
||
1587 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
1588 |
"Created: / 3.12.1999 / 17:10:27 / ps" |
|
1589 |
! |
|
1590 |
||
8676 | 1591 |
beepForErrorDialog |
1592 |
"return the flag which controls beeping for error dialogs" |
|
1593 |
||
9302 | 1594 |
^ self at:#beepForErrorDialog ifAbsent:true |
8676 | 1595 |
|
1596 |
" |
|
1597 |
UserPreferences current beepForErrorDialog |
|
1598 |
" |
|
1599 |
! |
|
1600 |
||
1601 |
beepForErrorDialog:aBoolean |
|
1602 |
"set/clear the flag which controls beeping for error dialogs" |
|
1603 |
||
1604 |
^ self at:#beepForErrorDialog put:aBoolean |
|
1605 |
||
1606 |
" |
|
1607 |
UserPreferences current beepForErrorDialog:true |
|
1608 |
" |
|
1609 |
! |
|
1610 |
||
1611 |
beepForInfoDialog |
|
1612 |
"return the flag which controls beeping for info dialogs" |
|
1613 |
||
9302 | 1614 |
^ self at:#beepForInfoDialog ifAbsent:false |
8676 | 1615 |
|
1616 |
" |
|
1617 |
UserPreferences current beepForInfoDialog |
|
1618 |
" |
|
1619 |
! |
|
1620 |
||
1621 |
beepForInfoDialog:aBoolean |
|
1622 |
"set/clear the flag which controls beeping for info dialogs" |
|
1623 |
||
1624 |
^ self at:#beepForInfoDialog put:aBoolean |
|
1625 |
||
1626 |
" |
|
1627 |
UserPreferences current beepForInfoDialog:true |
|
1628 |
" |
|
1629 |
! |
|
1630 |
||
1631 |
beepForWarningDialog |
|
1632 |
"return the flag which controls beeping for warning dialogs" |
|
1633 |
||
9302 | 1634 |
^ self at:#beepForWarningDialog ifAbsent:true |
8676 | 1635 |
|
1636 |
" |
|
1637 |
UserPreferences current beepForWarningDialog |
|
1638 |
" |
|
1639 |
! |
|
1640 |
||
1641 |
beepForWarningDialog:aBoolean |
|
1642 |
"set/clear the flag which controls beeping for warning dialogs" |
|
1643 |
||
1644 |
^ self at:#beepForWarningDialog put:aBoolean |
|
1645 |
||
1646 |
" |
|
1647 |
UserPreferences current beepForWarningDialog:true |
|
1648 |
" |
|
1649 |
! |
|
1650 |
||
11691 | 1651 |
beepInEditor |
1652 |
"return the flag which controls the beeper" |
|
1653 |
||
1654 |
^ self at:#beepInEditor ifAbsentPut:true |
|
1655 |
||
1656 |
" |
|
1657 |
UserPreferences current beepInEditor |
|
1658 |
" |
|
1659 |
! |
|
1660 |
||
14734 | 1661 |
button2WithAltKey |
1662 |
"if true, an ALT-left click is translated to a right click |
|
1663 |
Useful with 1-button mice" |
|
1664 |
||
1665 |
^ self at:#button2WithAltKey ifAbsent:[ false ] |
|
1666 |
||
1667 |
" |
|
1668 |
UserPreferences current button2WithAltKey |
|
1669 |
" |
|
1670 |
! |
|
1671 |
||
1672 |
button2WithAltKey: aBoolean |
|
1673 |
"if true, an ALT-left click is translated to a right click |
|
1674 |
Useful with 1-button mice" |
|
1675 |
||
1676 |
^ self at:#button2WithAltKey put: aBoolean |
|
1677 |
||
1678 |
" |
|
1679 |
UserPreferences current button2WithAltKey |
|
1680 |
UserPreferences current button2WithAltKey:true |
|
1681 |
UserPreferences current button2WithAltKey:false |
|
1682 |
" |
|
1683 |
! |
|
1684 |
||
12209 | 1685 |
closePopUpMenuChainOnEscape |
1686 |
"if true, the whole chain of popUpMenus is closed when escape is pressed. |
|
1687 |
if false (the default), only the last popup-view is closed. |
|
1688 |
The first corresponds to X-behavior, the later is how windows does it - sigh." |
|
1689 |
||
1690 |
^ self at:#closePopUpMenuChainOnEscape ifAbsent:false |
|
1691 |
||
1692 |
" |
|
1693 |
UserPreferences current closePopUpMenuChainOnEscape:false |
|
1694 |
UserPreferences current closePopUpMenuChainOnEscape:true |
|
1695 |
" |
|
1696 |
! |
|
1697 |
||
1698 |
closePopUpMenuChainOnEscape:aBoolean |
|
1699 |
"if true, the whole chain of popUpMenus is closed when escape is pressed. |
|
1700 |
if false (the default), only the last popup-view is closed. |
|
1701 |
The first corresponds to X-behavior, the later is how windows does it - sigh." |
|
1702 |
||
1703 |
^ self at:#closePopUpMenuChainOnEscape put:aBoolean |
|
1704 |
||
1705 |
" |
|
1706 |
UserPreferences current closePopUpMenuChainOnEscape:true |
|
1707 |
UserPreferences current closePopUpMenuChainOnEscape:false |
|
1708 |
" |
|
1709 |
! |
|
1710 |
||
13151 | 1711 |
delayedMenuShowAndHide |
1712 |
"the Windows behavior of showing submenus of a menu slightly delayed, |
|
1713 |
to allow for short-time leaving of the mouse pointer. |
|
1714 |
(bug #D1480943)" |
|
1715 |
||
1716 |
^ self at:#delayedMenuShowAndHide ifAbsent:true |
|
1717 |
||
1718 |
"Created: / 29-11-2010 / 19:47:21 / cg" |
|
1719 |
! |
|
1720 |
||
1721 |
delayedMenuShowAndHide:aBoolean |
|
1722 |
"the Windows behavior of showing submenus of a menu slightly delayed, |
|
1723 |
to allow for short-time leaving of the mouse pointer. |
|
1724 |
(bug #D1480943)" |
|
1725 |
||
1726 |
^ self at:#delayedMenuShowAndHide put:aBoolean |
|
1727 |
||
1728 |
" |
|
1729 |
UserPreferences current delayedMenuShowAndHide |
|
1730 |
" |
|
1731 |
||
1732 |
"Created: / 29-11-2010 / 19:47:36 / cg" |
|
1733 |
! |
|
1734 |
||
13503 | 1735 |
eclipseStyleMenus |
1736 |
"if true, return menus organized like in eclipse; |
|
1737 |
if false (the default) return them as usual" |
|
1738 |
||
1739 |
^ self at:#eclipseStyleMenus ifAbsent:false |
|
1740 |
||
1741 |
"Created: / 08-07-2011 / 13:22:45 / cg" |
|
1742 |
! |
|
1743 |
||
1744 |
eclipseStyleMenus:aBoolean |
|
1745 |
"if true, return menus organized like in eclipse; |
|
1746 |
if false (the default) return them as usual" |
|
1747 |
||
1748 |
^ self at:#eclipseStyleMenus put:aBoolean |
|
1749 |
||
1750 |
" |
|
1751 |
UserPreferences current eclipseStyleMenus:true |
|
1752 |
" |
|
1753 |
||
1754 |
"Created: / 08-07-2011 / 13:22:50 / cg" |
|
1755 |
! |
|
1756 |
||
15817 | 1757 |
enableVMWareDrawingBugWorkaround |
1758 |
"return the flag which enables a workaround for a redraw bug when running X/Linux in the VMWare virtual machine" |
|
1759 |
||
1760 |
^ self at:#enableVMWareDrawingBugWorkaround ifAbsent:[ false ] |
|
1761 |
||
1762 |
" |
|
1763 |
UserPreferences current enableVMWareDrawingBugWorkaround |
|
1764 |
" |
|
1765 |
||
1766 |
"Created: / 19-11-2013 / 09:53:20 / cg" |
|
1767 |
! |
|
1768 |
||
1769 |
enableVMWareDrawingBugWorkaround:aBoolean |
|
1770 |
"change the flag which enables a workaround for a redraw bug when running X/Linux in the VMWare virtual machine" |
|
1771 |
||
1772 |
self at:#enableVMWareDrawingBugWorkaround put:aBoolean. |
|
1773 |
Screen current platformName = 'X11' ifTrue:[ |
|
1774 |
Screen current maxOperationsUntilFlush:(aBoolean ifTrue:[1] ifFalse:[nil]) |
|
1775 |
]. |
|
1776 |
||
1777 |
" |
|
1778 |
UserPreferences current enableVMWareDrawingBugWorkaround |
|
1779 |
UserPreferences current enableVMWareDrawingBugWorkaround:true |
|
1780 |
UserPreferences current enableVMWareDrawingBugWorkaround:false |
|
1781 |
" |
|
1782 |
||
1783 |
"Created: / 19-11-2013 / 09:53:45 / cg" |
|
1784 |
! |
|
1785 |
||
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1786 |
expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1787 |
"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
|
1788 |
more lines. Default is not FALSE !!" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1789 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1790 |
^ self at:#expandSelectionOnMouseMoveWithButtonPressed ifAbsent:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1791 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1792 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1793 |
UserPreferences current expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1794 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1795 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1796 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1797 |
expandSelectionOnMouseMoveWithButtonPressed:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1798 |
"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
|
1799 |
more lines. Default is not FALSE !!" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1800 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1801 |
^ self at:#expandSelectionOnMouseMoveWithButtonPressed put:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1802 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1803 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1804 |
UserPreferences current expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1805 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1806 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1807 |
|
13967 | 1808 |
flyByHelpActive |
1809 |
||
1810 |
^ self at:#flyByHelpActive ifAbsent:true "(FlyByHelp notNil and:[FlyByHelp isActive])" |
|
1811 |
! |
|
1812 |
||
1813 |
flyByHelpActive:aBoolean |
|
1814 |
aBoolean ~~ self flyByHelpActive ifTrue:[ |
|
17104 | 1815 |
self at:#flyByHelpActive put:aBoolean. |
13967 | 1816 |
]. |
17104 | 1817 |
self flyByHelpSettingChanged. |
13967 | 1818 |
! |
1819 |
||
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1820 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1821 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1822 |
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
|
1823 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1824 |
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
|
1825 |
|
13391 | 1826 |
^ self at:#focusFollowsMouse ifAbsent:[ false ] |
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1827 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1828 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1829 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1830 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1831 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1832 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1833 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1834 |
focusFollowsMouse:aBooleanOrNil |
4121 | 1835 |
"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
|
1836 |
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
|
1837 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1838 |
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
|
1839 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1840 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1841 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1842 |
" |
4121 | 1843 |
UserPreferences current focusFollowsMouse:true |
1844 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1845 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1846 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1847 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1848 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1849 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1850 |
|
13103 | 1851 |
forceWindowsIntoMonitorBounds |
1852 |
"if true, windows are forced to be placed into a monitor's bounds completely; |
|
1853 |
if false, they may be placed as to cross a boundary. This only affects initial placement, |
|
1854 |
not window movement." |
|
1855 |
||
1856 |
^ self at:#forceWindowsIntoMonitorBounds ifAbsent:true |
|
1857 |
||
1858 |
"Created: / 22-10-2010 / 10:59:10 / cg" |
|
1859 |
! |
|
1860 |
||
1861 |
forceWindowsIntoMonitorBounds:aBoolean |
|
1862 |
"if true, windows are forced to be placed into a monitor's bounds completely; |
|
1863 |
if false, they may be placed as to cross a boundary. This only affects initial placement, |
|
1864 |
not window movement." |
|
1865 |
||
1866 |
^ self at:#forceWindowsIntoMonitorBounds put:aBoolean |
|
1867 |
||
1868 |
" |
|
1869 |
UserPreferences current forceWindowsIntoMonitorBounds:false |
|
1870 |
UserPreferences current forceWindowsIntoMonitorBounds:true |
|
1871 |
" |
|
1872 |
||
1873 |
"Modified: / 22-10-2010 / 11:13:54 / cg" |
|
1874 |
! |
|
1875 |
||
14543 | 1876 |
menuPanelTakesFocusOnClick |
1877 |
"if true, the menu panel takes the focus and allows further control via |
|
14742 | 1878 |
cursor and tab keys." |
1879 |
||
15713 | 1880 |
"/ read comment in menuPanel - for now, it should be on, |
1881 |
"/ otherwise you cannot control a menu with cursor keys or escape. sigh. |
|
16570 | 1882 |
^ self at:#menuPanelTakesFocusOnClick ifAbsent:[ false ] |
14543 | 1883 |
|
1884 |
" |
|
1885 |
UserPreferences current menuPanelTakesFocusOnClick |
|
16641 | 1886 |
UserPreferences current menuPanelTakesFocusOnClick:false |
1887 |
UserPreferences current menuPanelTakesFocusOnClick:true |
|
14543 | 1888 |
" |
14742 | 1889 |
|
14543 | 1890 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
1891 |
! |
|
1892 |
||
1893 |
menuPanelTakesFocusOnClick:aBooleanOrNil |
|
1894 |
"if true, the menu panel takes the focus and allows further control via |
|
1895 |
cursor and tab keys. |
|
1896 |
Used to be on, but now we changed the default as it turned out to be counter productive" |
|
1897 |
||
1898 |
^ self at:#menuPanelTakesFocusOnClick put:aBooleanOrNil |
|
1899 |
||
1900 |
" |
|
1901 |
UserPreferences current menuPanelTakesFocusOnClick:true |
|
1902 |
UserPreferences current menuPanelTakesFocusOnClick:false |
|
1903 |
UserPreferences current menuPanelTakesFocusOnClick |
|
1904 |
" |
|
1905 |
||
1906 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
1907 |
! |
|
1908 |
||
8759 | 1909 |
motionDistanceToStartDrag |
1910 |
"the motion distance (in pixel) to start drag (as opposed to adding to the selection)" |
|
1911 |
||
1912 |
^ "DragMotionDistance ?" 10 |
|
1913 |
! |
|
1914 |
||
11589
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1915 |
mouseWheelFocusFollowsMouse |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1916 |
"return the flag which controls if the mouseWheel focus should |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1917 |
follow the mouse (as in X) - as opposed to click mode (as in MS-win)" |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1918 |
|
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1919 |
self focusFollowsMouse ifTrue:[^ true]. |
16859 | 1920 |
^ self at:#mouseWheelFocusFollowsMouse ifAbsent:[ Screen current isWindowsPlatform ] |
11589
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1921 |
|
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1922 |
" |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1923 |
UserPreferences current mouseWheelFocusFollowsMouse |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1924 |
" |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1925 |
! |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1926 |
|
17316 | 1927 |
mouseWheelScale |
1928 |
"if set, mouse wheel motions are scaled by this number" |
|
1929 |
||
1930 |
^ self at:#mouseWheelScale ifAbsent:[ 1 ] |
|
1931 |
||
1932 |
" |
|
1933 |
UserPreferences current mouseWheelScale |
|
1934 |
UserPreferences current mouseWheelScale:0.5 |
|
1935 |
UserPreferences current mouseWheelScale:1 |
|
1936 |
" |
|
1937 |
! |
|
1938 |
||
1939 |
mouseWheelScale:aNumber |
|
1940 |
"if set, mouse wheel motions are scaled by this number" |
|
1941 |
||
1942 |
self at:#mouseWheelScale put:[ aNumber ] |
|
1943 |
||
1944 |
" |
|
1945 |
UserPreferences current mouseWheelScale |
|
1946 |
UserPreferences current mouseWheelScale:0.5 |
|
1947 |
UserPreferences current mouseWheelScale:1 |
|
1948 |
" |
|
1949 |
! |
|
1950 |
||
13967 | 1951 |
nativeDialogs |
1952 |
^ self at:#nativeDialogs ifAbsent:false |
|
1953 |
||
1954 |
"Created: / 24-08-2010 / 17:01:47 / sr" |
|
1955 |
! |
|
1956 |
||
1957 |
nativeDialogs:aBoolean |
|
1958 |
|currentScreen| |
|
1959 |
||
1960 |
self at:#nativeDialogs put:aBoolean. |
|
1961 |
currentScreen := Screen current. |
|
1962 |
currentScreen notNil ifTrue:[ |
|
1963 |
currentScreen supportsNativeDialogs ifTrue:[ |
|
1964 |
currentScreen nativeDialogs:aBoolean |
|
1965 |
]. |
|
1966 |
]. |
|
1967 |
||
1968 |
"Modified: / 24-08-2010 / 18:06:43 / sr" |
|
1969 |
! |
|
1970 |
||
1971 |
nativeFileDialogs |
|
1972 |
^ self at:#nativeFileDialogs ifAbsent:false |
|
1973 |
||
1974 |
"Created: / 24-08-2010 / 17:01:59 / sr" |
|
1975 |
! |
|
1976 |
||
1977 |
nativeFileDialogs:aBoolean |
|
1978 |
|currentScreen| |
|
1979 |
||
1980 |
self at:#nativeFileDialogs put:aBoolean. |
|
1981 |
currentScreen := Screen current. |
|
1982 |
currentScreen notNil ifTrue:[ |
|
1983 |
currentScreen supportsNativeFileDialogs ifTrue:[ |
|
1984 |
currentScreen nativeFileDialogs:aBoolean |
|
1985 |
]. |
|
1986 |
]. |
|
1987 |
||
1988 |
"Modified: / 24-08-2010 / 18:06:27 / sr" |
|
1989 |
! |
|
1990 |
||
1991 |
nativeWidgets |
|
1992 |
^ self at:#nativeWidgets ifAbsent:false |
|
1993 |
||
1994 |
"Created: / 24-08-2010 / 16:58:44 / sr" |
|
1995 |
! |
|
1996 |
||
1997 |
nativeWidgets:aBoolean |
|
16813 | 1998 |
"enable/disable native widgets on the current display" |
1999 |
||
13967 | 2000 |
|currentScreen| |
2001 |
||
2002 |
self at:#nativeWidgets put:aBoolean. |
|
2003 |
currentScreen := Screen current. |
|
2004 |
currentScreen notNil ifTrue:[ |
|
2005 |
currentScreen supportsNativeWidgets ifTrue:[ |
|
2006 |
currentScreen nativeWidgets:aBoolean |
|
2007 |
]. |
|
2008 |
]. |
|
2009 |
||
2010 |
"Created: / 24-08-2010 / 16:58:14 / sr" |
|
2011 |
"Modified: / 24-08-2010 / 18:05:56 / sr" |
|
2012 |
! |
|
2013 |
||
16587 | 2014 |
onlyShowTooltipsForActiveWindow |
2015 |
"on a mac (and maybe on others), it is preferable to turn this on" |
|
2016 |
||
17180 | 2017 |
^ self at:#onlyShowTooltipsForActiveWindow ifAbsent:true |
16587 | 2018 |
|
2019 |
" |
|
2020 |
UserPreferences current onlyShowTooltipsForActiveWindow |
|
2021 |
" |
|
2022 |
! |
|
2023 |
||
2024 |
onlyShowTooltipsForActiveWindow:aBooleanOrNil |
|
2025 |
"on a mac (and maybe on others), it is preferable to turn this on" |
|
2026 |
||
2027 |
^ self at:#onlyShowTooltipsForActiveWindow put:aBooleanOrNil |
|
2028 |
! |
|
2029 |
||
5808 | 2030 |
opaqueTableColumnResizing |
2031 |
"return the flag which controls if table column resizing should be done |
|
2032 |
animated (opaque)" |
|
2033 |
||
9302 | 2034 |
^ self at:#opaqueTableColumnResizing ifAbsent:false |
5808 | 2035 |
|
2036 |
" |
|
2037 |
UserPreferences current opaqueTableColumnResizing |
|
2038 |
" |
|
2039 |
! |
|
2040 |
||
2041 |
opaqueTableColumnResizing:aBoolean |
|
2042 |
"change the flag which controls if table column resizing should be done |
|
2043 |
animated (opaque)" |
|
2044 |
||
2045 |
^ self at:#opaqueTableColumnResizing put:aBoolean |
|
2046 |
||
2047 |
" |
|
2048 |
UserPreferences current opaqueTableColumnResizing:true |
|
2049 |
" |
|
2050 |
||
2051 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2052 |
! |
|
2053 |
||
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2054 |
opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2055 |
"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
|
2056 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2057 |
|
9302 | 2058 |
^ self at:#opaqueVariablePanelResizing ifAbsent:false |
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2059 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2060 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2061 |
UserPreferences current opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2062 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2063 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2064 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2065 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2066 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2067 |
opaqueVariablePanelResizing:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2068 |
"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
|
2069 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2070 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2071 |
^ self at:#opaqueVariablePanelResizing put:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2072 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2073 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2074 |
UserPreferences current opaqueVariablePanelResizing:true |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2075 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2076 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2077 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2078 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
2079 |
|
6525 | 2080 |
searchDialogIsModal |
2081 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
2082 |
||
2083 |
^ self at:#searchDialogIsModal ifAbsent:true |
|
2084 |
||
2085 |
" |
|
2086 |
UserPreferences current searchDialogIsModal |
|
2087 |
" |
|
2088 |
! |
|
2089 |
||
2090 |
searchDialogIsModal:aBooleanOrNil |
|
2091 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
2092 |
||
2093 |
^ self at:#searchDialogIsModal put:aBooleanOrNil |
|
2094 |
||
2095 |
" |
|
2096 |
UserPreferences current searchDialogIsModal:true |
|
2097 |
UserPreferences current searchDialogIsModal:false |
|
2098 |
UserPreferences current searchDialogIsModal |
|
2099 |
" |
|
2100 |
! |
|
2101 |
||
11931
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2102 |
selectOnRightClick |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2103 |
"the Windows behavior of selecting on a right-click" |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2104 |
|
11943
5edb32c7f9c2
selectOnRightClick - default
Claus Gittinger <cg@exept.de>
parents:
11931
diff
changeset
|
2105 |
^ self at:#selectOnRightClick ifAbsent:false |
11931
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2106 |
! |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2107 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2108 |
selectOnRightClick:aBoolean |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2109 |
"the Windows behavior of selecting on a right-click" |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2110 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2111 |
^ self at:#selectOnRightClick put:aBoolean |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2112 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2113 |
" |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2114 |
UserPreferences current selectOnRightClick:true. |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2115 |
UserPreferences current selectOnRightClick:false. |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2116 |
" |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2117 |
! |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2118 |
|
15588 | 2119 |
shouldRememberLastExtent |
2120 |
^ self at:#shouldRememberLastExtent ifAbsent:true |
|
2121 |
||
2122 |
"Created: / 31-07-2013 / 18:11:17 / cg" |
|
2123 |
! |
|
2124 |
||
2125 |
shouldRememberLastExtent:aBoolean |
|
2126 |
^ self at:#shouldRememberLastExtent put:aBoolean |
|
2127 |
||
2128 |
" |
|
2129 |
UserPreferences current shouldRememberLastExtent. |
|
2130 |
UserPreferences current shouldRememberLastExtent:true. |
|
2131 |
UserPreferences current shouldRememberLastExtent:false. |
|
2132 |
" |
|
2133 |
||
2134 |
"Created: / 31-07-2013 / 18:11:25 / cg" |
|
2135 |
! |
|
2136 |
||
13161 | 2137 |
showDottedLinesInTree |
13304
19bb57822f90
changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents:
13161
diff
changeset
|
2138 |
^ self |
19bb57822f90
changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents:
13161
diff
changeset
|
2139 |
at:#showDottedLinesInTree |
19bb57822f90
changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents:
13161
diff
changeset
|
2140 |
ifAbsent:[ OperatingSystem isMSWINDOWSlike not |
19bb57822f90
changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents:
13161
diff
changeset
|
2141 |
or:[ OperatingSystem isVistaLike not ] ] |
13161 | 2142 |
|
2143 |
"Created: / 03-12-2010 / 11:31:46 / cg" |
|
13304
19bb57822f90
changed: #showDottedLinesInTree
Claus Gittinger <cg@exept.de>
parents:
13161
diff
changeset
|
2144 |
"Modified: / 09-02-2011 / 23:27:03 / cg" |
13161 | 2145 |
! |
2146 |
||
2147 |
showDottedLinesInTree:aBoolean |
|
2148 |
^ self at:#showDottedLinesInTree put:aBoolean |
|
2149 |
||
2150 |
" |
|
2151 |
UserPreferences current showDottedLinesInTree:true. |
|
2152 |
UserPreferences current showDottedLinesInTree:false. |
|
2153 |
" |
|
2154 |
||
2155 |
"Created: / 03-12-2010 / 11:31:53 / cg" |
|
2156 |
! |
|
2157 |
||
11931
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2158 |
showRightButtonMenuOnRelease |
17232 | 2159 |
"the Windows behavior of showing the right-button menu on a release." |
11931
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2160 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2161 |
^ self at:#showRightButtonMenuOnRelease ifAbsent:true |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2162 |
! |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2163 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2164 |
showRightButtonMenuOnRelease:aBoolean |
17232 | 2165 |
"the Windows behavior of showing the right-button menu on a release." |
11931
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2166 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2167 |
^ self at:#showRightButtonMenuOnRelease put:aBoolean |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2168 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2169 |
" |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2170 |
UserPreferences current showRightButtonMenuOnRelease:true. |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2171 |
UserPreferences current showRightButtonMenuOnRelease:false. |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2172 |
" |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2173 |
! |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
2174 |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2175 |
startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2176 |
"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
|
2177 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2178 |
^ self at:#startTextDragWithControl ifAbsent:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2179 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2180 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2181 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2182 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2183 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2184 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2185 |
startTextDragWithControl:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2186 |
"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
|
2187 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2188 |
^ self at:#startTextDragWithControl put:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2189 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2190 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2191 |
UserPreferences current startTextDragWithControl:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2192 |
UserPreferences current startTextDragWithControl:false |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2193 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2194 |
" |
12522 | 2195 |
! |
2196 |
||
13125 | 2197 |
toolTipAutoHideDelay |
16466 | 2198 |
"return the time in seconds, tooltips are shown. 0 means: show forever" |
13125 | 2199 |
|
2200 |
^ self at:#toolTipAutoHideDelay ifAbsentPut:[FlyByHelp showTime] |
|
2201 |
||
2202 |
" |
|
2203 |
UserPreferences current toolTipAutoHideDelay |
|
2204 |
" |
|
2205 |
||
2206 |
"Created: / 10-11-2010 / 12:08:58 / cg" |
|
2207 |
! |
|
2208 |
||
2209 |
toolTipAutoHideDelay:aTimeDuration |
|
16466 | 2210 |
"set the time, tooltips are shown. 0 means: dont hide" |
13125 | 2211 |
|
2212 |
self at:#toolTipAutoHideDelay put:aTimeDuration. |
|
16466 | 2213 |
FlyByHelp showTime: (aTimeDuration isInteger |
2214 |
ifTrue:[aTimeDuration] |
|
2215 |
ifFalse:[aTimeDuration asSeconds]). |
|
13125 | 2216 |
|
2217 |
" |
|
2218 |
UserPreferences current toolTipAutoHideDelay:10 seconds |
|
16466 | 2219 |
UserPreferences current toolTipAutoHideDelay:0 |
13125 | 2220 |
" |
2221 |
||
2222 |
"Created: / 10-11-2010 / 12:09:33 / cg" |
|
13399 | 2223 |
"Modified: / 07-03-2011 / 23:56:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13125 | 2224 |
! |
2225 |
||
15728 | 2226 |
toolTipShapeStyle |
2227 |
"return a symbol, or nil. If nil, the value from the stylesheet is used." |
|
2228 |
||
2229 |
^ self at:#toolTipShapeStyle ifAbsent:[ nil ] |
|
2230 |
||
2231 |
" |
|
2232 |
UserPreferences current toolTipShapeStyle |
|
2233 |
UserPreferences current toolTipShapeStyle:#cartoon |
|
2234 |
UserPreferences current toolTipShapeStyle:nil |
|
2235 |
" |
|
2236 |
! |
|
2237 |
||
2238 |
toolTipShapeStyle:aSymbolOrNil |
|
2239 |
"A symbol, or nil. If nil, the value from the stylesheet is used." |
|
2240 |
||
2241 |
self at:#toolTipShapeStyle put:aSymbolOrNil |
|
2242 |
||
2243 |
" |
|
2244 |
UserPreferences current toolTipShapeStyle |
|
2245 |
UserPreferences current toolTipShapeStyle:#cartoon |
|
2246 |
UserPreferences current toolTipShapeStyle:nil |
|
2247 |
" |
|
2248 |
! |
|
2249 |
||
17138 | 2250 |
useXFontsOnly |
2251 |
"experimental: |
|
2252 |
a flag to suppress any use of Xft Fonts on X window displays" |
|
2253 |
||
2254 |
^ self at:#useXFontsOnly ifAbsent:[ false ] |
|
2255 |
||
2256 |
" |
|
2257 |
UserPreferences current useXFontsOnly |
|
2258 |
" |
|
2259 |
! |
|
2260 |
||
2261 |
useXFontsOnly:aBoolean |
|
2262 |
"experimental: |
|
2263 |
a flag to suppress any use of Xft Fonts on X window displays" |
|
2264 |
||
2265 |
self at:#useXFontsOnly put:aBoolean |
|
2266 |
||
2267 |
" |
|
2268 |
UserPreferences current useXFontsOnly |
|
2269 |
UserPreferences current useXFontsOnly:true |
|
2270 |
UserPreferences current useXFontsOnly:false |
|
2271 |
UserPreferences current useXftFontsOnly:true |
|
2272 |
UserPreferences current useXftFontsOnly:false |
|
2273 |
" |
|
2274 |
! |
|
2275 |
||
16265 | 2276 |
useXftFontsOnly |
16266 | 2277 |
"experimental: |
2278 |
return the flag which controls if ONLY Xft fonts should be used. |
|
16265 | 2279 |
If changed, this should be done very early during startup, before any other fonts |
2280 |
are already aquired (i.e. before any views are opened)" |
|
2281 |
||
2282 |
^ self at:#useXftFontsOnly ifAbsent:[ false ] |
|
2283 |
||
2284 |
" |
|
2285 |
UserPreferences current useXftFontsOnly |
|
2286 |
" |
|
2287 |
! |
|
2288 |
||
2289 |
useXftFontsOnly:aBooleanOrNil |
|
16266 | 2290 |
"experimental: |
2291 |
set/clear the flag which controls if ONLY Xft fonts should be used. |
|
16265 | 2292 |
If changed, this should be done very early during startup, before any other fonts |
2293 |
are already aquired (i.e. before any views are opened)" |
|
2294 |
||
2295 |
^ self at:#useXftFontsOnly put:aBooleanOrNil |
|
2296 |
||
2297 |
" |
|
2298 |
UserPreferences current useXftFontsOnly:true |
|
2299 |
UserPreferences current useXftFontsOnly:false |
|
2300 |
UserPreferences current useXftFontsOnly |
|
2301 |
" |
|
2302 |
! |
|
2303 |
||
12522 | 2304 |
waitCursorVisibleTime |
2305 |
"anser the time (in ms), how long a wait cursor should be visible at least" |
|
2306 |
||
13684
a55755f5d41b
changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents:
13652
diff
changeset
|
2307 |
^ 100 |
a55755f5d41b
changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents:
13652
diff
changeset
|
2308 |
|
a55755f5d41b
changed: #waitCursorVisibleTime
Claus Gittinger <cg@exept.de>
parents:
13652
diff
changeset
|
2309 |
"Modified: / 12-09-2011 / 11:08:53 / cg" |
13122
ddeb0c08d6c7
added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents:
13119
diff
changeset
|
2310 |
! |
ddeb0c08d6c7
added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents:
13119
diff
changeset
|
2311 |
|
ddeb0c08d6c7
added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents:
13119
diff
changeset
|
2312 |
workAroundRenderingBugOnVista |
13124
ae7477260767
changed: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents:
13122
diff
changeset
|
2313 |
"a temporary kludge for the vista-cleartype character redraw bug" |
13122
ddeb0c08d6c7
added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents:
13119
diff
changeset
|
2314 |
|
ddeb0c08d6c7
added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents:
13119
diff
changeset
|
2315 |
^ OperatingSystem isMSWINDOWSlike |
ddeb0c08d6c7
added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents:
13119
diff
changeset
|
2316 |
|
ddeb0c08d6c7
added: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents:
13119
diff
changeset
|
2317 |
"Created: / 08-11-2010 / 14:47:52 / cg" |
13124
ae7477260767
changed: #workAroundRenderingBugOnVista
Claus Gittinger <cg@exept.de>
parents:
13122
diff
changeset
|
2318 |
"Modified: / 09-11-2010 / 13:02:43 / cg" |
7549 | 2319 |
! ! |
2320 |
||
2321 |
!UserPreferences methodsFor:'accessing-prefs-browser'! |
|
2322 |
||
2323 |
autoFormatting |
|
2324 |
"return the flag which controls automatic formatting of code (in some browsers) |
|
2325 |
Notice, the regular browser does not (yet) do automatic formating." |
|
2326 |
||
8233 | 2327 |
^ self at:#autoFormatting ifAbsent:false |
7549 | 2328 |
|
2329 |
" |
|
2330 |
UserPreferences current autoFormatting |
|
2331 |
" |
|
2332 |
||
2333 |
"Created: / 4.2.2000 / 20:08:08 / cg" |
|
2334 |
"Modified: / 5.2.2000 / 15:38:33 / cg" |
|
2335 |
! |
|
2336 |
||
2337 |
autoFormatting:aBoolean |
|
2338 |
"turn on/off automatic formatting of code (in some browsers); |
|
2339 |
Notice, the regular browser does not (yet) do automatic formating." |
|
2340 |
||
2341 |
^ self at:#autoFormatting put:aBoolean |
|
2342 |
||
2343 |
" |
|
2344 |
UserPreferences current autoFormatting:true |
|
2345 |
UserPreferences current autoFormatting:false |
|
2346 |
" |
|
2347 |
||
2348 |
"Created: / 4.2.2000 / 20:08:26 / cg" |
|
2349 |
"Modified: / 5.2.2000 / 15:38:20 / cg" |
|
2350 |
! |
|
2351 |
||
15290 | 2352 |
autoIndentInCodeView |
2353 |
"return the flag which controls automatic cursor control in editors which |
|
2354 |
show code(autoIndent)" |
|
2355 |
||
16699 | 2356 |
^ self at:#autoIndentInCodeView ifAbsent:true |
15290 | 2357 |
|
2358 |
" |
|
2359 |
UserPreferences current autoIndentInCodeView |
|
2360 |
" |
|
2361 |
! |
|
2362 |
||
2363 |
autoIndentInCodeView:aBoolean |
|
2364 |
"flag which controls automatic cursor control in editors which |
|
2365 |
show code(autoIndent)" |
|
2366 |
||
2367 |
^ self at:#autoIndentInCodeView put:aBoolean |
|
2368 |
||
2369 |
" |
|
2370 |
UserPreferences current autoIndentInCodeView:true |
|
2371 |
UserPreferences current autoIndentInCodeView:false |
|
2372 |
" |
|
2373 |
! |
|
2374 |
||
7549 | 2375 |
enforceCodeStyle |
2376 |
"return the flag which controls enforcing a certain code style (in some browsers)" |
|
2377 |
||
8233 | 2378 |
^ self at:#enforceCodeStyle ifAbsent:false |
7549 | 2379 |
|
2380 |
" |
|
2381 |
UserPreferences current enforceCodeStyle |
|
10478 | 2382 |
UserPreferences current enforceCodeStyle:true |
2383 |
UserPreferences current enforceCodeStyle:false |
|
7549 | 2384 |
" |
10478 | 2385 |
|
2386 |
"Modified: / 27-03-2007 / 21:51:42 / cg" |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2387 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
2388 |
|
12947 | 2389 |
enforceComment |
2390 |
"return the flag which controls enforcing a comment in accepted methods" |
|
2391 |
||
2392 |
^ self at:#enforceComment ifAbsent:false |
|
2393 |
||
2394 |
" |
|
2395 |
UserPreferences current enforceComment |
|
2396 |
UserPreferences current enforceComment:true |
|
2397 |
UserPreferences current enforceComment:false |
|
2398 |
" |
|
2399 |
||
2400 |
"Created: / 17-07-2010 / 14:16:27 / cg" |
|
2401 |
! |
|
2402 |
||
2403 |
enforceComment:aBoolean |
|
2404 |
"set/clear the flag which controls enforcing a comment in accepted methods" |
|
2405 |
||
2406 |
^ self at:#enforceComment put:aBoolean |
|
2407 |
||
2408 |
" |
|
2409 |
UserPreferences current enforceComment:true |
|
2410 |
UserPreferences current enforceComment:false |
|
2411 |
" |
|
2412 |
||
2413 |
"Created: / 17-07-2010 / 14:17:02 / cg" |
|
2414 |
! |
|
2415 |
||
14415 | 2416 |
runLintChecksInBackground |
2417 |
"controls the browser's lint-check behavior; |
|
2418 |
background operation (Jan's pref) makes it difficult to stop and debug...)" |
|
2419 |
||
2420 |
^ self at:#runLintChecksInBackground ifAbsent:true |
|
2421 |
||
2422 |
" |
|
2423 |
UserPreferences current runLintChecksInBackground |
|
2424 |
UserPreferences current runLintChecksInBackground:true |
|
2425 |
UserPreferences current runLintChecksInBackground:false |
|
2426 |
" |
|
2427 |
||
2428 |
"Created: / 17-07-2010 / 14:16:27 / cg" |
|
2429 |
! |
|
2430 |
||
2431 |
runLintChecksInBackground:aBoolean |
|
2432 |
"controls the browser's lint-check behavior; |
|
2433 |
background operation (Jan's pref) makes it difficult to stop and debug...)" |
|
2434 |
||
2435 |
^ self at:#runLintChecksInBackground put:aBoolean |
|
2436 |
||
2437 |
" |
|
2438 |
UserPreferences current runLintChecksInBackground:true |
|
2439 |
UserPreferences current runLintChecksInBackground:false |
|
2440 |
" |
|
2441 |
||
2442 |
"Created: / 17-07-2010 / 14:17:02 / cg" |
|
2443 |
! |
|
2444 |
||
9320 | 2445 |
showAcceptCancelBarInBrowser |
11214
ad61819068b9
changed #showAcceptCancelBarInBrowser
Claus Gittinger <cg@exept.de>
parents:
11213
diff
changeset
|
2446 |
^ self at:#showAcceptCancelBarInBrowser ifAbsent:true |
9320 | 2447 |
|
2448 |
" |
|
2449 |
UserPreferences current showAcceptCancelBarInBrowser |
|
2450 |
UserPreferences current showAcceptCancelBarInBrowser:true |
|
2451 |
UserPreferences current showAcceptCancelBarInBrowser:false |
|
2452 |
" |
|
2453 |
! |
|
2454 |
||
2455 |
showAcceptCancelBarInBrowser:aBoolean |
|
2456 |
"experimental." |
|
2457 |
||
2458 |
^ self at:#showAcceptCancelBarInBrowser put:aBoolean |
|
2459 |
||
2460 |
" |
|
2461 |
UserPreferences current showAcceptCancelBarInBrowser:true |
|
2462 |
UserPreferences current showAcceptCancelBarInBrowser:false |
|
2463 |
" |
|
2464 |
! |
|
2465 |
||
3347 | 2466 |
syntaxColoring |
3360 | 2467 |
"return the flag which controls syntax coloring (in the browsers)" |
2468 |
||
8233 | 2469 |
^ self at:#syntaxColoring ifAbsent:true |
3347 | 2470 |
|
2471 |
" |
|
2472 |
UserPreferences current syntaxColoring |
|
2473 |
" |
|
2474 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
2475 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 2476 |
! |
2477 |
||
2478 |
syntaxColoring:aBoolean |
|
3360 | 2479 |
"turn on/off syntaxColoring (in the browsers)." |
2480 |
||
3347 | 2481 |
^ self at:#syntaxColoring put:aBoolean |
2482 |
||
3357 | 2483 |
" |
2484 |
UserPreferences current syntaxColoring:true |
|
2485 |
UserPreferences current syntaxColoring:false |
|
2486 |
" |
|
2487 |
||
3347 | 2488 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 2489 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
12189 | 2490 |
! |
2491 |
||
2492 |
useSearchBarInBrowser |
|
12191 | 2493 |
"true, if the search-entry fields are initially shown in the browser itself |
12189 | 2494 |
(like in firefox). False if a dialog is to be opened." |
2495 |
||
2496 |
"/ cg: disabled for now, until fixed. |
|
2497 |
"/ does not initially select the searchString. |
|
2498 |
"/ thereby interrupting the workflow... |
|
2499 |
||
2500 |
^ self at:#useSearchBarInBrowser ifAbsent:false |
|
2501 |
||
2502 |
" |
|
2503 |
UserPreferences current useSearchBarInBrowser |
|
2504 |
UserPreferences current useSearchBarInBrowser:true |
|
2505 |
UserPreferences current useSearchBarInBrowser:false |
|
2506 |
" |
|
2507 |
! |
|
2508 |
||
2509 |
useSearchBarInBrowser:aBoolean |
|
12191 | 2510 |
"true, if the search-entry fields are initially shown in the browser itself |
12189 | 2511 |
(like in firefox). False if a dialog is to be opened." |
2512 |
||
2513 |
^ self at:#useSearchBarInBrowser put:aBoolean |
|
2514 |
||
2515 |
" |
|
2516 |
UserPreferences current useSearchBarInBrowser:true |
|
2517 |
UserPreferences current useSearchBarInBrowser:false |
|
2518 |
" |
|
3360 | 2519 |
! ! |
2520 |
||
7549 | 2521 |
!UserPreferences methodsFor:'accessing-prefs-browser-colors'! |
2522 |
||
12905 | 2523 |
colorForInstrumentedFullyCoveredCode |
2524 |
"the color for code in the browser which is instrumented |
|
2525 |
and where all branches have been executed (also code, which has been executed)" |
|
2526 |
||
2527 |
|clr| |
|
2528 |
||
2529 |
clr := self at:#colorForInstrumentedFullyCoveredCode ifAbsent:nil. |
|
2530 |
clr isNil ifTrue:[ |
|
17358 | 2531 |
clr := Color green slightlyDarkened "darkened". "/ slightlyDarkened. |
15915 | 2532 |
"/ self at:#colorForInstrumentedFullyCoveredCode put:clr. |
12905 | 2533 |
]. |
2534 |
^ clr |
|
2535 |
||
2536 |
" |
|
2537 |
UserPreferences current |
|
2538 |
at:#emphasisForInstrumentedFullyCoveredCode |
|
2539 |
put:(Color green slightlyDarkened). |
|
2540 |
" |
|
2541 |
||
2542 |
"Created: / 28-04-2010 / 13:58:52 / cg" |
|
2543 |
! |
|
2544 |
||
15915 | 2545 |
colorForInstrumentedFullyCoveredCode:aColor |
2546 |
"the color for code in the browser which is instrumented |
|
2547 |
and where all branches have been executed (also code, which has been executed)" |
|
2548 |
||
2549 |
self at:#colorForInstrumentedFullyCoveredCode put:aColor. |
|
2550 |
||
2551 |
" |
|
2552 |
UserPreferences current colorForInstrumentedFullyCoveredCode:(Color green slightlyDarkened). |
|
2553 |
UserPreferences current colorForInstrumentedFullyCoveredCode:nil. |
|
2554 |
" |
|
2555 |
||
2556 |
"Created: / 28-04-2010 / 13:58:52 / cg" |
|
2557 |
! |
|
2558 |
||
12905 | 2559 |
colorForInstrumentedNeverCalledCode |
2560 |
"the color for code in the browser which is instrumented but has never been called" |
|
2561 |
||
2562 |
|clr| |
|
2563 |
||
2564 |
clr := self at:#colorForInstrumentedNeverCalledCode ifAbsent:nil. |
|
2565 |
clr isNil ifTrue:[ |
|
17358 | 2566 |
clr := Color red slightlyDarkened "darkened". "/ slightlyDarkened. |
15915 | 2567 |
"/ self at:#colorForInstrumentedNeverCalledCode put:clr. |
12905 | 2568 |
]. |
2569 |
^ clr |
|
2570 |
||
2571 |
" |
|
2572 |
UserPreferences current |
|
2573 |
at:#colorForInstrumentedNeverCalledCode |
|
2574 |
put:(Color red slightlyDarkened). |
|
2575 |
" |
|
2576 |
||
2577 |
"Created: / 28-04-2010 / 13:59:43 / cg" |
|
2578 |
! |
|
2579 |
||
15915 | 2580 |
colorForInstrumentedNeverCalledCode:aColor |
2581 |
"the color for code in the browser which is instrumented but has never been called" |
|
2582 |
||
2583 |
self at:#colorForInstrumentedNeverCalledCode put:aColor. |
|
2584 |
||
2585 |
" |
|
2586 |
UserPreferences current colorForInstrumentedNeverCalledCode:(Color red slightlyDarkened). |
|
2587 |
UserPreferences current colorForInstrumentedNeverCalledCode:nil. |
|
2588 |
" |
|
2589 |
||
2590 |
"Created: / 28-04-2010 / 13:59:43 / cg" |
|
2591 |
! |
|
2592 |
||
12905 | 2593 |
colorForInstrumentedPartiallyCoveredCode |
2594 |
"color for code in the browser which is instrumented and where some branches have been |
|
2595 |
executed" |
|
2596 |
||
2597 |
|clr| |
|
2598 |
||
2599 |
clr := self at:#colorForInstrumentedPartiallyCoveredCode ifAbsent:nil. |
|
2600 |
clr isNil ifTrue:[ |
|
15915 | 2601 |
clr := Color orange slightlyDarkened. |
2602 |
"/ self at:#colorForInstrumentedPartiallyCoveredCode put:clr. |
|
12905 | 2603 |
]. |
2604 |
^ clr |
|
2605 |
||
2606 |
" |
|
2607 |
UserPreferences current |
|
2608 |
at:#colorForInstrumentedPartiallyCoveredCode |
|
2609 |
put:(Color orange slightlyLightened). |
|
2610 |
" |
|
2611 |
||
2612 |
"Created: / 28-04-2010 / 14:00:56 / cg" |
|
2613 |
! |
|
2614 |
||
15915 | 2615 |
colorForInstrumentedPartiallyCoveredCode:aColor |
2616 |
"color for code in the browser which is instrumented and where some branches have been |
|
2617 |
executed" |
|
2618 |
||
2619 |
self at:#colorForInstrumentedPartiallyCoveredCode put:aColor. |
|
2620 |
||
2621 |
" |
|
2622 |
UserPreferences current colorForInstrumentedPartiallyCoveredCode:(Color orange slightlyLightened). |
|
2623 |
UserPreferences current colorForInstrumentedPartiallyCoveredCode:nil. |
|
2624 |
" |
|
2625 |
||
2626 |
"Created: / 28-04-2010 / 14:00:56 / cg" |
|
2627 |
! |
|
2628 |
||
13652
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2629 |
colorForPseudoProtocolsInMethodListInBrowser |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2630 |
"eventually, make this also a settings value (for people with weak gray-visibility)" |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2631 |
|
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2632 |
|bg| |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2633 |
|
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2634 |
SelectionInListView notNil ifTrue:[ |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2635 |
bg := SelectionInListView defaultBackgroundColor. |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2636 |
]. |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2637 |
bg isNil ifTrue:[ |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2638 |
View notNil ifTrue:[ |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2639 |
bg := View defaultBackgroundColor. |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2640 |
]. |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2641 |
bg isNil ifTrue:[ |
16698 | 2642 |
^ Color gray |
13652
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2643 |
]. |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2644 |
]. |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2645 |
|
16698 | 2646 |
(Color gray brightness - (bg brightness)) abs < 0.3 ifTrue:[ |
13652
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2647 |
(bg brightness) > 0.7 ifTrue:[ |
16698 | 2648 |
^ Color gray:20. |
13652
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2649 |
]. |
16698 | 2650 |
^ Color gray:80. |
13652
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2651 |
]. |
16698 | 2652 |
^ Color gray |
13652
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2653 |
|
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2654 |
"Created: / 07-09-2011 / 09:51:12 / cg" |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2655 |
! |
af8438e37bd6
added: #colorForPseudoProtocolsInMethodListInBrowser
Claus Gittinger <cg@exept.de>
parents:
13597
diff
changeset
|
2656 |
|
7549 | 2657 |
emphasisForChangedCode |
10177 | 2658 |
"the emphasis for changed code (in changeSet) in the browser" |
2659 |
||
7549 | 2660 |
|emp| |
2661 |
||
2662 |
emp := self at:#emphasisForChangedCode ifAbsent:nil. |
|
2663 |
emp isNil ifTrue:[ |
|
11143 | 2664 |
emp := #color->Color red darkened. |
2665 |
emp := Array with:#bold with:emp. |
|
2666 |
"/ emp := #color->Color blue darkened. |
|
2667 |
self at:#emphasisForChangedCode put:emp. |
|
7549 | 2668 |
]. |
2669 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2670 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2671 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2672 |
self allInstancesDo:[:pref |pref at:#emphasisForChangedCode put:nil]. |
9807 | 2673 |
UserPreferences current emphasisForChangedCode. |
2674 |
UserPreferences current at:#emphasisForChangedCode put:nil. |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2675 |
" |
9807 | 2676 |
|
10177 | 2677 |
"Modified: / 10-11-2006 / 17:27:23 / cg" |
2678 |
! |
|
2679 |
||
2680 |
emphasisForChangedCodeInSmallTeam |
|
2681 |
"the emphasis for changed code (in a remote changeSet) in the browser. |
|
2682 |
You need the SmallTeam extension to be present for this to work." |
|
2683 |
||
2684 |
|emp| |
|
2685 |
||
2686 |
emp := self at:#emphasisForChangedCodeInSmallTeam ifAbsent:nil. |
|
2687 |
emp isNil ifTrue:[ |
|
11143 | 2688 |
emp := #color->Color yellow darkened. |
2689 |
emp := Array with:#bold with:emp. |
|
2690 |
self at:#emphasisForChangedCodeInSmallTeam put:emp. |
|
10177 | 2691 |
]. |
2692 |
^ emp |
|
2693 |
||
2694 |
" |
|
2695 |
self allInstancesDo:[:pref |pref at:#emphasisForChangedCodeInSmallTeam put:nil]. |
|
2696 |
UserPreferences current emphasisForChangedCodeInSmallTeam. |
|
2697 |
UserPreferences current at:#emphasisForChangedCodeInSmallTeam put:nil. |
|
2698 |
" |
|
2699 |
||
2700 |
"Created: / 10-11-2006 / 16:31:00 / cg" |
|
6832 | 2701 |
! |
2702 |
||
7549 | 2703 |
emphasisForDifferentPackage |
2704 |
|emp| |
|
2705 |
||
2706 |
emp := self at:#emphasisForDifferentPackage ifAbsent:nil. |
|
2707 |
emp isNil ifTrue:[ |
|
11143 | 2708 |
emp := #color->Color green darkened. |
2709 |
"/ emp := Array with:#bold with:emp. |
|
2710 |
self at:#emphasisForDifferentPackage put:emp. |
|
7549 | 2711 |
]. |
2712 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2713 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2714 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2715 |
self allInstancesDo:[:pref |pref at:#emphasisForDifferentPackage put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2716 |
" |
6832 | 2717 |
! |
2718 |
||
12901 | 2719 |
emphasisForInstrumentedFullyCoveredCode |
2720 |
"the emphasis for code in the browser which is instrumented and where all branches have been |
|
2721 |
executed" |
|
2722 |
||
2723 |
|emp| |
|
2724 |
||
2725 |
emp := self at:#emphasisForInstrumentedFullyCoveredCode ifAbsent:nil. |
|
2726 |
emp isNil ifTrue:[ |
|
2727 |
emp := #color->Color green slightlyDarkened. |
|
2728 |
emp := Array with:#bold with:emp. |
|
2729 |
"/ emp := #color->Color blue darkened. |
|
2730 |
self at:#emphasisForInstrumentedFullyCoveredCode put:emp. |
|
2731 |
]. |
|
2732 |
^ emp |
|
2733 |
||
2734 |
" |
|
2735 |
UserPreferences current |
|
2736 |
at:#emphasisForInstrumentedFullyCoveredCode |
|
2737 |
put:(Array with:#bold with:(#color->Color green slightlyDarkened)). |
|
2738 |
" |
|
2739 |
||
2740 |
"Created: / 27-04-2010 / 13:01:01 / cg" |
|
2741 |
"Modified: / 27-04-2010 / 14:48:11 / cg" |
|
2742 |
! |
|
2743 |
||
2744 |
emphasisForInstrumentedNeverCalledCode |
|
2745 |
"the emphasis for code in the browser which is instrumented but has never been called" |
|
2746 |
||
2747 |
|emp| |
|
2748 |
||
2749 |
emp := self at:#emphasisForInstrumentedNeverCalledCode ifAbsent:nil. |
|
2750 |
emp isNil ifTrue:[ |
|
2751 |
emp := #color->Color red slightlyDarkened. |
|
2752 |
emp := Array with:#bold with:emp. |
|
2753 |
"/ emp := #color->Color blue darkened. |
|
2754 |
self at:#emphasisForInstrumentedNeverCalledCode put:emp. |
|
2755 |
]. |
|
2756 |
^ emp |
|
2757 |
||
2758 |
" |
|
2759 |
UserPreferences current |
|
2760 |
at:#emphasisForInstrumentedNeverCalledCode |
|
2761 |
put:(Array with:#bold with:(#color->Color red slightlyDarkened)). |
|
2762 |
" |
|
2763 |
||
2764 |
"Created: / 27-04-2010 / 12:59:47 / cg" |
|
2765 |
"Modified: / 27-04-2010 / 14:48:39 / cg" |
|
2766 |
! |
|
2767 |
||
2768 |
emphasisForInstrumentedPartiallyCoveredCode |
|
2769 |
"the emphasis for code in the browser which is instrumented and where some branches have been |
|
2770 |
executed" |
|
2771 |
||
2772 |
|emp| |
|
2773 |
||
2774 |
emp := self at:#emphasisForInstrumentedPartiallyCoveredCode ifAbsent:nil. |
|
2775 |
emp isNil ifTrue:[ |
|
2776 |
emp := #color->Color orange. |
|
2777 |
emp := Array with:#bold with:emp. |
|
2778 |
"/ emp := #color->Color blue darkened. |
|
2779 |
self at:#emphasisForInstrumentedPartiallyCoveredCode put:emp. |
|
2780 |
]. |
|
2781 |
^ emp |
|
2782 |
||
2783 |
" |
|
2784 |
UserPreferences current |
|
2785 |
at:#emphasisForInstrumentedPartiallyCoveredCode |
|
12902
a7d0611e313a
comment/format in: #emphasisForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents:
12901
diff
changeset
|
2786 |
put:(Array with:#bold with:(#color->Color orange slightlyLightened)). |
12901 | 2787 |
" |
2788 |
||
2789 |
"Created: / 27-04-2010 / 13:01:20 / cg" |
|
12902
a7d0611e313a
comment/format in: #emphasisForInstrumentedPartiallyCoveredCode
Claus Gittinger <cg@exept.de>
parents:
12901
diff
changeset
|
2790 |
"Modified: / 27-04-2010 / 18:50:43 / cg" |
12901 | 2791 |
! |
2792 |
||
7549 | 2793 |
emphasisForModifiedBuffer |
2794 |
|emp| |
|
2795 |
||
2796 |
emp := self at:#emphasisForModifiedBuffer ifAbsent:nil. |
|
2797 |
emp isNil ifTrue:[ |
|
11143 | 2798 |
emp := #color->Color red darkened. |
2799 |
emp := Array with:#bold with:emp. |
|
2800 |
self at:#emphasisForModifiedBuffer put:emp. |
|
7549 | 2801 |
]. |
2802 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2803 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2804 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2805 |
self allInstancesDo:[:pref |pref at:#emphasisForModifiedBuffer put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2806 |
" |
6832 | 2807 |
! |
2808 |
||
13399 | 2809 |
emphasisForNamespacedCode |
2810 |
"the emphasis for changed code (in changeSet) in the browser" |
|
2811 |
||
2812 |
|emp| |
|
2813 |
||
2814 |
emp := self at:#emphasisForNamespacedCode ifAbsent:nil. |
|
2815 |
emp isNil ifTrue:[ |
|
2816 |
emp := #color->Color green darkened. |
|
2817 |
"/ emp := Array with:#bold with:emp. |
|
2818 |
"/ emp := #color->Color blue darkened. |
|
2819 |
self at:#emphasisForNamespacedCode put:emp. |
|
2820 |
]. |
|
2821 |
^ emp |
|
2822 |
||
2823 |
" |
|
2824 |
self allInstancesDo:[:pref |pref at:#emphasisForNamespacedCode put:nil]. |
|
2825 |
UserPreferences current emphasisForNamespacedCode. |
|
2826 |
UserPreferences current at:#emphasisForNamespacedCode put:nil. |
|
2827 |
" |
|
2828 |
||
2829 |
"Created: / 01-07-2010 / 18:39:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2830 |
! |
|
2831 |
||
7549 | 2832 |
emphasisForObsoleteCode |
2833 |
|emp| |
|
2834 |
||
2835 |
emp := self at:#emphasisForObsoleteCode ifAbsent:nil. |
|
2836 |
emp isNil ifTrue:[ |
|
11143 | 2837 |
emp := #color->Color red. |
2838 |
emp := Array with:#bold with:emp. |
|
2839 |
self at:#emphasisForObsoleteCode put:emp. |
|
7549 | 2840 |
]. |
2841 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2842 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2843 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2844 |
self allInstancesDo:[:pref |pref at:#emphasisForObsoleteCode put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
2845 |
" |
6832 | 2846 |
! |
2847 |
||
7549 | 2848 |
emphasisForReadVariable |
2849 |
|emp| |
|
2850 |
||
2851 |
emp := self at:#emphasisForReadVariable ifAbsent:nil. |
|
2852 |
emp isNil ifTrue:[ |
|
11143 | 2853 |
emp := #underline. |
2854 |
self at:#emphasisForReadVariable put:emp. |
|
7549 | 2855 |
]. |
2856 |
^ emp |
|
6832 | 2857 |
! |
2858 |
||
7549 | 2859 |
emphasisForWrittenVariable |
2860 |
|emp| |
|
2861 |
||
2862 |
emp := self at:#emphasisForWrittenVariable ifAbsent:nil. |
|
2863 |
emp isNil ifTrue:[ |
|
11143 | 2864 |
emp := Array with:#underline with:#underlineColor->Color red. |
2865 |
self at:#emphasisForWrittenVariable put:emp. |
|
7549 | 2866 |
]. |
2867 |
^ emp |
|
6832 | 2868 |
! ! |
2869 |
||
7549 | 2870 |
!UserPreferences methodsFor:'accessing-prefs-browser-syntaxColoring'! |
3360 | 2871 |
|
2872 |
argumentIdentifierColor |
|
2873 |
"the color used for argument identifiers; |
|
2874 |
If syntaxColoring is turned on." |
|
2875 |
||
2876 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
2877 |
||
2878 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
2879 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
2880 |
! |
|
2881 |
||
2882 |
argumentIdentifierEmphasis |
|
2883 |
"the emphasis used for argument identifiers; |
|
2884 |
If syntaxColoring is turned on." |
|
2885 |
||
2886 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
2887 |
||
2888 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
2889 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
2890 |
! |
|
2891 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2892 |
badIdentifierColor |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2893 |
"the color used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2894 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2895 |
|
4336 | 2896 |
^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2897 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2898 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2899 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2900 |
badIdentifierEmphasis |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2901 |
"the emphasis used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2902 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2903 |
|
13347 | 2904 |
^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis ifAbsent:#normal] |
2905 |
||
2906 |
"Modified: / 21-04-2011 / 12:34:50 / cg" |
|
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2907 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2908 |
|
3360 | 2909 |
booleanConstantColor |
2910 |
"the color used for boolean constants; |
|
2911 |
If syntaxColoring is turned on." |
|
2912 |
||
16589 | 2913 |
^ self at:#booleanConstantColor ifAbsent:[self constantColor] |
3360 | 2914 |
|
2915 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
2916 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
2917 |
! |
|
2918 |
||
2919 |
booleanConstantEmphasis |
|
2920 |
"the emphasis used for boolean constants; |
|
2921 |
If syntaxColoring is turned on." |
|
2922 |
||
16589 | 2923 |
^ self at:#booleanConstantEmphasis ifAbsent:[self constantEmphasis] |
3360 | 2924 |
|
2925 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
2926 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
2927 |
! |
|
2928 |
||
3361 | 2929 |
bracketColor |
2930 |
"the color used for brackets; |
|
2931 |
If syntaxColoring is turned on." |
|
2932 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2933 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 2934 |
|
2935 |
" |
|
2936 |
self current at:#bracketColor put:Color red. |
|
2937 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2938 |
|
11143 | 2939 |
self current bracketColor |
2940 |
self current bracketEmphasis |
|
3361 | 2941 |
" |
2942 |
||
2943 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
2944 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
2945 |
! |
|
2946 |
||
2947 |
bracketEmphasis |
|
2948 |
"the emphasis used for brackets; |
|
2949 |
If syntaxColoring is turned on." |
|
2950 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2951 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 2952 |
|
2953 |
" |
|
2954 |
self current at:#bracketEmphasis put:#bold |
|
11143 | 2955 |
self current bracketEmphasis |
3361 | 2956 |
" |
2957 |
||
2958 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
2959 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
2960 |
! |
|
2961 |
||
4320 | 2962 |
classVariableIdentifierColor |
2963 |
"the color used for classVar/classInstVar identifiers |
|
2964 |
If syntaxColoring is turned on." |
|
2965 |
||
2966 |
^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
2967 |
||
2968 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
2969 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
2970 |
! |
|
2971 |
||
2972 |
classVariableIdentifierEmphasis |
|
2973 |
"the color used for classVar/classInstVar identifiers |
|
2974 |
If syntaxColoring is turned on." |
|
2975 |
||
2976 |
^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
2977 |
||
2978 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
2979 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
2980 |
! |
|
2981 |
||
14012 | 2982 |
collectionEnumerationSelectorColor |
2983 |
"the color used for some selected collection enumeration |
|
2984 |
selectors (such as collect:, select: etc.); |
|
2985 |
If syntaxColoring is turned on. |
|
2986 |
If left nil, the normal selector color is used." |
|
2987 |
||
2988 |
^ self at:#collectionEnumerationSelectorColor ifAbsent:nil |
|
2989 |
||
2990 |
"Created: / 14-02-2012 / 15:52:39 / cg" |
|
2991 |
! |
|
2992 |
||
2993 |
collectionEnumerationSelectorEmphasis |
|
2994 |
"the color used for some selected collection enumeration |
|
2995 |
selectors (such as collect:, select: etc.); |
|
2996 |
If syntaxColoring is turned on. |
|
2997 |
If left nil, the normal selector emphasis is used." |
|
2998 |
||
2999 |
^ self at:#collectionEnumerationSelectorEmphasis ifAbsent:nil |
|
3000 |
||
3001 |
"Created: / 14-02-2012 / 15:58:58 / cg" |
|
3002 |
! |
|
3003 |
||
3360 | 3004 |
commentColor |
3005 |
"the color used for comments; |
|
3006 |
If syntaxColoring is turned on." |
|
3007 |
||
13346 | 3008 |
^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor ifAbsent:[Color black]] |
3009 |
||
3010 |
"Created: / 31-03-1998 / 15:10:23 / cg" |
|
3011 |
"Modified: / 21-04-2011 / 12:33:39 / cg" |
|
3360 | 3012 |
! |
3013 |
||
3014 |
commentEmphasis |
|
3015 |
"the emphasis used for comments; |
|
3016 |
If syntaxColoring is turned on." |
|
3017 |
||
13347 | 3018 |
^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis ifAbsent:#normal] |
13346 | 3019 |
|
3020 |
"Created: / 31-03-1998 / 15:09:59 / cg" |
|
13347 | 3021 |
"Modified: / 21-04-2011 / 12:34:48 / cg" |
3360 | 3022 |
! |
3023 |
||
5258 | 3024 |
commentEmphasisAndColor |
13307 | 3025 |
^ self emphasis:(self commentEmphasis) andColor:(self commentColor). |
3026 |
||
3027 |
"Modified: / 17-02-2011 / 14:20:41 / cg" |
|
5258 | 3028 |
! |
3029 |
||
15925 | 3030 |
commentFont |
3031 |
"the font used for comments; nil if no special font has been defined. |
|
3032 |
If syntaxColoring is turned on." |
|
3033 |
||
3034 |
^ self at:#commentFont ifAbsent:nil |
|
3035 |
! |
|
3036 |
||
3037 |
commentFont:aFont |
|
3038 |
"the font used for comments; nil if no special font has been defined. |
|
3039 |
If syntaxColoring is turned on." |
|
3040 |
||
3041 |
self at:#commentFont put:aFont |
|
3042 |
||
3043 |
" |
|
3044 |
UserPreferences current commentFont:(XftFontDescription family: 'Comic Sans' size: 12) |
|
3045 |
UserPreferences current commentFont |
|
3046 |
" |
|
3047 |
! |
|
3048 |
||
3360 | 3049 |
constantColor |
3050 |
"the color used for constants; |
|
3051 |
If syntaxColoring is turned on." |
|
3052 |
||
13346 | 3053 |
^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor ifAbsent:[Color black]] |
3054 |
||
3055 |
"Created: / 31-03-1998 / 18:13:15 / cg" |
|
3056 |
"Modified: / 21-04-2011 / 12:33:36 / cg" |
|
3360 | 3057 |
! |
3058 |
||
3059 |
constantEmphasis |
|
3060 |
"the emphasis used for constants; |
|
3061 |
If syntaxColoring is turned on." |
|
3062 |
||
3063 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
3064 |
||
3065 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
3066 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
3067 |
! |
|
3068 |
||
9834 | 3069 |
controlFlowSelectorColor |
3070 |
"the color used for some selected controlFlow selectors (such as if, while etc.); |
|
3071 |
If syntaxColoring is turned on." |
|
3072 |
||
14012 | 3073 |
^ self at:#controlFlowSelectorColor ifAbsent:nil |
9834 | 3074 |
|
3075 |
"Created: / 08-09-2006 / 15:51:20 / cg" |
|
3076 |
! |
|
3077 |
||
3078 |
controlFlowSelectorEmphasis |
|
3079 |
"the emphasis used for some selected controlFlow selectors (such as if, while etc.); |
|
3080 |
If syntaxColoring is turned on." |
|
3081 |
||
14012 | 3082 |
^ self at:#controlFlowSelectorEmphasis ifAbsent:nil |
9834 | 3083 |
|
3084 |
"Created: / 08-09-2006 / 15:51:04 / cg" |
|
3085 |
! |
|
3086 |
||
15545 | 3087 |
debugSelectorColor |
3088 |
"the color used for some selected debug |
|
3089 |
selectors (such as halt etc.); |
|
3090 |
If syntaxColoring is turned on. |
|
3091 |
If left nil, the normal selector color is used." |
|
3092 |
||
3093 |
^ self at:#debugSelectorColor ifAbsent:nil |
|
3094 |
! |
|
3095 |
||
3096 |
debugSelectorEmphasis |
|
3097 |
"the color used for some selected debug |
|
3098 |
selectors (such as halt etc.); |
|
3099 |
If syntaxColoring is turned on. |
|
3100 |
If left nil, the normal selector emphasis is used." |
|
3101 |
||
3102 |
^ self at:#debugSelectorEmphasis ifAbsent:nil |
|
3103 |
! |
|
3104 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3105 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3106 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3107 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3108 |
|
13346 | 3109 |
^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor ifAbsent:[Color black]] |
3110 |
||
3111 |
"Modified: / 21-04-2011 / 12:31:48 / cg" |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3112 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3113 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3114 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3115 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3116 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3117 |
|
13307 | 3118 |
^ self |
3119 |
at:#defaultSyntaxEmphasis |
|
13347 | 3120 |
ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis ifAbsent:#normal] |
3121 |
||
3122 |
"Modified: / 21-04-2011 / 12:34:46 / cg" |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3123 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3124 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3125 |
doesNotUnderstand:aMessage |
4580 | 3126 |
|k def| |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3127 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3128 |
k := aMessage selector. |
6252 | 3129 |
aMessage numArgs == 0 ifTrue:[ |
13597
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3130 |
(self includesKey:k) ifTrue:[ |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3131 |
^ self at:k |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3132 |
]. |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3133 |
((def := self class default) includesKey:k) ifTrue:[ |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3134 |
^ def at:k |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3135 |
]. |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3136 |
^ self defaultValue |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3137 |
]. |
13597
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3138 |
|
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3139 |
"/ this is needed, if a setting is loaded (via the settings.stx) at a time |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3140 |
"/ when the corresponding package which uses that setting is not yet loaded; |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3141 |
"/ for example: libsvn settings, with no libsvn being present. |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3142 |
"/ if obsolete keys accumulate over time, we might need a settings cleanup GUI to |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3143 |
"/ care for that. |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3144 |
|
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3145 |
((aMessage numArgs == 1) |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3146 |
and:[ (k endsWith:$:)]) |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3147 |
ifTrue:[ |
16695 | 3148 |
k := (k copyButLast) asSymbol. |
13597
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3149 |
^ self at:k put:(aMessage arg1) |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3150 |
]. |
6252 | 3151 |
|
7272 | 3152 |
aMessage numArgs == 1 ifTrue:[ |
13597
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3153 |
('UserPreferences [info]: obsolete settings key: ' , aMessage selector , ' - ignored.') infoPrintCR. |
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3154 |
^ nil |
7272 | 3155 |
]. |
6252 | 3156 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3157 |
^ super doesNotUnderstand:aMessage |
13597
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3158 |
|
1d17dd4b5fda
changed: #doesNotUnderstand:
Claus Gittinger <cg@exept.de>
parents:
13596
diff
changeset
|
3159 |
"Modified (comment): / 19-08-2011 / 14:01:56 / cg" |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3160 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3161 |
|
13307 | 3162 |
emphasis:e andColor:c |
3163 |
^ Text addEmphasis:e to:(#color->c). |
|
3164 |
||
3165 |
"Created: / 17-02-2011 / 14:20:25 / cg" |
|
3166 |
! |
|
3167 |
||
8965
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3168 |
emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3169 |
^ self at:#emphasizeParenthesisLevel ifAbsent:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3170 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3171 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3172 |
UserPreferences current emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3173 |
UserPreferences current emphasizeParenthesisLevel:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3174 |
UserPreferences current emphasizeParenthesisLevel:false |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3175 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3176 |
! |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3177 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3178 |
emphasizeParenthesisLevel:aBoolean |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3179 |
self at:#emphasizeParenthesisLevel put:aBoolean |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3180 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3181 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3182 |
UserPreferences current emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3183 |
UserPreferences current emphasizeParenthesisLevel:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3184 |
UserPreferences current emphasizeParenthesisLevel:false |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3185 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3186 |
! |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
3187 |
|
4341 | 3188 |
errorColor |
3189 |
"the color used for illegal identifiers; |
|
3190 |
If syntaxColoring is turned on." |
|
3191 |
||
13346 | 3192 |
^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor ifAbsent:[Color black]] |
3193 |
||
3194 |
"Modified: / 21-04-2011 / 12:33:33 / cg" |
|
4341 | 3195 |
! |
3196 |
||
15545 | 3197 |
errorRaisingSelectorColor |
3198 |
"the color used for some selected error raising |
|
3199 |
selectors (such as raise etc.); |
|
3200 |
If syntaxColoring is turned on. |
|
3201 |
If left nil, the normal selector color is used." |
|
3202 |
||
3203 |
^ self at:#errorRaisingSelectorColor ifAbsent:nil |
|
3204 |
! |
|
3205 |
||
3206 |
errorRaisingSelectorEmphasis |
|
3207 |
"the color used for some selected error raising |
|
3208 |
selectors (such as raise etc.); |
|
3209 |
If syntaxColoring is turned on. |
|
3210 |
If left nil, the normal selector emphasis is used." |
|
3211 |
||
3212 |
^ self at:#errorRaisingSelectorEmphasis ifAbsent:nil |
|
3213 |
! |
|
3214 |
||
4306 | 3215 |
fullSelectorCheck |
3216 |
"with fullSelector check, selectors are searched immediately for |
|
3217 |
being implemented in the system. This may not be useful on slow machines" |
|
3218 |
||
4628 | 3219 |
^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck] |
4306 | 3220 |
|
3221 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
3222 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
3223 |
! |
|
3224 |
||
4023 | 3225 |
globalClassIdentifierColor |
3226 |
"the color used for global identifiers which are known to be classes; |
|
3227 |
If syntaxColoring is turned on." |
|
3228 |
||
3229 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
3230 |
||
3231 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
3232 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
3233 |
! |
|
3234 |
||
3235 |
globalClassIdentifierEmphasis |
|
3236 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
3237 |
If syntaxColoring is turned on." |
|
3238 |
||
3239 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
3240 |
||
3241 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
3242 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
3243 |
! |
|
3244 |
||
3360 | 3245 |
globalIdentifierColor |
3246 |
"the color used for global identifiers; |
|
3247 |
If syntaxColoring is turned on." |
|
3248 |
||
3249 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
3250 |
||
3251 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
3252 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
3253 |
! |
|
3254 |
||
3255 |
globalIdentifierEmphasis |
|
3256 |
"the emphasis used for global variable identifiers; |
|
3257 |
If syntaxColoring is turned on." |
|
3258 |
||
3259 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
3260 |
||
3261 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
3262 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
3263 |
! |
|
3264 |
||
3265 |
hereColor |
|
3266 |
"the color used for the here pseudoVariable; |
|
3267 |
If syntaxColoring is turned on." |
|
3268 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3269 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 3270 |
|
3271 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
3272 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
3273 |
! |
|
3274 |
||
3275 |
hereEmphasis |
|
3276 |
"the emphasis used for the hre special variable; |
|
3277 |
If syntaxColoring is turned on." |
|
3278 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3279 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 3280 |
|
3281 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
3282 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
3283 |
! |
|
3284 |
||
3285 |
identifierColor |
|
3286 |
"the color used for other identifiers; |
|
3287 |
If syntaxColoring is turned on." |
|
3288 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3289 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 3290 |
|
3362 | 3291 |
" |
3292 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
3293 |
UserPreferences current at:#identifierColor put:Color black. |
|
3294 |
" |
|
3295 |
||
3360 | 3296 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 3297 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 3298 |
! |
3299 |
||
3300 |
identifierEmphasis |
|
3301 |
"the emphasis used for other identifiers; |
|
3302 |
If syntaxColoring is turned on." |
|
3303 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3304 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 3305 |
|
3306 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
3307 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
3308 |
! |
|
3309 |
||
3378 | 3310 |
instVarIdentifierColor |
3377 | 3311 |
"the color used for instance variable identifiers; |
3312 |
If syntaxColoring is turned on." |
|
3313 |
||
3378 | 3314 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 3315 |
|
3316 |
" |
|
3378 | 3317 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
3318 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
11143 | 3319 |
UserPreferences current instVarIdentifierColor |
3377 | 3320 |
" |
3321 |
||
3322 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 3323 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 3324 |
! |
3325 |
||
3378 | 3326 |
instVarIdentifierEmphasis |
3377 | 3327 |
"the emphais used for instance variable identifiers; |
3328 |
If syntaxColoring is turned on." |
|
3329 |
||
3378 | 3330 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 3331 |
|
3332 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 3333 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 3334 |
! |
3335 |
||
8420 | 3336 |
jsKeywordColor |
3337 |
^ self at:#jsKeywordColor ifAbsentPut:[self defaultSyntaxColor] |
|
3338 |
! |
|
3339 |
||
3340 |
jsKeywordEmphasis |
|
3341 |
^ self at:#jsKeywordEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
|
3342 |
! |
|
3343 |
||
3360 | 3344 |
localIdentifierColor |
3345 |
"the color used for local variable identifiers; |
|
3346 |
If syntaxColoring is turned on." |
|
3347 |
||
9144 | 3348 |
^ self at:#localIdentifierColor ifAbsent:[self identifierColor] |
3360 | 3349 |
|
3362 | 3350 |
" |
3351 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
3352 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
3353 |
" |
|
3354 |
||
3360 | 3355 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 3356 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 3357 |
! |
3358 |
||
3359 |
localIdentifierEmphasis |
|
3360 |
"the emphais used for local variable identifiers; |
|
3361 |
If syntaxColoring is turned on." |
|
3362 |
||
9144 | 3363 |
^ self at:#localIdentifierEmphasis ifAbsent:[self identifierEmphasis] |
3360 | 3364 |
|
3365 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
3366 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3367 |
! |
|
3368 |
||
3369 |
methodSelectorColor |
|
3370 |
"the color used for a methods selector pattern; |
|
3371 |
If syntaxColoring is turned on." |
|
3372 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3373 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 3374 |
|
3375 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
3376 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
3377 |
! |
|
3378 |
||
3379 |
methodSelectorEmphasis |
|
3380 |
"the emphasis used for a methods selector pattern; |
|
3381 |
If syntaxColoring is turned on." |
|
3382 |
||
13347 | 3383 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis ifAbsent:#normal] |
13346 | 3384 |
|
3385 |
"Created: / 31-03-1998 / 15:11:16 / cg" |
|
13347 | 3386 |
"Modified: / 21-04-2011 / 12:34:42 / cg" |
3360 | 3387 |
! |
3388 |
||
9144 | 3389 |
numberConstantColor |
3390 |
"the color used for number constants; |
|
3391 |
If syntaxColoring is turned on." |
|
3392 |
||
3393 |
^ self at:#numberConstantColor ifAbsent:[ self constantColor ] |
|
3394 |
! |
|
3395 |
||
3396 |
numberConstantEmphasis |
|
3397 |
"the emphasis used for number constants; |
|
3398 |
If syntaxColoring is turned on." |
|
3399 |
||
3400 |
^ self at:#numberConstantEmphasis ifAbsent:[ self constantEmphasis ] |
|
3401 |
! |
|
3402 |
||
8551 | 3403 |
poolVariableIdentifierColor |
3404 |
"the color used for pool variable identifiers |
|
3405 |
If syntaxColoring is turned on." |
|
3406 |
||
3407 |
^ self at:#poolVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
3408 |
! |
|
3409 |
||
3410 |
poolVariableIdentifierEmphasis |
|
3411 |
"the color used for pool variable identifiers |
|
3412 |
If syntaxColoring is turned on." |
|
3413 |
||
3414 |
^ self at:#poolVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
3415 |
! |
|
3416 |
||
4076 | 3417 |
returnColor |
3418 |
"the color used for the return expression; |
|
3419 |
If syntaxColoring is turned on." |
|
3420 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3421 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 3422 |
|
3423 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
3424 |
! |
|
3425 |
||
3426 |
returnEmphasis |
|
3427 |
"the emphasis used for returns; |
|
3428 |
If syntaxColoring is turned on." |
|
3429 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3430 |
^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 3431 |
|
3432 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
3433 |
! |
|
3434 |
||
3360 | 3435 |
selectorColor |
3436 |
"the color used for message selectors; |
|
3437 |
If syntaxColoring is turned on." |
|
3438 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3439 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 3440 |
|
3441 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
3442 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
3443 |
! |
|
3444 |
||
3445 |
selectorEmphasis |
|
3446 |
"the emphasis used for message selectors; |
|
3447 |
If syntaxColoring is turned on." |
|
3448 |
||
13347 | 3449 |
^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis ifAbsent:#normal] |
13346 | 3450 |
|
3451 |
"Created: / 31-03-1998 / 15:19:09 / cg" |
|
13347 | 3452 |
"Modified: / 21-04-2011 / 12:34:39 / cg" |
3360 | 3453 |
! |
3454 |
||
3455 |
selfColor |
|
3456 |
"the color used for the self pseudoVariable; |
|
3457 |
If syntaxColoring is turned on." |
|
3458 |
||
3459 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
3460 |
||
3461 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
3462 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
3463 |
! |
|
3464 |
||
3465 |
selfEmphasis |
|
3466 |
"the emphasis used for the self pseudoVariable; |
|
3467 |
If syntaxColoring is turned on." |
|
3468 |
||
3469 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
3470 |
||
3471 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
3472 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
3473 |
! |
|
3474 |
||
14004 | 3475 |
sideEffectAssignmentBackgroundColor |
3476 |
"the bg-color used for assignments with side effect (i.e. to instvars, globals, classvars or pool vars). |
|
3477 |
If nil is returned, the variable's color is used" |
|
3478 |
||
3479 |
^ self at:#sideEffectAssignmentBackgroundColor ifAbsent:[ nil ] |
|
3480 |
||
3481 |
"Created: / 13-02-2012 / 11:35:20 / cg" |
|
3482 |
! |
|
3483 |
||
3484 |
sideEffectAssignmentColor |
|
3485 |
"the color used for assignments with side effect (i.e. to instvars, globals, classvars or pool vars). |
|
3486 |
If nil is returned, the variable's color is used" |
|
3487 |
||
3488 |
^ self at:#sideEffectAssignmentColor ifAbsent:[ nil ] |
|
3489 |
||
3490 |
"Created: / 13-02-2012 / 11:35:09 / cg" |
|
3491 |
! |
|
3492 |
||
3360 | 3493 |
stringColor |
3494 |
"the color used for string constants; |
|
3495 |
If syntaxColoring is turned on." |
|
3496 |
||
16589 | 3497 |
^ self at:#stringColor ifAbsent:[self constantColor] |
3360 | 3498 |
|
3499 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
3500 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
3501 |
! |
|
3502 |
||
3503 |
stringEmphasis |
|
3504 |
"the emphasis used for string constants; |
|
3505 |
If syntaxColoring is turned on." |
|
3506 |
||
3507 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
3508 |
||
3509 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
3510 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
3511 |
! |
|
3512 |
||
13308
d49548a99889
added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents:
13307
diff
changeset
|
3513 |
stringEmphasisAndColor |
d49548a99889
added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents:
13307
diff
changeset
|
3514 |
^ self emphasis:(self stringEmphasis) andColor:(self stringColor). |
d49548a99889
added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents:
13307
diff
changeset
|
3515 |
|
d49548a99889
added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents:
13307
diff
changeset
|
3516 |
"Created: / 17-02-2011 / 14:29:10 / cg" |
d49548a99889
added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents:
13307
diff
changeset
|
3517 |
! |
d49548a99889
added: #stringEmphasisAndColor
Claus Gittinger <cg@exept.de>
parents:
13307
diff
changeset
|
3518 |
|
3360 | 3519 |
superColor |
3520 |
"the color used for the super pseudoVariable; |
|
3521 |
If syntaxColoring is turned on." |
|
3522 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3523 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 3524 |
|
3525 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
3526 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
3527 |
! |
|
3528 |
||
3529 |
superEmphasis |
|
3530 |
"the emphasis used for the super pseudoVariable; |
|
3531 |
If syntaxColoring is turned on." |
|
3532 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3533 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 3534 |
|
3535 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
3536 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
3537 |
! |
|
3538 |
||
3539 |
symbolColor |
|
3540 |
"the color used for symbol constants; |
|
3541 |
If syntaxColoring is turned on." |
|
3542 |
||
16589 | 3543 |
^ self at:#symbolColor ifAbsent:[self constantColor] |
3360 | 3544 |
|
3545 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
3546 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
3547 |
! |
|
3548 |
||
3549 |
symbolEmphasis |
|
3550 |
"the emphasis used for symbol constants; |
|
3551 |
If syntaxColoring is turned on." |
|
3552 |
||
3553 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
3554 |
||
3555 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
3556 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 3557 |
! |
3558 |
||
3559 |
thisContextColor |
|
3360 | 3560 |
"the color used for the thisContext pseudoVariable; |
3561 |
If syntaxColoring is turned on." |
|
3562 |
||
3355 | 3563 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 3564 |
|
3565 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 3566 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 3567 |
! |
3568 |
||
3569 |
thisContextEmphasis |
|
3360 | 3570 |
"the emphasis used for the thisContext pseudoVariable; |
3571 |
If syntaxColoring is turned on." |
|
3572 |
||
3355 | 3573 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 3574 |
|
3575 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 3576 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 3577 |
! |
3578 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3579 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3580 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3581 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3582 |
|
13346 | 3583 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor ifAbsent:[Color black]] |
3584 |
||
3585 |
"Modified: / 21-04-2011 / 12:33:29 / cg" |
|
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3586 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3587 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3588 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3589 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3590 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3591 |
|
13347 | 3592 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis ifAbsent:#normal] |
13346 | 3593 |
|
3594 |
"Created: / 31-03-1998 / 15:19:09 / cg" |
|
13347 | 3595 |
"Modified: / 21-04-2011 / 12:34:36 / cg" |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3596 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
3597 |
|
3354 | 3598 |
unknownIdentifierColor |
3360 | 3599 |
"the color used for unknown identifiers; |
3600 |
If syntaxColoring is turned on." |
|
3601 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
3602 |
^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor] |
3354 | 3603 |
|
3361 | 3604 |
" |
3605 |
self current at:#unknownIdentifierColor put:Color red. |
|
3606 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3607 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3608 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
3609 |
self current unknownIdentifierEmphasis |
3361 | 3610 |
" |
3611 |
||
3354 | 3612 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 3613 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 3614 |
! |
3615 |
||
3616 |
unknownIdentifierEmphasis |
|
3360 | 3617 |
"the emphasis used for unknown identifiers; |
3618 |
If syntaxColoring is turned on." |
|
3619 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
3620 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis] |
3354 | 3621 |
|
3622 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 3623 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
13307 | 3624 |
! |
3625 |
||
13522 | 3626 |
xmlAttributeColor |
3627 |
"the emphasis used for xml-attributes; |
|
3628 |
If syntaxColoring is turned on." |
|
3629 |
||
3630 |
^ self at:#xmlAttributeColor ifAbsentPut:[ Color green darkened ] |
|
3631 |
||
3632 |
" |
|
3633 |
self current at:#xmlAttributeColor put:Color black |
|
3634 |
self current xmlAttributeColor |
|
3635 |
" |
|
3636 |
||
3637 |
"Created: / 24-07-2011 / 21:30:59 / cg" |
|
3638 |
! |
|
3639 |
||
3640 |
xmlAttributeEmphasis |
|
3641 |
"the emphasis used for xml-attributes; |
|
3642 |
If syntaxColoring is turned on." |
|
3643 |
||
3644 |
^ self at:#xmlAttributeEmphasis ifAbsentPut:[ #normal ] |
|
3645 |
||
3646 |
" |
|
3647 |
self current at:#xmlAttributeEmphasis put:#normal |
|
3648 |
self current xmlAttributeEmphasis |
|
3649 |
" |
|
3650 |
||
3651 |
"Created: / 24-07-2011 / 21:30:29 / cg" |
|
3652 |
! |
|
3653 |
||
3654 |
xmlCDataColor |
|
3655 |
"the emphasis used for xml-CData; |
|
3656 |
If syntaxColoring is turned on." |
|
3657 |
||
3658 |
^ self at:#xmlCDataColor ifAbsentPut:[ Color blue ] |
|
3659 |
||
3660 |
" |
|
3661 |
self current at:#xmlCDataColor put:Color black |
|
3662 |
self current xmlCDataColor |
|
3663 |
" |
|
3664 |
||
3665 |
"Created: / 24-07-2011 / 21:31:30 / cg" |
|
3666 |
! |
|
3667 |
||
3668 |
xmlCDataEmphasis |
|
3669 |
"the emphasis used for xml-CData; |
|
3670 |
If syntaxColoring is turned on." |
|
3671 |
||
3672 |
^ self at:#xmlCDataEmphasis ifAbsentPut:[ #normal ] |
|
3673 |
||
3674 |
" |
|
3675 |
self current at:#xmlCDataEmphasis put:#normal |
|
3676 |
self current xmlCDataEmphasis |
|
3677 |
" |
|
3678 |
||
3679 |
"Created: / 24-07-2011 / 21:31:52 / cg" |
|
3680 |
! |
|
3681 |
||
13307 | 3682 |
xmlTagColor |
3683 |
"the emphasis used for xml-tags; |
|
3684 |
If syntaxColoring is turned on." |
|
3685 |
||
3686 |
^ self at:#xmlTagColor ifAbsentPut:[ Color blue ] |
|
3687 |
||
3688 |
" |
|
3689 |
self current at:#xmlTagColor put:Color black |
|
3690 |
self current xmlTagColor |
|
3691 |
" |
|
3692 |
||
3693 |
"Created: / 17-02-2011 / 14:18:28 / cg" |
|
3694 |
! |
|
3695 |
||
3696 |
xmlTagEmphasis |
|
3697 |
"the emphasis used for xml-tags; |
|
3698 |
If syntaxColoring is turned on." |
|
3699 |
||
3700 |
^ self at:#xmlTagEmphasis ifAbsentPut:[ #bold ] |
|
3701 |
||
3702 |
" |
|
3703 |
self current at:#xmlTagEmphasis put:#normal |
|
3704 |
self current xmlTagEmphasis |
|
3705 |
" |
|
3706 |
||
3707 |
"Created: / 17-02-2011 / 14:18:01 / cg" |
|
3347 | 3708 |
! ! |
3709 |
||
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3710 |
!UserPreferences methodsFor:'accessing-prefs-code'! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3711 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3712 |
categoryForMenuActionsMethods |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3713 |
^ 'menu actions'. |
12117
5ffce12a6b14
added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12104
diff
changeset
|
3714 |
! |
5ffce12a6b14
added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12104
diff
changeset
|
3715 |
|
15715 | 3716 |
haltInObsoleteMethod |
3717 |
"sometimes, these are annoying..." |
|
3718 |
||
3719 |
^ self at:#haltInObsoleteMethod ifAbsent:true |
|
3720 |
||
3721 |
" |
|
3722 |
UserPreferences current haltInObsoleteMethod |
|
3723 |
||
3724 |
UserPreferences current haltInObsoleteMethod:true |
|
3725 |
UserPreferences current haltInObsoleteMethod:false |
|
3726 |
" |
|
3727 |
! |
|
3728 |
||
13722 | 3729 |
ignorePublicPrivateCategories |
3730 |
"used when loading dolphin code (which defines multiple categories per method); |
|
3731 |
if on, categories like public and private are ignored (if the method already has a category). |
|
3732 |
Turn this on, to get reasonable categories when loading dolphin code" |
|
3733 |
||
3734 |
^ self at:#ignorePublicPrivateCategories ifAbsent:true |
|
3735 |
||
3736 |
" |
|
3737 |
UserPreferences current ignorePublicPrivateCategories |
|
3738 |
" |
|
3739 |
||
3740 |
"Created: / 23-09-2011 / 19:49:37 / cg" |
|
3741 |
! |
|
3742 |
||
3743 |
ignorePublicPrivateCategories:aBoolean |
|
3744 |
"used when loading dolphin code (which defines multiple categories per method); |
|
3745 |
if on, categories like public and private are ignored (if the method already has a category). |
|
3746 |
Turn this on, to get reasonable categories when loading dolphin code" |
|
3747 |
||
3748 |
self at:#ignorePublicPrivateCategories put:aBoolean |
|
3749 |
||
3750 |
" |
|
3751 |
UserPreferences current ignorePublicPrivateCategories |
|
3752 |
" |
|
3753 |
||
3754 |
"Created: / 23-09-2011 / 19:49:54 / cg" |
|
3755 |
! |
|
3756 |
||
12618 | 3757 |
keepMethodSourceCode |
3758 |
"when fetching the source from a file/cvs, should the source be kept in the image ? |
|
12619 | 3759 |
If on, the image will grow over time by about 10-20 Mb. |
3760 |
(will stay that high, even if switched off afterwards)" |
|
12618 | 3761 |
|
3762 |
^ self at:#keepMethodSourceCode ifAbsent:false |
|
3763 |
||
3764 |
" |
|
3765 |
UserPreferences current keepMethodSourceCode |
|
3766 |
" |
|
3767 |
! |
|
3768 |
||
3769 |
keepMethodSourceCode:aBoolean |
|
3770 |
"when fetching the source from a file/cvs, should the source be kept in the image ? |
|
12619 | 3771 |
If on, the image will grow over time by about 10-20 Mb. |
3772 |
(will stay that high, even if switched off afterwards)" |
|
12618 | 3773 |
|
3774 |
^ self at:#keepMethodSourceCode put:aBoolean |
|
3775 |
||
3776 |
" |
|
3777 |
UserPreferences current keepMethodSourceCode |
|
3778 |
UserPreferences current keepMethodSourceCode:true |
|
3779 |
" |
|
3780 |
! |
|
3781 |
||
12117
5ffce12a6b14
added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12104
diff
changeset
|
3782 |
numberOfLinesForLongMethod |
5ffce12a6b14
added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12104
diff
changeset
|
3783 |
"how many lines for a method's source to be considered as 'long'" |
5ffce12a6b14
added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12104
diff
changeset
|
3784 |
|
12175
d22d131dbfed
changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12167
diff
changeset
|
3785 |
^ self at:#numberOfLinesForLongMethod ifAbsent:30 |
d22d131dbfed
changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12167
diff
changeset
|
3786 |
|
d22d131dbfed
changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12167
diff
changeset
|
3787 |
" |
d22d131dbfed
changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12167
diff
changeset
|
3788 |
UserPreferences current numberOfLinesForLongMethod |
d22d131dbfed
changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12167
diff
changeset
|
3789 |
" |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3790 |
! ! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
3791 |
|
12501 | 3792 |
!UserPreferences methodsFor:'accessing-prefs-code generator'! |
3793 |
||
3794 |
generateComments |
|
3795 |
"return true; comments shall be generated (by the codeGenerator tool)" |
|
3796 |
||
3797 |
^ self at:#generateComments ifAbsent:true. |
|
3798 |
||
3799 |
" |
|
3800 |
UserPreferences current generateComments |
|
3801 |
UserPreferences current generateComments:false |
|
3802 |
UserPreferences current generateComments:true |
|
3803 |
" |
|
3804 |
! |
|
3805 |
||
3806 |
generateComments:aBoolean |
|
3807 |
"true if comments shall be generated (by the codeGenerator tool)" |
|
3808 |
||
3809 |
self at:#generateComments put:aBoolean. |
|
3810 |
||
3811 |
" |
|
3812 |
UserPreferences current generateComments |
|
3813 |
UserPreferences current generateComments:false |
|
3814 |
" |
|
3815 |
! |
|
3816 |
||
3817 |
generateCommentsForAspectMethods |
|
3818 |
"return true; comments shall be generated (by the codeGenerator tool)" |
|
3819 |
||
3820 |
^ self at:#generateCommentsForAspectMethods ifAbsent:true. |
|
3821 |
||
3822 |
" |
|
3823 |
UserPreferences current generateCommentsForAspectMethods |
|
3824 |
" |
|
3825 |
! |
|
3826 |
||
3827 |
generateCommentsForAspectMethods:aBoolean |
|
3828 |
"true if comments shall be generated (by the codeGenerator tool)" |
|
3829 |
||
3830 |
self at:#generateCommentsForAspectMethods put:aBoolean. |
|
3831 |
||
3832 |
" |
|
3833 |
UserPreferences current generateCommentsForAspectMethods:false |
|
3834 |
" |
|
3835 |
! |
|
3836 |
||
3837 |
generateCommentsForGetters |
|
3838 |
"return true if comments for simple getters are to be generated (by the codeGenerator tool). |
|
3839 |
The default is now false, as these look stupid in the browser and were only generated |
|
3840 |
for the HTMLDocumentGenerator, which is not able to generate these comments on the fly." |
|
3841 |
||
3842 |
^ self generateComments and:[self at:#generateCommentsForGetters ifAbsent:false]. |
|
3843 |
||
3844 |
" |
|
3845 |
UserPreferences current generateCommentsForGetters |
|
3846 |
" |
|
3847 |
! |
|
3848 |
||
3849 |
generateCommentsForGetters:aBoolean |
|
3850 |
"true if comments for simple getters are to be generated (by the codeGenerator tool). |
|
3851 |
The default is now false, as these look stupid in the browser and were only generated |
|
3852 |
for the HTMLDocumentGenerator, which is not able to generate these comments on the fly." |
|
3853 |
||
3854 |
self at:#generateCommentsForGetters put:aBoolean. |
|
3855 |
||
3856 |
" |
|
3857 |
UserPreferences current generateCommentsForGetters |
|
3858 |
" |
|
3859 |
! |
|
3860 |
||
3861 |
generateCommentsForSetters |
|
3862 |
"return true if comments for simple setters are to be generated (by the codeGenerator tool). |
|
3863 |
The default is now false, as these look stupid in the browser and were only generated |
|
3864 |
for the HTMLDocumentGenerator, which is not able to generate these comments on the fly." |
|
3865 |
||
3866 |
^ self generateComments and:[self at:#generateCommentsForSetters ifAbsent:false]. |
|
3867 |
||
3868 |
" |
|
3869 |
UserPreferences current generateCommentsForSetters |
|
3870 |
" |
|
3871 |
! |
|
3872 |
||
3873 |
generateCommentsForSetters:aBoolean |
|
3874 |
"true if comments for simple setters are to be generated (by the codeGenerator tool). |
|
3875 |
The default is now false, as these look stupid in the browser and were only generated |
|
3876 |
for the HTMLDocumentGenerator, which is not able to generate these comments on the fly." |
|
3877 |
||
3878 |
self at:#generateCommentsForSetters put:aBoolean. |
|
3879 |
||
3880 |
" |
|
3881 |
UserPreferences current generateSommentsForGetters |
|
3882 |
" |
|
3883 |
! ! |
|
3884 |
||
14732 | 3885 |
!UserPreferences methodsFor:'accessing-prefs-code view'! |
3886 |
||
15426 | 3887 |
assignmentBackgroundColorForNavigationService |
3888 |
^ (Color rgbValue:16rFFDBDB) |
|
3889 |
! |
|
3890 |
||
15290 | 3891 |
codeView2AutoPrettyPrint |
3892 |
||
3893 |
^self at:#codeView2AutoPrettyPrint ifAbsent: false |
|
3894 |
||
3895 |
" |
|
3896 |
UserPreferences current codeView2AutoPrettyPrint |
|
3897 |
UserPreferences current codeView2AutoPrettyPrint:true |
|
3898 |
UserPreferences current codeView2AutoPrettyPrint:false" |
|
3899 |
||
3900 |
"Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3901 |
"Created: / 07-08-2011 / 12:46:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3902 |
! |
|
3903 |
||
3904 |
codeView2AutoPrettyPrint: aBoolean |
|
3905 |
||
3906 |
^self at:#codeView2AutoPrettyPrint put: aBoolean |
|
3907 |
||
3908 |
" |
|
3909 |
UserPreferences current codeView2AutoPrettyPrint |
|
3910 |
UserPreferences current codeView2AutoPrettyPrint:true |
|
3911 |
UserPreferences current codeView2AutoPrettyPrint:false" |
|
3912 |
||
3913 |
"Modified: / 15-02-2010 / 09:26:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3914 |
"Created: / 07-08-2011 / 12:47:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3915 |
! |
|
3916 |
||
14732 | 3917 |
codeView2QuickSendersAndImplementorsOnControl |
14733 | 3918 |
"if true, CTRL-click opens the quick senders/implementors menu; |
3919 |
if false, you have to press ALT" |
|
3920 |
||
14732 | 3921 |
^self at:#codeView2QuickSendersAndImplementorsOnControl ifAbsent: false |
3922 |
||
3923 |
" |
|
3924 |
UserPreferences current codeView2QuickSendersAndImplementorsOnControl |
|
3925 |
UserPreferences current codeView2QuickSendersAndImplementorsOnControl:true |
|
3926 |
UserPreferences current codeView2QuickSendersAndImplementorsOnControl:false" |
|
3927 |
! |
|
3928 |
||
3929 |
codeView2QuickSendersAndImplementorsOnControl: aBoolean |
|
14733 | 3930 |
"if true, CTRL-click opens the quick senders/implementors menu; |
3931 |
if false, you have to press ALT" |
|
3932 |
||
14732 | 3933 |
^self at:#codeView2QuickSendersAndImplementorsOnControl put: aBoolean |
3934 |
||
3935 |
" |
|
3936 |
UserPreferences current codeView2QuickSendersAndImplementorsOnControl |
|
3937 |
UserPreferences current codeView2QuickSendersAndImplementorsOnControl:true |
|
3938 |
UserPreferences current codeView2QuickSendersAndImplementorsOnControl:false" |
|
14915 | 3939 |
! |
3940 |
||
3941 |
selectorBackgroundColorForNavigationService |
|
3942 |
^ (Color rgbValue:"16rADD9FF" 16rDBEEFF) |
|
3943 |
! |
|
3944 |
||
3945 |
variableBackgroundColorForNavigationService |
|
16385 | 3946 |
^ self |
3947 |
at: #variableBackgroundColorForNavigationService |
|
3948 |
ifAbsent: [ |
|
3949 |
(Color rgbValue:16rFFFFA7) |
|
3950 |
"/ (Color rgbValue:16rEFD7A7) |
|
3951 |
] |
|
15960 | 3952 |
|
3953 |
"Modified: / 01-10-2013 / 11:35:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
14732 | 3954 |
! ! |
13547
f08daec3c459
changed: #historyManagerSignature
Claus Gittinger <cg@exept.de>
parents:
13523
diff
changeset
|
3955 |
|
10055 | 3956 |
!UserPreferences methodsFor:'accessing-prefs-editor'! |
3957 |
||
15913 | 3958 |
appendAbbreviationsToCompletionSuggestions |
3959 |
"show abbreviations in completion" |
|
3960 |
||
3961 |
^ self at:#appendAbbreviationsToCompletionSuggestions ifAbsent:false |
|
3962 |
||
3963 |
" |
|
3964 |
UserPreferences current appendAbbreviationsToCompletionSuggestions |
|
3965 |
UserPreferences current appendAbbreviationsToCompletionSuggestions:true |
|
3966 |
UserPreferences current appendAbbreviationsToCompletionSuggestions:false |
|
3967 |
" |
|
3968 |
! |
|
3969 |
||
3970 |
appendAbbreviationsToCompletionSuggestions:aBoolean |
|
3971 |
"show abbreviations in completion" |
|
3972 |
||
3973 |
^ self at:#appendAbbreviationsToCompletionSuggestions put:aBoolean |
|
3974 |
||
3975 |
" |
|
3976 |
UserPreferences current appendAbbreviationsToCompletionSuggestions |
|
3977 |
UserPreferences current appendAbbreviationsToCompletionSuggestions:true |
|
3978 |
UserPreferences current appendAbbreviationsToCompletionSuggestions:false |
|
3979 |
" |
|
3980 |
! |
|
3981 |
||
15742 | 3982 |
codeCompletionOnControlKey |
3983 |
"show completion with CTRL-key - experimental" |
|
3984 |
||
3985 |
^ self at:#codeCompletionOnControlKey ifAbsent:false |
|
3986 |
||
3987 |
" |
|
3988 |
UserPreferences current codeCompletionOnControlKey |
|
3989 |
UserPreferences current codeCompletionOnControlKey:true |
|
3990 |
UserPreferences current codeCompletionOnControlKey:false |
|
3991 |
" |
|
3992 |
! |
|
3993 |
||
3994 |
codeCompletionOnControlKey:aBoolean |
|
3995 |
"show completion with CTRL key - experimental" |
|
3996 |
||
3997 |
^ self at:#codeCompletionOnControlKey put:aBoolean |
|
3998 |
||
3999 |
" |
|
4000 |
UserPreferences current codeCompletionOnControlKey |
|
4001 |
UserPreferences current codeCompletionOnControlKey:true |
|
4002 |
UserPreferences current codeCompletionOnControlKey:false |
|
4003 |
" |
|
4004 |
! |
|
4005 |
||
15747 | 4006 |
codeCompletionOnTabKey |
4007 |
"show completion with TAB-key - experimental" |
|
4008 |
||
15767 | 4009 |
^ self at:#codeCompletionOnTabKey ifAbsent:true |
15747 | 4010 |
|
4011 |
" |
|
4012 |
UserPreferences current codeCompletionOnTabKey |
|
4013 |
UserPreferences current codeCompletionOnTabKey:true |
|
4014 |
UserPreferences current codeCompletionOnTabKey:false |
|
4015 |
" |
|
4016 |
! |
|
4017 |
||
4018 |
codeCompletionOnTabKey:aBoolean |
|
4019 |
"show completion with TAB-key - experimental" |
|
4020 |
||
4021 |
self at:#codeCompletionOnTabKey put:aBoolean |
|
4022 |
||
4023 |
" |
|
4024 |
UserPreferences current codeCompletionOnTabKey |
|
4025 |
UserPreferences current codeCompletionOnTabKey:true |
|
4026 |
UserPreferences current codeCompletionOnTabKey:false |
|
4027 |
" |
|
4028 |
! |
|
4029 |
||
16584 | 4030 |
codeCompletionViewKeyboardNavigationNeedsModifier |
4031 |
"if you find it annoying, that cursor up/down is intercepted by a floating |
|
4032 |
completion view, set this to true. Then cursor up/down are only passed to the completion |
|
16585 | 4033 |
view if a shift- or control modifier is pressed. |
16584 | 4034 |
The default is false for backward compatibility" |
4035 |
||
4036 |
^ self at:#codeCompletionViewKeyboardNavigationNeedsModifier ifAbsent:[false] |
|
4037 |
||
4038 |
" |
|
4039 |
UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier |
|
4040 |
UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:true |
|
4041 |
UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:false |
|
4042 |
" |
|
4043 |
! |
|
4044 |
||
4045 |
codeCompletionViewKeyboardNavigationNeedsModifier:aBoolean |
|
4046 |
"if you find it annoying, that cursor up/down is intercepted by a floating |
|
4047 |
completion view, set this to true. Then cursor up/down are only passed to the completion |
|
16585 | 4048 |
view if a shift- or control modifier is pressed. |
16584 | 4049 |
The default is false for backward compatibility" |
4050 |
||
4051 |
self at:#codeCompletionViewKeyboardNavigationNeedsModifier put:aBoolean |
|
4052 |
||
4053 |
" |
|
4054 |
UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier |
|
4055 |
UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:true |
|
4056 |
UserPreferences current codeCompletionViewKeyboardNavigationNeedsModifier:false |
|
4057 |
" |
|
4058 |
! |
|
4059 |
||
10055 | 4060 |
deleteSetsClipboardText |
4061 |
"if true, a delete also updates the clipboard with the deleted text" |
|
4062 |
||
4063 |
^ self at:#deleteSetsClipboardText ifAbsent:false |
|
4064 |
||
4065 |
" |
|
4066 |
UserPreferences current deleteSetsClipboardText |
|
4067 |
" |
|
4068 |
! |
|
4069 |
||
4070 |
deleteSetsClipboardText:aBooleanOrNil |
|
4071 |
"if true, a delete also updates the clipboard with the deleted text" |
|
4072 |
||
4073 |
^ self at:#deleteSetsClipboardText put:aBooleanOrNil |
|
4074 |
||
4075 |
" |
|
4076 |
UserPreferences current deleteSetsClipboardTextdeleteSetsClipboardText:true |
|
4077 |
UserPreferences current deleteSetsClipboardText:false |
|
4078 |
UserPreferences current deleteSetsClipboardText |
|
4079 |
" |
|
4080 |
! |
|
4081 |
||
11897
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4082 |
enforcedDropModeForFiles |
12930 | 4083 |
"when dropping a file, paste the #name, the #contents or ask ? |
11897
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4084 |
(default is nil, for ask)" |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4085 |
|
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4086 |
^ self at:#enforcedDropModeForFiles ifAbsent:nil |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4087 |
|
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4088 |
" |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4089 |
UserPreferences current enforcedDropModeForFiles |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4090 |
" |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4091 |
! |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4092 |
|
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4093 |
enforcedDropModeForFiles:aSymbolOrNil |
12930 | 4094 |
"when dropping a file, paste the #name, the #contents or ask ? |
11897
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4095 |
(default is nil, for ask)" |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4096 |
|
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4097 |
^ self at:#enforcedDropModeForFiles put:aSymbolOrNil |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4098 |
|
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4099 |
" |
12930 | 4100 |
UserPreferences current enforcedDropModeForFiles:#contents |
4101 |
UserPreferences current enforcedDropModeForFiles:#name |
|
11897
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4102 |
" |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4103 |
! |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
4104 |
|
10055 | 4105 |
extendedWordSelectMode |
4106 |
"when double clicking, include underscore, dollar and at-character as word-characters ? |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4107 |
(default is on)" |
10055 | 4108 |
|
10310
89d972739353
extendedWordSelectMode (underline in word) defaults to true
Claus Gittinger <cg@exept.de>
parents:
10240
diff
changeset
|
4109 |
^ self at:#extendedWordSelectMode ifAbsent:true |
10055 | 4110 |
|
4111 |
" |
|
4112 |
UserPreferences current extendedWordSelectMode |
|
4113 |
" |
|
4114 |
||
4115 |
"Created: / 03-07-2006 / 16:49:58 / cg" |
|
4116 |
! |
|
4117 |
||
4118 |
extendedWordSelectMode:aBoolean |
|
4119 |
"when double clicking, include underscore, dollar and at-character as word-characters ? |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4120 |
(default is on)" |
10055 | 4121 |
|
4122 |
^ self at:#extendedWordSelectMode put:aBoolean |
|
4123 |
||
4124 |
" |
|
4125 |
UserPreferences current extendedWordSelectMode:true |
|
4126 |
UserPreferences current extendedWordSelectMode:false |
|
4127 |
" |
|
4128 |
||
4129 |
"Created: / 03-07-2006 / 16:50:20 / cg" |
|
4130 |
! |
|
4131 |
||
15724 | 4132 |
immediateCodeCompletion |
4133 |
"show completion, as you type - experimental" |
|
4134 |
||
15726 | 4135 |
^ self at:#immediateCodeCompletion ifAbsent:false |
15724 | 4136 |
|
4137 |
" |
|
15725 | 4138 |
UserPreferences current immediateCodeCompletion |
4139 |
UserPreferences current immediateCodeCompletion:true |
|
4140 |
UserPreferences current immediateCodeCompletion:false |
|
15724 | 4141 |
" |
4142 |
! |
|
4143 |
||
4144 |
immediateCodeCompletion:aBoolean |
|
4145 |
"show completion, as you type - experimental" |
|
4146 |
||
15726 | 4147 |
^ self at:#immediateCodeCompletion put:aBoolean |
15724 | 4148 |
|
4149 |
" |
|
15725 | 4150 |
UserPreferences current immediateCodeCompletion |
4151 |
UserPreferences current immediateCodeCompletion:true |
|
4152 |
UserPreferences current immediateCodeCompletion:false |
|
15724 | 4153 |
" |
4154 |
! |
|
4155 |
||
10055 | 4156 |
numberOfRememberedUndoOperationsInEditor |
4157 |
"the number of possible undo-operations. |
|
4158 |
Nil means: unlimited. |
|
4159 |
Notice: you may run out of memory, if editing a lot and the number of undos is not limited." |
|
4160 |
||
4161 |
^ self at:#numberOfRememberedUndoOperationsInEditor ifAbsent:nil |
|
4162 |
||
4163 |
" |
|
4164 |
UserPreferences current numberOfRememberedUndoOperationsInEditor |
|
4165 |
" |
|
4166 |
||
4167 |
"Modified: / 09-10-2006 / 11:01:35 / cg" |
|
4168 |
! |
|
4169 |
||
4170 |
numberOfRememberedUndoOperationsInEditor:aNumberOrNil |
|
4171 |
"the number of possible undo-operations. |
|
4172 |
Nil means: unlimited. |
|
4173 |
Notice: you may run out of memory, if editing a lot and the number of undos is not limited." |
|
4174 |
||
4175 |
^ self at:#numberOfRememberedUndoOperationsInEditor put:aNumberOrNil |
|
4176 |
||
4177 |
" |
|
4178 |
UserPreferences current numberOfRememberedUndoOperationsInEditor:20 |
|
4179 |
" |
|
4180 |
||
4181 |
"Created: / 09-10-2006 / 11:00:56 / cg" |
|
4182 |
! |
|
4183 |
||
14052 | 4184 |
selectAllWhenClickingBeyondEnd |
4185 |
"select mode, when clicking after the end of text, |
|
4186 |
as in st80 (or squeak), select all" |
|
4187 |
||
4188 |
^ self at:#selectAllWhenClickingBeyondEnd ifAbsent:false |
|
4189 |
||
4190 |
" |
|
4191 |
UserPreferences current selectAllWhenClickingBeyondEnd |
|
4192 |
" |
|
4193 |
||
4194 |
"Created: / 07-03-2012 / 14:00:17 / cg" |
|
4195 |
! |
|
4196 |
||
4197 |
selectAllWhenClickingBeyondEnd:aBoolean |
|
4198 |
"select mode, when clicking after the end of text, |
|
4199 |
as in st80 (or squeak), select all" |
|
4200 |
||
4201 |
^ self at:#selectAllWhenClickingBeyondEnd put:aBoolean |
|
4202 |
||
4203 |
" |
|
4204 |
UserPreferences current selectAllWhenClickingBeyondEnd:true |
|
4205 |
UserPreferences current selectAllWhenClickingBeyondEnd:false |
|
4206 |
" |
|
4207 |
||
4208 |
"Created: / 07-03-2012 / 14:00:23 / cg" |
|
4209 |
! |
|
4210 |
||
16284 | 4211 |
selectionExtensionMode |
4212 |
"Returns selection extension mode. Mode is either |
|
4213 |
||
4214 |
#traditional ... Shift-End always moves end of selection (iff it is on the same line) |
|
4215 |
Shift->Home always moves beggining of selection (iff it is on the same line) |
|
4216 |
That's how CG likes it. |
|
4217 |
||
4218 |
#standard ... That's how vast majority text editors and text widgets behaves, therefore |
|
4219 |
this is how most users expects it to behave. |
|
4220 |
||
4221 |
||
4222 |
For historical reasons, #traditional is the default..." |
|
4223 |
||
4224 |
^ self at: #selectionExtensionMode ifAbsent:[ #traditional ] |
|
4225 |
||
4226 |
||
4227 |
||
4228 |
" |
|
4229 |
UserPreferences current selectionExtensionMode |
|
4230 |
||
4231 |
UserPreferences current selectionExtensionMode:#traditional |
|
4232 |
UserPreferences current selectionExtensionMode:#standard |
|
4233 |
UserPreferences current selectionExtensionMode:nil |
|
4234 |
||
4235 |
UserPreferences current selectionExtensionMode |
|
4236 |
||
4237 |
" |
|
4238 |
||
4239 |
"Created: / 27-03-2014 / 09:19:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
4240 |
! |
|
4241 |
||
4242 |
selectionExtensionMode: aSymbol |
|
4243 |
"Sets selection extension mode. Must be either: |
|
4244 |
||
4245 |
#traditional ... Shift-End always moves end of selection (iff it is on the same line) |
|
4246 |
Shift->Home always moves beggining of selection (iff it is on the same line) |
|
4247 |
That's how CG likes it. |
|
4248 |
||
4249 |
#standard ... That's how vast majority text editors and text widgets behaves, therefore |
|
4250 |
this is how most users expects it to behave. |
|
4251 |
||
4252 |
||
4253 |
For historical reasons, #traditional is the default..." |
|
4254 |
||
4255 |
aSymbol isNil ifTrue:[ |
|
4256 |
self removeKey:#selectionExtensionMode. |
|
4257 |
^ self. |
|
4258 |
]. |
|
4259 |
||
4260 |
(#(traditional standard) includes: aSymbol) ifFalse:[ |
|
4261 |
self error:'Invalid value. Possible values are #traditional and #standard'. |
|
4262 |
]. |
|
4263 |
self at: #selectionExtensionMode put: aSymbol |
|
4264 |
||
4265 |
||
4266 |
||
4267 |
" |
|
4268 |
UserPreferences current selectionExtensionMode |
|
4269 |
||
4270 |
UserPreferences current selectionExtensionMode:#traditional |
|
4271 |
UserPreferences current selectionExtensionMode:#standard |
|
4272 |
UserPreferences current selectionExtensionMode:nil |
|
4273 |
||
4274 |
UserPreferences current selectionExtensionMode |
|
4275 |
||
4276 |
" |
|
4277 |
||
4278 |
"Created: / 27-03-2014 / 09:18:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
4279 |
! |
|
4280 |
||
10055 | 4281 |
st80EditMode |
4282 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
|
4283 |
||
4284 |
^ self at:#st80EditMode ifAbsent:false |
|
4285 |
||
4286 |
" |
|
4287 |
UserPreferences current st80EditMode |
|
4288 |
" |
|
4289 |
! |
|
4290 |
||
4291 |
st80EditMode:aBoolean |
|
4292 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
|
4293 |
||
4294 |
^ self at:#st80EditMode put:aBoolean |
|
4295 |
||
4296 |
" |
|
4297 |
UserPreferences current st80EditMode:true |
|
4298 |
" |
|
4299 |
! |
|
4300 |
||
4301 |
st80SelectMode |
|
11143 | 4302 |
"select mode, when double clicking as in st80 |
10055 | 4303 |
(select to corresponding lparen/double-quote) ?" |
4304 |
||
4305 |
^ self at:#st80SelectMode ifAbsent:false |
|
4306 |
||
4307 |
" |
|
4308 |
UserPreferences current st80SelectMode |
|
4309 |
" |
|
4310 |
||
4311 |
"Created: / 03-07-2006 / 16:25:19 / cg" |
|
4312 |
! |
|
4313 |
||
4314 |
st80SelectMode:aBoolean |
|
11143 | 4315 |
"select mode, when double clicking as in st80 |
10055 | 4316 |
(select to corresponding lparen/double-quote)." |
4317 |
||
4318 |
^ self at:#st80SelectMode put:aBoolean |
|
4319 |
||
4320 |
" |
|
4321 |
UserPreferences current st80SelectMode:true |
|
4322 |
UserPreferences current st80SelectMode:false |
|
4323 |
" |
|
4324 |
||
4325 |
"Created: / 03-07-2006 / 16:25:27 / cg" |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4326 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4327 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4328 |
whitespaceWordSelectMode |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4329 |
"when double clicking, treat ANY non-whitespace as word-characters ? |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4330 |
(default is off)" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4331 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4332 |
^ self at:#whitespaceWordSelectMode ifAbsent:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4333 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4334 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4335 |
UserPreferences current whitespaceWordSelectMode |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4336 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4337 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4338 |
"Created: / 03-07-2006 / 16:49:58 / cg" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4339 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4340 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4341 |
whitespaceWordSelectMode:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4342 |
"when double clicking, treat ANY non-whitespace as word-characters ? |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4343 |
(default is off)" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4344 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4345 |
^ self at:#whitespaceWordSelectMode put:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4346 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4347 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4348 |
UserPreferences current whitespaceWordSelectMode:true |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4349 |
UserPreferences current whitespaceWordSelectMode:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4350 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4351 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
4352 |
"Created: / 03-07-2006 / 16:50:20 / cg" |
10055 | 4353 |
! ! |
4354 |
||
13373 | 4355 |
!UserPreferences methodsFor:'accessing-prefs-localization'! |
4356 |
||
4357 |
language |
|
4358 |
"/ intermediate migration code; |
|
4359 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
4360 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
4361 |
"/ For now, forward to smalltalk, until all references to "Smalltalk-language" |
|
4362 |
"/ are replaced with "UserPreferences current language" |
|
4363 |
||
4364 |
^ self at:#language ifAbsent:[Smalltalk language]. |
|
4365 |
||
4366 |
" |
|
4367 |
UserPreferences current language |
|
4368 |
" |
|
4369 |
||
4370 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
4371 |
! |
|
4372 |
||
4373 |
language:aLanguageSymbol |
|
4374 |
"/ intermediate migration code; |
|
4375 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
4376 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
4377 |
"/ For now, forward to smalltalk, until all references to "Smalltalk-language" |
|
4378 |
"/ are replaced with "UserPreferences current language" |
|
4379 |
||
4380 |
self at:#language put:aLanguageSymbol. |
|
4381 |
Smalltalk language:aLanguageSymbol |
|
4382 |
||
4383 |
" |
|
4384 |
UserPreferences current language |
|
4385 |
UserPreferences current language:#en |
|
4386 |
" |
|
4387 |
||
4388 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
4389 |
! |
|
4390 |
||
4391 |
languageTerritory |
|
4392 |
"/ intermediate migration code; |
|
4393 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
4394 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
4395 |
"/ for now, forward to smalltalk, while all references to "Smalltalk-language" |
|
4396 |
"/ are replaced with "UserPreferences current language" |
|
4397 |
||
4398 |
^ self at:#languageTerritory ifAbsent:[Smalltalk languageTerritory] |
|
4399 |
||
4400 |
" |
|
4401 |
UserPreferences current languageTerritory |
|
4402 |
" |
|
4403 |
||
4404 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
4405 |
! |
|
4406 |
||
4407 |
languageTerritory:aLanguageSymbol |
|
4408 |
"/ intermediate migration code; |
|
4409 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
4410 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
4411 |
"/ For now, forward to smalltalk, until all references to "Smalltalk-language" |
|
4412 |
"/ are replaced with "UserPreferences current language" |
|
4413 |
||
4414 |
self at:#languageTerritory put:aLanguageSymbol. |
|
4415 |
Smalltalk languageTerritory:aLanguageSymbol |
|
4416 |
||
4417 |
" |
|
4418 |
UserPreferences current languageTerritory |
|
4419 |
UserPreferences current languageTerritory:#en |
|
4420 |
" |
|
4421 |
||
4422 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
4423 |
! ! |
|
4424 |
||
7549 | 4425 |
!UserPreferences methodsFor:'accessing-prefs-times'! |
4426 |
||
4427 |
timeToAutoExpandItemsWhenDraggingOver |
|
4428 |
"in a hierarchical tree view" |
|
4429 |
||
4430 |
^ 700 "/ millis |
|
4431 |
! |
|
4432 |
||
4433 |
twoDigitDateHandler |
|
4434 |
"return a block which converts a two-digit date. |
|
4435 |
Possible algorithms: |
|
11143 | 4436 |
- identity: treat as year 00..99 |
4437 |
- add 1900: treat as 1900..1999 |
|
4438 |
- around: treat as 1950..1999 if value is 50..99; 2000..2049 otherwise. |
|
7549 | 4439 |
|
4440 |
TODO: make this configurable, keep in dictionary and add to settings. |
|
4441 |
" |
|
4442 |
||
4443 |
^ [:x | (x >= 50) ifTrue:[1900+x] ifFalse:[2000+x]]. |
|
4444 |
"/ ^ [:x | 1900+x]. |
|
4445 |
"/ ^ [:x | x]. |
|
4446 |
! ! |
|
4447 |
||
4448 |
!UserPreferences methodsFor:'accessing-prefs-tools'! |
|
4449 |
||
4450 |
allowSendMailFromDebugger |
|
4451 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
4452 |
mail account " |
|
4453 |
||
4454 |
^ self at:#allowSendMailFromDebugger ifAbsent:true |
|
4455 |
||
4456 |
" |
|
4457 |
UserPreferences current allowSendMailFromDebugger |
|
4458 |
" |
|
4459 |
||
4460 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
4461 |
! |
|
4462 |
||
4463 |
allowSendMailFromDebugger:aBoolean |
|
4464 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
4465 |
mail account " |
|
4466 |
||
4467 |
^ self at:#allowSendMailFromDebugger put:aBoolean |
|
4468 |
||
4469 |
" |
|
4470 |
UserPreferences current allowSendMailFromDebugger:true |
|
4471 |
UserPreferences current allowSendMailFromDebugger:false |
|
4472 |
" |
|
4473 |
! |
|
4474 |
||
4475 |
autoDefineWorkspaceVariables |
|
4476 |
"return the flag which controls automatic definition of unknown variables |
|
4477 |
as workspace variables (in doIts)" |
|
4478 |
||
9302 | 4479 |
^ self at:#autoDefineWorkspaceVariables ifAbsent:false |
7549 | 4480 |
|
4481 |
" |
|
4482 |
UserPreferences current autoDefineWorkspaceVariables |
|
4483 |
" |
|
4484 |
! |
|
4485 |
||
4486 |
autoDefineWorkspaceVariables:aBoolean |
|
4487 |
"turn on/off automatic definition of unknown variables |
|
4488 |
as workspace variables (in doIts)" |
|
4489 |
||
4490 |
^ self at:#autoDefineWorkspaceVariables put:aBoolean |
|
4491 |
||
4492 |
" |
|
4493 |
UserPreferences current autoDefineWorkspaceVariables:true |
|
4494 |
UserPreferences current autoDefineWorkspaceVariables:false |
|
4495 |
" |
|
4496 |
! |
|
4497 |
||
10540 | 4498 |
autoRaiseDebugger |
4499 |
"if true, the debugger raises itself automatically when entered. |
|
4500 |
The default is true" |
|
4501 |
||
4502 |
^ self at:#autoRaiseDebugger ifAbsent:true |
|
4503 |
||
4504 |
" |
|
4505 |
UserPreferences current autoRaiseDebugger |
|
4506 |
" |
|
4507 |
||
4508 |
"Created: / 15-05-2007 / 13:29:10 / cg" |
|
4509 |
! |
|
4510 |
||
4511 |
autoRaiseDebugger:aBoolean |
|
4512 |
"if true, the debugger raises itself automatically when entered. |
|
4513 |
The default is true" |
|
4514 |
||
4515 |
^ self at:#autoRaiseDebugger put:aBoolean |
|
4516 |
||
4517 |
" |
|
11143 | 4518 |
UserPreferences current autoRaiseDebugger |
10540 | 4519 |
UserPreferences current autoRaiseDebugger:false |
4520 |
UserPreferences current autoRaiseDebugger:true |
|
4521 |
" |
|
4522 |
||
4523 |
"Created: / 15-05-2007 / 13:29:31 / cg" |
|
4524 |
! |
|
4525 |
||
15130 | 4526 |
autoRaiseOnFocusInDelay |
4527 |
"if non-nil, an application window will raise automatically, |
|
4528 |
when it gets the focus (via the window manager) after that |
|
4529 |
number of milliseconds. If nil, autoRaise is disabled. |
|
4530 |
Especially useful with focusFollowsMouse under X11" |
|
4531 |
||
4532 |
^ self at:#autoRaiseOnFocusInDelay ifAbsent:nil |
|
4533 |
||
4534 |
" |
|
4535 |
UserPreferences current autoRaiseOnFocusInDelay |
|
4536 |
" |
|
4537 |
! |
|
4538 |
||
4539 |
autoRaiseOnFocusInDelay:anIntegerOrNil |
|
4540 |
"if non-nil, an application window will raise automatically, |
|
4541 |
when it gets the focus (via the window manager) after that |
|
4542 |
number of milliseconds. If nil, autoRaise is disabled. |
|
4543 |
Especially useful with focusFollowsMouse under X11" |
|
4544 |
||
4545 |
^ self at:#autoRaiseOnFocusInDelay put:anIntegerOrNil |
|
4546 |
||
4547 |
" |
|
4548 |
UserPreferences current autoRaiseOnFocusInDelay |
|
4549 |
UserPreferences current autoRaiseOnFocusInDelay:nil |
|
4550 |
UserPreferences current autoRaiseOnFocusInDelay:750 |
|
4551 |
" |
|
4552 |
! |
|
4553 |
||
15417 | 4554 |
autoRaiseTranscript |
4555 |
"if true, the transcript raises itself automatically when new messages appear. |
|
4556 |
The default is false" |
|
4557 |
||
4558 |
^ self at:#autoRaiseTranscript ifAbsent:false |
|
4559 |
||
4560 |
" |
|
4561 |
UserPreferences current autoRaiseTranscript |
|
4562 |
" |
|
4563 |
! |
|
4564 |
||
4565 |
autoRaiseTranscript:aBoolean |
|
4566 |
"if true, the transcript raises itself automatically when new messages appear. |
|
4567 |
The default is false" |
|
4568 |
||
15427 | 4569 |
|transcript| |
4570 |
||
4571 |
self at:#autoRaiseTranscript put:aBoolean. |
|
4572 |
(self == UserPreferences current) ifTrue:[ |
|
4573 |
transcript := Transcript current. |
|
4574 |
(transcript notNil and:[transcript isExternalStream not]) ifTrue:[ |
|
4575 |
transcript autoRaise:aBoolean. |
|
4576 |
]. |
|
4577 |
]. |
|
15417 | 4578 |
|
4579 |
" |
|
4580 |
UserPreferences current autoRaiseTranscript:true |
|
4581 |
UserPreferences current autoRaiseTranscript:false |
|
4582 |
UserPreferences current autoRaiseTranscript |
|
4583 |
" |
|
4584 |
! |
|
4585 |
||
11419 | 4586 |
editToolbarVisibleInWorkspace |
4587 |
"return the flag which defaults the edit-toolbar-visibility in a workspace application" |
|
4588 |
||
4589 |
^ self at:#editToolbarVisibleInWorkspace ifAbsent:false |
|
4590 |
! |
|
4591 |
||
4592 |
editToolbarVisibleInWorkspace:aBooleanOrNil |
|
4593 |
"set the flag which defaults the edit-toolbar-visibility in a workspace application" |
|
4594 |
||
4595 |
^ self at:#editToolbarVisibleInWorkspace put:aBooleanOrNil |
|
4596 |
! |
|
4597 |
||
7549 | 4598 |
functionKeySequences |
4599 |
"return the collection of function-key macros. |
|
4600 |
Thats a dictionary, which assigns code to F-keys" |
|
4601 |
||
4602 |
^ self at:#functionKeySequences ifAbsentPut:[Dictionary new] |
|
4603 |
||
4604 |
" |
|
4605 |
UserPreferences current functionKeySequences |
|
4606 |
" |
|
4607 |
||
4608 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
4609 |
! |
|
4610 |
||
14160 | 4611 |
hideSupportCodeInDebugger |
4612 |
^ self at:#hideSupportCodeInDebugger ifAbsent:true |
|
4613 |
||
4614 |
" |
|
4615 |
UserPreferences current hideSupportCodeInDebugger |
|
4616 |
" |
|
4617 |
||
4618 |
"Created: / 10-06-2012 / 21:24:09 / cg" |
|
4619 |
! |
|
4620 |
||
4621 |
hideSupportCodeInDebugger:aBooleanOrNil |
|
4622 |
^ self at:#hideSupportCodeInDebugger put:aBooleanOrNil |
|
4623 |
||
4624 |
"Created: / 10-06-2012 / 21:24:18 / cg" |
|
14159 | 4625 |
! |
4626 |
||
10661 | 4627 |
infoVisibleInWorkspace |
4628 |
"return the flag which defaults the info-visibility in a workspace application" |
|
4629 |
||
4630 |
^ self at:#infoVisibleInWorkspace ifAbsent:false |
|
4631 |
||
4632 |
"Created: / 14-07-2007 / 16:43:37 / cg" |
|
4633 |
! |
|
4634 |
||
4635 |
infoVisibleInWorkspace:aBooleanOrNil |
|
4636 |
"set the flag which defaults the info-visibility in a workspace application" |
|
4637 |
||
4638 |
^ self at:#infoVisibleInWorkspace put:aBooleanOrNil |
|
4639 |
||
4640 |
"Created: / 14-07-2007 / 16:43:44 / cg" |
|
4641 |
! |
|
4642 |
||
16377 | 4643 |
sendMessagesAlsoToTranscript |
4644 |
"return the flag which controls if info/error messages are to be shown |
|
4645 |
on both Stderr AND the Transcript, or only on Stderr" |
|
4646 |
||
4647 |
^ self at:#sendMessagesAlsoToTranscript ifAbsent:true |
|
4648 |
||
4649 |
" |
|
4650 |
UserPreferences current sendMessagesAlsoToTranscript |
|
4651 |
" |
|
4652 |
! |
|
4653 |
||
4654 |
sendMessagesAlsoToTranscript:aBooleanOrNil |
|
4655 |
"set/clear the flag which controls if info/error messages are to be shown |
|
4656 |
on both Stderr AND the Transcript, or only on Stderr" |
|
4657 |
||
4658 |
^ self at:#sendMessagesAlsoToTranscript put:aBooleanOrNil |
|
4659 |
||
4660 |
" |
|
4661 |
UserPreferences current sendMessagesAlsoToTranscript:false. |
|
4662 |
'hello' infoPrintCR. |
|
4663 |
||
4664 |
UserPreferences current sendMessagesAlsoToTranscript:true. |
|
4665 |
'hello' infoPrintCR. |
|
4666 |
" |
|
4667 |
! |
|
4668 |
||
7549 | 4669 |
showClockInLauncher |
4670 |
"return the flag which controls if a clock is shown in the launcher" |
|
4671 |
||
9302 | 4672 |
^ self at:#showClockInLauncher ifAbsent:false |
7549 | 4673 |
|
4674 |
" |
|
4675 |
UserPreferences current showClockInLauncher |
|
4676 |
" |
|
4677 |
||
4678 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
4679 |
! |
|
4680 |
||
4681 |
showClockInLauncher:aBooleanOrNil |
|
4682 |
"set/clear the flag which controls if a clock is shown in the launcher" |
|
4683 |
||
4684 |
^ self at:#showClockInLauncher put:aBooleanOrNil |
|
4685 |
||
4686 |
" |
|
4687 |
UserPreferences current showClockInLauncher:false. |
|
11143 | 4688 |
NewLauncher open. |
7549 | 4689 |
|
4690 |
UserPreferences current showClockInLauncher:true. |
|
11143 | 4691 |
NewLauncher open. |
7549 | 4692 |
" |
4693 |
||
4694 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
7624 | 4695 |
! |
4696 |
||
14140 | 4697 |
showTypeIndicatorInInspector |
4698 |
^ self at:#showTypeIndicatorInInspector ifAbsent:true |
|
4699 |
||
4700 |
" |
|
4701 |
UserPreferences current showTypeIndicatorInInspector |
|
4702 |
" |
|
4703 |
||
4704 |
"Created: / 16-05-2012 / 19:09:50 / cg" |
|
4705 |
! |
|
4706 |
||
4707 |
showTypeIndicatorInInspector:aBooleanOrNil |
|
4708 |
^ self at:#showTypeIndicatorInInspector put:aBooleanOrNil |
|
4709 |
||
4710 |
" |
|
4711 |
UserPreferences current showTypeIndicatorInInspector:false. |
|
4712 |
NewLauncher inspect. |
|
4713 |
||
4714 |
UserPreferences current showTypeIndicatorInInspector:true. |
|
4715 |
NewLauncher inspect. |
|
4716 |
" |
|
4717 |
||
4718 |
"Created: / 16-05-2012 / 19:10:13 / cg" |
|
4719 |
! |
|
4720 |
||
16552 | 4721 |
terminalOutputIsUTF8 |
4722 |
"if true, the shell's output is utf8 encoded and should be decoded by |
|
4723 |
the terminal emulator." |
|
4724 |
||
4725 |
^ self |
|
4726 |
at:#terminalOutputIsUTF8 |
|
4727 |
ifAbsent:[ OperatingSystem isOSXlike |
|
4728 |
"/ or ??? |
|
4729 |
] |
|
4730 |
||
4731 |
" |
|
4732 |
UserPreferences current terminalOutputIsUTF8 |
|
4733 |
" |
|
4734 |
! |
|
4735 |
||
4736 |
terminalOutputIsUTF8:aBoolean |
|
4737 |
"if true, the shell's output is utf8 encoded and should be decoded by |
|
4738 |
the terminal emulator." |
|
4739 |
||
4740 |
^ self |
|
4741 |
at:#terminalOutputIsUTF8 |
|
4742 |
put:aBoolean |
|
4743 |
||
4744 |
" |
|
4745 |
UserPreferences current terminalOutputIsUTF8 |
|
4746 |
" |
|
4747 |
! |
|
4748 |
||
10661 | 4749 |
toolbarVisibleInWorkspace |
4750 |
"return the flag which defaults the toolbar-visibility in a workspace application" |
|
4751 |
||
10665
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
4752 |
^ self at:#toolbarVisibleInWorkspace ifAbsent:true |
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
4753 |
|
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
4754 |
"Modified: / 18-07-2007 / 08:55:44 / cg" |
10661 | 4755 |
! |
4756 |
||
4757 |
toolbarVisibleInWorkspace:aBooleanOrNil |
|
4758 |
"set the flag which defaults the toolbar-visibility in a workspace application" |
|
4759 |
||
4760 |
^ self at:#toolbarVisibleInWorkspace put:aBooleanOrNil |
|
4761 |
||
4762 |
"Created: / 14-07-2007 / 16:42:09 / cg" |
|
4763 |
! |
|
4764 |
||
11024 | 4765 |
useNewLayoutInDebugger |
4766 |
^ self at:#useNewLayoutInDebugger ifAbsent:true |
|
4767 |
||
4768 |
" |
|
4769 |
UserPreferences current useNewLayoutInDebugger |
|
4770 |
" |
|
4771 |
! |
|
4772 |
||
4773 |
useNewLayoutInDebugger:aBoolean |
|
4774 |
^ self at:#useNewLayoutInDebugger put:aBoolean |
|
4775 |
! |
|
4776 |
||
7624 | 4777 |
useRefactoringSupport |
4778 |
"return the flag which enables/disables use of refactoring package in browser. |
|
4779 |
If enabled, this enables all kinds of refactorings, better search and undo features. |
|
4780 |
There is usually no reason to disable these." |
|
4781 |
||
9302 | 4782 |
^ self at:#useRefactoringSupport ifAbsent:true |
7624 | 4783 |
! |
4784 |
||
4785 |
useRefactoringSupport:aBooleanOrNil |
|
4786 |
"enable/disable use of refactoring package in browser. |
|
4787 |
If enabled, this enables all kinds of refactorings, better search and undo features. |
|
4788 |
There is usually no reason to disable these." |
|
4789 |
||
4790 |
^ self at:#useRefactoringSupport put:aBooleanOrNil |
|
7625 | 4791 |
|
4792 |
" |
|
4793 |
UserPreferences current useRefactoringSupport:false |
|
4794 |
UserPreferences current useRefactoringSupport:true |
|
4795 |
" |
|
11024 | 4796 |
! |
4797 |
||
4798 |
verboseBacktraceInDebugger |
|
4799 |
^ self at:#verboseBacktraceInDebugger ifAbsent:true |
|
4800 |
||
4801 |
" |
|
4802 |
UserPreferences current verboseBacktraceInDebugger |
|
4803 |
" |
|
4804 |
! |
|
4805 |
||
4806 |
verboseBacktraceInDebugger:aBoolean |
|
4807 |
^ self at:#verboseBacktraceInDebugger put:aBoolean |
|
7549 | 4808 |
! ! |
4809 |
||
13967 | 4810 |
!UserPreferences methodsFor:'accessing-prefs-tools-building'! |
4811 |
||
15917 | 4812 |
autoUnloadAutoloadedClassesInProjectDefinition |
4813 |
^ self at:#autoUnloadAutoloadedClassesInProjectDefinition ifAbsent:false |
|
4814 |
||
4815 |
" |
|
4816 |
UserPreferences current autoUnloadAutoloadedClassesInProjectDefinition |
|
4817 |
" |
|
4818 |
||
4819 |
"Created: / 28-01-2014 / 21:42:59 / cg" |
|
4820 |
! |
|
4821 |
||
4822 |
autoUnloadAutoloadedClassesInProjectDefinition:aBoolean |
|
4823 |
^ self at:#autoUnloadAutoloadedClassesInProjectDefinition put:aBoolean |
|
4824 |
||
4825 |
" |
|
4826 |
UserPreferences current autoUnloadAutoloadedClassesInProjectDefinition |
|
4827 |
UserPreferences current autoUnloadAutoloadedClassesInProjectDefinition:false |
|
4828 |
" |
|
4829 |
||
4830 |
"Created: / 28-01-2014 / 21:43:18 / cg" |
|
4831 |
! |
|
4832 |
||
13967 | 4833 |
buildDirectory |
4834 |
^ self at:#buildDirectory ifAbsent:nil |
|
4835 |
||
4836 |
" |
|
4837 |
UserPreferences current buildDirectory |
|
4838 |
" |
|
4839 |
! |
|
4840 |
||
4841 |
buildDirectory:aFilenameStringOrNil |
|
4842 |
^ self at:#buildDirectory put:aFilenameStringOrNil |
|
4843 |
||
4844 |
" |
|
4845 |
UserPreferences current buildDirectory |
|
4846 |
" |
|
4847 |
! |
|
4848 |
||
4849 |
localBuild |
|
4850 |
"deployment-build in a local directory (as opposed to making via the repository)" |
|
4851 |
||
4852 |
^ self at:#localBuild ifAbsent:true |
|
4853 |
||
4854 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
4855 |
! |
|
4856 |
||
4857 |
localBuild:aBoolean |
|
4858 |
"deployment-build in a local directory (as opposed to making via the repository)" |
|
4859 |
||
4860 |
^ self at:#localBuild put:aBoolean |
|
4861 |
||
4862 |
" |
|
4863 |
UserPreferences current localBuild |
|
4864 |
" |
|
4865 |
||
4866 |
"Created: / 20-09-2006 / 23:55:26 / cg" |
|
4867 |
! |
|
4868 |
||
15917 | 4869 |
suppressProjectDefinitionWarnings |
4870 |
^ self at:#suppressProjectDefinitionWarnings ifAbsent:true |
|
4871 |
||
4872 |
" |
|
4873 |
UserPreferences current suppressProjectDefinitionWarnings |
|
4874 |
" |
|
4875 |
||
4876 |
"Created: / 28-01-2014 / 21:41:01 / cg" |
|
4877 |
! |
|
4878 |
||
4879 |
suppressProjectDefinitionWarnings:aBoolean |
|
4880 |
^ self at:#suppressProjectDefinitionWarnings put:aBoolean |
|
4881 |
||
4882 |
" |
|
4883 |
UserPreferences current suppressProjectDefinitionWarnings |
|
4884 |
UserPreferences current suppressProjectDefinitionWarnings:true |
|
4885 |
" |
|
4886 |
||
4887 |
"Created: / 28-01-2014 / 21:41:12 / cg" |
|
4888 |
! |
|
4889 |
||
13967 | 4890 |
usedCompilerForBuild |
4891 |
^ self at:#usedCompilerForBuild ifAbsent:nil |
|
4892 |
||
4893 |
" |
|
4894 |
UserPreferences current usedCompilerForBuild |
|
4895 |
" |
|
4896 |
||
4897 |
"Created: / 22-01-2012 / 10:52:47 / cg" |
|
4898 |
! |
|
4899 |
||
4900 |
usedCompilerForBuild:aString |
|
4901 |
^ self at:#usedCompilerForBuild put:aString |
|
4902 |
||
4903 |
" |
|
4904 |
UserPreferences current usedCompilerForBuild |
|
4905 |
UserPreferences current usedCompilerForBuild:'bcc' |
|
4906 |
" |
|
4907 |
||
4908 |
"Created: / 22-01-2012 / 10:52:59 / cg" |
|
4909 |
! ! |
|
4910 |
||
13941 | 4911 |
!UserPreferences methodsFor:'accessing-scm'! |
13596 | 4912 |
|
4913 |
showBadRevisionStringDialogs |
|
4914 |
"show a dialog when a bad revision string is encountered, or silently fix it" |
|
4915 |
||
4916 |
^ self at: #'showBadRevisionStringDialogs' ifAbsent:true |
|
4917 |
||
4918 |
"Created: / 19-08-2011 / 12:51:25 / cg" |
|
4919 |
! |
|
4920 |
||
4921 |
showBadRevisionStringDialogs:aBoolean |
|
4922 |
"show a dialog when a bad revision string is encountered, or silently fix it" |
|
4923 |
||
4924 |
^ self at: #'showBadRevisionStringDialogs' put:aBoolean |
|
4925 |
||
4926 |
"Created: / 19-08-2011 / 12:51:58 / cg" |
|
4927 |
! ! |
|
4928 |
||
15960 | 4929 |
|
13943 | 4930 |
!UserPreferences methodsFor:'default settings-syntax colors'! |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4931 |
|
6169 | 4932 |
listOfPredefinedSyntaxColoringSchemes |
6171 | 4933 |
"return a list of pre-defined syntax highlightning styles |
4934 |
(as shown in the Launchers 'source and debugger settings' dialog." |
|
4935 |
||
4936 |
^ #( |
|
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
4937 |
(#resetSyntaxColors 'default [ST/X style]') |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
4938 |
(#resetSyntaxColorsWithSideEffectHighlighting 'default with side effect highlighting [new ST/X style]') |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
4939 |
(#resetSyntaxColorsToVCStyle 'green comments; blue controlFlow, red constants [VISUAL-C style]') |
11672 | 4940 |
(#resetSyntaxColorsBlueControlFlowSelectors 'blue controlFlow') |
4941 |
(#resetSyntaxColorsGreenComments 'green comments') |
|
4942 |
(#resetSyntaxColorsGreenCommentsBlueControlFlowSelectors 'green comments; blue controlFlow') |
|
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
4943 |
(#resetSyntaxColorsBlueSelectorsGreenComments 'blue selectors; green comments [DOLPHIN style]') |
11672 | 4944 |
(#resetSyntaxColorsBlueSelectorsGreyComments 'blue selectors; grey comments') |
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
4945 |
(#resetSyntaxColorsToSqueakStyle1 'blue selectors; green comments [SQUEAK style]') |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
4946 |
(#resetSyntaxColorsToSqueakStyle2 'blue selectors; green comments; brown self [new SQUEAK style]') |
11672 | 4947 |
(#resetSyntaxColorsAllBlackExceptBadIDs 'no colors, but highlight errors') |
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
4948 |
(#resetSyntaxColorsToVAgeStyle 'blue globals; green comments [V''Age style]') |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
4949 |
(#resetSyntaxColorsToVW7Style 'light blue comments [VW7 style]') |
6171 | 4950 |
) |
9834 | 4951 |
|
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
4952 |
"Modified: / 17-03-2012 / 10:40:18 / cg" |
6169 | 4953 |
! |
4954 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4955 |
resetSyntaxColors |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4956 |
"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
|
4957 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4958 |
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
|
4959 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4960 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4961 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4962 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4963 |
resetSyntaxColorsAllBlackExceptBadIDs |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4964 |
"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
|
4965 |
except for bad identifiers, which are underwaved." |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4966 |
|
14062 | 4967 |
self resetSyntaxColors. |
8551 | 4968 |
self at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
4969 |
self at:#errorColor put:Color black. |
|
4970 |
self at:#commentColor put:Color black. |
|
4971 |
self at:#constantColor put:Color black. |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4972 |
self at:#methodSelectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4973 |
self at:#selectorEmphasis put:#normal. |
14062 | 4974 |
|
4975 |
"Modified: / 16-03-2012 / 10:35:02 / cg" |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4976 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
4977 |
|
9834 | 4978 |
resetSyntaxColorsBlueControlFlowSelectors |
4979 |
"resets the colors in the CurrentPreferences to alternative default values |
|
4980 |
(with blue control flow selectors)" |
|
4981 |
||
14062 | 4982 |
self resetSyntaxColors. |
9834 | 4983 |
self at:#controlFlowSelectorColor put:(Color blue). |
4984 |
||
4985 |
"Created: / 08-09-2006 / 16:11:52 / cg" |
|
4986 |
! |
|
4987 |
||
6171 | 4988 |
resetSyntaxColorsBlueSelectorsGreenComments |
4989 |
"resets the colors in the CurrentPreferences to alternative default values |
|
4990 |
(with blue selectors and green comments)" |
|
4991 |
||
14062 | 4992 |
self resetSyntaxColors. |
8551 | 4993 |
self at:#commentColor put:(Color green darkened). |
4994 |
self at:#commentEmphasis put:#italic. |
|
4995 |
self at:#selectorColor put:(Color blue). |
|
4996 |
self at:#selectorEmphasis put:#normal. |
|
4997 |
self at:#methodSelectorColor put:(Color blue). |
|
6171 | 4998 |
self at:#methodSelectorEmphasis put:#bold. |
14062 | 4999 |
|
5000 |
"Modified: / 16-03-2012 / 10:34:55 / cg" |
|
6171 | 5001 |
! |
5002 |
||
5003 |
resetSyntaxColorsBlueSelectorsGreyComments |
|
6169 | 5004 |
"resets the colors in the CurrentPreferences to alternative default values |
5005 |
(with blue selectors and grey comments)" |
|
5006 |
||
6171 | 5007 |
self resetSyntaxColorsBlueSelectorsGreenComments. |
5008 |
self at:#commentColor put:(Color gray). |
|
6169 | 5009 |
! |
5010 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
5011 |
resetSyntaxColorsGreenComments |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
5012 |
"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
|
5013 |
(with green comments)" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
5014 |
|
14062 | 5015 |
self resetSyntaxColors. |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
5016 |
self at:#commentColor put:(Color green darkened). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
5017 |
|
14062 | 5018 |
"Modified: / 16-03-2012 / 10:34:50 / cg" |
9144 | 5019 |
! |
5020 |
||
9834 | 5021 |
resetSyntaxColorsGreenCommentsBlueControlFlowSelectors |
5022 |
"resets the colors in the CurrentPreferences to alternative default values |
|
5023 |
(with green comments, blue control flow)" |
|
5024 |
||
14062 | 5025 |
self resetSyntaxColors. |
9834 | 5026 |
self at:#commentColor put:(Color green darkened). |
5027 |
self at:#controlFlowSelectorColor put:(Color blue). |
|
5028 |
||
5029 |
"Created: / 08-09-2006 / 16:10:38 / cg" |
|
5030 |
! |
|
5031 |
||
9144 | 5032 |
resetSyntaxColorsToSqueakStyle |
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5033 |
"resets the colors in the CurrentPreferences to alternative default values" |
9144 | 5034 |
|
12281 | 5035 |
self resetSyntaxColorsToSqueakStyle2 |
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5036 |
|
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5037 |
"Modified (comment): / 17-03-2012 / 10:38:07 / cg" |
12281 | 5038 |
! |
5039 |
||
5040 |
resetSyntaxColorsToSqueakStyle1 |
|
5041 |
"resets the colors in the CurrentPreferences to alternative default values |
|
5042 |
(with blue selectors and green comments)" |
|
5043 |
||
14062 | 5044 |
self resetSyntaxColors. |
9144 | 5045 |
self at:#commentColor put:(Color green darkened). |
5046 |
self at:#commentEmphasis put:#italic. |
|
5047 |
self at:#selectorColor put:(Color blue:80). |
|
5048 |
self at:#selectorEmphasis put:#normal. |
|
5049 |
self at:#methodSelectorColor put:(Color black). |
|
5050 |
self at:#methodSelectorEmphasis put:#bold. |
|
5051 |
self at:#globalIdentifierEmphasis put:#bold. |
|
5052 |
self at:#localIdentifierColor put:(Color grey:40). |
|
5053 |
self at:#instVarIdentifierEmphasis put:#bold. |
|
5054 |
self at:#constantColor put:(Color red:67). |
|
14062 | 5055 |
|
5056 |
"Modified: / 16-03-2012 / 10:34:40 / cg" |
|
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5057 |
"Modified (comment): / 17-03-2012 / 10:38:47 / cg" |
9184 | 5058 |
! |
5059 |
||
12281 | 5060 |
resetSyntaxColorsToSqueakStyle2 |
5061 |
"resets the colors in the CurrentPreferences to alternative default values |
|
5062 |
(with blue selectors and green comments)" |
|
5063 |
||
14062 | 5064 |
self resetSyntaxColors. |
12281 | 5065 |
self at:#commentColor put:(Color green darkened). |
5066 |
self at:#commentEmphasis put:#italic. |
|
5067 |
self at:#selectorColor put:(Color blue:80). |
|
5068 |
self at:#selectorEmphasis put:#normal. |
|
12391
35ee0cb7fd56
changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents:
12348
diff
changeset
|
5069 |
self at:#controlFlowSelectorEmphasis put:#bold. |
12281 | 5070 |
self at:#methodSelectorColor put:(Color black). |
5071 |
self at:#methodSelectorEmphasis put:#bold. |
|
5072 |
self at:#globalIdentifierEmphasis put:#bold. |
|
5073 |
self at:#localIdentifierColor put:(Color grey:40). |
|
5074 |
self at:#instVarIdentifierEmphasis put:#bold. |
|
5075 |
self at:#constantColor put:(Color red:67). |
|
5076 |
self at:#selfColor put:(Color red:50 ). |
|
5077 |
self at:#selfEmphasis put:#bold. |
|
12282
03a6891e3ca5
changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents:
12281
diff
changeset
|
5078 |
self at:#localIdentifierColor put:(Color grey:50 ). |
03a6891e3ca5
changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents:
12281
diff
changeset
|
5079 |
self at:#localIdentifierEmphasis put:#normal. |
14062 | 5080 |
|
5081 |
"Modified: / 16-03-2012 / 10:34:35 / cg" |
|
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5082 |
"Modified (comment): / 17-03-2012 / 10:38:57 / cg" |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5083 |
! |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5084 |
|
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5085 |
resetSyntaxColorsToVAgeStyle |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5086 |
"resets the colors in the CurrentPreferences to alternative default values |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5087 |
(green comments, blue globals)" |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5088 |
|
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5089 |
self resetSyntaxColors. |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5090 |
self at:#identifierColor put:(Color rgbValue:16r00007F). |
14064
c80388807776
changed: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14063
diff
changeset
|
5091 |
self at:#argumentColor put:(Color rgbValue:16r00007F). |
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5092 |
self at:#identifierEmphasis put:#normal. |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5093 |
self at:#commentColor put:(Color rgbValue:16r007F00). |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5094 |
self at:#selfColor put:(Color rgbValue:16r7F007F). |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5095 |
self at:#constantColor put:(Color rgbValue:16r7F0000). |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5096 |
self at:#selectorColor put:(Color black). |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5097 |
self at:#selectorEmphasis put:#bold. |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5098 |
self at:#globalIdentifierColor put:(Color blue). |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5099 |
self at:#methodSelectorColor put:(Color black). |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5100 |
self at:#methodSelectorEmphasis put:#bold. |
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5101 |
|
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5102 |
"Created: / 17-03-2012 / 10:37:42 / cg" |
12281 | 5103 |
! |
5104 |
||
11672 | 5105 |
resetSyntaxColorsToVCStyle |
5106 |
"resets the colors in the CurrentPreferences to visual C default style |
|
5107 |
(green comments, blue keywords, redish string constants)" |
|
5108 |
||
14062 | 5109 |
self resetSyntaxColors. |
11672 | 5110 |
self at:#controlFlowSelectorColor put:(Color blue). |
5111 |
self at:#commentColor put:(Color green darkened). |
|
5112 |
self at:#constantColor put:(Color red:64 green:8 blue:8). |
|
14062 | 5113 |
|
5114 |
"Modified: / 16-03-2012 / 10:34:30 / cg" |
|
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5115 |
"Modified (comment): / 17-03-2012 / 10:39:11 / cg" |
11672 | 5116 |
! |
5117 |
||
9184 | 5118 |
resetSyntaxColorsToVW7Style |
5119 |
"resets the colors in the CurrentPreferences to alternative default values |
|
5120 |
(with light blue comments, green variables)" |
|
5121 |
||
14062 | 5122 |
self resetSyntaxColors. |
9184 | 5123 |
self at:#commentColor put:(Color blue lightened). |
5124 |
self at:#selectorColor put:(Color black). |
|
5125 |
self at:#selectorEmphasis put:#normal. |
|
5126 |
self at:#methodSelectorColor put:(Color black). |
|
5127 |
self at:#methodSelectorEmphasis put:#bold. |
|
5128 |
self at:#identifierEmphasis put:#normal. |
|
5129 |
self at:#identifierColor put:(Color green darkened). |
|
14062 | 5130 |
|
5131 |
"Modified: / 16-03-2012 / 10:34:26 / cg" |
|
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5132 |
"Modified (comment): / 17-03-2012 / 10:39:18 / cg" |
14005
7d4c58528d0e
added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents:
14004
diff
changeset
|
5133 |
! |
7d4c58528d0e
added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents:
14004
diff
changeset
|
5134 |
|
7d4c58528d0e
added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents:
14004
diff
changeset
|
5135 |
resetSyntaxColorsWithSideEffectHighlighting |
7d4c58528d0e
added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents:
14004
diff
changeset
|
5136 |
"resets the colors in the CurrentPreferences to their default values |
14063
3601e2191b9d
added: #resetSyntaxColorsToVAgeStyle
Claus Gittinger <cg@exept.de>
parents:
14062
diff
changeset
|
5137 |
plus side effect highlighting (assignments to instvars and globals are marked)" |
14005
7d4c58528d0e
added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents:
14004
diff
changeset
|
5138 |
|
14062 | 5139 |
self resetSyntaxColors. |
14005
7d4c58528d0e
added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents:
14004
diff
changeset
|
5140 |
self at:#sideEffectAssignmentBackgroundColor put:(Color rgbValue:16rFFDBDB). |
7d4c58528d0e
added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents:
14004
diff
changeset
|
5141 |
|
7d4c58528d0e
added: #resetSyntaxColorsWithSideEffectHighlighting
Claus Gittinger <cg@exept.de>
parents:
14004
diff
changeset
|
5142 |
"Created: / 13-02-2012 / 12:12:56 / cg" |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
5143 |
! ! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
5144 |
|
7266 | 5145 |
!UserPreferences methodsFor:'default values'! |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
5146 |
|
4583 | 5147 |
defaultValue |
5148 |
"the defaultValue for non-existing keys" |
|
5149 |
||
16652 | 5150 |
^ nil |
4583 | 5151 |
! |
5152 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
5153 |
errorKeyNotFound:aKey |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
5154 |
"for any non-existing key, false is returned" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
5155 |
|
4583 | 5156 |
^ self defaultValue |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
5157 |
! ! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
5158 |
|
10789 | 5159 |
!UserPreferences methodsFor:'misc'! |
5160 |
||
5161 |
flyByHelpSettingChanged |
|
5162 |
FlyByHelp notNil ifTrue:[ |
|
17104 | 5163 |
(self at:#flyByHelpActive ifAbsent:true) ifTrue:[ |
5164 |
FlyByHelp start. |
|
5165 |
] ifFalse:[ |
|
5166 |
FlyByHelp stop. |
|
5167 |
]. |
|
10789 | 5168 |
]. |
5169 |
! ! |
|
5170 |
||
6937 | 5171 |
!UserPreferences methodsFor:'obsolete'! |
5172 |
||
5173 |
useNewSettinsApplication |
|
11598 | 5174 |
<resource: #obsolete> |
8545 | 5175 |
"obsolete - will be removed in next release. |
5176 |
(this is kept for a while, as it may have found its way into some |
|
5177 |
saved user preference files)" |
|
6937 | 5178 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
5179 |
self obsoleteMethodWarning. |
7029 | 5180 |
^ self useNewSettingsApplication |
6937 | 5181 |
! |
5182 |
||
5183 |
useNewSettinsApplication:aBoolean |
|
11598 | 5184 |
<resource: #obsolete> |
7030 | 5185 |
"obsolete - will be removed in next release" |
6937 | 5186 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
5187 |
self obsoleteMethodWarning. |
7029 | 5188 |
self useNewSettingsApplication:aBoolean. |
6937 | 5189 |
! ! |
5190 |
||
7028 | 5191 |
!UserPreferences methodsFor:'saving'! |
5192 |
||
5193 |
saveIn:fileName |
|
5194 |
self class saveSettings:self in:fileName |
|
5195 |
! ! |
|
5196 |
||
3347 | 5197 |
!UserPreferences class methodsFor:'documentation'! |
5198 |
||
13885 | 5199 |
version |
17359 | 5200 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.392 2015-02-01 21:54:34 cg Exp $' |
13885 | 5201 |
! |
5202 |
||
13399 | 5203 |
version_CVS |
17359 | 5204 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.392 2015-02-01 21:54:34 cg Exp $' |
12096 | 5205 |
! |
5206 |
||
13399 | 5207 |
version_SVN |
15290 | 5208 |
^ '$ Id: UserPreferences.st 10648 2011-06-23 15:55:10Z vranyj1 $' |
3347 | 5209 |
! ! |
14698 | 5210 |