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