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