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