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