author | Claus Gittinger <cg@exept.de> |
Wed, 14 Oct 2009 20:15:05 +0200 | |
changeset 12282 | 03a6891e3ca5 |
parent 12281 | 25083499d45b |
child 12313 | 0cb25ce701fc |
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 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
87 |
"/ I prefer red-underwave over red identifier ... |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
88 |
"/ #badIdentifierColor (Color red) |
11694 | 89 |
#instVarIdentifierColor (Color 33 0 33) |
90 |
||
11143 | 91 |
|
92 |
"/ #jsKeywordColor (Color black) |
|
11694 | 93 |
#jsKeywordEmphasis bold |
94 |
#jsKeywordColor (Color 33 33 0) |
|
95 |
||
96 |
#controlFlowSelectorColor (Color 0 0 100) |
|
97 |
#commentColor (Color 0 50 0) |
|
98 |
#constantColor (Color 64 8 8) |
|
8420 | 99 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
100 |
) pairWiseDo:[:k :v | |
11694 | 101 |
DefaultPreferences at:k put:(v decodeAsLiteralArray). |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
102 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
103 |
|
9913
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
104 |
"/ I prefer red-underwave over red identifier ... |
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
105 |
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
|
106 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
107 |
" |
4580 | 108 |
self initializeDefaultPreferences |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
109 |
" |
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
110 |
|
10240
9b59aa4f7bd4
dont try to create Color-prefs in non-GUI standalone apps.
Claus Gittinger <cg@exept.de>
parents:
10177
diff
changeset
|
111 |
"Modified: / 07-12-2006 / 17:08:38 / cg" |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
112 |
! ! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
113 |
|
3347 | 114 |
!UserPreferences class methodsFor:'accessing'! |
115 |
||
116 |
current |
|
117 |
CurrentPreferences isNil ifTrue:[ |
|
11143 | 118 |
CurrentPreferences := self new. |
119 |
CurrentPreferences addAll:self default. |
|
120 |
CurrentPreferences flyByHelpSettingChanged. |
|
3347 | 121 |
]. |
122 |
^ CurrentPreferences. |
|
123 |
||
8420 | 124 |
" |
125 |
CurrentPreferences := nil |
|
126 |
" |
|
3364 | 127 |
! |
128 |
||
4318 | 129 |
default |
4580 | 130 |
DefaultPreferences isNil ifTrue:[ |
11143 | 131 |
self initializeDefaultPreferences |
4580 | 132 |
]. |
4318 | 133 |
^ DefaultPreferences. |
134 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
135 |
" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
136 |
DefaultPreferences := nil. |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
137 |
" |
4318 | 138 |
! |
139 |
||
3364 | 140 |
reset |
141 |
"resets the CurrentPreferences to its default values" |
|
142 |
||
143 |
CurrentPreferences := nil |
|
144 |
! |
|
145 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
146 |
syntaxColorKeys |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
147 |
"returns the keys of syntax color items" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
148 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
149 |
^#( |
11143 | 150 |
argumentIdentifierColor |
151 |
argumentIdentifierEmphasis |
|
152 |
booleanConstantColor |
|
153 |
booleanConstantEmphasis |
|
154 |
bracketColor |
|
155 |
bracketEmphasis |
|
156 |
classVariableIdentifierColor |
|
157 |
classVariableIdentifierEmphasis |
|
158 |
constantColor |
|
159 |
constantEmphasis |
|
160 |
controlFlowSelectorColor |
|
161 |
controlFlowSelectorEmphasis |
|
162 |
commentColor |
|
163 |
commentEmphasis |
|
164 |
defaultSyntaxColor |
|
165 |
defaultSyntaxEmphasis |
|
166 |
errorColor |
|
167 |
globalIdentifierColor |
|
168 |
globalIdentifierEmphasis |
|
169 |
globalClassIdentifierColor |
|
170 |
globalClassIdentifierEmphasis |
|
171 |
hereColor |
|
172 |
hereEmphasis |
|
173 |
identifierColor |
|
174 |
identifierEmphasis |
|
175 |
instVarIdentifierColor |
|
176 |
instVarIdentifierEmphasis |
|
177 |
localIdentifierColor |
|
178 |
localIdentifierEmphasis |
|
179 |
methodSelectorColor |
|
180 |
methodSelectorEmphasis |
|
181 |
poolVariableIdentifierColor |
|
182 |
poolVariableIdentifierEmphasis |
|
183 |
returnColor |
|
184 |
returnEmphasis |
|
185 |
selectorColor |
|
186 |
selectorEmphasis |
|
187 |
selfColor |
|
188 |
selfEmphasis |
|
189 |
stringColor |
|
190 |
stringEmphasis |
|
191 |
superColor |
|
192 |
superEmphasis |
|
193 |
symbolColor |
|
194 |
symbolEmphasis |
|
195 |
thisContextColor |
|
196 |
thisContextEmphasis |
|
197 |
unknownIdentifierColor |
|
198 |
unknownIdentifierEmphasis |
|
199 |
unimplementedSelectorColor |
|
200 |
unimplementedSelectorEmphasis |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
201 |
) |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
202 |
|
9834 | 203 |
"Modified: / 08-09-2006 / 16:06:54 / cg" |
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
204 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
205 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
206 |
syntaxColorNames |
3364 | 207 |
"returns the syntax colors for the settings in the launcher" |
208 |
||
4319 | 209 |
"/ warning, the strings below are presented to the user |
210 |
"/ as the syntax-color boxes comboList - however, they are |
|
211 |
"/ also used (without separators) as key into myself. |
|
212 |
"/ Therefore, do not change the strings below. |
|
213 |
"/ I know - this is bad coding .... |
|
214 |
||
3364 | 215 |
^#( |
216 |
'Argument Identifier Color' |
|
217 |
'Boolean Constant Color' |
|
218 |
'Bracket Color' |
|
4320 | 219 |
'Class Variable Identifier Color' |
3364 | 220 |
'Constant Color' |
9834 | 221 |
'Control Flow Selector Color' |
3364 | 222 |
'Comment Color' |
223 |
'Global Identifier Color' |
|
4024
3a223c79e41c
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4023
diff
changeset
|
224 |
'Global Class Identifier Color' |
3364 | 225 |
'Here Color' |
226 |
'Identifier Color' |
|
3377 | 227 |
'InstVar Identifier Color' |
3364 | 228 |
'Local Identifier Color' |
229 |
'Method Selector Color' |
|
8551 | 230 |
'Pool Variable Identifier Color' |
4076 | 231 |
'Return Color' |
3364 | 232 |
'Selector Color' |
233 |
'Self Color' |
|
234 |
'String Color' |
|
235 |
'Super Color' |
|
236 |
'Symbol Color' |
|
237 |
'This Context Color' |
|
238 |
'Unknown Identifier Color' |
|
4319 | 239 |
'Unimplemented Selector Color' |
3377 | 240 |
) |
3364 | 241 |
|
9834 | 242 |
"Modified: / 08-09-2006 / 16:07:36 / cg" |
3347 | 243 |
! ! |
244 |
||
6019 | 245 |
!UserPreferences class methodsFor:'accessing defaultPrefs'! |
246 |
||
11006
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
247 |
defaultSettingsFilename |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
248 |
^ 'settings.stx' |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
249 |
! |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
250 |
|
6763 | 251 |
fileBrowserClass |
252 |
^ self current fileBrowserClass |
|
253 |
||
254 |
" |
|
255 |
UserPreferences fileBrowserClass |
|
256 |
" |
|
257 |
! |
|
258 |
||
6019 | 259 |
systemBrowserClass |
260 |
^ self current systemBrowserClass |
|
261 |
||
262 |
" |
|
263 |
UserPreferences systemBrowserClass |
|
264 |
" |
|
265 |
! |
|
266 |
||
267 |
versionDiffViewerClass |
|
268 |
^ self current versionDiffViewerClass |
|
269 |
||
270 |
" |
|
271 |
UserPreferences versionDiffViewerClass |
|
272 |
" |
|
273 |
! ! |
|
274 |
||
7028 | 275 |
!UserPreferences class methodsFor:'saving'! |
276 |
||
277 |
saveSettings:userPrefs in:fileName |
|
278 |
"save settings to a settings-file." |
|
279 |
||
11143 | 280 |
"a temporary kludge for old classVariable-based settings |
7028 | 281 |
- all of those MUST go into the user-preferences dictionary eventually" |
282 |
||
283 |
|s screen| |
|
284 |
||
285 |
s := fileName asFilename writeStream. |
|
286 |
||
287 |
screen := Screen current. |
|
288 |
||
289 |
s nextPutLine:'"/ ST/X saved settings'; |
|
290 |
nextPutLine:'"/ DO NOT MODIFY MANUALLY'; |
|
291 |
nextPutLine:'"/ (modifications would be lost with next save-settings)'; |
|
292 |
nextPutLine:'"/'; |
|
293 |
nextPutLine:'"/ this file was automatically generated by the'; |
|
7047
7236b784afa4
httpServer settings to user preferences to allow save in settings file
penk
parents:
7037
diff
changeset
|
294 |
nextPutLine:'"/ ''save settings'' function of the SettingsDialog'; |
7028 | 295 |
nextPutLine:'"/'. |
296 |
s cr. |
|
297 |
||
298 |
s nextPutLine:'"/'. |
|
8252
16ed6cd9868d
Use Timestamp/#asTimestamp instead of AbsoluteTime/#asAbsoluteTime
Stefan Vogel <sv@exept.de>
parents:
8233
diff
changeset
|
299 |
s nextPutLine:'"/ saved by ' , OperatingSystem getLoginName , '@' , OperatingSystem getHostName , ' at ' , Timestamp now printString. |
7028 | 300 |
s nextPutLine:'"/'. |
301 |
s cr. |
|
302 |
||
303 |
s nextPutLine:'"/'. |
|
304 |
s nextPutLine:'"/ Display settings:'. |
|
305 |
s nextPutLine:'"/'. |
|
306 |
s nextPutLine:'"/ only restore the display settings, if on the same Display ...'. |
|
307 |
s nextPutLine:'Display notNil ifTrue:['. |
|
308 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
|
309 |
screen fixColors notNil ifTrue:[ |
|
11983 | 310 |
s nextPutLine:' Image flushDeviceImages.'. |
311 |
s nextPutLine:' Color colorAllocationFailSignal catch:['. |
|
312 |
s nextPutLine:' Color getColorsRed:6 green:6 blue:4 on:Display'. |
|
313 |
s nextPutLine:' ].'. |
|
7028 | 314 |
] ifFalse:[ |
11983 | 315 |
s nextPutLine:' Display releaseFixColors.'. |
7028 | 316 |
]. |
317 |
s nextPutLine:' Display hasColors: ' , (screen hasColors storeString) , '.'. |
|
318 |
s nextPutLine:' Display widthInMillimeter: ' , (screen widthInMillimeter storeString) , '.'. |
|
319 |
s nextPutLine:' Display heightInMillimeter: ' , (screen heightInMillimeter storeString) , '.'. |
|
320 |
s nextPutLine:' Display supportsDeepIcons: ' , (screen supportsDeepIcons storeString) , '.'. |
|
321 |
s nextPutLine:' Image ditherAlgorithm: ' , (Image ditherAlgorithm storeString) , '.'. |
|
322 |
s nextPutLine:' View defaultStyle:' , View defaultStyle storeString , '.'. |
|
323 |
s nextPutLine:' ].'. |
|
324 |
s nextPutLine:'].'. |
|
325 |
s cr. |
|
326 |
||
327 |
s nextPutLine:'"/'. |
|
9095
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
328 |
s nextPutLine:'"/ Parser/Compiler settings:'. |
7028 | 329 |
s nextPutLine:'"/'. |
9095
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
330 |
s nextPutLine:'ParserFlags warnSTXSpecials: ' , (ParserFlags warnSTXSpecials storeString) , '.'; |
9099 | 331 |
nextPutLine:'ParserFlags warnings: ' , (ParserFlags warnings storeString) , '.'; |
9095
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
332 |
nextPutLine:'ParserFlags warnUnderscoreInIdentifier: ' , (ParserFlags warnUnderscoreInIdentifier storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
333 |
nextPutLine:'ParserFlags warnOldStyleAssignment: ' , (ParserFlags warnOldStyleAssignment storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
334 |
nextPutLine:'ParserFlags warnCommonMistakes: ' , (ParserFlags warnCommonMistakes storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
335 |
nextPutLine:'ParserFlags warnPossibleIncompatibilities: ' , (ParserFlags warnPossibleIncompatibilities storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
336 |
nextPutLine:'ParserFlags allowUnderscoreInIdentifier: ' , (ParserFlags allowUnderscoreInIdentifier storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
337 |
nextPutLine:'ParserFlags allowSqueakExtensions: ' , (ParserFlags allowSqueakExtensions storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
338 |
nextPutLine:'ParserFlags allowDolphinExtensions: ' , (ParserFlags allowDolphinExtensions storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
339 |
nextPutLine:'ParserFlags allowQualifiedNames: ' , (ParserFlags allowQualifiedNames storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
340 |
nextPutLine:'ParserFlags arraysAreImmutable: ' , (ParserFlags arraysAreImmutable storeString) , '.'; |
7028 | 341 |
nextPutLine:'Compiler lineNumberInfo: ' , (Compiler lineNumberInfo storeString) , '.'; |
342 |
||
343 |
nextPutLine:'Compiler foldConstants: ' , (Compiler foldConstants storeString) , '.'; |
|
9095
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
344 |
nextPutLine:'ParserFlags stcCompilation: ' , (ParserFlags stcCompilation storeString) , '.'; |
7028 | 345 |
nextPutLine:'OperatingSystem getOSType = ' , (OperatingSystem getOSType storeString) , ' ifTrue:['; |
9095
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
346 |
nextPutLine:' ParserFlags stcCompilationIncludes: ' , (ParserFlags stcCompilationIncludes storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
347 |
nextPutLine:' ParserFlags stcCompilationDefines: ' , (ParserFlags stcCompilationDefines storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
348 |
nextPutLine:' ParserFlags stcCompilationOptions: ' , (ParserFlags stcCompilationOptions storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
349 |
nextPutLine:' ' , (ParserFlags stcModulePath storeString) , ' asFilename exists ifTrue:['; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
350 |
nextPutLine:' ParserFlags stcModulePath: ' , (ParserFlags stcModulePath storeString) , '.'; |
7028 | 351 |
nextPutLine:' ].'; |
9095
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
352 |
nextPutLine:' ParserFlags stcPath: ' , (ParserFlags stcPath storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
353 |
nextPutLine:' ParserFlags ccCompilationOptions: ' , (ParserFlags ccCompilationOptions storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
354 |
nextPutLine:' ParserFlags ccPath: ' , (ParserFlags ccPath storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
355 |
nextPutLine:' ParserFlags linkArgs: ' , (ParserFlags linkArgs storeString) , '.'; |
9809 | 356 |
nextPutLine:' ParserFlags linkSharedArgs: ' , (ParserFlags linkSharedArgs storeString) , '.'; |
9095
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
357 |
nextPutLine:' ParserFlags linkCommand: ' , (ParserFlags linkCommand storeString) , '.'; |
9492 | 358 |
nextPutLine:' ParserFlags makeCommand: ' , (ParserFlags makeCommand storeString) , '.'; |
9095
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
359 |
nextPutLine:' ParserFlags libPath: ' , (ParserFlags libPath storeString) , '.'; |
fc7e3c1d66be
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
9055
diff
changeset
|
360 |
nextPutLine:' ParserFlags searchedLibraries: ' , (ParserFlags searchedLibraries storeString) , '.'; |
7028 | 361 |
nextPutLine:'].'; |
362 |
||
363 |
nextPutLine:'ObjectMemory justInTimeCompilation: ' , (ObjectMemory justInTimeCompilation storeString) , '.'; |
|
364 |
nextPutLine:'ObjectMemory fullSingleStepSupport: ' , (ObjectMemory fullSingleStepSupport storeString) , '.'. |
|
365 |
||
366 |
HistoryManager notNil ifTrue:[ |
|
11983 | 367 |
HistoryManager isActive ifTrue:[ |
368 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager activate].'. |
|
369 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager fullHistoryUpdate:' , HistoryManager fullHistoryUpdate storeString , '].'. |
|
370 |
] ifFalse:[ |
|
371 |
s nextPutLine:'HistoryManager notNil ifTrue:[HistoryManager deactivate].'. |
|
372 |
]. |
|
7028 | 373 |
]. |
374 |
||
375 |
s nextPutLine:'Class catchMethodRedefinitions: ' , (Class catchMethodRedefinitions storeString) , '.'. |
|
376 |
s nextPutLine:'ClassCategoryReader sourceMode: ' , (ClassCategoryReader sourceMode storeString) , '.'. |
|
377 |
||
378 |
s cr. |
|
379 |
s nextPutLine:'"/'. |
|
380 |
s nextPutLine:'"/ Info & Debug Messages:'. |
|
381 |
s nextPutLine:'"/'. |
|
9055 | 382 |
s nextPutLine:'Smalltalk hasNoConsole ifFalse:[ ObjectMemory infoPrinting: ' , (ObjectMemory infoPrinting storeString) , '].'; |
7028 | 383 |
nextPutLine:'ObjectMemory debugPrinting: ' , (ObjectMemory debugPrinting storeString) , '.'; |
9055 | 384 |
nextPutLine:'Smalltalk hasNoConsole ifFalse:[ Object infoPrinting: ' , (Object infoPrinting storeString) , '].'; |
7028 | 385 |
nextPutLine:'DeviceWorkstation errorPrinting: ' , (DeviceWorkstation errorPrinting storeString) , '.'. |
386 |
||
8619 | 387 |
"/ FlyByHelp isActive ifTrue:[ |
388 |
"/ s nextPutLine:'FlyByHelp start.' |
|
389 |
"/ ]. |
|
7028 | 390 |
|
391 |
s cr. |
|
392 |
s nextPutLine:'"/'. |
|
393 |
s nextPutLine:'"/ Edit settings:'. |
|
394 |
s nextPutLine:'"/'. |
|
395 |
"/ s nextPutLine:'EditTextView st80Mode: ' , (EditTextView st80Mode storeString) , '.'. |
|
396 |
s nextPutLine:'TextView st80SelectMode: ' , (TextView st80SelectMode storeString) , '.'. |
|
397 |
s nextPutLine:'UserPreferences current syntaxColoring: ' , (userPrefs syntaxColoring storeString) , '.'. |
|
398 |
(ListView userDefaultTabPositions = ListView tab4Positions) ifTrue:[ |
|
11983 | 399 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab4Positions).'. |
7028 | 400 |
] ifFalse:[ |
11983 | 401 |
s nextPutLine:'ListView userDefaultTabPositions:(ListView tab8Positions).'. |
7028 | 402 |
]. |
403 |
||
404 |
s nextPutLine:'"/'. |
|
405 |
s nextPutLine:'"/ User preference values:'. |
|
406 |
s nextPutLine:'"/'. |
|
407 |
userPrefs keysAndValuesDo:[:k :v | |
|
11983 | 408 |
(UserPreferences includesSelector:(k , ':') asSymbol) ifTrue:[ |
409 |
s nextPutLine:'UserPreferences current ' , k , ':' , v storeString , '.'. |
|
410 |
] ifFalse:[ |
|
411 |
s nextPutLine:'UserPreferences current at:' , k storeString , ' put:' , v storeString , '.'. |
|
412 |
] |
|
7028 | 413 |
]. |
414 |
||
415 |
s cr. |
|
416 |
s nextPutLine:'"/'. |
|
8424
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
417 |
s nextPutLine:'"/ GC settings:'. |
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
418 |
s nextPutLine:'"/'. |
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
419 |
s nextPutLine:'ObjectMemory newSpaceSize: ' , (ObjectMemory newSpaceSize storeString) , '.'; |
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
420 |
nextPutLine:'ObjectMemory dynamicCodeGCTrigger: ' , (ObjectMemory dynamicCodeGCTrigger storeString) , '.'; |
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
421 |
nextPutLine:'ObjectMemory freeSpaceGCAmount: ' , (ObjectMemory freeSpaceGCAmount storeString) , '.'; |
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
422 |
nextPutLine:'ObjectMemory freeSpaceGCLimit: ' , (ObjectMemory freeSpaceGCLimit storeString) , '.'; |
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
423 |
nextPutLine:'ObjectMemory incrementalGCLimit: ' , (ObjectMemory incrementalGCLimit storeString) , '.'; |
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
424 |
nextPutLine:'ObjectMemory oldSpaceCompressLimit: ' , (ObjectMemory oldSpaceCompressLimit storeString) , '.'; |
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
425 |
nextPutLine:'ObjectMemory oldSpaceIncrement: ' , (ObjectMemory oldSpaceIncrement storeString) , '.'. |
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
426 |
|
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
427 |
s cr. |
6afb1a161efa
Save ObjectMemory->garbageCollectionParameter settings
Stefan Vogel <sv@exept.de>
parents:
8420
diff
changeset
|
428 |
s nextPutLine:'"/'. |
7028 | 429 |
s nextPutLine:'"/ Misc settings:'. |
430 |
s nextPutLine:'"/'. |
|
431 |
s nextPutLine:'Class keepMethodHistory: ' , (Class methodHistory notNil storeString) , '.'; |
|
432 |
nextPutLine:'Smalltalk logDoits: ' , (Smalltalk logDoits storeString) , '.'; |
|
433 |
nextPutLine:'Autoload compileLazy: ' , (Autoload compileLazy storeString) , '.'; |
|
434 |
nextPutLine:'Smalltalk loadBinaries: ' , (Smalltalk loadBinaries storeString) , '.'; |
|
435 |
nextPutLine:'StandardSystemView includeHostNameInLabel: ' , (StandardSystemView includeHostNameInLabel storeString) , '.'; |
|
436 |
||
437 |
"/ claus - I dont think its a good idea to save those ... |
|
11983 | 438 |
"/ nextPutLine:'"/ Class updateChanges: ' , (Class updatingChanges storeString) , '.'; |
439 |
"/ nextPutLine:'"/ ObjectMemory nameForChanges: ' , (ObjectMemory nameForChanges storeString) , '.'; |
|
7028 | 440 |
|
441 |
nextPutLine:'StandardSystemView returnFocusWhenClosingModalBoxes: ' , (StandardSystemView returnFocusWhenClosingModalBoxes storeString) , '.'; |
|
442 |
nextPutLine:'StandardSystemView takeFocusWhenMapped: ' , (StandardSystemView takeFocusWhenMapped storeString) , '.'; |
|
443 |
nextPutLine:'Display notNil ifTrue:['; |
|
444 |
nextPutLine:' Display activateOnClick: ' , ((screen activateOnClick:nil) storeString) , '.'; |
|
445 |
nextPutLine:'].'; |
|
446 |
nextPutLine:'MenuView showAcceleratorKeys: ' , (MenuView showAcceleratorKeys storeString) , '.'; |
|
447 |
nextPutLine:'Class tryLocalSourceFirst: ' , (Class tryLocalSourceFirst storeString) , '.'. |
|
7037
0771e159ad40
Replace referneces to Exception.
Stefan Vogel <sv@exept.de>
parents:
7030
diff
changeset
|
448 |
(NoHandlerError emergencyHandler == AbstractLauncherApplication notifyingEmergencyHandler) ifTrue:[ |
11983 | 449 |
s nextPutLine:'NoHandlerError emergencyHandler:(AbstractLauncherApplication notifyingEmergencyHandler).'. |
7028 | 450 |
]. |
451 |
Processor isTimeSlicing ifTrue:[ |
|
11983 | 452 |
s nextPutLine:'Processor startTimeSlicing.'. |
453 |
s nextPutLine:('Processor supportDynamicPriorities:' , (Processor supportDynamicPriorities ? false) storeString , '.'). |
|
7028 | 454 |
] ifFalse:[ |
11983 | 455 |
s nextPutLine:'Processor stopTimeSlicing.'. |
7028 | 456 |
]. |
457 |
||
458 |
s cr. |
|
459 |
s nextPutLine:'"/'. |
|
460 |
s nextPutLine:'"/ Printer settings:'. |
|
461 |
s nextPutLine:'"/'. |
|
9491 | 462 |
Printer notNil ifTrue:[ |
11983 | 463 |
s nextPutLine:'Printer := ' , (Printer name) , '.'. |
464 |
Printer supportsPrintingToCommand ifTrue:[ |
|
465 |
s nextPutLine:'Printer printCommand: ' , (Printer printCommand storeString) , '.'. |
|
466 |
]. |
|
467 |
Printer supportsPageSizes ifTrue:[ |
|
468 |
s nextPutLine:'Printer pageFormat: ' , (Printer pageFormat storeString) , '.'. |
|
469 |
s nextPutLine:'Printer landscape: ' , (Printer landscape storeString) , '.'. |
|
470 |
]. |
|
471 |
Printer supportsMargins ifTrue:[ |
|
472 |
s nextPutLine:'Printer topMargin: ' , (Printer topMargin storeString) , '.'. |
|
473 |
s nextPutLine:'Printer leftMargin: ' , (Printer leftMargin storeString) , '.'. |
|
474 |
s nextPutLine:'Printer rightMargin: ' , (Printer rightMargin storeString) , '.'. |
|
475 |
s nextPutLine:'Printer bottomMargin: ' , (Printer bottomMargin storeString) , '.'. |
|
476 |
]. |
|
477 |
Printer supportsPostscript ifTrue:[ |
|
478 |
s nextPutLine:'Printer supportsColor: ' , (Printer supportsColor storeString) , '.'. |
|
479 |
]. |
|
7028 | 480 |
]. |
481 |
s cr. |
|
482 |
s nextPutLine:'"/'. |
|
483 |
s nextPutLine:'"/ Font settings:'. |
|
484 |
s nextPutLine:'"/ (only restored, if image is restarted on the same display)'. |
|
485 |
s nextPutLine:'"/'. |
|
486 |
s nextPutLine:'Display notNil ifTrue:['. |
|
487 |
s nextPutLine:' Display displayName = ' , (screen displayName storeString) , ' ifTrue:['. |
|
488 |
s nextPutLine:' View defaultFont: ' , (View defaultFont storeString) , '.'. |
|
489 |
s nextPutLine:' Label defaultFont: ' , (Label defaultFont storeString) , '.'. |
|
490 |
s nextPutLine:' Button defaultFont: ' , (Button defaultFont storeString) , '.'. |
|
491 |
s nextPutLine:' Toggle defaultFont: ' , (Toggle defaultFont storeString) , '.'. |
|
492 |
s nextPutLine:' SelectionInListView defaultFont: ' , (SelectionInListView defaultFont storeString) , '.'. |
|
493 |
s nextPutLine:' MenuView defaultFont: ' , (MenuView defaultFont storeString) , '.'. |
|
7862 | 494 |
s nextPutLine:' MenuPanel defaultFont: ' , (MenuPanel defaultFont storeString) , '.'. |
495 |
s nextPutLine:' NoteBookView defaultFont: ' , (NoteBookView defaultFont storeString) , '.'. |
|
7028 | 496 |
s nextPutLine:' PullDownMenu defaultFont: ' , (PullDownMenu defaultFont storeString) , '.'. |
497 |
s nextPutLine:' TextView defaultFont: ' , (TextView defaultFont storeString) , '.'. |
|
498 |
s nextPutLine:' EditTextView defaultFont: ' , (EditTextView defaultFont storeString) , '.'. |
|
499 |
s nextPutLine:' CodeView defaultFont: ' , (CodeView defaultFont storeString) , '.'. |
|
500 |
s nextPutLine:' ].'. |
|
501 |
s nextPutLine:'].'. |
|
502 |
||
503 |
s cr. |
|
504 |
s nextPutLine:'"/'. |
|
505 |
s nextPutLine:'"/ Language setting:'. |
|
506 |
s nextPutLine:'"/'. |
|
7993 | 507 |
s nextPutLine:'"/ Notice:'. |
508 |
s nextPutLine:'"/ Language should be taken from the Environment Variable LANG'. |
|
509 |
s nextPutLine:'"/ To use the previous seting, uncomment the following:'. |
|
12104 | 510 |
s nextPutLine:'"/ Smalltalk language: ' , (Smalltalk language storeString) , '.'. |
511 |
s nextPutLine:'"/ Smalltalk languageTerritory: ' , (Smalltalk languageTerritory storeString) , '.'. |
|
7028 | 512 |
|
513 |
s cr. |
|
514 |
s nextPutLine:'"/'. |
|
515 |
s nextPutLine:'"/ SourceCodeManager settings:'. |
|
516 |
s nextPutLine:'"/ (only restored, if image is restarted on the same host)'. |
|
517 |
s nextPutLine:'"/'. |
|
518 |
s nextPutLine:'OperatingSystem getHostName = ' , (OperatingSystem getHostName storeString) , ' ifTrue:['. |
|
519 |
s nextPutLine:' Class tryLocalSourceFirst:' , Class tryLocalSourceFirst storeString , '.'. |
|
9742 | 520 |
s nextPutLine:' AbstractSourceCodeManager cacheDirectoryName:' , AbstractSourceCodeManager cacheDirectoryName storeString , '.'. |
521 |
CVSSourceCodeManager notNil ifTrue:[ |
|
11983 | 522 |
CVSSourceCodeManager savePreferencesOn:s |
9742 | 523 |
]. |
524 |
(StoreSourceCodeManager notNil and:[StoreSourceCodeManager isExperimental not]) ifTrue:[ |
|
11983 | 525 |
StoreSourceCodeManager savePreferencesOn:s |
9742 | 526 |
]. |
10165
0da4fdb7f0ca
saving of sourceCodemanager data
Claus Gittinger <cg@exept.de>
parents:
10055
diff
changeset
|
527 |
(SmallTeamSourceCodeManager notNil and:[SmallTeamSourceCodeManager isExperimental not]) ifTrue:[ |
11983 | 528 |
SmallTeamSourceCodeManager savePreferencesOn:s |
7028 | 529 |
]. |
530 |
s nextPutLine:'].'. |
|
531 |
||
532 |
s close. |
|
533 |
||
534 |
" |
|
535 |
Transcript topView application saveSettings |
|
536 |
" |
|
537 |
||
9492 | 538 |
"Modified: / 09-08-2006 / 18:52:14 / fm" |
10165
0da4fdb7f0ca
saving of sourceCodemanager data
Claus Gittinger <cg@exept.de>
parents:
10055
diff
changeset
|
539 |
"Modified: / 09-11-2006 / 15:12:07 / cg" |
7028 | 540 |
! ! |
541 |
||
10861 | 542 |
!UserPreferences methodsFor:'acccesing-locale'! |
543 |
||
12167 | 544 |
dateInputFormat |
545 |
"return a format used when tools read a date from the user" |
|
546 |
||
547 |
^ self |
|
548 |
at:#dateInputFormat |
|
549 |
ifAbsentPut:[ |
|
550 |
(self language == #en and:[ self languageTerritory ~= #en]) |
|
551 |
ifTrue:[ '%m %d %y' ] |
|
552 |
ifFalse:[ '%d %m %y' ] |
|
553 |
] |
|
554 |
! |
|
555 |
||
556 |
dateInputFormat:aFormatString |
|
557 |
"return a format used when tools read a date from the user" |
|
558 |
||
559 |
^ self |
|
560 |
at:#dateInputFormat |
|
561 |
ifAbsentPut:[ |
|
562 |
(self language == #en and:[ self languageTerritory ~= #en]) |
|
563 |
ifTrue:[ '%m %d %y' ] |
|
564 |
ifFalse:[ '%d %m %y' ] |
|
565 |
] |
|
566 |
||
567 |
" |
|
568 |
UserPreferences current dateInputFormat:'%d %m %y' -- european |
|
569 |
UserPreferences current dateInputFormat:'%m %d %y' -- us |
|
570 |
" |
|
571 |
! |
|
572 |
||
10861 | 573 |
decimalPointCharacter |
11213 | 574 |
"toDo: migrate from ClassVar in Number; |
10861 | 575 |
use this for new applications" |
576 |
||
577 |
^ $. |
|
578 |
! |
|
579 |
||
580 |
thousandsSeparatorCharacter |
|
11213 | 581 |
"toDo: migrate from ClassVar elsewhere; |
10861 | 582 |
use this for new applications" |
583 |
||
584 |
^ $' |
|
585 |
! ! |
|
586 |
||
7549 | 587 |
!UserPreferences methodsFor:'accessing'! |
3883 | 588 |
|
5790 | 589 |
at:key put:value |
590 |
|classNameToCheck classToCheck| |
|
591 |
||
6059 | 592 |
value == true ifTrue:[ |
11143 | 593 |
key == #useNewVersionDiffBrowser ifTrue:[ |
594 |
classNameToCheck := #'VersionDiffBrowser'. |
|
595 |
]. |
|
596 |
key == #useNewChangesBrowser ifTrue:[ |
|
597 |
classNameToCheck := #'NewChangesBrowser'. |
|
598 |
]. |
|
599 |
key == #useNewFileBrowser ifTrue:[ |
|
600 |
classNameToCheck := #'FileBrowserV2'. |
|
601 |
]. |
|
602 |
key == #useNewSystemBrowser ifTrue:[ |
|
603 |
classNameToCheck := #'Tools::NewSystemBrowser'. |
|
604 |
]. |
|
605 |
key == #useNewInspector ifTrue:[ |
|
606 |
classNameToCheck := #'NewInspector::NewInspectorView'. |
|
607 |
]. |
|
5790 | 608 |
]. |
609 |
||
5791 | 610 |
classNameToCheck notNil ifTrue:[ |
11143 | 611 |
classToCheck := Smalltalk at:classNameToCheck. |
612 |
classToCheck isNil ifTrue:[ |
|
613 |
('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR. |
|
614 |
] ifFalse:[ |
|
615 |
Autoload autoloadFailedSignal handle:[:ex | |
|
616 |
'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR. |
|
617 |
] do:[ |
|
618 |
classToCheck autoload. |
|
619 |
] |
|
620 |
] |
|
5790 | 621 |
]. |
622 |
||
623 |
^ super at:key put:value |
|
7549 | 624 |
! ! |
625 |
||
10723 | 626 |
!UserPreferences methodsFor:'accessing-misc-communication'! |
627 |
||
11023 | 628 |
dotNetBridgeRunsInIDE |
11930 | 629 |
"a debugging flag: if true, the dotNetBridge is assumed to be |
630 |
already running and the bridge-exe will not be started by st/x" |
|
631 |
||
11023 | 632 |
^ self at:#dotNetBridgeRunsInIDE ifAbsent:false |
633 |
! |
|
634 |
||
635 |
dotNetBridgeRunsInIDE:aBoolean |
|
11930 | 636 |
"a debugging flag: if true, the dotNetBridge is assumed to be |
637 |
already running and the bridge-exe will not be started by st/x" |
|
638 |
||
11023 | 639 |
^ self at:#dotNetBridgeRunsInIDE put:aBoolean |
640 |
! |
|
641 |
||
642 |
dotNetBridgeVerbose |
|
643 |
^ self at:#dotNetBridgeVerbose ifAbsent:false |
|
11027 | 644 |
|
645 |
" |
|
646 |
UserPreferences current dotNetBridgeVerbose |
|
647 |
" |
|
11023 | 648 |
! |
649 |
||
650 |
dotNetBridgeVerbose:aBoolean |
|
651 |
^ self at:#dotNetBridgeVerbose put:aBoolean |
|
652 |
! |
|
653 |
||
11930 | 654 |
javaBridgeRunsInIDE |
655 |
"a debugging flag: if true, the javaBridge is assumed to be |
|
656 |
already running and the bridge-exe will not be started by st/x" |
|
657 |
||
658 |
^ self at:#javaBridgeRunsInIDE ifAbsent:false |
|
659 |
! |
|
660 |
||
661 |
javaBridgeRunsInIDE:aBoolean |
|
662 |
"a debugging flag: if true, the javaBridge is assumed to be |
|
663 |
already running and the bridge-exe will not be started by st/x" |
|
664 |
||
665 |
^ self at:#javaBridgeRunsInIDE put:aBoolean |
|
666 |
! |
|
667 |
||
10723 | 668 |
smtpServerName |
669 |
^ self at:#smtpServerName ifAbsent:nil |
|
670 |
||
671 |
"Created: / 20-09-2007 / 15:59:20 / cg" |
|
672 |
! |
|
673 |
||
674 |
smtpServerName:aHostnameString |
|
675 |
^ self at:#smtpServerName put:aHostnameString |
|
676 |
||
677 |
" |
|
678 |
UserPreferences current smtpServerName |
|
679 |
UserPreferences current smtpServerName:'mailhost' |
|
680 |
" |
|
681 |
||
682 |
"Created: / 20-09-2007 / 15:59:58 / cg" |
|
683 |
! ! |
|
684 |
||
7549 | 685 |
!UserPreferences methodsFor:'accessing-pref''d tools'! |
5790 | 686 |
|
3883 | 687 |
changesBrowserClass |
688 |
self useNewChangesBrowser ifTrue:[ |
|
11143 | 689 |
^ (NewChangesBrowser ? ChangesBrowser) |
3883 | 690 |
]. |
691 |
^ ChangesBrowser |
|
692 |
||
693 |
"Created: / 17.10.1998 / 14:37:46 / cg" |
|
5535 | 694 |
! |
695 |
||
6763 | 696 |
fileBrowserClass |
697 |
self useNewFileBrowser ifTrue:[ |
|
11143 | 698 |
^ (FileBrowserV2 ? FileBrowser) |
6763 | 699 |
]. |
700 |
^ FileBrowser |
|
8869 | 701 |
|
702 |
" |
|
703 |
UserPreferences current fileBrowserClass |
|
704 |
" |
|
6763 | 705 |
! |
706 |
||
8619 | 707 |
flyByHelpActive |
708 |
||
11143 | 709 |
^ self at:#flyByHelpActive ifAbsent:true "(FlyByHelp notNil and:[FlyByHelp isActive])" |
8619 | 710 |
! |
711 |
||
712 |
flyByHelpActive:aBoolean |
|
713 |
aBoolean ~~ self flyByHelpActive ifTrue:[ |
|
11143 | 714 |
self at:#flyByHelpActive put:aBoolean. |
715 |
self flyByHelpSettingChanged. |
|
8619 | 716 |
]. |
717 |
! |
|
718 |
||
6177 | 719 |
inspectorClassSetting |
720 |
self useNewInspector ifTrue:[ |
|
11143 | 721 |
^ (NewInspector::NewInspectorView ? InspectorView) |
6177 | 722 |
]. |
723 |
^ InspectorView |
|
724 |
||
725 |
"Modified: / 12.11.2001 / 15:47:35 / cg" |
|
726 |
"Created: / 12.11.2001 / 15:49:00 / cg" |
|
5541 | 727 |
! |
728 |
||
11005 | 729 |
showTipOfTheDayAtStartup |
730 |
^ self at:#showTipOfTheDayAtStartup ifAbsent:false |
|
731 |
! |
|
732 |
||
733 |
showTipOfTheDayAtStartup:aBoolean |
|
734 |
self at:#showTipOfTheDayAtStartup put:aBoolean. |
|
735 |
! |
|
736 |
||
5535 | 737 |
systemBrowserClass |
738 |
self useNewSystemBrowser ifTrue:[ |
|
11143 | 739 |
^ ((Tools::NewSystemBrowser ? NewSystemBrowser) ? SystemBrowser) |
5535 | 740 |
]. |
741 |
^ SystemBrowser |
|
5536 | 742 |
! |
743 |
||
10924 | 744 |
useNativeFileDialog |
745 |
"using native file dialog" |
|
746 |
||
747 |
^ self at:#useNativeFileDialog ifAbsent:false |
|
748 |
! |
|
749 |
||
750 |
useNativeFileDialog:aBoolean |
|
751 |
"using native file dialog (if available)" |
|
752 |
||
753 |
self at:#useNativeFileDialog put:aBoolean |
|
754 |
||
755 |
" |
|
756 |
UserPreferences current useNativeFileDialog:true |
|
757 |
UserPreferences current useNativeFileDialog:false |
|
758 |
UserPreferences current useNativeFileDialog |
|
759 |
" |
|
760 |
! |
|
761 |
||
5536 | 762 |
useNewChangesBrowser |
763 |
"using new or old change browser" |
|
764 |
||
9302 | 765 |
^ self at:#useNewChangesBrowser ifAbsent:false |
5536 | 766 |
|
767 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
768 |
! |
|
769 |
||
770 |
useNewChangesBrowser:aBoolean |
|
771 |
"using new or old changeBrowser" |
|
772 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
773 |
self at:#useNewChangesBrowser put:aBoolean |
5536 | 774 |
|
775 |
" |
|
776 |
UserPreferences current useNewChangesBrowser |
|
777 |
" |
|
778 |
||
779 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
780 |
! |
|
781 |
||
6717 | 782 |
useNewFileBrowser |
783 |
"using new or old version diff viewer" |
|
784 |
||
9302 | 785 |
^ self at:#useNewFileBrowser ifAbsent:(FileBrowserV2 notNil and:[FileBrowserV2 isLoaded]) |
6717 | 786 |
|
787 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
788 |
! |
|
789 |
||
790 |
useNewFileBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
791 |
"using new or old file browser" |
6717 | 792 |
|
793 |
self at:#useNewFileBrowser put:aBoolean |
|
794 |
||
795 |
" |
|
6769 | 796 |
UserPreferences current useNewFileBrowser |
6717 | 797 |
" |
798 |
||
799 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
800 |
! |
|
801 |
||
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
802 |
useNewFileDialog |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
803 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
804 |
|
9302 | 805 |
^ self at:#useNewFileDialog ifAbsent:true |
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
806 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
807 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
808 |
useNewFileDialog:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
809 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
810 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
811 |
self at:#useNewFileDialog put:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
812 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
813 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
814 |
UserPreferences current useNewFileDialog:true |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
815 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
816 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
817 |
|
5536 | 818 |
useNewInspector |
819 |
"using new or old inspector" |
|
820 |
||
9302 | 821 |
^ self at:#useNewInspector ifAbsent:false |
5536 | 822 |
|
823 |
" |
|
824 |
UserPreferences current useNewInspector |
|
825 |
" |
|
826 |
||
827 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
828 |
! |
|
829 |
||
830 |
useNewInspector:aBoolean |
|
831 |
"using new or old inspector" |
|
832 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
833 |
self at:#useNewInspector put:aBoolean |
5536 | 834 |
|
835 |
" |
|
836 |
UserPreferences current useNewInspector |
|
837 |
" |
|
838 |
! |
|
839 |
||
6935 | 840 |
useNewSettingsApplication |
6838 | 841 |
"using one application for the settings" |
842 |
||
9302 | 843 |
^ self at:#useNewSettingsApplication ifAbsent:true |
6838 | 844 |
! |
845 |
||
6935 | 846 |
useNewSettingsApplication:aBoolean |
6838 | 847 |
"using one application for the settings" |
848 |
||
6935 | 849 |
self at:#useNewSettingsApplication put:aBoolean |
6838 | 850 |
|
851 |
" |
|
6935 | 852 |
UserPreferences current useNewSettingsApplication:true |
6838 | 853 |
" |
854 |
||
855 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
856 |
! |
|
857 |
||
5536 | 858 |
useNewSystemBrowser |
859 |
"using new or old system browser" |
|
860 |
||
8593 | 861 |
|newSystemBrowserClass useIt| |
8000 | 862 |
|
863 |
newSystemBrowserClass := (Tools::NewSystemBrowser ? NewSystemBrowser). |
|
8593 | 864 |
useIt := self at:#useNewSystemBrowser ifAbsent:nil. |
865 |
useIt isNil ifTrue:[ |
|
11143 | 866 |
useIt := (newSystemBrowserClass notNil and:[ newSystemBrowserClass isLoaded]). |
867 |
useIt ifTrue:[ |
|
868 |
self at:#useNewSystemBrowser put:true. |
|
869 |
]. |
|
8593 | 870 |
]. |
11143 | 871 |
^ useIt |
5536 | 872 |
! |
873 |
||
874 |
useNewSystemBrowser:aBoolean |
|
875 |
"using new or old systemBrowser" |
|
876 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
877 |
self at:#useNewSystemBrowser put:aBoolean |
5536 | 878 |
|
879 |
" |
|
5541 | 880 |
UserPreferences current useNewSystemBrowser:true |
5536 | 881 |
" |
882 |
||
883 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
884 |
! |
|
885 |
||
886 |
useNewVersionDiffBrowser |
|
887 |
"using new or old version diff viewer" |
|
888 |
||
9302 | 889 |
^ self at:#useNewVersionDiffBrowser ifAbsent:true |
5536 | 890 |
|
891 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
892 |
! |
|
893 |
||
894 |
useNewVersionDiffBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
895 |
"using new or old versionDiffBrowser" |
5536 | 896 |
|
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
897 |
self at:#useNewVersionDiffBrowser put:aBoolean |
5536 | 898 |
|
899 |
" |
|
900 |
UserPreferences current useNewVersionDiffBrowser |
|
901 |
" |
|
902 |
||
903 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
904 |
! |
|
905 |
||
6959 | 906 |
useProcessMonitorV2 |
907 |
"using ProcessMonitorV2 application for display Processes" |
|
908 |
||
9302 | 909 |
^ self at:#useProcessMonitorV2 ifAbsent:(ProcessMonitorV2 notNil) |
6959 | 910 |
! |
911 |
||
912 |
useProcessMonitorV2:aBoolean |
|
913 |
"using ProcessMonitorV2 application for display Processes" |
|
914 |
||
915 |
self at:#useProcessMonitorV2 put:aBoolean |
|
916 |
||
917 |
" |
|
918 |
UserPreferences current useProcessMonitorV2:true |
|
919 |
" |
|
920 |
||
921 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
922 |
! |
|
923 |
||
9302 | 924 |
useSmalltalkDocumentViewer |
925 |
"using the smalltalk-DocumentViewer (as opposed to the native systems Browser) |
|
926 |
to display documentation" |
|
927 |
||
928 |
^ self at:#useSmalltalkDocumentViewer ifAbsent:true |
|
929 |
||
930 |
" |
|
931 |
UserPreferences current useSmalltalkDocumentViewer |
|
932 |
UserPreferences current useSmalltalkDocumentViewer:false |
|
933 |
" |
|
934 |
! |
|
935 |
||
936 |
useSmalltalkDocumentViewer:aBoolean |
|
937 |
"using the smalltalk-DocumentViewer (as opposed to the native systems Browser) |
|
938 |
to display documentation" |
|
939 |
||
940 |
^ self at:#useSmalltalkDocumentViewer put:aBoolean |
|
941 |
! |
|
942 |
||
5536 | 943 |
versionDiffViewerClass |
944 |
self useNewVersionDiffBrowser ifTrue:[ |
|
11143 | 945 |
^ (VersionDiffBrowser ? DiffTextView) |
5536 | 946 |
]. |
10992 | 947 |
^ DiffCodeView |
3883 | 948 |
! ! |
949 |
||
7549 | 950 |
!UserPreferences methodsFor:'accessing-prefs-UI'! |
3358 | 951 |
|
11390 | 952 |
allowMouseWheelZoom |
953 |
"return the flag which controls if text can be magnified via the ALT-wheel-action" |
|
954 |
||
955 |
^ self at:#allowMouseWheelZoom ifAbsent:[ true ] |
|
956 |
||
957 |
" |
|
958 |
UserPreferences current allowMouseWheelZoom |
|
959 |
" |
|
960 |
! |
|
961 |
||
962 |
allowMouseWheelZoom:aBooleanOrNil |
|
963 |
"set/clear the flag which controls if text can be magnified via the ALT-wheel-action" |
|
964 |
||
965 |
^ self at:#allowMouseWheelZoom put:aBooleanOrNil |
|
966 |
||
967 |
" |
|
968 |
UserPreferences current allowMouseWheelZoom:true |
|
969 |
UserPreferences current allowMouseWheelZoom:false |
|
970 |
UserPreferences current allowMouseWheelZoom |
|
971 |
" |
|
972 |
! |
|
973 |
||
11929 | 974 |
avoidSlowDrawingOperationsUnderWindows |
975 |
^ OperatingSystem isMSWINDOWSlike |
|
976 |
! |
|
977 |
||
5071 | 978 |
beepEnabled |
979 |
"return the flag which controls the beeper" |
|
980 |
||
981 |
^ self at:#beepEnabled ifAbsentPut:true |
|
982 |
||
983 |
" |
|
984 |
UserPreferences current beepEnabled |
|
985 |
" |
|
986 |
||
987 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
988 |
"Created: / 3.12.1999 / 17:09:49 / ps" |
|
989 |
! |
|
990 |
||
991 |
beepEnabled:aBoolean |
|
992 |
"set/clear the flag which controls the beeper" |
|
993 |
||
994 |
^ self at:#beepEnabled put:aBoolean |
|
995 |
||
996 |
" |
|
997 |
UserPreferences current beepEnabled:false |
|
998 |
" |
|
999 |
||
1000 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
1001 |
"Created: / 3.12.1999 / 17:10:27 / ps" |
|
1002 |
! |
|
1003 |
||
8676 | 1004 |
beepForErrorDialog |
1005 |
"return the flag which controls beeping for error dialogs" |
|
1006 |
||
9302 | 1007 |
^ self at:#beepForErrorDialog ifAbsent:true |
8676 | 1008 |
|
1009 |
" |
|
1010 |
UserPreferences current beepForErrorDialog |
|
1011 |
" |
|
1012 |
! |
|
1013 |
||
1014 |
beepForErrorDialog:aBoolean |
|
1015 |
"set/clear the flag which controls beeping for error dialogs" |
|
1016 |
||
1017 |
^ self at:#beepForErrorDialog put:aBoolean |
|
1018 |
||
1019 |
" |
|
1020 |
UserPreferences current beepForErrorDialog:true |
|
1021 |
" |
|
1022 |
! |
|
1023 |
||
1024 |
beepForInfoDialog |
|
1025 |
"return the flag which controls beeping for info dialogs" |
|
1026 |
||
9302 | 1027 |
^ self at:#beepForInfoDialog ifAbsent:false |
8676 | 1028 |
|
1029 |
" |
|
1030 |
UserPreferences current beepForInfoDialog |
|
1031 |
" |
|
1032 |
! |
|
1033 |
||
1034 |
beepForInfoDialog:aBoolean |
|
1035 |
"set/clear the flag which controls beeping for info dialogs" |
|
1036 |
||
1037 |
^ self at:#beepForInfoDialog put:aBoolean |
|
1038 |
||
1039 |
" |
|
1040 |
UserPreferences current beepForInfoDialog:true |
|
1041 |
" |
|
1042 |
! |
|
1043 |
||
1044 |
beepForWarningDialog |
|
1045 |
"return the flag which controls beeping for warning dialogs" |
|
1046 |
||
9302 | 1047 |
^ self at:#beepForWarningDialog ifAbsent:true |
8676 | 1048 |
|
1049 |
" |
|
1050 |
UserPreferences current beepForWarningDialog |
|
1051 |
" |
|
1052 |
! |
|
1053 |
||
1054 |
beepForWarningDialog:aBoolean |
|
1055 |
"set/clear the flag which controls beeping for warning dialogs" |
|
1056 |
||
1057 |
^ self at:#beepForWarningDialog put:aBoolean |
|
1058 |
||
1059 |
" |
|
1060 |
UserPreferences current beepForWarningDialog:true |
|
1061 |
" |
|
1062 |
! |
|
1063 |
||
11691 | 1064 |
beepInEditor |
1065 |
"return the flag which controls the beeper" |
|
1066 |
||
1067 |
^ self at:#beepInEditor ifAbsentPut:true |
|
1068 |
||
1069 |
" |
|
1070 |
UserPreferences current beepInEditor |
|
1071 |
" |
|
1072 |
! |
|
1073 |
||
12209 | 1074 |
closePopUpMenuChainOnEscape |
1075 |
"if true, the whole chain of popUpMenus is closed when escape is pressed. |
|
1076 |
if false (the default), only the last popup-view is closed. |
|
1077 |
The first corresponds to X-behavior, the later is how windows does it - sigh." |
|
1078 |
||
1079 |
^ self at:#closePopUpMenuChainOnEscape ifAbsent:false |
|
1080 |
||
1081 |
" |
|
1082 |
UserPreferences current closePopUpMenuChainOnEscape:false |
|
1083 |
UserPreferences current closePopUpMenuChainOnEscape:true |
|
1084 |
" |
|
1085 |
! |
|
1086 |
||
1087 |
closePopUpMenuChainOnEscape:aBoolean |
|
1088 |
"if true, the whole chain of popUpMenus is closed when escape is pressed. |
|
1089 |
if false (the default), only the last popup-view is closed. |
|
1090 |
The first corresponds to X-behavior, the later is how windows does it - sigh." |
|
1091 |
||
1092 |
^ self at:#closePopUpMenuChainOnEscape put:aBoolean |
|
1093 |
||
1094 |
" |
|
1095 |
UserPreferences current closePopUpMenuChainOnEscape:true |
|
1096 |
UserPreferences current closePopUpMenuChainOnEscape:false |
|
1097 |
" |
|
1098 |
! |
|
1099 |
||
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1100 |
expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1101 |
"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
|
1102 |
more lines. Default is not FALSE !!" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1103 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1104 |
^ self at:#expandSelectionOnMouseMoveWithButtonPressed ifAbsent:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1105 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1106 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1107 |
UserPreferences current expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1108 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1109 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1110 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1111 |
expandSelectionOnMouseMoveWithButtonPressed:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1112 |
"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
|
1113 |
more lines. Default is not FALSE !!" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1114 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1115 |
^ self at:#expandSelectionOnMouseMoveWithButtonPressed put:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1116 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1117 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1118 |
UserPreferences current expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1119 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1120 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1121 |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1122 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1123 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1124 |
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
|
1125 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1126 |
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
|
1127 |
|
9913
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
1128 |
^ self at:#focusFollowsMouse ifAbsent:[ Screen current platformName ~= 'WIN32' ] |
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1129 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1130 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1131 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1132 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1133 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1134 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1135 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1136 |
focusFollowsMouse:aBooleanOrNil |
4121 | 1137 |
"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
|
1138 |
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
|
1139 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1140 |
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
|
1141 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1142 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1143 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1144 |
" |
4121 | 1145 |
UserPreferences current focusFollowsMouse:true |
1146 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1147 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1148 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1149 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1150 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1151 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
1152 |
|
8759 | 1153 |
motionDistanceToStartDrag |
1154 |
"the motion distance (in pixel) to start drag (as opposed to adding to the selection)" |
|
1155 |
||
1156 |
^ "DragMotionDistance ?" 10 |
|
1157 |
! |
|
1158 |
||
11589
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1159 |
mouseWheelFocusFollowsMouse |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1160 |
"return the flag which controls if the mouseWheel focus should |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1161 |
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
|
1162 |
|
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1163 |
self focusFollowsMouse ifTrue:[^ true]. |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1164 |
^ self at:#mouseWheelFocusFollowsMouse ifAbsent:[ Screen current platformName ~= 'WIN32' ] |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1165 |
|
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1166 |
" |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1167 |
UserPreferences current mouseWheelFocusFollowsMouse |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1168 |
" |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1169 |
! |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
1170 |
|
5808 | 1171 |
opaqueTableColumnResizing |
1172 |
"return the flag which controls if table column resizing should be done |
|
1173 |
animated (opaque)" |
|
1174 |
||
9302 | 1175 |
^ self at:#opaqueTableColumnResizing ifAbsent:false |
5808 | 1176 |
|
1177 |
" |
|
1178 |
UserPreferences current opaqueTableColumnResizing |
|
1179 |
" |
|
1180 |
! |
|
1181 |
||
1182 |
opaqueTableColumnResizing:aBoolean |
|
1183 |
"change the flag which controls if table column resizing should be done |
|
1184 |
animated (opaque)" |
|
1185 |
||
1186 |
^ self at:#opaqueTableColumnResizing put:aBoolean |
|
1187 |
||
1188 |
" |
|
1189 |
UserPreferences current opaqueTableColumnResizing:true |
|
1190 |
" |
|
1191 |
||
1192 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
1193 |
! |
|
1194 |
||
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1195 |
opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1196 |
"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
|
1197 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1198 |
|
9302 | 1199 |
^ self at:#opaqueVariablePanelResizing ifAbsent:false |
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1200 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1201 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1202 |
UserPreferences current opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1203 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1204 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1205 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1206 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1207 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1208 |
opaqueVariablePanelResizing:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1209 |
"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
|
1210 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1211 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1212 |
^ self at:#opaqueVariablePanelResizing put:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1213 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1214 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1215 |
UserPreferences current opaqueVariablePanelResizing:true |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1216 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1217 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1218 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1219 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
1220 |
|
6525 | 1221 |
searchDialogIsModal |
1222 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
1223 |
||
1224 |
^ self at:#searchDialogIsModal ifAbsent:true |
|
1225 |
||
1226 |
" |
|
1227 |
UserPreferences current searchDialogIsModal |
|
1228 |
" |
|
1229 |
! |
|
1230 |
||
1231 |
searchDialogIsModal:aBooleanOrNil |
|
1232 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
1233 |
||
1234 |
^ self at:#searchDialogIsModal put:aBooleanOrNil |
|
1235 |
||
1236 |
" |
|
1237 |
UserPreferences current searchDialogIsModal:true |
|
1238 |
UserPreferences current searchDialogIsModal:false |
|
1239 |
UserPreferences current searchDialogIsModal |
|
1240 |
" |
|
1241 |
! |
|
1242 |
||
11931
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1243 |
selectOnRightClick |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1244 |
"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
|
1245 |
|
11943
5edb32c7f9c2
selectOnRightClick - default
Claus Gittinger <cg@exept.de>
parents:
11931
diff
changeset
|
1246 |
^ self at:#selectOnRightClick ifAbsent:false |
11931
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1247 |
! |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1248 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1249 |
selectOnRightClick:aBoolean |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1250 |
"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
|
1251 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1252 |
^ self at:#selectOnRightClick put:aBoolean |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1253 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1254 |
" |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1255 |
UserPreferences current selectOnRightClick:true. |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1256 |
UserPreferences current selectOnRightClick:false. |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1257 |
" |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1258 |
! |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1259 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1260 |
showRightButtonMenuOnRelease |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1261 |
"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
|
1262 |
Not yet fully implemented." |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1263 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1264 |
^ self at:#showRightButtonMenuOnRelease ifAbsent:true |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1265 |
! |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1266 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1267 |
showRightButtonMenuOnRelease:aBoolean |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1268 |
"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
|
1269 |
Not yet fully implemented." |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1270 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1271 |
^ self at:#showRightButtonMenuOnRelease put:aBoolean |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1272 |
|
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1273 |
" |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1274 |
UserPreferences current showRightButtonMenuOnRelease:true. |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1275 |
UserPreferences current showRightButtonMenuOnRelease:false. |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1276 |
" |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1277 |
! |
59251a906e85
preps for right-menu on buttonRelease
Claus Gittinger <cg@exept.de>
parents:
11930
diff
changeset
|
1278 |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1279 |
startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1280 |
"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
|
1281 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1282 |
^ self at:#startTextDragWithControl ifAbsent:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1283 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1284 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1285 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1286 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1287 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1288 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1289 |
startTextDragWithControl:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1290 |
"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
|
1291 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1292 |
^ self at:#startTextDragWithControl put:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1293 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1294 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1295 |
UserPreferences current startTextDragWithControl:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1296 |
UserPreferences current startTextDragWithControl:false |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1297 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1298 |
" |
7549 | 1299 |
! ! |
1300 |
||
1301 |
!UserPreferences methodsFor:'accessing-prefs-browser'! |
|
1302 |
||
1303 |
autoFormatting |
|
1304 |
"return the flag which controls automatic formatting of code (in some browsers) |
|
1305 |
Notice, the regular browser does not (yet) do automatic formating." |
|
1306 |
||
8233 | 1307 |
^ self at:#autoFormatting ifAbsent:false |
7549 | 1308 |
|
1309 |
" |
|
1310 |
UserPreferences current autoFormatting |
|
1311 |
" |
|
1312 |
||
1313 |
"Created: / 4.2.2000 / 20:08:08 / cg" |
|
1314 |
"Modified: / 5.2.2000 / 15:38:33 / cg" |
|
1315 |
! |
|
1316 |
||
1317 |
autoFormatting:aBoolean |
|
1318 |
"turn on/off automatic formatting of code (in some browsers); |
|
1319 |
Notice, the regular browser does not (yet) do automatic formating." |
|
1320 |
||
1321 |
^ self at:#autoFormatting put:aBoolean |
|
1322 |
||
1323 |
" |
|
1324 |
UserPreferences current autoFormatting:true |
|
1325 |
UserPreferences current autoFormatting:false |
|
1326 |
" |
|
1327 |
||
1328 |
"Created: / 4.2.2000 / 20:08:26 / cg" |
|
1329 |
"Modified: / 5.2.2000 / 15:38:20 / cg" |
|
1330 |
! |
|
1331 |
||
1332 |
enforceCodeStyle |
|
1333 |
"return the flag which controls enforcing a certain code style (in some browsers)" |
|
1334 |
||
8233 | 1335 |
^ self at:#enforceCodeStyle ifAbsent:false |
7549 | 1336 |
|
1337 |
" |
|
1338 |
UserPreferences current enforceCodeStyle |
|
10478 | 1339 |
UserPreferences current enforceCodeStyle:true |
1340 |
UserPreferences current enforceCodeStyle:false |
|
7549 | 1341 |
" |
10478 | 1342 |
|
1343 |
"Modified: / 27-03-2007 / 21:51:42 / cg" |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1344 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
1345 |
|
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1346 |
generateComments |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1347 |
"return true; comments shall be generated (by the codeGenerator tool)" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1348 |
|
8233 | 1349 |
^ self at:#generateComments ifAbsent:true. |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1350 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1351 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1352 |
UserPreferences current generateComments |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1353 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1354 |
! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1355 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1356 |
generateCommentsForGetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1357 |
"return true if comments for simple getters are to be generated (by the codeGenerator tool). |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1358 |
The default is now false, as these look stupid in the browser and were only generated |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1359 |
for the HTMLDocumentGenerator, which is not able to generate these comments on the fly." |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1360 |
|
8233 | 1361 |
^ self generateComments and:[self at:#generateCommentsForGetters ifAbsent:false]. |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1362 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1363 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1364 |
UserPreferences current generateCommentsForGetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1365 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1366 |
! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1367 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1368 |
generateCommentsForSetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1369 |
"return true if comments for simple setters are to be generated (by the codeGenerator tool). |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1370 |
The default is now false, as these look stupid in the browser and were only generated |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1371 |
for the HTMLDocumentGenerator, which is not able to generate these comments on the fly." |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1372 |
|
8233 | 1373 |
^ self generateComments and:[self at:#generateCommentsForSetters ifAbsent:false]. |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1374 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1375 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1376 |
UserPreferences current generateCommentsForSetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1377 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1378 |
! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1379 |
|
9320 | 1380 |
showAcceptCancelBarInBrowser |
1381 |
"experimental." |
|
1382 |
||
11214
ad61819068b9
changed #showAcceptCancelBarInBrowser
Claus Gittinger <cg@exept.de>
parents:
11213
diff
changeset
|
1383 |
^ self at:#showAcceptCancelBarInBrowser ifAbsent:true |
9320 | 1384 |
|
1385 |
" |
|
1386 |
UserPreferences current showAcceptCancelBarInBrowser |
|
1387 |
UserPreferences current showAcceptCancelBarInBrowser:true |
|
1388 |
UserPreferences current showAcceptCancelBarInBrowser:false |
|
1389 |
" |
|
1390 |
! |
|
1391 |
||
1392 |
showAcceptCancelBarInBrowser:aBoolean |
|
1393 |
"experimental." |
|
1394 |
||
1395 |
^ self at:#showAcceptCancelBarInBrowser put:aBoolean |
|
1396 |
||
1397 |
" |
|
1398 |
UserPreferences current showAcceptCancelBarInBrowser:true |
|
1399 |
UserPreferences current showAcceptCancelBarInBrowser:false |
|
1400 |
" |
|
1401 |
! |
|
1402 |
||
3347 | 1403 |
syntaxColoring |
3360 | 1404 |
"return the flag which controls syntax coloring (in the browsers)" |
1405 |
||
8233 | 1406 |
^ self at:#syntaxColoring ifAbsent:true |
3347 | 1407 |
|
1408 |
" |
|
1409 |
UserPreferences current syntaxColoring |
|
1410 |
" |
|
1411 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
1412 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 1413 |
! |
1414 |
||
1415 |
syntaxColoring:aBoolean |
|
3360 | 1416 |
"turn on/off syntaxColoring (in the browsers)." |
1417 |
||
3347 | 1418 |
^ self at:#syntaxColoring put:aBoolean |
1419 |
||
3357 | 1420 |
" |
1421 |
UserPreferences current syntaxColoring:true |
|
1422 |
UserPreferences current syntaxColoring:false |
|
1423 |
" |
|
1424 |
||
3347 | 1425 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 1426 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
12189 | 1427 |
! |
1428 |
||
1429 |
useSearchBarInBrowser |
|
12191 | 1430 |
"true, if the search-entry fields are initially shown in the browser itself |
12189 | 1431 |
(like in firefox). False if a dialog is to be opened." |
1432 |
||
1433 |
"/ cg: disabled for now, until fixed. |
|
1434 |
"/ does not initially select the searchString. |
|
1435 |
"/ thereby interrupting the workflow... |
|
1436 |
||
1437 |
^ self at:#useSearchBarInBrowser ifAbsent:false |
|
1438 |
||
1439 |
" |
|
1440 |
UserPreferences current useSearchBarInBrowser |
|
1441 |
UserPreferences current useSearchBarInBrowser:true |
|
1442 |
UserPreferences current useSearchBarInBrowser:false |
|
1443 |
" |
|
1444 |
! |
|
1445 |
||
1446 |
useSearchBarInBrowser:aBoolean |
|
12191 | 1447 |
"true, if the search-entry fields are initially shown in the browser itself |
12189 | 1448 |
(like in firefox). False if a dialog is to be opened." |
1449 |
||
1450 |
^ self at:#useSearchBarInBrowser put:aBoolean |
|
1451 |
||
1452 |
" |
|
1453 |
UserPreferences current useSearchBarInBrowser:true |
|
1454 |
UserPreferences current useSearchBarInBrowser:false |
|
1455 |
" |
|
3360 | 1456 |
! ! |
1457 |
||
7549 | 1458 |
!UserPreferences methodsFor:'accessing-prefs-browser-colors'! |
1459 |
||
1460 |
emphasisForChangedCode |
|
10177 | 1461 |
"the emphasis for changed code (in changeSet) in the browser" |
1462 |
||
7549 | 1463 |
|emp| |
1464 |
||
1465 |
emp := self at:#emphasisForChangedCode ifAbsent:nil. |
|
1466 |
emp isNil ifTrue:[ |
|
11143 | 1467 |
emp := #color->Color red darkened. |
1468 |
emp := Array with:#bold with:emp. |
|
1469 |
"/ emp := #color->Color blue darkened. |
|
1470 |
self at:#emphasisForChangedCode put:emp. |
|
7549 | 1471 |
]. |
1472 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1473 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1474 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1475 |
self allInstancesDo:[:pref |pref at:#emphasisForChangedCode put:nil]. |
9807 | 1476 |
UserPreferences current emphasisForChangedCode. |
1477 |
UserPreferences current at:#emphasisForChangedCode put:nil. |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1478 |
" |
9807 | 1479 |
|
10177 | 1480 |
"Modified: / 10-11-2006 / 17:27:23 / cg" |
1481 |
! |
|
1482 |
||
1483 |
emphasisForChangedCodeInSmallTeam |
|
1484 |
"the emphasis for changed code (in a remote changeSet) in the browser. |
|
1485 |
You need the SmallTeam extension to be present for this to work." |
|
1486 |
||
1487 |
|emp| |
|
1488 |
||
1489 |
emp := self at:#emphasisForChangedCodeInSmallTeam ifAbsent:nil. |
|
1490 |
emp isNil ifTrue:[ |
|
11143 | 1491 |
emp := #color->Color yellow darkened. |
1492 |
emp := Array with:#bold with:emp. |
|
1493 |
self at:#emphasisForChangedCodeInSmallTeam put:emp. |
|
10177 | 1494 |
]. |
1495 |
^ emp |
|
1496 |
||
1497 |
" |
|
1498 |
self allInstancesDo:[:pref |pref at:#emphasisForChangedCodeInSmallTeam put:nil]. |
|
1499 |
UserPreferences current emphasisForChangedCodeInSmallTeam. |
|
1500 |
UserPreferences current at:#emphasisForChangedCodeInSmallTeam put:nil. |
|
1501 |
" |
|
1502 |
||
1503 |
"Created: / 10-11-2006 / 16:31:00 / cg" |
|
6832 | 1504 |
! |
1505 |
||
7549 | 1506 |
emphasisForDifferentPackage |
1507 |
|emp| |
|
1508 |
||
1509 |
emp := self at:#emphasisForDifferentPackage ifAbsent:nil. |
|
1510 |
emp isNil ifTrue:[ |
|
11143 | 1511 |
emp := #color->Color green darkened. |
1512 |
"/ emp := Array with:#bold with:emp. |
|
1513 |
self at:#emphasisForDifferentPackage put:emp. |
|
7549 | 1514 |
]. |
1515 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1516 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1517 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1518 |
self allInstancesDo:[:pref |pref at:#emphasisForDifferentPackage put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1519 |
" |
6832 | 1520 |
! |
1521 |
||
7549 | 1522 |
emphasisForModifiedBuffer |
1523 |
|emp| |
|
1524 |
||
1525 |
emp := self at:#emphasisForModifiedBuffer ifAbsent:nil. |
|
1526 |
emp isNil ifTrue:[ |
|
11143 | 1527 |
emp := #color->Color red darkened. |
1528 |
emp := Array with:#bold with:emp. |
|
1529 |
self at:#emphasisForModifiedBuffer put:emp. |
|
7549 | 1530 |
]. |
1531 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1532 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1533 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1534 |
self allInstancesDo:[:pref |pref at:#emphasisForModifiedBuffer put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1535 |
" |
6832 | 1536 |
! |
1537 |
||
7549 | 1538 |
emphasisForObsoleteCode |
1539 |
|emp| |
|
1540 |
||
1541 |
emp := self at:#emphasisForObsoleteCode ifAbsent:nil. |
|
1542 |
emp isNil ifTrue:[ |
|
11143 | 1543 |
emp := #color->Color red. |
1544 |
emp := Array with:#bold with:emp. |
|
1545 |
self at:#emphasisForObsoleteCode put:emp. |
|
7549 | 1546 |
]. |
1547 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1548 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1549 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1550 |
self allInstancesDo:[:pref |pref at:#emphasisForObsoleteCode put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1551 |
" |
6832 | 1552 |
! |
1553 |
||
7549 | 1554 |
emphasisForReadVariable |
1555 |
|emp| |
|
1556 |
||
1557 |
emp := self at:#emphasisForReadVariable ifAbsent:nil. |
|
1558 |
emp isNil ifTrue:[ |
|
11143 | 1559 |
emp := #underline. |
1560 |
self at:#emphasisForReadVariable put:emp. |
|
7549 | 1561 |
]. |
1562 |
^ emp |
|
6832 | 1563 |
! |
1564 |
||
7549 | 1565 |
emphasisForWrittenVariable |
1566 |
|emp| |
|
1567 |
||
1568 |
emp := self at:#emphasisForWrittenVariable ifAbsent:nil. |
|
1569 |
emp isNil ifTrue:[ |
|
11143 | 1570 |
emp := Array with:#underline with:#underlineColor->Color red. |
1571 |
self at:#emphasisForWrittenVariable put:emp. |
|
7549 | 1572 |
]. |
1573 |
^ emp |
|
6832 | 1574 |
! ! |
1575 |
||
7549 | 1576 |
!UserPreferences methodsFor:'accessing-prefs-browser-syntaxColoring'! |
3360 | 1577 |
|
1578 |
argumentIdentifierColor |
|
1579 |
"the color used for argument identifiers; |
|
1580 |
If syntaxColoring is turned on." |
|
1581 |
||
1582 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
1583 |
||
1584 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
1585 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
1586 |
! |
|
1587 |
||
1588 |
argumentIdentifierEmphasis |
|
1589 |
"the emphasis used for argument identifiers; |
|
1590 |
If syntaxColoring is turned on." |
|
1591 |
||
1592 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1593 |
||
1594 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
1595 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
1596 |
! |
|
1597 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1598 |
badIdentifierColor |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1599 |
"the color used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1600 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1601 |
|
4336 | 1602 |
^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1603 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1604 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1605 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1606 |
badIdentifierEmphasis |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1607 |
"the emphasis used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1608 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1609 |
|
4628 | 1610 |
^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1611 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
1612 |
"Modified: / 7.7.1999 / 00:30:00 / cg" |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1613 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1614 |
|
3360 | 1615 |
booleanConstantColor |
1616 |
"the color used for boolean constants; |
|
1617 |
If syntaxColoring is turned on." |
|
1618 |
||
1619 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
1620 |
||
1621 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
1622 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
1623 |
! |
|
1624 |
||
1625 |
booleanConstantEmphasis |
|
1626 |
"the emphasis used for boolean constants; |
|
1627 |
If syntaxColoring is turned on." |
|
1628 |
||
1629 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
1630 |
||
1631 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
1632 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
1633 |
! |
|
1634 |
||
3361 | 1635 |
bracketColor |
1636 |
"the color used for brackets; |
|
1637 |
If syntaxColoring is turned on." |
|
1638 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1639 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 1640 |
|
1641 |
" |
|
1642 |
self current at:#bracketColor put:Color red. |
|
1643 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1644 |
|
11143 | 1645 |
self current bracketColor |
1646 |
self current bracketEmphasis |
|
3361 | 1647 |
" |
1648 |
||
1649 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1650 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1651 |
! |
|
1652 |
||
1653 |
bracketEmphasis |
|
1654 |
"the emphasis used for brackets; |
|
1655 |
If syntaxColoring is turned on." |
|
1656 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1657 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 1658 |
|
1659 |
" |
|
1660 |
self current at:#bracketEmphasis put:#bold |
|
11143 | 1661 |
self current bracketEmphasis |
3361 | 1662 |
" |
1663 |
||
1664 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1665 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1666 |
! |
|
1667 |
||
4320 | 1668 |
classVariableIdentifierColor |
1669 |
"the color used for classVar/classInstVar identifiers |
|
1670 |
If syntaxColoring is turned on." |
|
1671 |
||
1672 |
^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1673 |
||
1674 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1675 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1676 |
! |
|
1677 |
||
1678 |
classVariableIdentifierEmphasis |
|
1679 |
"the color used for classVar/classInstVar identifiers |
|
1680 |
If syntaxColoring is turned on." |
|
1681 |
||
1682 |
^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1683 |
||
1684 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1685 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1686 |
! |
|
1687 |
||
3360 | 1688 |
commentColor |
1689 |
"the color used for comments; |
|
1690 |
If syntaxColoring is turned on." |
|
1691 |
||
4628 | 1692 |
^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor] |
3360 | 1693 |
|
1694 |
"Created: / 31.3.1998 / 15:10:23 / cg" |
|
3832 | 1695 |
"Modified: / 11.9.1998 / 19:24:04 / cg" |
3360 | 1696 |
! |
1697 |
||
1698 |
commentEmphasis |
|
1699 |
"the emphasis used for comments; |
|
1700 |
If syntaxColoring is turned on." |
|
1701 |
||
4628 | 1702 |
^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis] |
3360 | 1703 |
|
1704 |
"Created: / 31.3.1998 / 15:09:59 / cg" |
|
1705 |
"Modified: / 1.4.1998 / 13:25:53 / cg" |
|
1706 |
! |
|
1707 |
||
5258 | 1708 |
commentEmphasisAndColor |
1709 |
^ Text addEmphasis:(self commentEmphasis) to:(#color->self commentColor). |
|
1710 |
||
1711 |
||
1712 |
! |
|
1713 |
||
3360 | 1714 |
constantColor |
1715 |
"the color used for constants; |
|
1716 |
If syntaxColoring is turned on." |
|
1717 |
||
4628 | 1718 |
^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor] |
3360 | 1719 |
|
1720 |
"Created: / 31.3.1998 / 18:13:15 / cg" |
|
1721 |
"Modified: / 1.4.1998 / 13:20:37 / cg" |
|
1722 |
! |
|
1723 |
||
1724 |
constantEmphasis |
|
1725 |
"the emphasis used for constants; |
|
1726 |
If syntaxColoring is turned on." |
|
1727 |
||
1728 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1729 |
||
1730 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
1731 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
1732 |
! |
|
1733 |
||
9834 | 1734 |
controlFlowSelectorColor |
1735 |
"the color used for some selected controlFlow selectors (such as if, while etc.); |
|
1736 |
If syntaxColoring is turned on." |
|
1737 |
||
11143 | 1738 |
^ self at:#controlFlowSelectorColor |
1739 |
ifAbsentPut:[UserPreferences default |
|
1740 |
at:#controlFlowSelectorColor ifAbsent:[self selectorColor]] |
|
9834 | 1741 |
|
1742 |
"Created: / 08-09-2006 / 15:51:20 / cg" |
|
1743 |
! |
|
1744 |
||
1745 |
controlFlowSelectorEmphasis |
|
1746 |
"the emphasis used for some selected controlFlow selectors (such as if, while etc.); |
|
1747 |
If syntaxColoring is turned on." |
|
1748 |
||
11143 | 1749 |
^ self at:#controlFlowSelectorEmphasis |
1750 |
ifAbsentPut:[UserPreferences default |
|
1751 |
at:#controlFlowSelectorEmphasis ifAbsent:[self selectorEmphasis]] |
|
9834 | 1752 |
|
1753 |
"Created: / 08-09-2006 / 15:51:04 / cg" |
|
1754 |
! |
|
1755 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1756 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1757 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1758 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1759 |
|
4628 | 1760 |
^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1761 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1762 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1763 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1764 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1765 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1766 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1767 |
|
4628 | 1768 |
^ self at:#defaultSyntaxEmphasis ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1769 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1770 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1771 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1772 |
doesNotUnderstand:aMessage |
4580 | 1773 |
|k def| |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1774 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1775 |
k := aMessage selector. |
6252 | 1776 |
aMessage numArgs == 0 ifTrue:[ |
11143 | 1777 |
(self includesKey:k) ifTrue:[ |
1778 |
^ self at:k |
|
1779 |
]. |
|
1780 |
((def := self class default) includesKey:k) ifTrue:[ |
|
1781 |
^ def at:k |
|
1782 |
]. |
|
1783 |
^ self defaultValue |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1784 |
]. |
6252 | 1785 |
"/ ((aMessage numArgs == 1) |
1786 |
"/ and:[ (k endsWith:$:)]) |
|
1787 |
"/ ifTrue:[ |
|
1788 |
"/ k := (k copyWithoutLast:1) asSymbol. |
|
11143 | 1789 |
"/ ((self includesKey:k) |
6252 | 1790 |
"/ or:[ self class default includesKey:k ]) ifTrue:[ |
1791 |
"/ ^ self at:k put:(aMessage arg1) |
|
1792 |
"/ ]. |
|
1793 |
"/ ]. |
|
1794 |
||
7272 | 1795 |
aMessage numArgs == 1 ifTrue:[ |
11143 | 1796 |
('UserPreferences [info]: obsolete settings key: ' , aMessage selector , ' - ignored.') infoPrintCR. |
1797 |
^ nil |
|
7272 | 1798 |
]. |
6252 | 1799 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1800 |
^ super doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1801 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1802 |
|
8965
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1803 |
emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1804 |
^ self at:#emphasizeParenthesisLevel ifAbsent:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1805 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1806 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1807 |
UserPreferences current emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1808 |
UserPreferences current emphasizeParenthesisLevel:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1809 |
UserPreferences current emphasizeParenthesisLevel:false |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1810 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1811 |
! |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1812 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1813 |
emphasizeParenthesisLevel:aBoolean |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1814 |
self at:#emphasizeParenthesisLevel put:aBoolean |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1815 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1816 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1817 |
UserPreferences current emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1818 |
UserPreferences current emphasizeParenthesisLevel:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1819 |
UserPreferences current emphasizeParenthesisLevel:false |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1820 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1821 |
! |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1822 |
|
4341 | 1823 |
errorColor |
1824 |
"the color used for illegal identifiers; |
|
1825 |
If syntaxColoring is turned on." |
|
1826 |
||
4628 | 1827 |
^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor] |
4341 | 1828 |
|
1829 |
! |
|
1830 |
||
4306 | 1831 |
fullSelectorCheck |
1832 |
"with fullSelector check, selectors are searched immediately for |
|
1833 |
being implemented in the system. This may not be useful on slow machines" |
|
1834 |
||
4628 | 1835 |
^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck] |
4306 | 1836 |
|
1837 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1838 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1839 |
! |
|
1840 |
||
4023 | 1841 |
globalClassIdentifierColor |
1842 |
"the color used for global identifiers which are known to be classes; |
|
1843 |
If syntaxColoring is turned on." |
|
1844 |
||
1845 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1846 |
||
1847 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1848 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1849 |
! |
|
1850 |
||
1851 |
globalClassIdentifierEmphasis |
|
1852 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
1853 |
If syntaxColoring is turned on." |
|
1854 |
||
1855 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1856 |
||
1857 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1858 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
1859 |
! |
|
1860 |
||
3360 | 1861 |
globalIdentifierColor |
1862 |
"the color used for global identifiers; |
|
1863 |
If syntaxColoring is turned on." |
|
1864 |
||
1865 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
1866 |
||
1867 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
1868 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1869 |
! |
|
1870 |
||
1871 |
globalIdentifierEmphasis |
|
1872 |
"the emphasis used for global variable identifiers; |
|
1873 |
If syntaxColoring is turned on." |
|
1874 |
||
1875 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1876 |
||
1877 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
1878 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1879 |
! |
|
1880 |
||
1881 |
hereColor |
|
1882 |
"the color used for the here pseudoVariable; |
|
1883 |
If syntaxColoring is turned on." |
|
1884 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1885 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 1886 |
|
1887 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
1888 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
1889 |
! |
|
1890 |
||
1891 |
hereEmphasis |
|
1892 |
"the emphasis used for the hre special variable; |
|
1893 |
If syntaxColoring is turned on." |
|
1894 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1895 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1896 |
|
1897 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
1898 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
1899 |
! |
|
1900 |
||
1901 |
identifierColor |
|
1902 |
"the color used for other identifiers; |
|
1903 |
If syntaxColoring is turned on." |
|
1904 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1905 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1906 |
|
3362 | 1907 |
" |
1908 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
1909 |
UserPreferences current at:#identifierColor put:Color black. |
|
1910 |
" |
|
1911 |
||
3360 | 1912 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 1913 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 1914 |
! |
1915 |
||
1916 |
identifierEmphasis |
|
1917 |
"the emphasis used for other identifiers; |
|
1918 |
If syntaxColoring is turned on." |
|
1919 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1920 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 1921 |
|
1922 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1923 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1924 |
! |
|
1925 |
||
3378 | 1926 |
instVarIdentifierColor |
3377 | 1927 |
"the color used for instance variable identifiers; |
1928 |
If syntaxColoring is turned on." |
|
1929 |
||
3378 | 1930 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 1931 |
|
1932 |
" |
|
3378 | 1933 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
1934 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
11143 | 1935 |
UserPreferences current instVarIdentifierColor |
3377 | 1936 |
" |
1937 |
||
1938 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 1939 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 1940 |
! |
1941 |
||
3378 | 1942 |
instVarIdentifierEmphasis |
3377 | 1943 |
"the emphais used for instance variable identifiers; |
1944 |
If syntaxColoring is turned on." |
|
1945 |
||
3378 | 1946 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 1947 |
|
1948 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 1949 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 1950 |
! |
1951 |
||
8420 | 1952 |
jsKeywordColor |
1953 |
^ self at:#jsKeywordColor ifAbsentPut:[self defaultSyntaxColor] |
|
1954 |
! |
|
1955 |
||
1956 |
jsKeywordEmphasis |
|
1957 |
^ self at:#jsKeywordEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
|
1958 |
! |
|
1959 |
||
3360 | 1960 |
localIdentifierColor |
1961 |
"the color used for local variable identifiers; |
|
1962 |
If syntaxColoring is turned on." |
|
1963 |
||
9144 | 1964 |
^ self at:#localIdentifierColor ifAbsent:[self identifierColor] |
3360 | 1965 |
|
3362 | 1966 |
" |
1967 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
1968 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
1969 |
" |
|
1970 |
||
3360 | 1971 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 1972 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 1973 |
! |
1974 |
||
1975 |
localIdentifierEmphasis |
|
1976 |
"the emphais used for local variable identifiers; |
|
1977 |
If syntaxColoring is turned on." |
|
1978 |
||
9144 | 1979 |
^ self at:#localIdentifierEmphasis ifAbsent:[self identifierEmphasis] |
3360 | 1980 |
|
1981 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
1982 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
1983 |
! |
|
1984 |
||
1985 |
methodSelectorColor |
|
1986 |
"the color used for a methods selector pattern; |
|
1987 |
If syntaxColoring is turned on." |
|
1988 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1989 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1990 |
|
1991 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
1992 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
1993 |
! |
|
1994 |
||
1995 |
methodSelectorEmphasis |
|
1996 |
"the emphasis used for a methods selector pattern; |
|
1997 |
If syntaxColoring is turned on." |
|
1998 |
||
4628 | 1999 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis] |
3360 | 2000 |
|
2001 |
"Created: / 31.3.1998 / 15:11:16 / cg" |
|
2002 |
"Modified: / 1.4.1998 / 13:24:20 / cg" |
|
2003 |
! |
|
2004 |
||
9144 | 2005 |
numberConstantColor |
2006 |
"the color used for number constants; |
|
2007 |
If syntaxColoring is turned on." |
|
2008 |
||
2009 |
^ self at:#numberConstantColor ifAbsent:[ self constantColor ] |
|
2010 |
! |
|
2011 |
||
2012 |
numberConstantEmphasis |
|
2013 |
"the emphasis used for number constants; |
|
2014 |
If syntaxColoring is turned on." |
|
2015 |
||
2016 |
^ self at:#numberConstantEmphasis ifAbsent:[ self constantEmphasis ] |
|
2017 |
! |
|
2018 |
||
8551 | 2019 |
poolVariableIdentifierColor |
2020 |
"the color used for pool variable identifiers |
|
2021 |
If syntaxColoring is turned on." |
|
2022 |
||
2023 |
^ self at:#poolVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
2024 |
! |
|
2025 |
||
2026 |
poolVariableIdentifierEmphasis |
|
2027 |
"the color used for pool variable identifiers |
|
2028 |
If syntaxColoring is turned on." |
|
2029 |
||
2030 |
^ self at:#poolVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
2031 |
! |
|
2032 |
||
4076 | 2033 |
returnColor |
2034 |
"the color used for the return expression; |
|
2035 |
If syntaxColoring is turned on." |
|
2036 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2037 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 2038 |
|
2039 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
2040 |
! |
|
2041 |
||
2042 |
returnEmphasis |
|
2043 |
"the emphasis used for returns; |
|
2044 |
If syntaxColoring is turned on." |
|
2045 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2046 |
^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 2047 |
|
2048 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
2049 |
! |
|
2050 |
||
3360 | 2051 |
selectorColor |
2052 |
"the color used for message selectors; |
|
2053 |
If syntaxColoring is turned on." |
|
2054 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2055 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 2056 |
|
2057 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
2058 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
2059 |
! |
|
2060 |
||
2061 |
selectorEmphasis |
|
2062 |
"the emphasis used for message selectors; |
|
2063 |
If syntaxColoring is turned on." |
|
2064 |
||
4628 | 2065 |
^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis] |
3360 | 2066 |
|
2067 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
2068 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
|
2069 |
! |
|
2070 |
||
2071 |
selfColor |
|
2072 |
"the color used for the self pseudoVariable; |
|
2073 |
If syntaxColoring is turned on." |
|
2074 |
||
2075 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
2076 |
||
2077 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
2078 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
2079 |
! |
|
2080 |
||
2081 |
selfEmphasis |
|
2082 |
"the emphasis used for the self pseudoVariable; |
|
2083 |
If syntaxColoring is turned on." |
|
2084 |
||
2085 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
2086 |
||
2087 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
2088 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
2089 |
! |
|
2090 |
||
2091 |
stringColor |
|
2092 |
"the color used for string constants; |
|
2093 |
If syntaxColoring is turned on." |
|
2094 |
||
2095 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
2096 |
||
2097 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
2098 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
2099 |
! |
|
2100 |
||
2101 |
stringEmphasis |
|
2102 |
"the emphasis used for string constants; |
|
2103 |
If syntaxColoring is turned on." |
|
2104 |
||
2105 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
2106 |
||
2107 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
2108 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
2109 |
! |
|
2110 |
||
2111 |
superColor |
|
2112 |
"the color used for the super pseudoVariable; |
|
2113 |
If syntaxColoring is turned on." |
|
2114 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2115 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 2116 |
|
2117 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
2118 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
2119 |
! |
|
2120 |
||
2121 |
superEmphasis |
|
2122 |
"the emphasis used for the super pseudoVariable; |
|
2123 |
If syntaxColoring is turned on." |
|
2124 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2125 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 2126 |
|
2127 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
2128 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
2129 |
! |
|
2130 |
||
2131 |
symbolColor |
|
2132 |
"the color used for symbol constants; |
|
2133 |
If syntaxColoring is turned on." |
|
2134 |
||
2135 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
2136 |
||
2137 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
2138 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
2139 |
! |
|
2140 |
||
2141 |
symbolEmphasis |
|
2142 |
"the emphasis used for symbol constants; |
|
2143 |
If syntaxColoring is turned on." |
|
2144 |
||
2145 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
2146 |
||
2147 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
2148 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 2149 |
! |
2150 |
||
2151 |
thisContextColor |
|
3360 | 2152 |
"the color used for the thisContext pseudoVariable; |
2153 |
If syntaxColoring is turned on." |
|
2154 |
||
3355 | 2155 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 2156 |
|
2157 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 2158 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 2159 |
! |
2160 |
||
2161 |
thisContextEmphasis |
|
3360 | 2162 |
"the emphasis used for the thisContext pseudoVariable; |
2163 |
If syntaxColoring is turned on." |
|
2164 |
||
3355 | 2165 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 2166 |
|
2167 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 2168 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 2169 |
! |
2170 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2171 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2172 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2173 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2174 |
|
4628 | 2175 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2176 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2177 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2178 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2179 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2180 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2181 |
|
4628 | 2182 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2183 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2184 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2185 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2186 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
2187 |
|
3354 | 2188 |
unknownIdentifierColor |
3360 | 2189 |
"the color used for unknown identifiers; |
2190 |
If syntaxColoring is turned on." |
|
2191 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2192 |
^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor] |
3354 | 2193 |
|
3361 | 2194 |
" |
2195 |
self current at:#unknownIdentifierColor put:Color red. |
|
2196 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2197 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2198 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
2199 |
self current unknownIdentifierEmphasis |
3361 | 2200 |
" |
2201 |
||
3354 | 2202 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 2203 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 2204 |
! |
2205 |
||
2206 |
unknownIdentifierEmphasis |
|
3360 | 2207 |
"the emphasis used for unknown identifiers; |
2208 |
If syntaxColoring is turned on." |
|
2209 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
2210 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis] |
3354 | 2211 |
|
2212 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 2213 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
3347 | 2214 |
! ! |
2215 |
||
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2216 |
!UserPreferences methodsFor:'accessing-prefs-code'! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2217 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2218 |
categoryForMenuActionsMethods |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2219 |
^ 'menu actions'. |
12117
5ffce12a6b14
added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12104
diff
changeset
|
2220 |
! |
5ffce12a6b14
added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12104
diff
changeset
|
2221 |
|
5ffce12a6b14
added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12104
diff
changeset
|
2222 |
numberOfLinesForLongMethod |
5ffce12a6b14
added: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12104
diff
changeset
|
2223 |
"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
|
2224 |
|
12175
d22d131dbfed
changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12167
diff
changeset
|
2225 |
^ self at:#numberOfLinesForLongMethod ifAbsent:30 |
d22d131dbfed
changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12167
diff
changeset
|
2226 |
|
d22d131dbfed
changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12167
diff
changeset
|
2227 |
" |
d22d131dbfed
changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12167
diff
changeset
|
2228 |
UserPreferences current numberOfLinesForLongMethod |
d22d131dbfed
changed: #numberOfLinesForLongMethod
Claus Gittinger <cg@exept.de>
parents:
12167
diff
changeset
|
2229 |
" |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2230 |
! ! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
2231 |
|
10055 | 2232 |
!UserPreferences methodsFor:'accessing-prefs-editor'! |
2233 |
||
2234 |
deleteSetsClipboardText |
|
2235 |
"if true, a delete also updates the clipboard with the deleted text" |
|
2236 |
||
2237 |
^ self at:#deleteSetsClipboardText ifAbsent:false |
|
2238 |
||
2239 |
" |
|
2240 |
UserPreferences current deleteSetsClipboardText |
|
2241 |
" |
|
2242 |
! |
|
2243 |
||
2244 |
deleteSetsClipboardText:aBooleanOrNil |
|
2245 |
"if true, a delete also updates the clipboard with the deleted text" |
|
2246 |
||
2247 |
^ self at:#deleteSetsClipboardText put:aBooleanOrNil |
|
2248 |
||
2249 |
" |
|
2250 |
UserPreferences current deleteSetsClipboardTextdeleteSetsClipboardText:true |
|
2251 |
UserPreferences current deleteSetsClipboardText:false |
|
2252 |
UserPreferences current deleteSetsClipboardText |
|
2253 |
" |
|
2254 |
! |
|
2255 |
||
11897
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2256 |
enforcedDropModeForFiles |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2257 |
"when dropping a file, paste the name, the contents or ask ? |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2258 |
(default is nil, for ask)" |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2259 |
|
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2260 |
^ self at:#enforcedDropModeForFiles ifAbsent:nil |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2261 |
|
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2262 |
" |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2263 |
UserPreferences current enforcedDropModeForFiles |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2264 |
" |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2265 |
! |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2266 |
|
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2267 |
enforcedDropModeForFiles:aSymbolOrNil |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2268 |
"when dropping a file, paste the name, the contents or ask ? |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2269 |
(default is nil, for ask)" |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2270 |
|
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2271 |
^ self at:#enforcedDropModeForFiles put:aSymbolOrNil |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2272 |
|
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2273 |
" |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2274 |
UserPreferences current enforcedDropModeForFiles |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2275 |
" |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2276 |
! |
e8003f2d538c
Always Paste the Contents when Dropping a File
Claus Gittinger <cg@exept.de>
parents:
11694
diff
changeset
|
2277 |
|
10055 | 2278 |
extendedWordSelectMode |
2279 |
"when double clicking, include underscore, dollar and at-character as word-characters ? |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2280 |
(default is on)" |
10055 | 2281 |
|
10310
89d972739353
extendedWordSelectMode (underline in word) defaults to true
Claus Gittinger <cg@exept.de>
parents:
10240
diff
changeset
|
2282 |
^ self at:#extendedWordSelectMode ifAbsent:true |
10055 | 2283 |
|
2284 |
" |
|
2285 |
UserPreferences current extendedWordSelectMode |
|
2286 |
" |
|
2287 |
||
2288 |
"Created: / 03-07-2006 / 16:49:58 / cg" |
|
2289 |
! |
|
2290 |
||
2291 |
extendedWordSelectMode:aBoolean |
|
2292 |
"when double clicking, include underscore, dollar and at-character as word-characters ? |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2293 |
(default is on)" |
10055 | 2294 |
|
2295 |
^ self at:#extendedWordSelectMode put:aBoolean |
|
2296 |
||
2297 |
" |
|
2298 |
UserPreferences current extendedWordSelectMode:true |
|
2299 |
UserPreferences current extendedWordSelectMode:false |
|
2300 |
" |
|
2301 |
||
2302 |
"Created: / 03-07-2006 / 16:50:20 / cg" |
|
2303 |
! |
|
2304 |
||
2305 |
numberOfRememberedUndoOperationsInEditor |
|
2306 |
"the number of possible undo-operations. |
|
2307 |
Nil means: unlimited. |
|
2308 |
Notice: you may run out of memory, if editing a lot and the number of undos is not limited." |
|
2309 |
||
2310 |
^ self at:#numberOfRememberedUndoOperationsInEditor ifAbsent:nil |
|
2311 |
||
2312 |
" |
|
2313 |
UserPreferences current numberOfRememberedUndoOperationsInEditor |
|
2314 |
" |
|
2315 |
||
2316 |
"Modified: / 09-10-2006 / 11:01:35 / cg" |
|
2317 |
! |
|
2318 |
||
2319 |
numberOfRememberedUndoOperationsInEditor:aNumberOrNil |
|
2320 |
"the number of possible undo-operations. |
|
2321 |
Nil means: unlimited. |
|
2322 |
Notice: you may run out of memory, if editing a lot and the number of undos is not limited." |
|
2323 |
||
2324 |
^ self at:#numberOfRememberedUndoOperationsInEditor put:aNumberOrNil |
|
2325 |
||
2326 |
" |
|
2327 |
UserPreferences current numberOfRememberedUndoOperationsInEditor:20 |
|
2328 |
" |
|
2329 |
||
2330 |
"Created: / 09-10-2006 / 11:00:56 / cg" |
|
2331 |
! |
|
2332 |
||
2333 |
st80EditMode |
|
2334 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
|
2335 |
||
2336 |
^ self at:#st80EditMode ifAbsent:false |
|
2337 |
||
2338 |
" |
|
2339 |
UserPreferences current st80EditMode |
|
2340 |
" |
|
2341 |
! |
|
2342 |
||
2343 |
st80EditMode:aBoolean |
|
2344 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
|
2345 |
||
2346 |
^ self at:#st80EditMode put:aBoolean |
|
2347 |
||
2348 |
" |
|
2349 |
UserPreferences current st80EditMode:true |
|
2350 |
" |
|
2351 |
! |
|
2352 |
||
2353 |
st80SelectMode |
|
11143 | 2354 |
"select mode, when double clicking as in st80 |
10055 | 2355 |
(select to corresponding lparen/double-quote) ?" |
2356 |
||
2357 |
^ self at:#st80SelectMode ifAbsent:false |
|
2358 |
||
2359 |
" |
|
2360 |
UserPreferences current st80SelectMode |
|
2361 |
" |
|
2362 |
||
2363 |
"Created: / 03-07-2006 / 16:25:19 / cg" |
|
2364 |
! |
|
2365 |
||
2366 |
st80SelectMode:aBoolean |
|
11143 | 2367 |
"select mode, when double clicking as in st80 |
10055 | 2368 |
(select to corresponding lparen/double-quote)." |
2369 |
||
2370 |
^ self at:#st80SelectMode put:aBoolean |
|
2371 |
||
2372 |
" |
|
2373 |
UserPreferences current st80SelectMode:true |
|
2374 |
UserPreferences current st80SelectMode:false |
|
2375 |
" |
|
2376 |
||
2377 |
"Created: / 03-07-2006 / 16:25:27 / cg" |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2378 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2379 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2380 |
whitespaceWordSelectMode |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2381 |
"when double clicking, treat ANY non-whitespace as word-characters ? |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2382 |
(default is off)" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2383 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2384 |
^ self at:#whitespaceWordSelectMode ifAbsent:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2385 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2386 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2387 |
UserPreferences current whitespaceWordSelectMode |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2388 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2389 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2390 |
"Created: / 03-07-2006 / 16:49:58 / cg" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2391 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2392 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2393 |
whitespaceWordSelectMode:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2394 |
"when double clicking, treat ANY non-whitespace as word-characters ? |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2395 |
(default is off)" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2396 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2397 |
^ self at:#whitespaceWordSelectMode put:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2398 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2399 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2400 |
UserPreferences current whitespaceWordSelectMode:true |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2401 |
UserPreferences current whitespaceWordSelectMode:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2402 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2403 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2404 |
"Created: / 03-07-2006 / 16:50:20 / cg" |
10055 | 2405 |
! ! |
2406 |
||
7549 | 2407 |
!UserPreferences methodsFor:'accessing-prefs-times'! |
2408 |
||
2409 |
timeToAutoExpandItemsWhenDraggingOver |
|
2410 |
"in a hierarchical tree view" |
|
2411 |
||
2412 |
^ 700 "/ millis |
|
2413 |
! |
|
2414 |
||
2415 |
twoDigitDateHandler |
|
2416 |
"return a block which converts a two-digit date. |
|
2417 |
Possible algorithms: |
|
11143 | 2418 |
- identity: treat as year 00..99 |
2419 |
- add 1900: treat as 1900..1999 |
|
2420 |
- around: treat as 1950..1999 if value is 50..99; 2000..2049 otherwise. |
|
7549 | 2421 |
|
2422 |
TODO: make this configurable, keep in dictionary and add to settings. |
|
2423 |
" |
|
2424 |
||
2425 |
^ [:x | (x >= 50) ifTrue:[1900+x] ifFalse:[2000+x]]. |
|
2426 |
"/ ^ [:x | 1900+x]. |
|
2427 |
"/ ^ [:x | x]. |
|
2428 |
! ! |
|
2429 |
||
2430 |
!UserPreferences methodsFor:'accessing-prefs-tools'! |
|
2431 |
||
2432 |
allowSendMailFromDebugger |
|
2433 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
2434 |
mail account " |
|
2435 |
||
2436 |
^ self at:#allowSendMailFromDebugger ifAbsent:true |
|
2437 |
||
2438 |
" |
|
2439 |
UserPreferences current allowSendMailFromDebugger |
|
2440 |
" |
|
2441 |
||
2442 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2443 |
! |
|
2444 |
||
2445 |
allowSendMailFromDebugger:aBoolean |
|
2446 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
2447 |
mail account " |
|
2448 |
||
2449 |
^ self at:#allowSendMailFromDebugger put:aBoolean |
|
2450 |
||
2451 |
" |
|
2452 |
UserPreferences current allowSendMailFromDebugger:true |
|
2453 |
UserPreferences current allowSendMailFromDebugger:false |
|
2454 |
" |
|
2455 |
! |
|
2456 |
||
2457 |
autoDefineWorkspaceVariables |
|
2458 |
"return the flag which controls automatic definition of unknown variables |
|
2459 |
as workspace variables (in doIts)" |
|
2460 |
||
9302 | 2461 |
^ self at:#autoDefineWorkspaceVariables ifAbsent:false |
7549 | 2462 |
|
2463 |
" |
|
2464 |
UserPreferences current autoDefineWorkspaceVariables |
|
2465 |
" |
|
2466 |
! |
|
2467 |
||
2468 |
autoDefineWorkspaceVariables:aBoolean |
|
2469 |
"turn on/off automatic definition of unknown variables |
|
2470 |
as workspace variables (in doIts)" |
|
2471 |
||
2472 |
^ self at:#autoDefineWorkspaceVariables put:aBoolean |
|
2473 |
||
2474 |
" |
|
2475 |
UserPreferences current autoDefineWorkspaceVariables:true |
|
2476 |
UserPreferences current autoDefineWorkspaceVariables:false |
|
2477 |
" |
|
2478 |
! |
|
2479 |
||
10540 | 2480 |
autoRaiseDebugger |
2481 |
"if true, the debugger raises itself automatically when entered. |
|
2482 |
The default is true" |
|
2483 |
||
2484 |
^ self at:#autoRaiseDebugger ifAbsent:true |
|
2485 |
||
2486 |
" |
|
2487 |
UserPreferences current autoRaiseDebugger |
|
2488 |
" |
|
2489 |
||
2490 |
"Created: / 15-05-2007 / 13:29:10 / cg" |
|
2491 |
! |
|
2492 |
||
2493 |
autoRaiseDebugger:aBoolean |
|
2494 |
"if true, the debugger raises itself automatically when entered. |
|
2495 |
The default is true" |
|
2496 |
||
2497 |
^ self at:#autoRaiseDebugger put:aBoolean |
|
2498 |
||
2499 |
" |
|
11143 | 2500 |
UserPreferences current autoRaiseDebugger |
10540 | 2501 |
UserPreferences current autoRaiseDebugger:false |
2502 |
UserPreferences current autoRaiseDebugger:true |
|
2503 |
" |
|
2504 |
||
2505 |
"Created: / 15-05-2007 / 13:29:31 / cg" |
|
2506 |
! |
|
2507 |
||
9913
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2508 |
buildDirectory |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2509 |
^ self at:#buildDirectory ifAbsent:nil |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2510 |
! |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2511 |
|
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2512 |
buildDirectory:aFilenameStringOrNil |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2513 |
^ self at:#buildDirectory put:aFilenameStringOrNil |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2514 |
|
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2515 |
" |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2516 |
UserPreferences current buildDirectory |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2517 |
" |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2518 |
! |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2519 |
|
11419 | 2520 |
editToolbarVisibleInWorkspace |
2521 |
"return the flag which defaults the edit-toolbar-visibility in a workspace application" |
|
2522 |
||
2523 |
^ self at:#editToolbarVisibleInWorkspace ifAbsent:false |
|
2524 |
! |
|
2525 |
||
2526 |
editToolbarVisibleInWorkspace:aBooleanOrNil |
|
2527 |
"set the flag which defaults the edit-toolbar-visibility in a workspace application" |
|
2528 |
||
2529 |
^ self at:#editToolbarVisibleInWorkspace put:aBooleanOrNil |
|
2530 |
! |
|
2531 |
||
7549 | 2532 |
functionKeySequences |
2533 |
"return the collection of function-key macros. |
|
2534 |
Thats a dictionary, which assigns code to F-keys" |
|
2535 |
||
2536 |
^ self at:#functionKeySequences ifAbsentPut:[Dictionary new] |
|
2537 |
||
2538 |
" |
|
2539 |
UserPreferences current functionKeySequences |
|
2540 |
" |
|
2541 |
||
2542 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2543 |
! |
|
2544 |
||
10661 | 2545 |
infoVisibleInWorkspace |
2546 |
"return the flag which defaults the info-visibility in a workspace application" |
|
2547 |
||
2548 |
^ self at:#infoVisibleInWorkspace ifAbsent:false |
|
2549 |
||
2550 |
"Created: / 14-07-2007 / 16:43:37 / cg" |
|
2551 |
! |
|
2552 |
||
2553 |
infoVisibleInWorkspace:aBooleanOrNil |
|
2554 |
"set the flag which defaults the info-visibility in a workspace application" |
|
2555 |
||
2556 |
^ self at:#infoVisibleInWorkspace put:aBooleanOrNil |
|
2557 |
||
2558 |
"Created: / 14-07-2007 / 16:43:44 / cg" |
|
2559 |
! |
|
2560 |
||
10815 | 2561 |
language |
2562 |
"/ intermediate migration code; |
|
2563 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
2564 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
12096 | 2565 |
"/ For now, forward to smalltalk, until all references to "Smalltalk-language" |
10815 | 2566 |
"/ are replaced with "UserPreferences current language" |
2567 |
||
2568 |
^ Smalltalk language |
|
2569 |
||
2570 |
" |
|
2571 |
UserPreferences current language |
|
2572 |
" |
|
2573 |
||
2574 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
2575 |
! |
|
2576 |
||
12096 | 2577 |
language:aLanguageSymbol |
2578 |
"/ intermediate migration code; |
|
2579 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
2580 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
2581 |
"/ For now, forward to smalltalk, until all references to "Smalltalk-language" |
|
2582 |
"/ are replaced with "UserPreferences current language" |
|
2583 |
||
2584 |
Smalltalk language:aLanguageSymbol |
|
2585 |
||
2586 |
" |
|
2587 |
UserPreferences current language |
|
2588 |
UserPreferences current language:#en |
|
2589 |
" |
|
2590 |
||
2591 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
2592 |
! |
|
2593 |
||
10815 | 2594 |
languageTerritory |
2595 |
"/ intermediate migration code; |
|
2596 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
2597 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
2598 |
"/ for now, forward to smalltalk, while all references to "Smalltalk-language" |
|
2599 |
"/ are replaced with "UserPreferences current language" |
|
2600 |
||
2601 |
^ Smalltalk languageTerritory |
|
2602 |
||
2603 |
" |
|
2604 |
UserPreferences current languageTerritory |
|
2605 |
" |
|
2606 |
||
2607 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
2608 |
! |
|
2609 |
||
12096 | 2610 |
languageTerritory:aLanguageSymbol |
2611 |
"/ intermediate migration code; |
|
2612 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
2613 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
2614 |
"/ For now, forward to smalltalk, until all references to "Smalltalk-language" |
|
2615 |
"/ are replaced with "UserPreferences current language" |
|
2616 |
||
2617 |
Smalltalk languageTerritory:aLanguageSymbol |
|
2618 |
||
2619 |
" |
|
2620 |
UserPreferences current languageTerritory |
|
2621 |
UserPreferences current languageTerritory:#en |
|
2622 |
" |
|
2623 |
||
2624 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
2625 |
! |
|
2626 |
||
9989 | 2627 |
localBuild |
12206 | 2628 |
^ self at:#localBuild ifAbsent:true |
9989 | 2629 |
|
2630 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
2631 |
! |
|
2632 |
||
2633 |
localBuild:aBoolean |
|
2634 |
^ self at:#localBuild put:aBoolean |
|
2635 |
||
2636 |
" |
|
2637 |
UserPreferences current localBuild |
|
2638 |
" |
|
2639 |
||
2640 |
"Created: / 20-09-2006 / 23:55:26 / cg" |
|
2641 |
! |
|
2642 |
||
7549 | 2643 |
showClockInLauncher |
2644 |
"return the flag which controls if a clock is shown in the launcher" |
|
2645 |
||
9302 | 2646 |
^ self at:#showClockInLauncher ifAbsent:false |
7549 | 2647 |
|
2648 |
" |
|
2649 |
UserPreferences current showClockInLauncher |
|
2650 |
" |
|
2651 |
||
2652 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2653 |
! |
|
2654 |
||
2655 |
showClockInLauncher:aBooleanOrNil |
|
2656 |
"set/clear the flag which controls if a clock is shown in the launcher" |
|
2657 |
||
2658 |
^ self at:#showClockInLauncher put:aBooleanOrNil |
|
2659 |
||
2660 |
" |
|
2661 |
UserPreferences current showClockInLauncher:false. |
|
11143 | 2662 |
NewLauncher open. |
7549 | 2663 |
|
2664 |
UserPreferences current showClockInLauncher:true. |
|
11143 | 2665 |
NewLauncher open. |
7549 | 2666 |
" |
2667 |
||
2668 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
7624 | 2669 |
! |
2670 |
||
10661 | 2671 |
toolbarVisibleInWorkspace |
2672 |
"return the flag which defaults the toolbar-visibility in a workspace application" |
|
2673 |
||
10665
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
2674 |
^ self at:#toolbarVisibleInWorkspace ifAbsent:true |
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
2675 |
|
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
2676 |
"Modified: / 18-07-2007 / 08:55:44 / cg" |
10661 | 2677 |
! |
2678 |
||
2679 |
toolbarVisibleInWorkspace:aBooleanOrNil |
|
2680 |
"set the flag which defaults the toolbar-visibility in a workspace application" |
|
2681 |
||
2682 |
^ self at:#toolbarVisibleInWorkspace put:aBooleanOrNil |
|
2683 |
||
2684 |
"Created: / 14-07-2007 / 16:42:09 / cg" |
|
2685 |
! |
|
2686 |
||
11024 | 2687 |
useNewLayoutInDebugger |
2688 |
^ self at:#useNewLayoutInDebugger ifAbsent:true |
|
2689 |
||
2690 |
" |
|
2691 |
UserPreferences current useNewLayoutInDebugger |
|
2692 |
" |
|
2693 |
! |
|
2694 |
||
2695 |
useNewLayoutInDebugger:aBoolean |
|
2696 |
^ self at:#useNewLayoutInDebugger put:aBoolean |
|
2697 |
! |
|
2698 |
||
7624 | 2699 |
useRefactoringSupport |
2700 |
"return the flag which enables/disables use of refactoring package in browser. |
|
2701 |
If enabled, this enables all kinds of refactorings, better search and undo features. |
|
2702 |
There is usually no reason to disable these." |
|
2703 |
||
9302 | 2704 |
^ self at:#useRefactoringSupport ifAbsent:true |
7624 | 2705 |
! |
2706 |
||
2707 |
useRefactoringSupport:aBooleanOrNil |
|
2708 |
"enable/disable use of refactoring package in browser. |
|
2709 |
If enabled, this enables all kinds of refactorings, better search and undo features. |
|
2710 |
There is usually no reason to disable these." |
|
2711 |
||
2712 |
^ self at:#useRefactoringSupport put:aBooleanOrNil |
|
7625 | 2713 |
|
2714 |
" |
|
2715 |
UserPreferences current useRefactoringSupport:false |
|
2716 |
UserPreferences current useRefactoringSupport:true |
|
2717 |
" |
|
11024 | 2718 |
! |
2719 |
||
2720 |
verboseBacktraceInDebugger |
|
2721 |
^ self at:#verboseBacktraceInDebugger ifAbsent:true |
|
2722 |
||
2723 |
" |
|
2724 |
UserPreferences current verboseBacktraceInDebugger |
|
2725 |
" |
|
2726 |
! |
|
2727 |
||
2728 |
verboseBacktraceInDebugger:aBoolean |
|
2729 |
^ self at:#verboseBacktraceInDebugger put:aBoolean |
|
7549 | 2730 |
! ! |
2731 |
||
12026
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2732 |
!UserPreferences methodsFor:'accessing-subversion'! |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2733 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2734 |
svnConfigurations |
12027
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2735 |
"subversion source control configurations" |
12026
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2736 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2737 |
^(self at:#'libsvn.configurations' ifAbsent:#()) |
12027
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2738 |
collect:[:cfg|cfg decodeAsLiteralArray] |
12026
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2739 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2740 |
"Created: / 03-10-2008 / 11:14:14 / Jan Vrany <vranyj1@fel.cvut.cz>" |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2741 |
"Modified: / 19-08-2009 / 12:08:44 / Jan Vrany <vranyj1@fel.cvut.cz>" |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2742 |
! |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2743 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2744 |
svnConfigurations: aCollection |
12027
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2745 |
"subversion source control configurations" |
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2746 |
|
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2747 |
(SVN::RepositoryManager notNil |
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2748 |
and:[ SVN::RepositoryManager isLoaded ]) ifTrue:[ |
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2749 |
SVN::RepositoryManager allInstances do:[:e| |
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2750 |
e configurations: aCollection |
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2751 |
] |
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2752 |
]. |
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2753 |
|
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2754 |
^ self |
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2755 |
at: #'libsvn.configurations' |
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2756 |
put: (aCollection asArray collect:[:cfg|cfg literalArrayEncoding]) |
12026
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2757 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2758 |
" |
12027
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2759 |
UserPreferences current svnConfigurations: #() |
12026
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2760 |
" |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2761 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2762 |
"Created: / 03-10-2008 / 11:14:01 / Jan Vrany <vranyj1@fel.cvut.cz>" |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2763 |
"Modified: / 19-08-2009 / 12:09:22 / Jan Vrany <vranyj1@fel.cvut.cz>" |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2764 |
! |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2765 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2766 |
svnEnabled |
12027
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2767 |
"subversion source control is enabled" |
12026
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2768 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2769 |
^self at:#svnEnabled ifAbsent:[true] |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2770 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2771 |
"Created: / 03-10-2008 / 11:11:39 / Jan Vrany <vranyj1@fel.cvut.cz>" |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2772 |
! |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2773 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2774 |
svnEnabled: aBoolean |
12027
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2775 |
"subversion source control is enabled" |
12026
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2776 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2777 |
^self at:#svnEnabled put: aBoolean |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2778 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2779 |
"Created: / 03-10-2008 / 11:13:14 / Jan Vrany <vranyj1@fel.cvut.cz>" |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2780 |
! |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2781 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2782 |
svnVerbose |
12027
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2783 |
"verbose messages from subversion source control (if enabled)" |
12026
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2784 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2785 |
^self at:#svnVerbose ifAbsent: false |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2786 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2787 |
"Created: / 19-03-2009 / 14:00:05 / Jan Vrany <vranyj1@fel.cvut.cz>" |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2788 |
! |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2789 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2790 |
svnVerbose: aBoolean |
12027
db0b75066a40
comment/format in:5 methods
Claus Gittinger <cg@exept.de>
parents:
12026
diff
changeset
|
2791 |
"verbose messages from subversion source control (if enabled)" |
12026
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2792 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2793 |
^self at:#svnVerbose put: aBoolean |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2794 |
|
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2795 |
"Created: / 19-03-2009 / 13:59:46 / Jan Vrany <vranyj1@fel.cvut.cz>" |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2796 |
! ! |
015d0cc02cf9
merged in Jan's flags for svn
Claus Gittinger <cg@exept.de>
parents:
11983
diff
changeset
|
2797 |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2798 |
!UserPreferences methodsFor:'default settings'! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2799 |
|
6169 | 2800 |
listOfPredefinedSyntaxColoringSchemes |
6171 | 2801 |
"return a list of pre-defined syntax highlightning styles |
2802 |
(as shown in the Launchers 'source and debugger settings' dialog." |
|
2803 |
||
2804 |
^ #( |
|
11672 | 2805 |
(#resetSyntaxColors 'default') |
2806 |
(#resetSyntaxColorsToVCStyle 'green comments; blue controlFlow, red constants [visual-c style]') |
|
2807 |
(#resetSyntaxColorsBlueControlFlowSelectors 'blue controlFlow') |
|
2808 |
(#resetSyntaxColorsGreenComments 'green comments') |
|
2809 |
(#resetSyntaxColorsGreenCommentsBlueControlFlowSelectors 'green comments; blue controlFlow') |
|
2810 |
(#resetSyntaxColorsBlueSelectorsGreenComments 'blue selectors; green comments [dolphin style]') |
|
2811 |
(#resetSyntaxColorsBlueSelectorsGreyComments 'blue selectors; grey comments') |
|
12281 | 2812 |
(#resetSyntaxColorsToSqueakStyle1 'blue selectors; green comments [squeak style]') |
2813 |
(#resetSyntaxColorsToSqueakStyle2 'blue selectors; green comments; brown self [new squeak style]') |
|
11672 | 2814 |
(#resetSyntaxColorsAllBlackExceptBadIDs 'no colors, but highlight errors') |
2815 |
(#resetSyntaxColorsToVW7Style 'light blue comments [vw7 style]') |
|
6171 | 2816 |
) |
9834 | 2817 |
|
2818 |
"Modified: / 08-09-2006 / 16:11:34 / cg" |
|
6169 | 2819 |
! |
2820 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2821 |
resetSyntaxColors |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2822 |
"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
|
2823 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2824 |
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
|
2825 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2826 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2827 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2828 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2829 |
resetSyntaxColorsAllBlackExceptBadIDs |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2830 |
"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
|
2831 |
except for bad identifiers, which are underwaved." |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2832 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2833 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
8551 | 2834 |
self at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
2835 |
self at:#errorColor put:Color black. |
|
2836 |
self at:#commentColor put:Color black. |
|
2837 |
self at:#constantColor put:Color black. |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2838 |
self at:#methodSelectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2839 |
self at:#selectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2840 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2841 |
|
9834 | 2842 |
resetSyntaxColorsBlueControlFlowSelectors |
2843 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2844 |
(with blue control flow selectors)" |
|
2845 |
||
2846 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2847 |
self at:#controlFlowSelectorColor put:(Color blue). |
|
2848 |
||
2849 |
"Created: / 08-09-2006 / 16:11:52 / cg" |
|
2850 |
! |
|
2851 |
||
6171 | 2852 |
resetSyntaxColorsBlueSelectorsGreenComments |
2853 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2854 |
(with blue selectors and green comments)" |
|
2855 |
||
2856 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
8551 | 2857 |
self at:#commentColor put:(Color green darkened). |
2858 |
self at:#commentEmphasis put:#italic. |
|
2859 |
self at:#selectorColor put:(Color blue). |
|
2860 |
self at:#selectorEmphasis put:#normal. |
|
2861 |
self at:#methodSelectorColor put:(Color blue). |
|
6171 | 2862 |
self at:#methodSelectorEmphasis put:#bold. |
2863 |
! |
|
2864 |
||
2865 |
resetSyntaxColorsBlueSelectorsGreyComments |
|
6169 | 2866 |
"resets the colors in the CurrentPreferences to alternative default values |
2867 |
(with blue selectors and grey comments)" |
|
2868 |
||
6171 | 2869 |
self resetSyntaxColorsBlueSelectorsGreenComments. |
2870 |
self at:#commentColor put:(Color gray). |
|
6169 | 2871 |
! |
2872 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2873 |
resetSyntaxColorsGreenComments |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2874 |
"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
|
2875 |
(with green comments)" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2876 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2877 |
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
|
2878 |
self at:#commentColor put:(Color green darkened). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2879 |
|
9144 | 2880 |
! |
2881 |
||
9834 | 2882 |
resetSyntaxColorsGreenCommentsBlueControlFlowSelectors |
2883 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2884 |
(with green comments, blue control flow)" |
|
2885 |
||
2886 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2887 |
self at:#commentColor put:(Color green darkened). |
|
2888 |
self at:#controlFlowSelectorColor put:(Color blue). |
|
2889 |
||
2890 |
"Created: / 08-09-2006 / 16:10:38 / cg" |
|
2891 |
! |
|
2892 |
||
9144 | 2893 |
resetSyntaxColorsToSqueakStyle |
2894 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2895 |
(with blue selectors and green comments)" |
|
2896 |
||
12281 | 2897 |
self resetSyntaxColorsToSqueakStyle2 |
2898 |
! |
|
2899 |
||
2900 |
resetSyntaxColorsToSqueakStyle1 |
|
2901 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2902 |
(with blue selectors and green comments)" |
|
2903 |
||
9144 | 2904 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
2905 |
self at:#commentColor put:(Color green darkened). |
|
2906 |
self at:#commentEmphasis put:#italic. |
|
2907 |
self at:#selectorColor put:(Color blue:80). |
|
2908 |
self at:#selectorEmphasis put:#normal. |
|
2909 |
self at:#methodSelectorColor put:(Color black). |
|
2910 |
self at:#methodSelectorEmphasis put:#bold. |
|
2911 |
self at:#globalIdentifierEmphasis put:#bold. |
|
2912 |
self at:#localIdentifierColor put:(Color grey:40). |
|
2913 |
self at:#instVarIdentifierEmphasis put:#bold. |
|
2914 |
self at:#constantColor put:(Color red:67). |
|
9184 | 2915 |
! |
2916 |
||
12281 | 2917 |
resetSyntaxColorsToSqueakStyle2 |
2918 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2919 |
(with blue selectors and green comments)" |
|
2920 |
||
2921 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2922 |
self at:#commentColor put:(Color green darkened). |
|
2923 |
self at:#commentEmphasis put:#italic. |
|
2924 |
self at:#selectorColor put:(Color blue:80). |
|
2925 |
self at:#selectorEmphasis put:#normal. |
|
2926 |
self at:#methodSelectorColor put:(Color black). |
|
2927 |
self at:#methodSelectorEmphasis put:#bold. |
|
2928 |
self at:#globalIdentifierEmphasis put:#bold. |
|
2929 |
self at:#localIdentifierColor put:(Color grey:40). |
|
2930 |
self at:#instVarIdentifierEmphasis put:#bold. |
|
2931 |
self at:#constantColor put:(Color red:67). |
|
2932 |
self at:#selfColor put:(Color red:50 ). |
|
2933 |
self at:#selfEmphasis put:#bold. |
|
12282
03a6891e3ca5
changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents:
12281
diff
changeset
|
2934 |
self at:#localIdentifierColor put:(Color grey:50 ). |
03a6891e3ca5
changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents:
12281
diff
changeset
|
2935 |
self at:#localIdentifierEmphasis put:#normal. |
12281 | 2936 |
! |
2937 |
||
11672 | 2938 |
resetSyntaxColorsToVCStyle |
2939 |
"resets the colors in the CurrentPreferences to visual C default style |
|
2940 |
(green comments, blue keywords, redish string constants)" |
|
2941 |
||
2942 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2943 |
self at:#controlFlowSelectorColor put:(Color blue). |
|
2944 |
self at:#commentColor put:(Color green darkened). |
|
2945 |
self at:#constantColor put:(Color red:64 green:8 blue:8). |
|
2946 |
! |
|
2947 |
||
9184 | 2948 |
resetSyntaxColorsToVW7Style |
2949 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2950 |
(with light blue comments, green variables)" |
|
2951 |
||
2952 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2953 |
self at:#commentColor put:(Color blue lightened). |
|
2954 |
self at:#selectorColor put:(Color black). |
|
2955 |
self at:#selectorEmphasis put:#normal. |
|
2956 |
self at:#methodSelectorColor put:(Color black). |
|
2957 |
self at:#methodSelectorEmphasis put:#bold. |
|
2958 |
self at:#identifierEmphasis put:#normal. |
|
2959 |
self at:#identifierColor put:(Color green darkened). |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2960 |
! ! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2961 |
|
7266 | 2962 |
!UserPreferences methodsFor:'default values'! |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2963 |
|
4583 | 2964 |
defaultValue |
2965 |
"the defaultValue for non-existing keys" |
|
2966 |
||
2967 |
^ false |
|
2968 |
! |
|
2969 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2970 |
errorKeyNotFound:aKey |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2971 |
"for any non-existing key, false is returned" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2972 |
|
4583 | 2973 |
^ self defaultValue |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2974 |
! ! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2975 |
|
10789 | 2976 |
!UserPreferences methodsFor:'misc'! |
2977 |
||
2978 |
flyByHelpSettingChanged |
|
2979 |
FlyByHelp notNil ifTrue:[ |
|
11143 | 2980 |
(CurrentPreferences at:#flyByHelpActive) ifTrue:[ |
2981 |
FlyByHelp start. |
|
2982 |
] ifFalse:[ |
|
2983 |
FlyByHelp stop. |
|
2984 |
]. |
|
10789 | 2985 |
]. |
2986 |
! ! |
|
2987 |
||
6937 | 2988 |
!UserPreferences methodsFor:'obsolete'! |
2989 |
||
2990 |
useNewSettinsApplication |
|
11598 | 2991 |
<resource: #obsolete> |
8545 | 2992 |
"obsolete - will be removed in next release. |
2993 |
(this is kept for a while, as it may have found its way into some |
|
2994 |
saved user preference files)" |
|
6937 | 2995 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
2996 |
self obsoleteMethodWarning. |
7029 | 2997 |
^ self useNewSettingsApplication |
6937 | 2998 |
! |
2999 |
||
3000 |
useNewSettinsApplication:aBoolean |
|
11598 | 3001 |
<resource: #obsolete> |
7030 | 3002 |
"obsolete - will be removed in next release" |
6937 | 3003 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
3004 |
self obsoleteMethodWarning. |
7029 | 3005 |
self useNewSettingsApplication:aBoolean. |
6937 | 3006 |
! ! |
3007 |
||
7028 | 3008 |
!UserPreferences methodsFor:'saving'! |
3009 |
||
3010 |
saveIn:fileName |
|
3011 |
self class saveSettings:self in:fileName |
|
3012 |
! ! |
|
3013 |
||
3347 | 3014 |
!UserPreferences class methodsFor:'documentation'! |
3015 |
||
3016 |
version |
|
12282
03a6891e3ca5
changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents:
12281
diff
changeset
|
3017 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.233 2009-10-14 18:15:05 cg Exp $' |
12096 | 3018 |
! |
3019 |
||
3020 |
version_CVS |
|
12282
03a6891e3ca5
changed: #resetSyntaxColorsToSqueakStyle2
Claus Gittinger <cg@exept.de>
parents:
12281
diff
changeset
|
3021 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.233 2009-10-14 18:15:05 cg Exp $' |
3347 | 3022 |
! ! |