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