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