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