author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sat, 22 Aug 2009 09:34:50 +0100 | |
branch | jv |
changeset 17729 | 4187f74d2df8 |
parent 17723 | 0cd9ce703bab |
child 17732 | a1892eeca6c0 |
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 |
||
17723
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
245 |
|
6019 | 246 |
!UserPreferences class methodsFor:'accessing defaultPrefs'! |
247 |
||
11006
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
248 |
defaultSettingsFilename |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
249 |
^ 'settings.stx' |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
250 |
! |
fc11f0af9902
changed #showTipOfTheDayAtStartupHolder
Claus Gittinger <cg@exept.de>
parents:
11005
diff
changeset
|
251 |
|
6763 | 252 |
fileBrowserClass |
253 |
^ self current fileBrowserClass |
|
254 |
||
255 |
" |
|
256 |
UserPreferences fileBrowserClass |
|
257 |
" |
|
258 |
! |
|
259 |
||
6019 | 260 |
systemBrowserClass |
261 |
^ self current systemBrowserClass |
|
262 |
||
263 |
" |
|
264 |
UserPreferences systemBrowserClass |
|
265 |
" |
|
266 |
! |
|
267 |
||
268 |
versionDiffViewerClass |
|
269 |
^ self current versionDiffViewerClass |
|
270 |
||
271 |
" |
|
272 |
UserPreferences versionDiffViewerClass |
|
273 |
" |
|
274 |
! ! |
|
275 |
||
7028 | 276 |
|
10861 | 277 |
!UserPreferences methodsFor:'acccesing-locale'! |
278 |
||
279 |
decimalPointCharacter |
|
11213 | 280 |
"toDo: migrate from ClassVar in Number; |
10861 | 281 |
use this for new applications" |
282 |
||
283 |
^ $. |
|
284 |
! |
|
285 |
||
286 |
thousandsSeparatorCharacter |
|
11213 | 287 |
"toDo: migrate from ClassVar elsewhere; |
10861 | 288 |
use this for new applications" |
289 |
||
290 |
^ $' |
|
291 |
! ! |
|
292 |
||
7549 | 293 |
!UserPreferences methodsFor:'accessing'! |
3883 | 294 |
|
5790 | 295 |
at:key put:value |
296 |
|classNameToCheck classToCheck| |
|
297 |
||
6059 | 298 |
value == true ifTrue:[ |
11143 | 299 |
key == #useNewVersionDiffBrowser ifTrue:[ |
300 |
classNameToCheck := #'VersionDiffBrowser'. |
|
301 |
]. |
|
302 |
key == #useNewChangesBrowser ifTrue:[ |
|
303 |
classNameToCheck := #'NewChangesBrowser'. |
|
304 |
]. |
|
305 |
key == #useNewFileBrowser ifTrue:[ |
|
306 |
classNameToCheck := #'FileBrowserV2'. |
|
307 |
]. |
|
308 |
key == #useNewSystemBrowser ifTrue:[ |
|
309 |
classNameToCheck := #'Tools::NewSystemBrowser'. |
|
310 |
]. |
|
311 |
key == #useNewInspector ifTrue:[ |
|
312 |
classNameToCheck := #'NewInspector::NewInspectorView'. |
|
313 |
]. |
|
5790 | 314 |
]. |
315 |
||
5791 | 316 |
classNameToCheck notNil ifTrue:[ |
11143 | 317 |
classToCheck := Smalltalk at:classNameToCheck. |
318 |
classToCheck isNil ifTrue:[ |
|
319 |
('UserPreferences [warning]: no class ' , classNameToCheck , ' class in system.') errorPrintCR. |
|
320 |
] ifFalse:[ |
|
321 |
Autoload autoloadFailedSignal handle:[:ex | |
|
322 |
'UserPreferences [warning]: autoload of ' , classNameToCheck , ' failed.' errorPrintCR. |
|
323 |
] do:[ |
|
324 |
classToCheck autoload. |
|
325 |
] |
|
326 |
] |
|
5790 | 327 |
]. |
328 |
||
329 |
^ super at:key put:value |
|
7549 | 330 |
! ! |
331 |
||
17723
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
332 |
!UserPreferences methodsFor:'accessing - desktop'! |
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
333 |
|
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
334 |
editorCommand |
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
335 |
|
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
336 |
^self at:#'desktop.editor-command' ifAbsent:[ nil ] |
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
337 |
|
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
338 |
"Created: / 11-08-2009 / 17:05:50 / Jan Vrany <vranyj1@fel.cvut.cz>" |
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
339 |
! |
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
340 |
|
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
341 |
editorCommand: aString |
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
342 |
|
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
343 |
self at:#'desktop.editor-command' put: aString |
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
344 |
|
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
345 |
"Created: / 11-08-2009 / 17:06:23 / Jan Vrany <vranyj1@fel.cvut.cz>" |
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
346 |
! ! |
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
347 |
|
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
348 |
|
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
349 |
|
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
350 |
|
0cd9ce703bab
- Support for better desktop integration - classes AbstractDesktop and friends.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
351 |
|
10723 | 352 |
!UserPreferences methodsFor:'accessing-misc-communication'! |
353 |
||
11023 | 354 |
dotNetBridgeRunsInIDE |
355 |
^ self at:#dotNetBridgeRunsInIDE ifAbsent:false |
|
356 |
! |
|
357 |
||
358 |
dotNetBridgeRunsInIDE:aBoolean |
|
359 |
^ self at:#dotNetBridgeRunsInIDE put:aBoolean |
|
360 |
! |
|
361 |
||
362 |
dotNetBridgeVerbose |
|
363 |
^ self at:#dotNetBridgeVerbose ifAbsent:false |
|
11027 | 364 |
|
365 |
" |
|
366 |
UserPreferences current dotNetBridgeVerbose |
|
367 |
" |
|
11023 | 368 |
! |
369 |
||
370 |
dotNetBridgeVerbose:aBoolean |
|
371 |
^ self at:#dotNetBridgeVerbose put:aBoolean |
|
372 |
! |
|
373 |
||
10723 | 374 |
smtpServerName |
375 |
^ self at:#smtpServerName ifAbsent:nil |
|
376 |
||
377 |
"Created: / 20-09-2007 / 15:59:20 / cg" |
|
378 |
! |
|
379 |
||
380 |
smtpServerName:aHostnameString |
|
381 |
^ self at:#smtpServerName put:aHostnameString |
|
382 |
||
383 |
" |
|
384 |
UserPreferences current smtpServerName |
|
385 |
UserPreferences current smtpServerName:'mailhost' |
|
386 |
" |
|
387 |
||
388 |
"Created: / 20-09-2007 / 15:59:58 / cg" |
|
389 |
! ! |
|
390 |
||
7549 | 391 |
!UserPreferences methodsFor:'accessing-pref''d tools'! |
5790 | 392 |
|
3883 | 393 |
changesBrowserClass |
394 |
self useNewChangesBrowser ifTrue:[ |
|
11143 | 395 |
^ (NewChangesBrowser ? ChangesBrowser) |
3883 | 396 |
]. |
397 |
^ ChangesBrowser |
|
398 |
||
399 |
"Created: / 17.10.1998 / 14:37:46 / cg" |
|
5535 | 400 |
! |
401 |
||
6763 | 402 |
fileBrowserClass |
403 |
self useNewFileBrowser ifTrue:[ |
|
11143 | 404 |
^ (FileBrowserV2 ? FileBrowser) |
6763 | 405 |
]. |
406 |
^ FileBrowser |
|
8869 | 407 |
|
408 |
" |
|
409 |
UserPreferences current fileBrowserClass |
|
410 |
" |
|
6763 | 411 |
! |
412 |
||
8619 | 413 |
flyByHelpActive |
414 |
||
11143 | 415 |
^ self at:#flyByHelpActive ifAbsent:true "(FlyByHelp notNil and:[FlyByHelp isActive])" |
8619 | 416 |
! |
417 |
||
418 |
flyByHelpActive:aBoolean |
|
419 |
aBoolean ~~ self flyByHelpActive ifTrue:[ |
|
11143 | 420 |
self at:#flyByHelpActive put:aBoolean. |
421 |
self flyByHelpSettingChanged. |
|
8619 | 422 |
]. |
423 |
! |
|
424 |
||
6177 | 425 |
inspectorClassSetting |
426 |
self useNewInspector ifTrue:[ |
|
11143 | 427 |
^ (NewInspector::NewInspectorView ? InspectorView) |
6177 | 428 |
]. |
429 |
^ InspectorView |
|
430 |
||
431 |
"Modified: / 12.11.2001 / 15:47:35 / cg" |
|
432 |
"Created: / 12.11.2001 / 15:49:00 / cg" |
|
5541 | 433 |
! |
434 |
||
11005 | 435 |
showTipOfTheDayAtStartup |
436 |
^ self at:#showTipOfTheDayAtStartup ifAbsent:false |
|
437 |
! |
|
438 |
||
439 |
showTipOfTheDayAtStartup:aBoolean |
|
440 |
self at:#showTipOfTheDayAtStartup put:aBoolean. |
|
441 |
! |
|
442 |
||
5535 | 443 |
systemBrowserClass |
444 |
self useNewSystemBrowser ifTrue:[ |
|
11143 | 445 |
^ ((Tools::NewSystemBrowser ? NewSystemBrowser) ? SystemBrowser) |
5535 | 446 |
]. |
447 |
^ SystemBrowser |
|
5536 | 448 |
! |
449 |
||
10924 | 450 |
useNativeFileDialog |
451 |
"using native file dialog" |
|
452 |
||
453 |
^ self at:#useNativeFileDialog ifAbsent:false |
|
454 |
! |
|
455 |
||
456 |
useNativeFileDialog:aBoolean |
|
457 |
"using native file dialog (if available)" |
|
458 |
||
459 |
self at:#useNativeFileDialog put:aBoolean |
|
460 |
||
461 |
" |
|
462 |
UserPreferences current useNativeFileDialog:true |
|
463 |
UserPreferences current useNativeFileDialog:false |
|
464 |
UserPreferences current useNativeFileDialog |
|
465 |
" |
|
466 |
! |
|
467 |
||
5536 | 468 |
useNewChangesBrowser |
469 |
"using new or old change browser" |
|
470 |
||
9302 | 471 |
^ self at:#useNewChangesBrowser ifAbsent:false |
5536 | 472 |
|
473 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
474 |
! |
|
475 |
||
476 |
useNewChangesBrowser:aBoolean |
|
477 |
"using new or old changeBrowser" |
|
478 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
479 |
self at:#useNewChangesBrowser put:aBoolean |
5536 | 480 |
|
481 |
" |
|
482 |
UserPreferences current useNewChangesBrowser |
|
483 |
" |
|
484 |
||
485 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
486 |
! |
|
487 |
||
6717 | 488 |
useNewFileBrowser |
489 |
"using new or old version diff viewer" |
|
490 |
||
9302 | 491 |
^ self at:#useNewFileBrowser ifAbsent:(FileBrowserV2 notNil and:[FileBrowserV2 isLoaded]) |
6717 | 492 |
|
493 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
494 |
! |
|
495 |
||
496 |
useNewFileBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
497 |
"using new or old file browser" |
6717 | 498 |
|
499 |
self at:#useNewFileBrowser put:aBoolean |
|
500 |
||
501 |
" |
|
6769 | 502 |
UserPreferences current useNewFileBrowser |
6717 | 503 |
" |
504 |
||
505 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
506 |
! |
|
507 |
||
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
508 |
useNewFileDialog |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
509 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
510 |
|
9302 | 511 |
^ self at:#useNewFileDialog ifAbsent:true |
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
512 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
513 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
514 |
useNewFileDialog:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
515 |
"using new or old file dialog" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
516 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
517 |
self at:#useNewFileDialog put:aBoolean |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
518 |
|
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
519 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
520 |
UserPreferences current useNewFileDialog:true |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
521 |
" |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
522 |
! |
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
523 |
|
5536 | 524 |
useNewInspector |
525 |
"using new or old inspector" |
|
526 |
||
9302 | 527 |
^ self at:#useNewInspector ifAbsent:false |
5536 | 528 |
|
529 |
" |
|
530 |
UserPreferences current useNewInspector |
|
531 |
" |
|
532 |
||
533 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
534 |
! |
|
535 |
||
536 |
useNewInspector:aBoolean |
|
537 |
"using new or old inspector" |
|
538 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
539 |
self at:#useNewInspector put:aBoolean |
5536 | 540 |
|
541 |
" |
|
542 |
UserPreferences current useNewInspector |
|
543 |
" |
|
544 |
! |
|
545 |
||
6935 | 546 |
useNewSettingsApplication |
6838 | 547 |
"using one application for the settings" |
548 |
||
9302 | 549 |
^ self at:#useNewSettingsApplication ifAbsent:true |
6838 | 550 |
! |
551 |
||
6935 | 552 |
useNewSettingsApplication:aBoolean |
6838 | 553 |
"using one application for the settings" |
554 |
||
6935 | 555 |
self at:#useNewSettingsApplication put:aBoolean |
6838 | 556 |
|
557 |
" |
|
6935 | 558 |
UserPreferences current useNewSettingsApplication:true |
6838 | 559 |
" |
560 |
||
561 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
562 |
! |
|
563 |
||
5536 | 564 |
useNewSystemBrowser |
565 |
"using new or old system browser" |
|
566 |
||
8593 | 567 |
|newSystemBrowserClass useIt| |
8000 | 568 |
|
569 |
newSystemBrowserClass := (Tools::NewSystemBrowser ? NewSystemBrowser). |
|
8593 | 570 |
useIt := self at:#useNewSystemBrowser ifAbsent:nil. |
571 |
useIt isNil ifTrue:[ |
|
11143 | 572 |
useIt := (newSystemBrowserClass notNil and:[ newSystemBrowserClass isLoaded]). |
573 |
useIt ifTrue:[ |
|
574 |
self at:#useNewSystemBrowser put:true. |
|
575 |
]. |
|
8593 | 576 |
]. |
11143 | 577 |
^ useIt |
5536 | 578 |
! |
579 |
||
580 |
useNewSystemBrowser:aBoolean |
|
581 |
"using new or old systemBrowser" |
|
582 |
||
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
583 |
self at:#useNewSystemBrowser put:aBoolean |
5536 | 584 |
|
585 |
" |
|
5541 | 586 |
UserPreferences current useNewSystemBrowser:true |
5536 | 587 |
" |
588 |
||
589 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
590 |
! |
|
591 |
||
592 |
useNewVersionDiffBrowser |
|
593 |
"using new or old version diff viewer" |
|
594 |
||
9302 | 595 |
^ self at:#useNewVersionDiffBrowser ifAbsent:true |
5536 | 596 |
|
597 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
|
598 |
! |
|
599 |
||
600 |
useNewVersionDiffBrowser:aBoolean |
|
6765
446b64493274
use newFileDialog preferences added and FileBrowserV2 class name changed
penk
parents:
6763
diff
changeset
|
601 |
"using new or old versionDiffBrowser" |
5536 | 602 |
|
5784
c6458c4f3c49
oops - usage of new tools could not be turned off
Claus Gittinger <cg@exept.de>
parents:
5712
diff
changeset
|
603 |
self at:#useNewVersionDiffBrowser put:aBoolean |
5536 | 604 |
|
605 |
" |
|
606 |
UserPreferences current useNewVersionDiffBrowser |
|
607 |
" |
|
608 |
||
609 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
610 |
! |
|
611 |
||
6959 | 612 |
useProcessMonitorV2 |
613 |
"using ProcessMonitorV2 application for display Processes" |
|
614 |
||
9302 | 615 |
^ self at:#useProcessMonitorV2 ifAbsent:(ProcessMonitorV2 notNil) |
6959 | 616 |
! |
617 |
||
618 |
useProcessMonitorV2:aBoolean |
|
619 |
"using ProcessMonitorV2 application for display Processes" |
|
620 |
||
621 |
self at:#useProcessMonitorV2 put:aBoolean |
|
622 |
||
623 |
" |
|
624 |
UserPreferences current useProcessMonitorV2:true |
|
625 |
" |
|
626 |
||
627 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
|
628 |
! |
|
629 |
||
9302 | 630 |
useSmalltalkDocumentViewer |
631 |
"using the smalltalk-DocumentViewer (as opposed to the native systems Browser) |
|
632 |
to display documentation" |
|
633 |
||
634 |
^ self at:#useSmalltalkDocumentViewer ifAbsent:true |
|
635 |
||
636 |
" |
|
637 |
UserPreferences current useSmalltalkDocumentViewer |
|
638 |
UserPreferences current useSmalltalkDocumentViewer:false |
|
639 |
" |
|
640 |
! |
|
641 |
||
642 |
useSmalltalkDocumentViewer:aBoolean |
|
643 |
"using the smalltalk-DocumentViewer (as opposed to the native systems Browser) |
|
644 |
to display documentation" |
|
645 |
||
646 |
^ self at:#useSmalltalkDocumentViewer put:aBoolean |
|
647 |
! |
|
648 |
||
5536 | 649 |
versionDiffViewerClass |
650 |
self useNewVersionDiffBrowser ifTrue:[ |
|
11143 | 651 |
^ (VersionDiffBrowser ? DiffTextView) |
5536 | 652 |
]. |
10992 | 653 |
^ DiffCodeView |
3883 | 654 |
! ! |
655 |
||
7549 | 656 |
!UserPreferences methodsFor:'accessing-prefs-UI'! |
3358 | 657 |
|
11390 | 658 |
allowMouseWheelZoom |
659 |
"return the flag which controls if text can be magnified via the ALT-wheel-action" |
|
660 |
||
661 |
^ self at:#allowMouseWheelZoom ifAbsent:[ true ] |
|
662 |
||
663 |
" |
|
664 |
UserPreferences current allowMouseWheelZoom |
|
665 |
" |
|
666 |
! |
|
667 |
||
668 |
allowMouseWheelZoom:aBooleanOrNil |
|
669 |
"set/clear the flag which controls if text can be magnified via the ALT-wheel-action" |
|
670 |
||
671 |
^ self at:#allowMouseWheelZoom put:aBooleanOrNil |
|
672 |
||
673 |
" |
|
674 |
UserPreferences current allowMouseWheelZoom:true |
|
675 |
UserPreferences current allowMouseWheelZoom:false |
|
676 |
UserPreferences current allowMouseWheelZoom |
|
677 |
" |
|
678 |
! |
|
679 |
||
5071 | 680 |
beepEnabled |
681 |
"return the flag which controls the beeper" |
|
682 |
||
683 |
^ self at:#beepEnabled ifAbsentPut:true |
|
684 |
||
685 |
" |
|
686 |
UserPreferences current beepEnabled |
|
687 |
" |
|
688 |
||
689 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
690 |
"Created: / 3.12.1999 / 17:09:49 / ps" |
|
691 |
! |
|
692 |
||
693 |
beepEnabled:aBoolean |
|
694 |
"set/clear the flag which controls the beeper" |
|
695 |
||
696 |
^ self at:#beepEnabled put:aBoolean |
|
697 |
||
698 |
" |
|
699 |
UserPreferences current beepEnabled:false |
|
700 |
" |
|
701 |
||
702 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
703 |
"Created: / 3.12.1999 / 17:10:27 / ps" |
|
704 |
! |
|
705 |
||
8676 | 706 |
beepForErrorDialog |
707 |
"return the flag which controls beeping for error dialogs" |
|
708 |
||
9302 | 709 |
^ self at:#beepForErrorDialog ifAbsent:true |
8676 | 710 |
|
711 |
" |
|
712 |
UserPreferences current beepForErrorDialog |
|
713 |
" |
|
714 |
! |
|
715 |
||
716 |
beepForErrorDialog:aBoolean |
|
717 |
"set/clear the flag which controls beeping for error dialogs" |
|
718 |
||
719 |
^ self at:#beepForErrorDialog put:aBoolean |
|
720 |
||
721 |
" |
|
722 |
UserPreferences current beepForErrorDialog:true |
|
723 |
" |
|
724 |
! |
|
725 |
||
726 |
beepForInfoDialog |
|
727 |
"return the flag which controls beeping for info dialogs" |
|
728 |
||
9302 | 729 |
^ self at:#beepForInfoDialog ifAbsent:false |
8676 | 730 |
|
731 |
" |
|
732 |
UserPreferences current beepForInfoDialog |
|
733 |
" |
|
734 |
! |
|
735 |
||
736 |
beepForInfoDialog:aBoolean |
|
737 |
"set/clear the flag which controls beeping for info dialogs" |
|
738 |
||
739 |
^ self at:#beepForInfoDialog put:aBoolean |
|
740 |
||
741 |
" |
|
742 |
UserPreferences current beepForInfoDialog:true |
|
743 |
" |
|
744 |
! |
|
745 |
||
746 |
beepForWarningDialog |
|
747 |
"return the flag which controls beeping for warning dialogs" |
|
748 |
||
9302 | 749 |
^ self at:#beepForWarningDialog ifAbsent:true |
8676 | 750 |
|
751 |
" |
|
752 |
UserPreferences current beepForWarningDialog |
|
753 |
" |
|
754 |
! |
|
755 |
||
756 |
beepForWarningDialog:aBoolean |
|
757 |
"set/clear the flag which controls beeping for warning dialogs" |
|
758 |
||
759 |
^ self at:#beepForWarningDialog put:aBoolean |
|
760 |
||
761 |
" |
|
762 |
UserPreferences current beepForWarningDialog:true |
|
763 |
" |
|
764 |
! |
|
765 |
||
11691 | 766 |
beepInEditor |
767 |
"return the flag which controls the beeper" |
|
768 |
||
769 |
^ self at:#beepInEditor ifAbsentPut:true |
|
770 |
||
771 |
" |
|
772 |
UserPreferences current beepInEditor |
|
773 |
" |
|
774 |
! |
|
775 |
||
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
776 |
expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
777 |
"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
|
778 |
more lines. Default is not FALSE !!" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
779 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
780 |
^ self at:#expandSelectionOnMouseMoveWithButtonPressed ifAbsent:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
781 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
782 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
783 |
UserPreferences current expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
784 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
785 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
786 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
787 |
expandSelectionOnMouseMoveWithButtonPressed:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
788 |
"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
|
789 |
more lines. Default is not FALSE !!" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
790 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
791 |
^ self at:#expandSelectionOnMouseMoveWithButtonPressed put:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
792 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
793 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
794 |
UserPreferences current expandSelectionOnMouseMoveWithButtonPressed |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
795 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
796 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
797 |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
798 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
799 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
800 |
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
|
801 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
802 |
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
|
803 |
|
9913
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
804 |
^ self at:#focusFollowsMouse ifAbsent:[ Screen current platformName ~= 'WIN32' ] |
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
805 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
806 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
807 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
808 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
809 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
810 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
811 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
812 |
focusFollowsMouse:aBooleanOrNil |
4121 | 813 |
"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
|
814 |
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
|
815 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
816 |
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
|
817 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
818 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
819 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
820 |
" |
4121 | 821 |
UserPreferences current focusFollowsMouse:true |
822 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
823 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
824 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
825 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
826 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
827 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
828 |
|
8759 | 829 |
motionDistanceToStartDrag |
830 |
"the motion distance (in pixel) to start drag (as opposed to adding to the selection)" |
|
831 |
||
832 |
^ "DragMotionDistance ?" 10 |
|
833 |
! |
|
834 |
||
11589
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
835 |
mouseWheelFocusFollowsMouse |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
836 |
"return the flag which controls if the mouseWheel focus should |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
837 |
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
|
838 |
|
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
839 |
self focusFollowsMouse ifTrue:[^ true]. |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
840 |
^ self at:#mouseWheelFocusFollowsMouse ifAbsent:[ Screen current platformName ~= 'WIN32' ] |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
841 |
|
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
842 |
" |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
843 |
UserPreferences current mouseWheelFocusFollowsMouse |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
844 |
" |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
845 |
! |
13741af10676
+mouseWheelFocusFollowsMouse
Claus Gittinger <cg@exept.de>
parents:
11419
diff
changeset
|
846 |
|
5808 | 847 |
opaqueTableColumnResizing |
848 |
"return the flag which controls if table column resizing should be done |
|
849 |
animated (opaque)" |
|
850 |
||
9302 | 851 |
^ self at:#opaqueTableColumnResizing ifAbsent:false |
5808 | 852 |
|
853 |
" |
|
854 |
UserPreferences current opaqueTableColumnResizing |
|
855 |
" |
|
856 |
! |
|
857 |
||
858 |
opaqueTableColumnResizing:aBoolean |
|
859 |
"change the flag which controls if table column resizing should be done |
|
860 |
animated (opaque)" |
|
861 |
||
862 |
^ self at:#opaqueTableColumnResizing put:aBoolean |
|
863 |
||
864 |
" |
|
865 |
UserPreferences current opaqueTableColumnResizing:true |
|
866 |
" |
|
867 |
||
868 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
869 |
! |
|
870 |
||
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
871 |
opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
872 |
"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
|
873 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
874 |
|
9302 | 875 |
^ self at:#opaqueVariablePanelResizing ifAbsent:false |
4684
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
876 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
877 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
878 |
UserPreferences current opaqueVariablePanelResizing |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
879 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
880 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
881 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
882 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
883 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
884 |
opaqueVariablePanelResizing:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
885 |
"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
|
886 |
animated (opaque)" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
887 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
888 |
^ self at:#opaqueVariablePanelResizing put:aBoolean |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
889 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
890 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
891 |
UserPreferences current opaqueVariablePanelResizing:true |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
892 |
" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
893 |
|
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
894 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
895 |
! |
45fe4b0a22b0
moved variablePanelOpaqueResize setting to userprefs.
Claus Gittinger <cg@exept.de>
parents:
4628
diff
changeset
|
896 |
|
6525 | 897 |
searchDialogIsModal |
898 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
899 |
||
900 |
^ self at:#searchDialogIsModal ifAbsent:true |
|
901 |
||
902 |
" |
|
903 |
UserPreferences current searchDialogIsModal |
|
904 |
" |
|
905 |
! |
|
906 |
||
907 |
searchDialogIsModal:aBooleanOrNil |
|
908 |
"true if the search dialog (in textViews) shall be modal (the default)" |
|
909 |
||
910 |
^ self at:#searchDialogIsModal put:aBooleanOrNil |
|
911 |
||
912 |
" |
|
913 |
UserPreferences current searchDialogIsModal:true |
|
914 |
UserPreferences current searchDialogIsModal:false |
|
915 |
UserPreferences current searchDialogIsModal |
|
916 |
" |
|
917 |
! |
|
918 |
||
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
919 |
startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
920 |
"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
|
921 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
922 |
^ self at:#startTextDragWithControl ifAbsent:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
923 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
924 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
925 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
926 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
927 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
928 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
929 |
startTextDragWithControl:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
930 |
"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
|
931 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
932 |
^ self at:#startTextDragWithControl put:aBooleanOrNil |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
933 |
|
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
934 |
" |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
935 |
UserPreferences current startTextDragWithControl:true |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
936 |
UserPreferences current startTextDragWithControl:false |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
937 |
UserPreferences current startTextDragWithControl |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
938 |
" |
7549 | 939 |
! ! |
940 |
||
941 |
!UserPreferences methodsFor:'accessing-prefs-browser'! |
|
942 |
||
943 |
autoFormatting |
|
944 |
"return the flag which controls automatic formatting of code (in some browsers) |
|
945 |
Notice, the regular browser does not (yet) do automatic formating." |
|
946 |
||
8233 | 947 |
^ self at:#autoFormatting ifAbsent:false |
7549 | 948 |
|
949 |
" |
|
950 |
UserPreferences current autoFormatting |
|
951 |
" |
|
952 |
||
953 |
"Created: / 4.2.2000 / 20:08:08 / cg" |
|
954 |
"Modified: / 5.2.2000 / 15:38:33 / cg" |
|
955 |
! |
|
956 |
||
957 |
autoFormatting:aBoolean |
|
958 |
"turn on/off automatic formatting of code (in some browsers); |
|
959 |
Notice, the regular browser does not (yet) do automatic formating." |
|
960 |
||
961 |
^ self at:#autoFormatting put:aBoolean |
|
962 |
||
963 |
" |
|
964 |
UserPreferences current autoFormatting:true |
|
965 |
UserPreferences current autoFormatting:false |
|
966 |
" |
|
967 |
||
968 |
"Created: / 4.2.2000 / 20:08:26 / cg" |
|
969 |
"Modified: / 5.2.2000 / 15:38:20 / cg" |
|
970 |
! |
|
971 |
||
972 |
enforceCodeStyle |
|
973 |
"return the flag which controls enforcing a certain code style (in some browsers)" |
|
974 |
||
8233 | 975 |
^ self at:#enforceCodeStyle ifAbsent:false |
7549 | 976 |
|
977 |
" |
|
978 |
UserPreferences current enforceCodeStyle |
|
10478 | 979 |
UserPreferences current enforceCodeStyle:true |
980 |
UserPreferences current enforceCodeStyle:false |
|
7549 | 981 |
" |
10478 | 982 |
|
983 |
"Modified: / 27-03-2007 / 21:51:42 / cg" |
|
6730
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
984 |
! |
7bbf6fdeda01
textDrag start with CTRL (optional)
Claus Gittinger <cg@exept.de>
parents:
6717
diff
changeset
|
985 |
|
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
986 |
generateComments |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
987 |
"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
|
988 |
|
8233 | 989 |
^ self at:#generateComments ifAbsent:true. |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
990 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
991 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
992 |
UserPreferences current generateComments |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
993 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
994 |
! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
995 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
996 |
generateCommentsForGetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
997 |
"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
|
998 |
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
|
999 |
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
|
1000 |
|
8233 | 1001 |
^ self generateComments and:[self at:#generateCommentsForGetters ifAbsent:false]. |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1002 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1003 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1004 |
UserPreferences current generateCommentsForGetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1005 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1006 |
! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1007 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1008 |
generateCommentsForSetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1009 |
"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
|
1010 |
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
|
1011 |
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
|
1012 |
|
8233 | 1013 |
^ self generateComments and:[self at:#generateCommentsForSetters ifAbsent:false]. |
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1014 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1015 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1016 |
UserPreferences current generateCommentsForSetters |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1017 |
" |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1018 |
! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1019 |
|
9320 | 1020 |
showAcceptCancelBarInBrowser |
1021 |
"experimental." |
|
1022 |
||
11214
ad61819068b9
changed #showAcceptCancelBarInBrowser
Claus Gittinger <cg@exept.de>
parents:
11213
diff
changeset
|
1023 |
^ self at:#showAcceptCancelBarInBrowser ifAbsent:true |
9320 | 1024 |
|
1025 |
" |
|
1026 |
UserPreferences current showAcceptCancelBarInBrowser |
|
1027 |
UserPreferences current showAcceptCancelBarInBrowser:true |
|
1028 |
UserPreferences current showAcceptCancelBarInBrowser:false |
|
1029 |
" |
|
1030 |
! |
|
1031 |
||
1032 |
showAcceptCancelBarInBrowser:aBoolean |
|
1033 |
"experimental." |
|
1034 |
||
1035 |
^ self at:#showAcceptCancelBarInBrowser put:aBoolean |
|
1036 |
||
1037 |
" |
|
1038 |
UserPreferences current showAcceptCancelBarInBrowser:true |
|
1039 |
UserPreferences current showAcceptCancelBarInBrowser:false |
|
1040 |
" |
|
1041 |
! |
|
1042 |
||
11064 | 1043 |
showSearchBarInBrowser |
11213 | 1044 |
"true, if the search-entry fields are shown in the browser itself |
1045 |
(like in firefox). False if a dialog is to be opened." |
|
1046 |
||
1047 |
"/ cg: disabled for now, until fixed. |
|
1048 |
"/ does not initially select the searchString. |
|
1049 |
"/ thereby interrupting the workflow... |
|
1050 |
||
1051 |
^ self at:#showSearchBarInBrowser ifAbsent:false |
|
11064 | 1052 |
|
1053 |
" |
|
1054 |
UserPreferences current showSearchBarInBrowser |
|
1055 |
UserPreferences current showSearchBarInBrowser:true |
|
1056 |
UserPreferences current showSearchBarInBrowser:false |
|
1057 |
" |
|
1058 |
! |
|
1059 |
||
1060 |
showSearchBarInBrowser:aBoolean |
|
11213 | 1061 |
"true, if the search-entry fields are shown in the browser itself |
1062 |
(like in firefox). False if a dialog is to be opened." |
|
11064 | 1063 |
|
1064 |
^ self at:#showSearchBarInBrowser put:aBoolean |
|
1065 |
||
1066 |
" |
|
1067 |
UserPreferences current showSearchBarInBrowser:true |
|
1068 |
UserPreferences current showSearchBarInBrowser:false |
|
1069 |
" |
|
1070 |
! |
|
1071 |
||
3347 | 1072 |
syntaxColoring |
3360 | 1073 |
"return the flag which controls syntax coloring (in the browsers)" |
1074 |
||
8233 | 1075 |
^ self at:#syntaxColoring ifAbsent:true |
3347 | 1076 |
|
1077 |
" |
|
1078 |
UserPreferences current syntaxColoring |
|
1079 |
" |
|
1080 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
1081 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 1082 |
! |
1083 |
||
1084 |
syntaxColoring:aBoolean |
|
3360 | 1085 |
"turn on/off syntaxColoring (in the browsers)." |
1086 |
||
3347 | 1087 |
^ self at:#syntaxColoring put:aBoolean |
1088 |
||
3357 | 1089 |
" |
1090 |
UserPreferences current syntaxColoring:true |
|
1091 |
UserPreferences current syntaxColoring:false |
|
1092 |
" |
|
1093 |
||
3347 | 1094 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 1095 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
1096 |
! ! |
|
1097 |
||
7549 | 1098 |
!UserPreferences methodsFor:'accessing-prefs-browser-colors'! |
1099 |
||
1100 |
emphasisForChangedCode |
|
10177 | 1101 |
"the emphasis for changed code (in changeSet) in the browser" |
1102 |
||
7549 | 1103 |
|emp| |
1104 |
||
1105 |
emp := self at:#emphasisForChangedCode ifAbsent:nil. |
|
1106 |
emp isNil ifTrue:[ |
|
11143 | 1107 |
emp := #color->Color red darkened. |
1108 |
emp := Array with:#bold with:emp. |
|
1109 |
"/ emp := #color->Color blue darkened. |
|
1110 |
self at:#emphasisForChangedCode put:emp. |
|
7549 | 1111 |
]. |
1112 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1113 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1114 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1115 |
self allInstancesDo:[:pref |pref at:#emphasisForChangedCode put:nil]. |
9807 | 1116 |
UserPreferences current emphasisForChangedCode. |
1117 |
UserPreferences current at:#emphasisForChangedCode put:nil. |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1118 |
" |
9807 | 1119 |
|
10177 | 1120 |
"Modified: / 10-11-2006 / 17:27:23 / cg" |
1121 |
! |
|
1122 |
||
1123 |
emphasisForChangedCodeInSmallTeam |
|
1124 |
"the emphasis for changed code (in a remote changeSet) in the browser. |
|
1125 |
You need the SmallTeam extension to be present for this to work." |
|
1126 |
||
1127 |
|emp| |
|
1128 |
||
1129 |
emp := self at:#emphasisForChangedCodeInSmallTeam ifAbsent:nil. |
|
1130 |
emp isNil ifTrue:[ |
|
11143 | 1131 |
emp := #color->Color yellow darkened. |
1132 |
emp := Array with:#bold with:emp. |
|
1133 |
self at:#emphasisForChangedCodeInSmallTeam put:emp. |
|
10177 | 1134 |
]. |
1135 |
^ emp |
|
1136 |
||
1137 |
" |
|
1138 |
self allInstancesDo:[:pref |pref at:#emphasisForChangedCodeInSmallTeam put:nil]. |
|
1139 |
UserPreferences current emphasisForChangedCodeInSmallTeam. |
|
1140 |
UserPreferences current at:#emphasisForChangedCodeInSmallTeam put:nil. |
|
1141 |
" |
|
1142 |
||
1143 |
"Created: / 10-11-2006 / 16:31:00 / cg" |
|
6832 | 1144 |
! |
1145 |
||
7549 | 1146 |
emphasisForDifferentPackage |
1147 |
|emp| |
|
1148 |
||
1149 |
emp := self at:#emphasisForDifferentPackage ifAbsent:nil. |
|
1150 |
emp isNil ifTrue:[ |
|
11143 | 1151 |
emp := #color->Color green darkened. |
1152 |
"/ emp := Array with:#bold with:emp. |
|
1153 |
self at:#emphasisForDifferentPackage put:emp. |
|
7549 | 1154 |
]. |
1155 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1156 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1157 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1158 |
self allInstancesDo:[:pref |pref at:#emphasisForDifferentPackage put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1159 |
" |
6832 | 1160 |
! |
1161 |
||
7549 | 1162 |
emphasisForModifiedBuffer |
1163 |
|emp| |
|
1164 |
||
1165 |
emp := self at:#emphasisForModifiedBuffer ifAbsent:nil. |
|
1166 |
emp isNil ifTrue:[ |
|
11143 | 1167 |
emp := #color->Color red darkened. |
1168 |
emp := Array with:#bold with:emp. |
|
1169 |
self at:#emphasisForModifiedBuffer put:emp. |
|
7549 | 1170 |
]. |
1171 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1172 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1173 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1174 |
self allInstancesDo:[:pref |pref at:#emphasisForModifiedBuffer put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1175 |
" |
6832 | 1176 |
! |
1177 |
||
7549 | 1178 |
emphasisForObsoleteCode |
1179 |
|emp| |
|
1180 |
||
1181 |
emp := self at:#emphasisForObsoleteCode ifAbsent:nil. |
|
1182 |
emp isNil ifTrue:[ |
|
11143 | 1183 |
emp := #color->Color red. |
1184 |
emp := Array with:#bold with:emp. |
|
1185 |
self at:#emphasisForObsoleteCode put:emp. |
|
7549 | 1186 |
]. |
1187 |
^ emp |
|
9276
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1188 |
|
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1189 |
" |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1190 |
self allInstancesDo:[:pref |pref at:#emphasisForObsoleteCode put:nil]. |
120c3f8fc50b
changed code: boldify by default
Claus Gittinger <cg@exept.de>
parents:
9184
diff
changeset
|
1191 |
" |
6832 | 1192 |
! |
1193 |
||
7549 | 1194 |
emphasisForReadVariable |
1195 |
|emp| |
|
1196 |
||
1197 |
emp := self at:#emphasisForReadVariable ifAbsent:nil. |
|
1198 |
emp isNil ifTrue:[ |
|
11143 | 1199 |
emp := #underline. |
1200 |
self at:#emphasisForReadVariable put:emp. |
|
7549 | 1201 |
]. |
1202 |
^ emp |
|
6832 | 1203 |
! |
1204 |
||
7549 | 1205 |
emphasisForWrittenVariable |
1206 |
|emp| |
|
1207 |
||
1208 |
emp := self at:#emphasisForWrittenVariable ifAbsent:nil. |
|
1209 |
emp isNil ifTrue:[ |
|
11143 | 1210 |
emp := Array with:#underline with:#underlineColor->Color red. |
1211 |
self at:#emphasisForWrittenVariable put:emp. |
|
7549 | 1212 |
]. |
1213 |
^ emp |
|
6832 | 1214 |
! ! |
1215 |
||
7549 | 1216 |
!UserPreferences methodsFor:'accessing-prefs-browser-syntaxColoring'! |
3360 | 1217 |
|
1218 |
argumentIdentifierColor |
|
1219 |
"the color used for argument identifiers; |
|
1220 |
If syntaxColoring is turned on." |
|
1221 |
||
1222 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
1223 |
||
1224 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
1225 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
1226 |
! |
|
1227 |
||
1228 |
argumentIdentifierEmphasis |
|
1229 |
"the emphasis used for argument identifiers; |
|
1230 |
If syntaxColoring is turned on." |
|
1231 |
||
1232 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1233 |
||
1234 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
1235 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
1236 |
! |
|
1237 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1238 |
badIdentifierColor |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1239 |
"the color used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1240 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1241 |
|
4336 | 1242 |
^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1243 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1244 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1245 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1246 |
badIdentifierEmphasis |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1247 |
"the emphasis used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1248 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1249 |
|
4628 | 1250 |
^ self at:#badIdentifierEmphasis ifAbsentPut:[UserPreferences default at:#badIdentifierEmphasis] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1251 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
1252 |
"Modified: / 7.7.1999 / 00:30:00 / cg" |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1253 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1254 |
|
3360 | 1255 |
booleanConstantColor |
1256 |
"the color used for boolean constants; |
|
1257 |
If syntaxColoring is turned on." |
|
1258 |
||
1259 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
1260 |
||
1261 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
1262 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
1263 |
! |
|
1264 |
||
1265 |
booleanConstantEmphasis |
|
1266 |
"the emphasis used for boolean constants; |
|
1267 |
If syntaxColoring is turned on." |
|
1268 |
||
1269 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
1270 |
||
1271 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
1272 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
1273 |
! |
|
1274 |
||
3361 | 1275 |
bracketColor |
1276 |
"the color used for brackets; |
|
1277 |
If syntaxColoring is turned on." |
|
1278 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1279 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 1280 |
|
1281 |
" |
|
1282 |
self current at:#bracketColor put:Color red. |
|
1283 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1284 |
|
11143 | 1285 |
self current bracketColor |
1286 |
self current bracketEmphasis |
|
3361 | 1287 |
" |
1288 |
||
1289 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1290 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1291 |
! |
|
1292 |
||
1293 |
bracketEmphasis |
|
1294 |
"the emphasis used for brackets; |
|
1295 |
If syntaxColoring is turned on." |
|
1296 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1297 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 1298 |
|
1299 |
" |
|
1300 |
self current at:#bracketEmphasis put:#bold |
|
11143 | 1301 |
self current bracketEmphasis |
3361 | 1302 |
" |
1303 |
||
1304 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
1305 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
1306 |
! |
|
1307 |
||
4320 | 1308 |
classVariableIdentifierColor |
1309 |
"the color used for classVar/classInstVar identifiers |
|
1310 |
If syntaxColoring is turned on." |
|
1311 |
||
1312 |
^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1313 |
||
1314 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1315 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1316 |
! |
|
1317 |
||
1318 |
classVariableIdentifierEmphasis |
|
1319 |
"the color used for classVar/classInstVar identifiers |
|
1320 |
If syntaxColoring is turned on." |
|
1321 |
||
1322 |
^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1323 |
||
1324 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1325 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1326 |
! |
|
1327 |
||
3360 | 1328 |
commentColor |
1329 |
"the color used for comments; |
|
1330 |
If syntaxColoring is turned on." |
|
1331 |
||
4628 | 1332 |
^ self at:#commentColor ifAbsentPut:[UserPreferences default at:#commentColor] |
3360 | 1333 |
|
1334 |
"Created: / 31.3.1998 / 15:10:23 / cg" |
|
3832 | 1335 |
"Modified: / 11.9.1998 / 19:24:04 / cg" |
3360 | 1336 |
! |
1337 |
||
1338 |
commentEmphasis |
|
1339 |
"the emphasis used for comments; |
|
1340 |
If syntaxColoring is turned on." |
|
1341 |
||
4628 | 1342 |
^ self at:#commentEmphasis ifAbsentPut:[UserPreferences default at:#commentEmphasis] |
3360 | 1343 |
|
1344 |
"Created: / 31.3.1998 / 15:09:59 / cg" |
|
1345 |
"Modified: / 1.4.1998 / 13:25:53 / cg" |
|
1346 |
! |
|
1347 |
||
5258 | 1348 |
commentEmphasisAndColor |
1349 |
^ Text addEmphasis:(self commentEmphasis) to:(#color->self commentColor). |
|
1350 |
||
1351 |
||
1352 |
! |
|
1353 |
||
3360 | 1354 |
constantColor |
1355 |
"the color used for constants; |
|
1356 |
If syntaxColoring is turned on." |
|
1357 |
||
4628 | 1358 |
^ self at:#constantColor ifAbsentPut:[UserPreferences default at:#constantColor] |
3360 | 1359 |
|
1360 |
"Created: / 31.3.1998 / 18:13:15 / cg" |
|
1361 |
"Modified: / 1.4.1998 / 13:20:37 / cg" |
|
1362 |
! |
|
1363 |
||
1364 |
constantEmphasis |
|
1365 |
"the emphasis used for constants; |
|
1366 |
If syntaxColoring is turned on." |
|
1367 |
||
1368 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1369 |
||
1370 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
1371 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
1372 |
! |
|
1373 |
||
9834 | 1374 |
controlFlowSelectorColor |
1375 |
"the color used for some selected controlFlow selectors (such as if, while etc.); |
|
1376 |
If syntaxColoring is turned on." |
|
1377 |
||
11143 | 1378 |
^ self at:#controlFlowSelectorColor |
1379 |
ifAbsentPut:[UserPreferences default |
|
1380 |
at:#controlFlowSelectorColor ifAbsent:[self selectorColor]] |
|
9834 | 1381 |
|
1382 |
"Created: / 08-09-2006 / 15:51:20 / cg" |
|
1383 |
! |
|
1384 |
||
1385 |
controlFlowSelectorEmphasis |
|
1386 |
"the emphasis used for some selected controlFlow selectors (such as if, while etc.); |
|
1387 |
If syntaxColoring is turned on." |
|
1388 |
||
11143 | 1389 |
^ self at:#controlFlowSelectorEmphasis |
1390 |
ifAbsentPut:[UserPreferences default |
|
1391 |
at:#controlFlowSelectorEmphasis ifAbsent:[self selectorEmphasis]] |
|
9834 | 1392 |
|
1393 |
"Created: / 08-09-2006 / 15:51:04 / cg" |
|
1394 |
! |
|
1395 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1396 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1397 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1398 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1399 |
|
4628 | 1400 |
^ self at:#defaultSyntaxColor ifAbsentPut:[UserPreferences default at:#defaultSyntaxColor] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1401 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1402 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1403 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1404 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1405 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1406 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1407 |
|
4628 | 1408 |
^ self at:#defaultSyntaxEmphasis ifAbsentPut:[UserPreferences default at:#defaultSyntaxEmphasis] |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1409 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1410 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1411 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1412 |
doesNotUnderstand:aMessage |
4580 | 1413 |
|k def| |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1414 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1415 |
k := aMessage selector. |
6252 | 1416 |
aMessage numArgs == 0 ifTrue:[ |
11143 | 1417 |
(self includesKey:k) ifTrue:[ |
1418 |
^ self at:k |
|
1419 |
]. |
|
1420 |
((def := self class default) includesKey:k) ifTrue:[ |
|
1421 |
^ def at:k |
|
1422 |
]. |
|
1423 |
^ self defaultValue |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1424 |
]. |
6252 | 1425 |
"/ ((aMessage numArgs == 1) |
1426 |
"/ and:[ (k endsWith:$:)]) |
|
1427 |
"/ ifTrue:[ |
|
1428 |
"/ k := (k copyWithoutLast:1) asSymbol. |
|
11143 | 1429 |
"/ ((self includesKey:k) |
6252 | 1430 |
"/ or:[ self class default includesKey:k ]) ifTrue:[ |
1431 |
"/ ^ self at:k put:(aMessage arg1) |
|
1432 |
"/ ]. |
|
1433 |
"/ ]. |
|
1434 |
||
7272 | 1435 |
aMessage numArgs == 1 ifTrue:[ |
11143 | 1436 |
('UserPreferences [info]: obsolete settings key: ' , aMessage selector , ' - ignored.') infoPrintCR. |
1437 |
^ nil |
|
7272 | 1438 |
]. |
6252 | 1439 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1440 |
^ super doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1441 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1442 |
|
8965
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1443 |
emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1444 |
^ self at:#emphasizeParenthesisLevel ifAbsent:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1445 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1446 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1447 |
UserPreferences current emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1448 |
UserPreferences current emphasizeParenthesisLevel:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1449 |
UserPreferences current emphasizeParenthesisLevel:false |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1450 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1451 |
! |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1452 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1453 |
emphasizeParenthesisLevel:aBoolean |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1454 |
self at:#emphasizeParenthesisLevel put:aBoolean |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1455 |
|
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1456 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1457 |
UserPreferences current emphasizeParenthesisLevel |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1458 |
UserPreferences current emphasizeParenthesisLevel:true |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1459 |
UserPreferences current emphasizeParenthesisLevel:false |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1460 |
" |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1461 |
! |
b3cebce55744
emphasize parenthesis nesting
Claus Gittinger <cg@exept.de>
parents:
8869
diff
changeset
|
1462 |
|
4341 | 1463 |
errorColor |
1464 |
"the color used for illegal identifiers; |
|
1465 |
If syntaxColoring is turned on." |
|
1466 |
||
4628 | 1467 |
^ self at:#errorColor ifAbsentPut:[UserPreferences default at:#errorColor] |
4341 | 1468 |
|
1469 |
! |
|
1470 |
||
4306 | 1471 |
fullSelectorCheck |
1472 |
"with fullSelector check, selectors are searched immediately for |
|
1473 |
being implemented in the system. This may not be useful on slow machines" |
|
1474 |
||
4628 | 1475 |
^ self at:#fullSelectorCheck ifAbsentPut:[UserPreferences default at:#fullSelectorCheck] |
4306 | 1476 |
|
1477 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1478 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1479 |
! |
|
1480 |
||
4023 | 1481 |
globalClassIdentifierColor |
1482 |
"the color used for global identifiers which are known to be classes; |
|
1483 |
If syntaxColoring is turned on." |
|
1484 |
||
1485 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1486 |
||
1487 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1488 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
1489 |
! |
|
1490 |
||
1491 |
globalClassIdentifierEmphasis |
|
1492 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
1493 |
If syntaxColoring is turned on." |
|
1494 |
||
1495 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1496 |
||
1497 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1498 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
1499 |
! |
|
1500 |
||
3360 | 1501 |
globalIdentifierColor |
1502 |
"the color used for global identifiers; |
|
1503 |
If syntaxColoring is turned on." |
|
1504 |
||
1505 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
1506 |
||
1507 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
1508 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
1509 |
! |
|
1510 |
||
1511 |
globalIdentifierEmphasis |
|
1512 |
"the emphasis used for global variable identifiers; |
|
1513 |
If syntaxColoring is turned on." |
|
1514 |
||
1515 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1516 |
||
1517 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
1518 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
1519 |
! |
|
1520 |
||
1521 |
hereColor |
|
1522 |
"the color used for the here pseudoVariable; |
|
1523 |
If syntaxColoring is turned on." |
|
1524 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1525 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 1526 |
|
1527 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
1528 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
1529 |
! |
|
1530 |
||
1531 |
hereEmphasis |
|
1532 |
"the emphasis used for the hre special variable; |
|
1533 |
If syntaxColoring is turned on." |
|
1534 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1535 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1536 |
|
1537 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
1538 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
1539 |
! |
|
1540 |
||
1541 |
identifierColor |
|
1542 |
"the color used for other identifiers; |
|
1543 |
If syntaxColoring is turned on." |
|
1544 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1545 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1546 |
|
3362 | 1547 |
" |
1548 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
1549 |
UserPreferences current at:#identifierColor put:Color black. |
|
1550 |
" |
|
1551 |
||
3360 | 1552 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 1553 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 1554 |
! |
1555 |
||
1556 |
identifierEmphasis |
|
1557 |
"the emphasis used for other identifiers; |
|
1558 |
If syntaxColoring is turned on." |
|
1559 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1560 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 1561 |
|
1562 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
1563 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
1564 |
! |
|
1565 |
||
3378 | 1566 |
instVarIdentifierColor |
3377 | 1567 |
"the color used for instance variable identifiers; |
1568 |
If syntaxColoring is turned on." |
|
1569 |
||
3378 | 1570 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 1571 |
|
1572 |
" |
|
3378 | 1573 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
1574 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
11143 | 1575 |
UserPreferences current instVarIdentifierColor |
3377 | 1576 |
" |
1577 |
||
1578 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 1579 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 1580 |
! |
1581 |
||
3378 | 1582 |
instVarIdentifierEmphasis |
3377 | 1583 |
"the emphais used for instance variable identifiers; |
1584 |
If syntaxColoring is turned on." |
|
1585 |
||
3378 | 1586 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 1587 |
|
1588 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 1589 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 1590 |
! |
1591 |
||
8420 | 1592 |
jsKeywordColor |
1593 |
^ self at:#jsKeywordColor ifAbsentPut:[self defaultSyntaxColor] |
|
1594 |
! |
|
1595 |
||
1596 |
jsKeywordEmphasis |
|
1597 |
^ self at:#jsKeywordEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
|
1598 |
! |
|
1599 |
||
3360 | 1600 |
localIdentifierColor |
1601 |
"the color used for local variable identifiers; |
|
1602 |
If syntaxColoring is turned on." |
|
1603 |
||
9144 | 1604 |
^ self at:#localIdentifierColor ifAbsent:[self identifierColor] |
3360 | 1605 |
|
3362 | 1606 |
" |
1607 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
1608 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
1609 |
" |
|
1610 |
||
3360 | 1611 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 1612 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 1613 |
! |
1614 |
||
1615 |
localIdentifierEmphasis |
|
1616 |
"the emphais used for local variable identifiers; |
|
1617 |
If syntaxColoring is turned on." |
|
1618 |
||
9144 | 1619 |
^ self at:#localIdentifierEmphasis ifAbsent:[self identifierEmphasis] |
3360 | 1620 |
|
1621 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
1622 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
1623 |
! |
|
1624 |
||
1625 |
methodSelectorColor |
|
1626 |
"the color used for a methods selector pattern; |
|
1627 |
If syntaxColoring is turned on." |
|
1628 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1629 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1630 |
|
1631 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
1632 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
1633 |
! |
|
1634 |
||
1635 |
methodSelectorEmphasis |
|
1636 |
"the emphasis used for a methods selector pattern; |
|
1637 |
If syntaxColoring is turned on." |
|
1638 |
||
4628 | 1639 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[UserPreferences default at:#methodSelectorEmphasis] |
3360 | 1640 |
|
1641 |
"Created: / 31.3.1998 / 15:11:16 / cg" |
|
1642 |
"Modified: / 1.4.1998 / 13:24:20 / cg" |
|
1643 |
! |
|
1644 |
||
9144 | 1645 |
numberConstantColor |
1646 |
"the color used for number constants; |
|
1647 |
If syntaxColoring is turned on." |
|
1648 |
||
1649 |
^ self at:#numberConstantColor ifAbsent:[ self constantColor ] |
|
1650 |
! |
|
1651 |
||
1652 |
numberConstantEmphasis |
|
1653 |
"the emphasis used for number constants; |
|
1654 |
If syntaxColoring is turned on." |
|
1655 |
||
1656 |
^ self at:#numberConstantEmphasis ifAbsent:[ self constantEmphasis ] |
|
1657 |
! |
|
1658 |
||
8551 | 1659 |
poolVariableIdentifierColor |
1660 |
"the color used for pool variable identifiers |
|
1661 |
If syntaxColoring is turned on." |
|
1662 |
||
1663 |
^ self at:#poolVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
1664 |
! |
|
1665 |
||
1666 |
poolVariableIdentifierEmphasis |
|
1667 |
"the color used for pool variable identifiers |
|
1668 |
If syntaxColoring is turned on." |
|
1669 |
||
1670 |
^ self at:#poolVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
1671 |
! |
|
1672 |
||
4076 | 1673 |
returnColor |
1674 |
"the color used for the return expression; |
|
1675 |
If syntaxColoring is turned on." |
|
1676 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1677 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 1678 |
|
1679 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
1680 |
! |
|
1681 |
||
1682 |
returnEmphasis |
|
1683 |
"the emphasis used for returns; |
|
1684 |
If syntaxColoring is turned on." |
|
1685 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1686 |
^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 1687 |
|
1688 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
1689 |
! |
|
1690 |
||
3360 | 1691 |
selectorColor |
1692 |
"the color used for message selectors; |
|
1693 |
If syntaxColoring is turned on." |
|
1694 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1695 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 1696 |
|
1697 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
1698 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
1699 |
! |
|
1700 |
||
1701 |
selectorEmphasis |
|
1702 |
"the emphasis used for message selectors; |
|
1703 |
If syntaxColoring is turned on." |
|
1704 |
||
4628 | 1705 |
^ self at:#selectorEmphasis ifAbsentPut:[UserPreferences default at:#selectorEmphasis] |
3360 | 1706 |
|
1707 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1708 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
|
1709 |
! |
|
1710 |
||
1711 |
selfColor |
|
1712 |
"the color used for the self pseudoVariable; |
|
1713 |
If syntaxColoring is turned on." |
|
1714 |
||
1715 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
1716 |
||
1717 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
1718 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
1719 |
! |
|
1720 |
||
1721 |
selfEmphasis |
|
1722 |
"the emphasis used for the self pseudoVariable; |
|
1723 |
If syntaxColoring is turned on." |
|
1724 |
||
1725 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
1726 |
||
1727 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
1728 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
1729 |
! |
|
1730 |
||
1731 |
stringColor |
|
1732 |
"the color used for string constants; |
|
1733 |
If syntaxColoring is turned on." |
|
1734 |
||
1735 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
1736 |
||
1737 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
1738 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
1739 |
! |
|
1740 |
||
1741 |
stringEmphasis |
|
1742 |
"the emphasis used for string constants; |
|
1743 |
If syntaxColoring is turned on." |
|
1744 |
||
1745 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
1746 |
||
1747 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
1748 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
1749 |
! |
|
1750 |
||
1751 |
superColor |
|
1752 |
"the color used for the super pseudoVariable; |
|
1753 |
If syntaxColoring is turned on." |
|
1754 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1755 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 1756 |
|
1757 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
1758 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
1759 |
! |
|
1760 |
||
1761 |
superEmphasis |
|
1762 |
"the emphasis used for the super pseudoVariable; |
|
1763 |
If syntaxColoring is turned on." |
|
1764 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1765 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 1766 |
|
1767 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
1768 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
1769 |
! |
|
1770 |
||
1771 |
symbolColor |
|
1772 |
"the color used for symbol constants; |
|
1773 |
If syntaxColoring is turned on." |
|
1774 |
||
1775 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
1776 |
||
1777 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
1778 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
1779 |
! |
|
1780 |
||
1781 |
symbolEmphasis |
|
1782 |
"the emphasis used for symbol constants; |
|
1783 |
If syntaxColoring is turned on." |
|
1784 |
||
1785 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
1786 |
||
1787 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
1788 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 1789 |
! |
1790 |
||
1791 |
thisContextColor |
|
3360 | 1792 |
"the color used for the thisContext pseudoVariable; |
1793 |
If syntaxColoring is turned on." |
|
1794 |
||
3355 | 1795 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 1796 |
|
1797 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 1798 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 1799 |
! |
1800 |
||
1801 |
thisContextEmphasis |
|
3360 | 1802 |
"the emphasis used for the thisContext pseudoVariable; |
1803 |
If syntaxColoring is turned on." |
|
1804 |
||
3355 | 1805 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 1806 |
|
1807 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 1808 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 1809 |
! |
1810 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1811 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1812 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1813 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1814 |
|
4628 | 1815 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[UserPreferences default at:#unimplementedSelectorColor] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1816 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1817 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1818 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1819 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1820 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1821 |
|
4628 | 1822 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[UserPreferences default at:#unimplementedSelectorEmphasis] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1823 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1824 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1825 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1826 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
1827 |
|
3354 | 1828 |
unknownIdentifierColor |
3360 | 1829 |
"the color used for unknown identifiers; |
1830 |
If syntaxColoring is turned on." |
|
1831 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1832 |
^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor] |
3354 | 1833 |
|
3361 | 1834 |
" |
1835 |
self current at:#unknownIdentifierColor put:Color red. |
|
1836 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1837 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1838 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
1839 |
self current unknownIdentifierEmphasis |
3361 | 1840 |
" |
1841 |
||
3354 | 1842 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 1843 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 1844 |
! |
1845 |
||
1846 |
unknownIdentifierEmphasis |
|
3360 | 1847 |
"the emphasis used for unknown identifiers; |
1848 |
If syntaxColoring is turned on." |
|
1849 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
1850 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis] |
3354 | 1851 |
|
1852 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 1853 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
3347 | 1854 |
! ! |
1855 |
||
8232
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1856 |
!UserPreferences methodsFor:'accessing-prefs-code'! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1857 |
|
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1858 |
categoryForMenuActionsMethods |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1859 |
^ 'menu actions'. |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1860 |
! ! |
371649bcd96a
generateComments (from codeGenerator tool) settings
Claus Gittinger <cg@exept.de>
parents:
8005
diff
changeset
|
1861 |
|
10055 | 1862 |
!UserPreferences methodsFor:'accessing-prefs-editor'! |
1863 |
||
1864 |
deleteSetsClipboardText |
|
1865 |
"if true, a delete also updates the clipboard with the deleted text" |
|
1866 |
||
1867 |
^ self at:#deleteSetsClipboardText ifAbsent:false |
|
1868 |
||
1869 |
" |
|
1870 |
UserPreferences current deleteSetsClipboardText |
|
1871 |
" |
|
1872 |
! |
|
1873 |
||
1874 |
deleteSetsClipboardText:aBooleanOrNil |
|
1875 |
"if true, a delete also updates the clipboard with the deleted text" |
|
1876 |
||
1877 |
^ self at:#deleteSetsClipboardText put:aBooleanOrNil |
|
1878 |
||
1879 |
" |
|
1880 |
UserPreferences current deleteSetsClipboardTextdeleteSetsClipboardText:true |
|
1881 |
UserPreferences current deleteSetsClipboardText:false |
|
1882 |
UserPreferences current deleteSetsClipboardText |
|
1883 |
" |
|
1884 |
! |
|
1885 |
||
1886 |
extendedWordSelectMode |
|
1887 |
"when double clicking, include underscore, dollar and at-character as word-characters ? |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1888 |
(default is on)" |
10055 | 1889 |
|
10310
89d972739353
extendedWordSelectMode (underline in word) defaults to true
Claus Gittinger <cg@exept.de>
parents:
10240
diff
changeset
|
1890 |
^ self at:#extendedWordSelectMode ifAbsent:true |
10055 | 1891 |
|
1892 |
" |
|
1893 |
UserPreferences current extendedWordSelectMode |
|
1894 |
" |
|
1895 |
||
1896 |
"Created: / 03-07-2006 / 16:49:58 / cg" |
|
1897 |
! |
|
1898 |
||
1899 |
extendedWordSelectMode:aBoolean |
|
1900 |
"when double clicking, include underscore, dollar and at-character as word-characters ? |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1901 |
(default is on)" |
10055 | 1902 |
|
1903 |
^ self at:#extendedWordSelectMode put:aBoolean |
|
1904 |
||
1905 |
" |
|
1906 |
UserPreferences current extendedWordSelectMode:true |
|
1907 |
UserPreferences current extendedWordSelectMode:false |
|
1908 |
" |
|
1909 |
||
1910 |
"Created: / 03-07-2006 / 16:50:20 / cg" |
|
1911 |
! |
|
1912 |
||
1913 |
numberOfRememberedUndoOperationsInEditor |
|
1914 |
"the number of possible undo-operations. |
|
1915 |
Nil means: unlimited. |
|
1916 |
Notice: you may run out of memory, if editing a lot and the number of undos is not limited." |
|
1917 |
||
1918 |
^ self at:#numberOfRememberedUndoOperationsInEditor ifAbsent:nil |
|
1919 |
||
1920 |
" |
|
1921 |
UserPreferences current numberOfRememberedUndoOperationsInEditor |
|
1922 |
" |
|
1923 |
||
1924 |
"Modified: / 09-10-2006 / 11:01:35 / cg" |
|
1925 |
! |
|
1926 |
||
1927 |
numberOfRememberedUndoOperationsInEditor:aNumberOrNil |
|
1928 |
"the number of possible undo-operations. |
|
1929 |
Nil means: unlimited. |
|
1930 |
Notice: you may run out of memory, if editing a lot and the number of undos is not limited." |
|
1931 |
||
1932 |
^ self at:#numberOfRememberedUndoOperationsInEditor put:aNumberOrNil |
|
1933 |
||
1934 |
" |
|
1935 |
UserPreferences current numberOfRememberedUndoOperationsInEditor:20 |
|
1936 |
" |
|
1937 |
||
1938 |
"Created: / 09-10-2006 / 11:00:56 / cg" |
|
1939 |
! |
|
1940 |
||
1941 |
st80EditMode |
|
1942 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
|
1943 |
||
1944 |
^ self at:#st80EditMode ifAbsent:false |
|
1945 |
||
1946 |
" |
|
1947 |
UserPreferences current st80EditMode |
|
1948 |
" |
|
1949 |
! |
|
1950 |
||
1951 |
st80EditMode:aBoolean |
|
1952 |
"editing as in st80 (do not allow cursor beyond endOfLine/endOftext)." |
|
1953 |
||
1954 |
^ self at:#st80EditMode put:aBoolean |
|
1955 |
||
1956 |
" |
|
1957 |
UserPreferences current st80EditMode:true |
|
1958 |
" |
|
1959 |
! |
|
1960 |
||
1961 |
st80SelectMode |
|
11143 | 1962 |
"select mode, when double clicking as in st80 |
10055 | 1963 |
(select to corresponding lparen/double-quote) ?" |
1964 |
||
1965 |
^ self at:#st80SelectMode ifAbsent:false |
|
1966 |
||
1967 |
" |
|
1968 |
UserPreferences current st80SelectMode |
|
1969 |
" |
|
1970 |
||
1971 |
"Created: / 03-07-2006 / 16:25:19 / cg" |
|
1972 |
! |
|
1973 |
||
1974 |
st80SelectMode:aBoolean |
|
11143 | 1975 |
"select mode, when double clicking as in st80 |
10055 | 1976 |
(select to corresponding lparen/double-quote)." |
1977 |
||
1978 |
^ self at:#st80SelectMode put:aBoolean |
|
1979 |
||
1980 |
" |
|
1981 |
UserPreferences current st80SelectMode:true |
|
1982 |
UserPreferences current st80SelectMode:false |
|
1983 |
" |
|
1984 |
||
1985 |
"Created: / 03-07-2006 / 16:25:27 / cg" |
|
10880
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1986 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1987 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1988 |
whitespaceWordSelectMode |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1989 |
"when double clicking, treat ANY non-whitespace as word-characters ? |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1990 |
(default is off)" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1991 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1992 |
^ self at:#whitespaceWordSelectMode ifAbsent:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1993 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1994 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1995 |
UserPreferences current whitespaceWordSelectMode |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1996 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1997 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1998 |
"Created: / 03-07-2006 / 16:49:58 / cg" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
1999 |
! |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2000 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2001 |
whitespaceWordSelectMode:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2002 |
"when double clicking, treat ANY non-whitespace as word-characters ? |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2003 |
(default is off)" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2004 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2005 |
^ self at:#whitespaceWordSelectMode put:aBoolean |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2006 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2007 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2008 |
UserPreferences current whitespaceWordSelectMode:true |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2009 |
UserPreferences current whitespaceWordSelectMode:false |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2010 |
" |
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2011 |
|
96f17c8c9d3a
expandSelectionOnMouseMoveWithButtonPressed
Claus Gittinger <cg@exept.de>
parents:
10861
diff
changeset
|
2012 |
"Created: / 03-07-2006 / 16:50:20 / cg" |
10055 | 2013 |
! ! |
2014 |
||
7549 | 2015 |
!UserPreferences methodsFor:'accessing-prefs-times'! |
2016 |
||
2017 |
timeToAutoExpandItemsWhenDraggingOver |
|
2018 |
"in a hierarchical tree view" |
|
2019 |
||
2020 |
^ 700 "/ millis |
|
2021 |
! |
|
2022 |
||
2023 |
twoDigitDateHandler |
|
2024 |
"return a block which converts a two-digit date. |
|
2025 |
Possible algorithms: |
|
11143 | 2026 |
- identity: treat as year 00..99 |
2027 |
- add 1900: treat as 1900..1999 |
|
2028 |
- around: treat as 1950..1999 if value is 50..99; 2000..2049 otherwise. |
|
7549 | 2029 |
|
2030 |
TODO: make this configurable, keep in dictionary and add to settings. |
|
2031 |
" |
|
2032 |
||
2033 |
^ [:x | (x >= 50) ifTrue:[1900+x] ifFalse:[2000+x]]. |
|
2034 |
"/ ^ [:x | 1900+x]. |
|
2035 |
"/ ^ [:x | x]. |
|
2036 |
! ! |
|
2037 |
||
2038 |
!UserPreferences methodsFor:'accessing-prefs-tools'! |
|
2039 |
||
2040 |
allowSendMailFromDebugger |
|
2041 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
2042 |
mail account " |
|
2043 |
||
2044 |
^ self at:#allowSendMailFromDebugger ifAbsent:true |
|
2045 |
||
2046 |
" |
|
2047 |
UserPreferences current allowSendMailFromDebugger |
|
2048 |
" |
|
2049 |
||
2050 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2051 |
! |
|
2052 |
||
2053 |
allowSendMailFromDebugger:aBoolean |
|
2054 |
"if true inserts a button in Debugger for open a GUI to send useful debugger infos per mail to a default |
|
2055 |
mail account " |
|
2056 |
||
2057 |
^ self at:#allowSendMailFromDebugger put:aBoolean |
|
2058 |
||
2059 |
" |
|
2060 |
UserPreferences current allowSendMailFromDebugger:true |
|
2061 |
UserPreferences current allowSendMailFromDebugger:false |
|
2062 |
" |
|
2063 |
! |
|
2064 |
||
2065 |
autoDefineWorkspaceVariables |
|
2066 |
"return the flag which controls automatic definition of unknown variables |
|
2067 |
as workspace variables (in doIts)" |
|
2068 |
||
9302 | 2069 |
^ self at:#autoDefineWorkspaceVariables ifAbsent:false |
7549 | 2070 |
|
2071 |
" |
|
2072 |
UserPreferences current autoDefineWorkspaceVariables |
|
2073 |
" |
|
2074 |
! |
|
2075 |
||
2076 |
autoDefineWorkspaceVariables:aBoolean |
|
2077 |
"turn on/off automatic definition of unknown variables |
|
2078 |
as workspace variables (in doIts)" |
|
2079 |
||
2080 |
^ self at:#autoDefineWorkspaceVariables put:aBoolean |
|
2081 |
||
2082 |
" |
|
2083 |
UserPreferences current autoDefineWorkspaceVariables:true |
|
2084 |
UserPreferences current autoDefineWorkspaceVariables:false |
|
2085 |
" |
|
2086 |
! |
|
2087 |
||
10540 | 2088 |
autoRaiseDebugger |
2089 |
"if true, the debugger raises itself automatically when entered. |
|
2090 |
The default is true" |
|
2091 |
||
2092 |
^ self at:#autoRaiseDebugger ifAbsent:true |
|
2093 |
||
2094 |
" |
|
2095 |
UserPreferences current autoRaiseDebugger |
|
2096 |
" |
|
2097 |
||
2098 |
"Created: / 15-05-2007 / 13:29:10 / cg" |
|
2099 |
! |
|
2100 |
||
2101 |
autoRaiseDebugger:aBoolean |
|
2102 |
"if true, the debugger raises itself automatically when entered. |
|
2103 |
The default is true" |
|
2104 |
||
2105 |
^ self at:#autoRaiseDebugger put:aBoolean |
|
2106 |
||
2107 |
" |
|
11143 | 2108 |
UserPreferences current autoRaiseDebugger |
10540 | 2109 |
UserPreferences current autoRaiseDebugger:false |
2110 |
UserPreferences current autoRaiseDebugger:true |
|
2111 |
" |
|
2112 |
||
2113 |
"Created: / 15-05-2007 / 13:29:31 / cg" |
|
2114 |
! |
|
2115 |
||
9913
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2116 |
buildDirectory |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2117 |
^ self at:#buildDirectory ifAbsent:nil |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2118 |
! |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2119 |
|
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2120 |
buildDirectory:aFilenameStringOrNil |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2121 |
^ self at:#buildDirectory put:aFilenameStringOrNil |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2122 |
|
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2123 |
" |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2124 |
UserPreferences current buildDirectory |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2125 |
" |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2126 |
! |
b798d50affb3
focus follows mouse default.
Claus Gittinger <cg@exept.de>
parents:
9834
diff
changeset
|
2127 |
|
11419 | 2128 |
editToolbarVisibleInWorkspace |
2129 |
"return the flag which defaults the edit-toolbar-visibility in a workspace application" |
|
2130 |
||
2131 |
^ self at:#editToolbarVisibleInWorkspace ifAbsent:false |
|
2132 |
! |
|
2133 |
||
2134 |
editToolbarVisibleInWorkspace:aBooleanOrNil |
|
2135 |
"set the flag which defaults the edit-toolbar-visibility in a workspace application" |
|
2136 |
||
2137 |
^ self at:#editToolbarVisibleInWorkspace put:aBooleanOrNil |
|
2138 |
! |
|
2139 |
||
7549 | 2140 |
functionKeySequences |
2141 |
"return the collection of function-key macros. |
|
2142 |
Thats a dictionary, which assigns code to F-keys" |
|
2143 |
||
2144 |
^ self at:#functionKeySequences ifAbsentPut:[Dictionary new] |
|
2145 |
||
2146 |
" |
|
2147 |
UserPreferences current functionKeySequences |
|
2148 |
" |
|
2149 |
||
2150 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2151 |
! |
|
2152 |
||
10661 | 2153 |
infoVisibleInWorkspace |
2154 |
"return the flag which defaults the info-visibility in a workspace application" |
|
2155 |
||
2156 |
^ self at:#infoVisibleInWorkspace ifAbsent:false |
|
2157 |
||
2158 |
"Created: / 14-07-2007 / 16:43:37 / cg" |
|
2159 |
! |
|
2160 |
||
2161 |
infoVisibleInWorkspace:aBooleanOrNil |
|
2162 |
"set the flag which defaults the info-visibility in a workspace application" |
|
2163 |
||
2164 |
^ self at:#infoVisibleInWorkspace put:aBooleanOrNil |
|
2165 |
||
2166 |
"Created: / 14-07-2007 / 16:43:44 / cg" |
|
2167 |
! |
|
2168 |
||
10815 | 2169 |
language |
2170 |
"/ intermediate migration code; |
|
2171 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
2172 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
2173 |
"/ for now, forward to smalltalk, while all references to "Smalltalk-language" |
|
2174 |
"/ are replaced with "UserPreferences current language" |
|
2175 |
||
17729
4187f74d2df8
- small improvements in multi-language support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17723
diff
changeset
|
2176 |
^ Language |
10815 | 2177 |
|
2178 |
" |
|
2179 |
UserPreferences current language |
|
2180 |
" |
|
2181 |
||
2182 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
17729
4187f74d2df8
- small improvements in multi-language support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17723
diff
changeset
|
2183 |
"Modified: / 21-08-2009 / 15:36:53 / Jan Vrany <vranyj1@fel.cvut.cz>" |
10815 | 2184 |
! |
2185 |
||
2186 |
languageTerritory |
|
2187 |
"/ intermediate migration code; |
|
2188 |
"/ for now, Smalltalk uses a global language and territory setting; |
|
2189 |
"/ however, for multi-user operation, this must be in a preference-setting. |
|
2190 |
"/ for now, forward to smalltalk, while all references to "Smalltalk-language" |
|
2191 |
"/ are replaced with "UserPreferences current language" |
|
2192 |
||
2193 |
^ Smalltalk languageTerritory |
|
2194 |
||
2195 |
" |
|
2196 |
UserPreferences current languageTerritory |
|
2197 |
" |
|
2198 |
||
2199 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
2200 |
! |
|
2201 |
||
9989 | 2202 |
localBuild |
2203 |
^ self at:#localBuild ifAbsent:false |
|
2204 |
||
2205 |
"Created: / 20-09-2006 / 23:55:01 / cg" |
|
2206 |
! |
|
2207 |
||
2208 |
localBuild:aBoolean |
|
2209 |
^ self at:#localBuild put:aBoolean |
|
2210 |
||
2211 |
" |
|
2212 |
UserPreferences current localBuild |
|
2213 |
" |
|
2214 |
||
2215 |
"Created: / 20-09-2006 / 23:55:26 / cg" |
|
2216 |
! |
|
2217 |
||
7549 | 2218 |
showClockInLauncher |
2219 |
"return the flag which controls if a clock is shown in the launcher" |
|
2220 |
||
9302 | 2221 |
^ self at:#showClockInLauncher ifAbsent:false |
7549 | 2222 |
|
2223 |
" |
|
2224 |
UserPreferences current showClockInLauncher |
|
2225 |
" |
|
2226 |
||
2227 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
2228 |
! |
|
2229 |
||
2230 |
showClockInLauncher:aBooleanOrNil |
|
2231 |
"set/clear the flag which controls if a clock is shown in the launcher" |
|
2232 |
||
2233 |
^ self at:#showClockInLauncher put:aBooleanOrNil |
|
2234 |
||
2235 |
" |
|
2236 |
UserPreferences current showClockInLauncher:false. |
|
11143 | 2237 |
NewLauncher open. |
7549 | 2238 |
|
2239 |
UserPreferences current showClockInLauncher:true. |
|
11143 | 2240 |
NewLauncher open. |
7549 | 2241 |
" |
2242 |
||
2243 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
7624 | 2244 |
! |
2245 |
||
10661 | 2246 |
toolbarVisibleInWorkspace |
2247 |
"return the flag which defaults the toolbar-visibility in a workspace application" |
|
2248 |
||
10665
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
2249 |
^ self at:#toolbarVisibleInWorkspace ifAbsent:true |
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
2250 |
|
fd0702c99a8b
toolbarVisibleInWorkspace default
Claus Gittinger <cg@exept.de>
parents:
10661
diff
changeset
|
2251 |
"Modified: / 18-07-2007 / 08:55:44 / cg" |
10661 | 2252 |
! |
2253 |
||
2254 |
toolbarVisibleInWorkspace:aBooleanOrNil |
|
2255 |
"set the flag which defaults the toolbar-visibility in a workspace application" |
|
2256 |
||
2257 |
^ self at:#toolbarVisibleInWorkspace put:aBooleanOrNil |
|
2258 |
||
2259 |
"Created: / 14-07-2007 / 16:42:09 / cg" |
|
2260 |
! |
|
2261 |
||
11024 | 2262 |
useNewLayoutInDebugger |
2263 |
^ self at:#useNewLayoutInDebugger ifAbsent:true |
|
2264 |
||
2265 |
" |
|
2266 |
UserPreferences current useNewLayoutInDebugger |
|
2267 |
" |
|
2268 |
! |
|
2269 |
||
2270 |
useNewLayoutInDebugger:aBoolean |
|
2271 |
^ self at:#useNewLayoutInDebugger put:aBoolean |
|
2272 |
! |
|
2273 |
||
7624 | 2274 |
useRefactoringSupport |
2275 |
"return the flag which enables/disables use of refactoring package in browser. |
|
2276 |
If enabled, this enables all kinds of refactorings, better search and undo features. |
|
2277 |
There is usually no reason to disable these." |
|
2278 |
||
9302 | 2279 |
^ self at:#useRefactoringSupport ifAbsent:true |
7624 | 2280 |
! |
2281 |
||
2282 |
useRefactoringSupport:aBooleanOrNil |
|
2283 |
"enable/disable use of refactoring package in browser. |
|
2284 |
If enabled, this enables all kinds of refactorings, better search and undo features. |
|
2285 |
There is usually no reason to disable these." |
|
2286 |
||
2287 |
^ self at:#useRefactoringSupport put:aBooleanOrNil |
|
7625 | 2288 |
|
2289 |
" |
|
2290 |
UserPreferences current useRefactoringSupport:false |
|
2291 |
UserPreferences current useRefactoringSupport:true |
|
2292 |
" |
|
11024 | 2293 |
! |
2294 |
||
2295 |
verboseBacktraceInDebugger |
|
2296 |
^ self at:#verboseBacktraceInDebugger ifAbsent:true |
|
2297 |
||
2298 |
" |
|
2299 |
UserPreferences current verboseBacktraceInDebugger |
|
2300 |
" |
|
2301 |
! |
|
2302 |
||
2303 |
verboseBacktraceInDebugger:aBoolean |
|
2304 |
^ self at:#verboseBacktraceInDebugger put:aBoolean |
|
7549 | 2305 |
! ! |
2306 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2307 |
!UserPreferences methodsFor:'default settings'! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2308 |
|
6169 | 2309 |
listOfPredefinedSyntaxColoringSchemes |
6171 | 2310 |
"return a list of pre-defined syntax highlightning styles |
2311 |
(as shown in the Launchers 'source and debugger settings' dialog." |
|
2312 |
||
2313 |
^ #( |
|
11672 | 2314 |
(#resetSyntaxColors 'default') |
2315 |
(#resetSyntaxColorsToVCStyle 'green comments; blue controlFlow, red constants [visual-c style]') |
|
2316 |
(#resetSyntaxColorsBlueControlFlowSelectors 'blue controlFlow') |
|
2317 |
(#resetSyntaxColorsGreenComments 'green comments') |
|
2318 |
(#resetSyntaxColorsGreenCommentsBlueControlFlowSelectors 'green comments; blue controlFlow') |
|
2319 |
(#resetSyntaxColorsBlueSelectorsGreenComments 'blue selectors; green comments [dolphin style]') |
|
2320 |
(#resetSyntaxColorsBlueSelectorsGreyComments 'blue selectors; grey comments') |
|
2321 |
(#resetSyntaxColorsToSqueakStyle 'blue selectors; green comments [squeak style]') |
|
2322 |
(#resetSyntaxColorsAllBlackExceptBadIDs 'no colors, but highlight errors') |
|
2323 |
(#resetSyntaxColorsToVW7Style 'light blue comments [vw7 style]') |
|
6171 | 2324 |
) |
9834 | 2325 |
|
2326 |
"Modified: / 08-09-2006 / 16:11:34 / cg" |
|
6169 | 2327 |
! |
2328 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2329 |
resetSyntaxColors |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2330 |
"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
|
2331 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2332 |
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
|
2333 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2334 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2335 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2336 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2337 |
resetSyntaxColorsAllBlackExceptBadIDs |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2338 |
"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
|
2339 |
except for bad identifiers, which are underwaved." |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2340 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2341 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
8551 | 2342 |
self at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
2343 |
self at:#errorColor put:Color black. |
|
2344 |
self at:#commentColor put:Color black. |
|
2345 |
self at:#constantColor put:Color black. |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2346 |
self at:#methodSelectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2347 |
self at:#selectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2348 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2349 |
|
9834 | 2350 |
resetSyntaxColorsBlueControlFlowSelectors |
2351 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2352 |
(with blue control flow selectors)" |
|
2353 |
||
2354 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2355 |
self at:#controlFlowSelectorColor put:(Color blue). |
|
2356 |
||
2357 |
"Created: / 08-09-2006 / 16:11:52 / cg" |
|
2358 |
! |
|
2359 |
||
6171 | 2360 |
resetSyntaxColorsBlueSelectorsGreenComments |
2361 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2362 |
(with blue selectors and green comments)" |
|
2363 |
||
2364 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
8551 | 2365 |
self at:#commentColor put:(Color green darkened). |
2366 |
self at:#commentEmphasis put:#italic. |
|
2367 |
self at:#selectorColor put:(Color blue). |
|
2368 |
self at:#selectorEmphasis put:#normal. |
|
2369 |
self at:#methodSelectorColor put:(Color blue). |
|
6171 | 2370 |
self at:#methodSelectorEmphasis put:#bold. |
2371 |
! |
|
2372 |
||
2373 |
resetSyntaxColorsBlueSelectorsGreyComments |
|
6169 | 2374 |
"resets the colors in the CurrentPreferences to alternative default values |
2375 |
(with blue selectors and grey comments)" |
|
2376 |
||
6171 | 2377 |
self resetSyntaxColorsBlueSelectorsGreenComments. |
2378 |
self at:#commentColor put:(Color gray). |
|
6169 | 2379 |
! |
2380 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2381 |
resetSyntaxColorsGreenComments |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2382 |
"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
|
2383 |
(with green comments)" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2384 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2385 |
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
|
2386 |
self at:#commentColor put:(Color green darkened). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2387 |
|
9144 | 2388 |
! |
2389 |
||
9834 | 2390 |
resetSyntaxColorsGreenCommentsBlueControlFlowSelectors |
2391 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2392 |
(with green comments, blue control flow)" |
|
2393 |
||
2394 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2395 |
self at:#commentColor put:(Color green darkened). |
|
2396 |
self at:#controlFlowSelectorColor put:(Color blue). |
|
2397 |
||
2398 |
"Created: / 08-09-2006 / 16:10:38 / cg" |
|
2399 |
! |
|
2400 |
||
9144 | 2401 |
resetSyntaxColorsToSqueakStyle |
2402 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2403 |
(with blue selectors and green comments)" |
|
2404 |
||
2405 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2406 |
self at:#commentColor put:(Color green darkened). |
|
2407 |
self at:#commentEmphasis put:#italic. |
|
2408 |
self at:#selectorColor put:(Color blue:80). |
|
2409 |
self at:#selectorEmphasis put:#normal. |
|
2410 |
self at:#methodSelectorColor put:(Color black). |
|
2411 |
self at:#methodSelectorEmphasis put:#bold. |
|
2412 |
self at:#globalIdentifierEmphasis put:#bold. |
|
2413 |
self at:#localIdentifierColor put:(Color grey:40). |
|
2414 |
self at:#instVarIdentifierEmphasis put:#bold. |
|
2415 |
self at:#constantColor put:(Color red:67). |
|
9184 | 2416 |
! |
2417 |
||
11672 | 2418 |
resetSyntaxColorsToVCStyle |
2419 |
"resets the colors in the CurrentPreferences to visual C default style |
|
2420 |
(green comments, blue keywords, redish string constants)" |
|
2421 |
||
2422 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2423 |
self at:#controlFlowSelectorColor put:(Color blue). |
|
2424 |
self at:#commentColor put:(Color green darkened). |
|
2425 |
self at:#constantColor put:(Color red:64 green:8 blue:8). |
|
2426 |
! |
|
2427 |
||
9184 | 2428 |
resetSyntaxColorsToVW7Style |
2429 |
"resets the colors in the CurrentPreferences to alternative default values |
|
2430 |
(with light blue comments, green variables)" |
|
2431 |
||
2432 |
self class syntaxColorKeys do:[:k | self removeKey:k ifAbsent:nil]. |
|
2433 |
self at:#commentColor put:(Color blue lightened). |
|
2434 |
self at:#selectorColor put:(Color black). |
|
2435 |
self at:#selectorEmphasis put:#normal. |
|
2436 |
self at:#methodSelectorColor put:(Color black). |
|
2437 |
self at:#methodSelectorEmphasis put:#bold. |
|
2438 |
self at:#identifierEmphasis put:#normal. |
|
2439 |
self at:#identifierColor put:(Color green darkened). |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2440 |
! ! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
2441 |
|
7266 | 2442 |
!UserPreferences methodsFor:'default values'! |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2443 |
|
4583 | 2444 |
defaultValue |
2445 |
"the defaultValue for non-existing keys" |
|
2446 |
||
2447 |
^ false |
|
2448 |
! |
|
2449 |
||
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2450 |
errorKeyNotFound:aKey |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2451 |
"for any non-existing key, false is returned" |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2452 |
|
4583 | 2453 |
^ self defaultValue |
4582
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2454 |
! ! |
31cbce168a1d
return false for nonexisting keys
Claus Gittinger <cg@exept.de>
parents:
4580
diff
changeset
|
2455 |
|
10789 | 2456 |
!UserPreferences methodsFor:'misc'! |
2457 |
||
2458 |
flyByHelpSettingChanged |
|
2459 |
FlyByHelp notNil ifTrue:[ |
|
11143 | 2460 |
(CurrentPreferences at:#flyByHelpActive) ifTrue:[ |
2461 |
FlyByHelp start. |
|
2462 |
] ifFalse:[ |
|
2463 |
FlyByHelp stop. |
|
2464 |
]. |
|
10789 | 2465 |
]. |
2466 |
! ! |
|
2467 |
||
6937 | 2468 |
!UserPreferences methodsFor:'obsolete'! |
2469 |
||
2470 |
useNewSettinsApplication |
|
11598 | 2471 |
<resource: #obsolete> |
8545 | 2472 |
"obsolete - will be removed in next release. |
2473 |
(this is kept for a while, as it may have found its way into some |
|
2474 |
saved user preference files)" |
|
6937 | 2475 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
2476 |
self obsoleteMethodWarning. |
7029 | 2477 |
^ self useNewSettingsApplication |
6937 | 2478 |
! |
2479 |
||
2480 |
useNewSettinsApplication:aBoolean |
|
11598 | 2481 |
<resource: #obsolete> |
7030 | 2482 |
"obsolete - will be removed in next release" |
6937 | 2483 |
|
6941
1700d0c53837
make old to settings changed settins methods obsolete
penk
parents:
6937
diff
changeset
|
2484 |
self obsoleteMethodWarning. |
7029 | 2485 |
self useNewSettingsApplication:aBoolean. |
6937 | 2486 |
! ! |
2487 |
||
7028 | 2488 |
!UserPreferences methodsFor:'saving'! |
2489 |
||
2490 |
saveIn:fileName |
|
2491 |
self class saveSettings:self in:fileName |
|
2492 |
! ! |
|
2493 |
||
3347 | 2494 |
!UserPreferences class methodsFor:'documentation'! |
2495 |
||
2496 |
version |
|
17729
4187f74d2df8
- small improvements in multi-language support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17723
diff
changeset
|
2497 |
^ '$Id: UserPreferences.st 10468 2009-08-22 08:34:50Z vranyj1 $' |
3347 | 2498 |
! ! |