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