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