author | Claus Gittinger <cg@exept.de> |
Wed, 07 Jul 1999 14:17:45 +0200 | |
changeset 4342 | f2bbfcd2f072 |
parent 4341 | eb862eba0a0b |
child 4343 | f8a422affe17 |
permissions | -rw-r--r-- |
3347 | 1 |
" |
2 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
3 |
All Rights Reserved |
|
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 |
" |
|
12 |
||
13 |
||
14 |
IdentityDictionary subclass:#UserPreferences |
|
15 |
instanceVariableNames:'' |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
16 |
classVariableNames:'CurrentPreferences DefaultPreferences' |
3347 | 17 |
poolDictionaries:'' |
18 |
category:'System-Support' |
|
19 |
! |
|
20 |
||
21 |
!UserPreferences class methodsFor:'documentation'! |
|
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
26 |
All Rights Reserved |
|
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 |
" |
|
3353 | 40 |
Not yet finished. |
41 |
||
3359 | 42 |
This will eventually keep track of ALL user preferences. |
43 |
(which are currently spread over the system). |
|
44 |
For now, only a few preferences are found here - but this |
|
45 |
will change over time. |
|
3347 | 46 |
" |
47 |
! ! |
|
48 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
49 |
!UserPreferences class methodsFor:'initialization'! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
50 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
51 |
initialize |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
52 |
DefaultPreferences := self new. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
53 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
54 |
#( |
4341 | 55 |
#errorColor (Color red) |
56 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
57 |
#useNewChangesBrowser false |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
58 |
#useNewInspector false |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
59 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
60 |
#syntaxColoring true |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
61 |
#fullSelectorCheck false |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
62 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
63 |
#defaultSyntaxColor (Color black) |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
64 |
#defaultSyntaxEmphasis normal |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
65 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
66 |
#commentColor (Color 12.5 12.5 100) |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
67 |
#commentEmphasis italic |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
68 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
69 |
#methodSelectorEmphasis bold |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
70 |
#selectorEmphasis bold |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
71 |
#unimplementedSelectorColor (Color red) |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
72 |
#unimplementedSelectorEmphasis normal |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
73 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
74 |
"/ I prefer red-underwave over red identifier ... |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
75 |
"/ #badIdentifierColor (Color red) |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
76 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
77 |
#constantColor (Color 25 0 0) |
4330
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
78 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
79 |
#showClockInLauncher true |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
80 |
) pairWiseDo:[:k :v | |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
81 |
DefaultPreferences at:k put:v decodeAsLiteralArray. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
82 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
83 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
84 |
"/ I prefer red-underwave over red identifier ... |
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
85 |
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
|
86 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
87 |
" |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
88 |
self initialize |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
89 |
" |
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
90 |
|
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
91 |
"Modified: / 7.7.1999 / 00:32:58 / cg" |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
92 |
! ! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
93 |
|
3347 | 94 |
!UserPreferences class methodsFor:'accessing'! |
95 |
||
96 |
current |
|
97 |
CurrentPreferences isNil ifTrue:[ |
|
4330
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
98 |
CurrentPreferences := self new. |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
99 |
CurrentPreferences declareAllFrom:DefaultPreferences. |
3347 | 100 |
]. |
101 |
^ CurrentPreferences. |
|
102 |
||
103 |
"Created: / 31.3.1998 / 13:43:03 / cg" |
|
3364 | 104 |
! |
105 |
||
4318 | 106 |
default |
107 |
^ DefaultPreferences. |
|
108 |
||
109 |
! |
|
110 |
||
3364 | 111 |
reset |
112 |
"resets the CurrentPreferences to its default values" |
|
113 |
||
114 |
CurrentPreferences := nil |
|
115 |
! |
|
116 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
117 |
syntaxColorKeys |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
118 |
"returns the keys of syntax color items" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
119 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
120 |
^#( |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
121 |
argumentIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
122 |
argumentIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
123 |
booleanConstantColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
124 |
booleanConstantEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
125 |
bracketColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
126 |
bracketEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
127 |
classVariableIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
128 |
classVariableIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
129 |
constantColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
130 |
constantEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
131 |
commentColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
132 |
commentEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
133 |
defaultSyntaxColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
134 |
defaultSyntaxEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
135 |
errorColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
136 |
globalIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
137 |
globalIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
138 |
globalClassIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
139 |
globalClassIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
140 |
hereColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
141 |
hereEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
142 |
identifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
143 |
identifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
144 |
instVarIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
145 |
instVarIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
146 |
localIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
147 |
localIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
148 |
methodSelectorColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
149 |
methodSelectorEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
150 |
returnColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
151 |
returnEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
152 |
selectorColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
153 |
selectorEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
154 |
selfColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
155 |
selfEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
156 |
stringColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
157 |
stringEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
158 |
superColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
159 |
superEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
160 |
symbolColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
161 |
symbolEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
162 |
thisContextColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
163 |
thisContextEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
164 |
unknownIdentifierColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
165 |
unknownIdentifierEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
166 |
unimplementedSelectorColor |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
167 |
unimplementedSelectorEmphasis |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
168 |
) |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
169 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
170 |
"Modified: / 5.1.1980 / 00:48:09 / cg" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
171 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
172 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
173 |
syntaxColorNames |
3364 | 174 |
"returns the syntax colors for the settings in the launcher" |
175 |
||
4319 | 176 |
"/ warning, the strings below are presented to the user |
177 |
"/ as the syntax-color boxes comboList - however, they are |
|
178 |
"/ also used (without separators) as key into myself. |
|
179 |
"/ Therefore, do not change the strings below. |
|
180 |
"/ I know - this is bad coding .... |
|
181 |
||
3364 | 182 |
^#( |
183 |
'Argument Identifier Color' |
|
184 |
'Boolean Constant Color' |
|
185 |
'Bracket Color' |
|
4320 | 186 |
'Class Variable Identifier Color' |
3364 | 187 |
'Constant Color' |
188 |
'Comment Color' |
|
189 |
'Global Identifier Color' |
|
4024
3a223c79e41c
added extra globalClassIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4023
diff
changeset
|
190 |
'Global Class Identifier Color' |
3364 | 191 |
'Here Color' |
192 |
'Identifier Color' |
|
3377 | 193 |
'InstVar Identifier Color' |
3364 | 194 |
'Local Identifier Color' |
195 |
'Method Selector Color' |
|
4076 | 196 |
'Return Color' |
3364 | 197 |
'Selector Color' |
198 |
'Self Color' |
|
199 |
'String Color' |
|
200 |
'Super Color' |
|
201 |
'Symbol Color' |
|
202 |
'This Context Color' |
|
203 |
'Unknown Identifier Color' |
|
4319 | 204 |
'Unimplemented Selector Color' |
3377 | 205 |
) |
3364 | 206 |
|
4076 | 207 |
"Modified: / 5.1.1980 / 00:48:09 / cg" |
3347 | 208 |
! ! |
209 |
||
3883 | 210 |
!UserPreferences methodsFor:'accessing - pref''d tools'! |
211 |
||
212 |
changesBrowserClass |
|
213 |
self useNewChangesBrowser ifTrue:[ |
|
214 |
^ NewChangesBrowser |
|
215 |
]. |
|
216 |
^ ChangesBrowser |
|
217 |
||
218 |
"Created: / 17.10.1998 / 14:37:46 / cg" |
|
219 |
! ! |
|
220 |
||
3360 | 221 |
!UserPreferences methodsFor:'accessing - prefs'! |
3358 | 222 |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
223 |
focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
224 |
"return the flag which controls if the keyboard focus should |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
225 |
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
|
226 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
227 |
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
|
228 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
229 |
^ self at:#focusFollowsMouse ifAbsent:nil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
230 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
231 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
232 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
233 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
234 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
235 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
236 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
237 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
238 |
focusFollowsMouse:aBooleanOrNil |
4121 | 239 |
"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
|
240 |
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
|
241 |
This only affects certain widgets (EditFields, EditTextViews and SelectionInListViews). |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
242 |
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
|
243 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
244 |
^ self at:#focusFollowsMouse put:aBooleanOrNil |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
245 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
246 |
" |
4121 | 247 |
UserPreferences current focusFollowsMouse:true |
248 |
UserPreferences current focusFollowsMouse:false |
|
4075
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
249 |
UserPreferences current focusFollowsMouse |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
250 |
" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
251 |
|
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
252 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
253 |
! |
816898d4922c
added #focusFollowsMouse setting
Claus Gittinger <cg@exept.de>
parents:
4024
diff
changeset
|
254 |
|
4330
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
255 |
showClockInLauncher |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
256 |
"return the flag which controls if a clock is shown in the launcher" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
257 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
258 |
^ self at:#showClockInLauncher ifAbsentPut:false |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
259 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
260 |
" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
261 |
UserPreferences current showClockInLauncher |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
262 |
" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
263 |
|
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
264 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
265 |
! |
a90c5a801fdf
added #showClockInLauncher setting
Claus Gittinger <cg@exept.de>
parents:
4327
diff
changeset
|
266 |
|
4331 | 267 |
showClockInLauncher:aBooleanOrNil |
268 |
"set/clear the flag which controls if a clock is shown in the launcher" |
|
269 |
||
270 |
^ self at:#showClockInLauncher put:aBooleanOrNil |
|
271 |
||
272 |
" |
|
273 |
UserPreferences current showClockInLauncher:false. |
|
274 |
NewLauncher open. |
|
275 |
||
276 |
UserPreferences current showClockInLauncher:true. |
|
277 |
NewLauncher open. |
|
278 |
" |
|
279 |
||
280 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
|
281 |
! |
|
282 |
||
3347 | 283 |
syntaxColoring |
3360 | 284 |
"return the flag which controls syntax coloring (in the browsers)" |
285 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
286 |
^ self at:#syntaxColoring ifAbsentPut:true |
3347 | 287 |
|
288 |
" |
|
289 |
UserPreferences current syntaxColoring |
|
290 |
" |
|
291 |
||
3827
d3dd75b5ced3
syntax coloring is on by default;
Claus Gittinger <cg@exept.de>
parents:
3409
diff
changeset
|
292 |
"Modified: / 11.9.1998 / 00:09:59 / cg" |
3347 | 293 |
! |
294 |
||
295 |
syntaxColoring:aBoolean |
|
3360 | 296 |
"turn on/off syntaxColoring (in the browsers)." |
297 |
||
3347 | 298 |
^ self at:#syntaxColoring put:aBoolean |
299 |
||
3357 | 300 |
" |
301 |
UserPreferences current syntaxColoring:true |
|
302 |
UserPreferences current syntaxColoring:false |
|
303 |
" |
|
304 |
||
3347 | 305 |
"Created: / 31.3.1998 / 13:44:00 / cg" |
3360 | 306 |
"Modified: / 1.4.1998 / 13:23:03 / cg" |
3409 | 307 |
! |
308 |
||
3875
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
309 |
useNewChangesBrowser |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
310 |
"using new or old change browser" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
311 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
312 |
^ self at:#useNewChangesBrowser ifAbsentPut:false |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
313 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
314 |
"Modified: / 13.10.1998 / 15:53:05 / cg" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
315 |
! |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
316 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
317 |
useNewChangesBrowser:aBoolean |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
318 |
"using new or old changeBrowser" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
319 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
320 |
^ self at:#useNewChangesBrowser put:aBoolean |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
321 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
322 |
" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
323 |
UserPreferences current useNewChangesBrowser |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
324 |
" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
325 |
|
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
326 |
"Modified: / 13.10.1998 / 15:53:21 / cg" |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
327 |
! |
21eb7c2e8d50
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
3835
diff
changeset
|
328 |
|
3409 | 329 |
useNewInspector |
330 |
"using new or old inspector" |
|
331 |
||
332 |
^ self at:#useNewInspector ifAbsentPut:false |
|
3883 | 333 |
|
334 |
" |
|
335 |
UserPreferences current useNewInspector |
|
336 |
" |
|
337 |
||
338 |
"Modified: / 17.10.1998 / 14:45:12 / cg" |
|
3409 | 339 |
! |
340 |
||
341 |
useNewInspector:aBoolean |
|
342 |
"using new or old inspector" |
|
343 |
||
344 |
^ self at:#useNewInspector put:aBoolean |
|
345 |
||
346 |
" |
|
347 |
UserPreferences current useNewInspector |
|
348 |
" |
|
3360 | 349 |
! ! |
350 |
||
351 |
!UserPreferences methodsFor:'accessing - syntaxColoring prefs'! |
|
352 |
||
353 |
argumentIdentifierColor |
|
354 |
"the color used for argument identifiers; |
|
355 |
If syntaxColoring is turned on." |
|
356 |
||
357 |
^ self at:#argumentIdentifierColor ifAbsentPut:[self identifierColor] |
|
358 |
||
359 |
"Created: / 31.3.1998 / 15:08:20 / cg" |
|
360 |
"Modified: / 1.4.1998 / 13:19:58 / cg" |
|
361 |
! |
|
362 |
||
363 |
argumentIdentifierEmphasis |
|
364 |
"the emphasis used for argument identifiers; |
|
365 |
If syntaxColoring is turned on." |
|
366 |
||
367 |
^ self at:#argumentIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
368 |
||
369 |
"Created: / 31.3.1998 / 15:16:40 / cg" |
|
370 |
"Modified: / 1.4.1998 / 13:19:55 / cg" |
|
371 |
! |
|
372 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
373 |
badIdentifierColor |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
374 |
"the color used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
375 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
376 |
|
4336 | 377 |
^ self at:#badIdentifierColor ifAbsentPut:[self identifierColor] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
378 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
379 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
380 |
|
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
381 |
badIdentifierEmphasis |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
382 |
"the emphasis used for illegal identifiers; |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
383 |
If syntaxColoring is turned on." |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
384 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
385 |
^ self at:#badIdentifierEmphasis ifAbsentPut:[DefaultPreferences at:#badIdentifierEmphasis] |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
386 |
|
4335
b301d2c92490
underwave red for bad identifiers
Claus Gittinger <cg@exept.de>
parents:
4331
diff
changeset
|
387 |
"Modified: / 7.7.1999 / 00:30:00 / cg" |
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
388 |
! |
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
389 |
|
3360 | 390 |
booleanConstantColor |
391 |
"the color used for boolean constants; |
|
392 |
If syntaxColoring is turned on." |
|
393 |
||
394 |
^ self at:#booleanConstantColor ifAbsentPut:[self constantColor] |
|
395 |
||
396 |
"Created: / 31.3.1998 / 18:12:06 / cg" |
|
397 |
"Modified: / 1.4.1998 / 13:20:07 / cg" |
|
398 |
! |
|
399 |
||
400 |
booleanConstantEmphasis |
|
401 |
"the emphasis used for boolean constants; |
|
402 |
If syntaxColoring is turned on." |
|
403 |
||
404 |
^ self at:#booleanConstantEmphasis ifAbsentPut:[self constantEmphasis] |
|
405 |
||
406 |
"Created: / 31.3.1998 / 18:12:46 / cg" |
|
407 |
"Modified: / 1.4.1998 / 13:26:01 / cg" |
|
408 |
! |
|
409 |
||
3361 | 410 |
bracketColor |
411 |
"the color used for brackets; |
|
412 |
If syntaxColoring is turned on." |
|
413 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
414 |
^ self at:#bracketColor ifAbsentPut:[self defaultSyntaxColor] |
3361 | 415 |
|
416 |
" |
|
417 |
self current at:#bracketColor put:Color red. |
|
418 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
419 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
420 |
self current bracketColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
421 |
self current bracketEmphasis |
3361 | 422 |
" |
423 |
||
424 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
425 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
426 |
! |
|
427 |
||
428 |
bracketEmphasis |
|
429 |
"the emphasis used for brackets; |
|
430 |
If syntaxColoring is turned on." |
|
431 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
432 |
^ self at:#bracketEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3361 | 433 |
|
434 |
" |
|
435 |
self current at:#bracketEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
436 |
self current bracketEmphasis |
3361 | 437 |
" |
438 |
||
439 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
|
440 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
|
441 |
! |
|
442 |
||
4320 | 443 |
classVariableIdentifierColor |
444 |
"the color used for classVar/classInstVar identifiers |
|
445 |
If syntaxColoring is turned on." |
|
446 |
||
447 |
^ self at:#classVariableIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
448 |
||
449 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
450 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
451 |
! |
|
452 |
||
453 |
classVariableIdentifierEmphasis |
|
454 |
"the color used for classVar/classInstVar identifiers |
|
455 |
If syntaxColoring is turned on." |
|
456 |
||
457 |
^ self at:#classVariableIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
458 |
||
459 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
460 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
461 |
! |
|
462 |
||
3360 | 463 |
commentColor |
464 |
"the color used for comments; |
|
465 |
If syntaxColoring is turned on." |
|
466 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
467 |
^ self at:#commentColor ifAbsentPut:[DefaultPreferences at:#commentColor] |
3360 | 468 |
|
469 |
"Created: / 31.3.1998 / 15:10:23 / cg" |
|
3832 | 470 |
"Modified: / 11.9.1998 / 19:24:04 / cg" |
3360 | 471 |
! |
472 |
||
473 |
commentEmphasis |
|
474 |
"the emphasis used for comments; |
|
475 |
If syntaxColoring is turned on." |
|
476 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
477 |
^ self at:#commentEmphasis ifAbsentPut:[DefaultPreferences at:#commentEmphasis] |
3360 | 478 |
|
479 |
"Created: / 31.3.1998 / 15:09:59 / cg" |
|
480 |
"Modified: / 1.4.1998 / 13:25:53 / cg" |
|
481 |
! |
|
482 |
||
483 |
constantColor |
|
484 |
"the color used for constants; |
|
485 |
If syntaxColoring is turned on." |
|
486 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
487 |
^ self at:#constantColor ifAbsentPut:[DefaultPreferences at:#constantColor] |
3360 | 488 |
|
489 |
"Created: / 31.3.1998 / 18:13:15 / cg" |
|
490 |
"Modified: / 1.4.1998 / 13:20:37 / cg" |
|
491 |
! |
|
492 |
||
493 |
constantEmphasis |
|
494 |
"the emphasis used for constants; |
|
495 |
If syntaxColoring is turned on." |
|
496 |
||
497 |
^ self at:#constantEmphasis ifAbsentPut:[self identifierEmphasis] |
|
498 |
||
499 |
"Created: / 31.3.1998 / 18:13:23 / cg" |
|
500 |
"Modified: / 1.4.1998 / 13:25:43 / cg" |
|
501 |
! |
|
502 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
503 |
defaultSyntaxColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
504 |
"the color used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
505 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
506 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
507 |
^ self at:#defaultSyntaxColor ifAbsentPut:[DefaultPreferences at:#defaultSyntaxColor] |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
508 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
509 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
510 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
511 |
defaultSyntaxEmphasis |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
512 |
"the emphasis used for anything else; |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
513 |
If syntaxColoring is turned on." |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
514 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
515 |
^ self at:#defaultSyntaxEmphasis ifAbsentPut:[DefaultPreferences at:#defaultSyntaxEmphasis] |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
516 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
517 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
518 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
519 |
doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
520 |
|k| |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
521 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
522 |
k := aMessage selector. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
523 |
(self includesKey:k) ifTrue:[ |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
524 |
^ self at:k |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
525 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
526 |
(DefaultPreferences includesKey:k) ifTrue:[ |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
527 |
^ DefaultPreferences at:k |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
528 |
]. |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
529 |
^ super doesNotUnderstand:aMessage |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
530 |
! |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
531 |
|
4341 | 532 |
errorColor |
533 |
"the color used for illegal identifiers; |
|
534 |
If syntaxColoring is turned on." |
|
535 |
||
536 |
^ self at:#errorColor ifAbsentPut:[DefaultPreferences at:#errorColor] |
|
537 |
||
538 |
! |
|
539 |
||
4306 | 540 |
fullSelectorCheck |
541 |
"with fullSelector check, selectors are searched immediately for |
|
542 |
being implemented in the system. This may not be useful on slow machines" |
|
543 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
544 |
^ self at:#fullSelectorCheck ifAbsentPut:[DefaultPreferences at:#fullSelectorCheck] |
4306 | 545 |
|
546 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
547 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
548 |
! |
|
549 |
||
4023 | 550 |
globalClassIdentifierColor |
551 |
"the color used for global identifiers which are known to be classes; |
|
552 |
If syntaxColoring is turned on." |
|
553 |
||
554 |
^ self at:#globalClassIdentifierColor ifAbsentPut:[self globalIdentifierColor] |
|
555 |
||
556 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
557 |
"Created: / 4.3.1999 / 12:50:31 / cg" |
|
558 |
! |
|
559 |
||
560 |
globalClassIdentifierEmphasis |
|
561 |
"the emphasis used for global variable identifiers which are known to be classes; |
|
562 |
If syntaxColoring is turned on." |
|
563 |
||
564 |
^ self at:#globalClassIdentifierEmphasis ifAbsentPut:[self globalIdentifierEmphasis] |
|
565 |
||
566 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
567 |
"Created: / 4.3.1999 / 12:51:00 / cg" |
|
568 |
! |
|
569 |
||
3360 | 570 |
globalIdentifierColor |
571 |
"the color used for global identifiers; |
|
572 |
If syntaxColoring is turned on." |
|
573 |
||
574 |
^ self at:#globalIdentifierColor ifAbsentPut:[self identifierColor] |
|
575 |
||
576 |
"Created: / 31.3.1998 / 15:18:49 / cg" |
|
577 |
"Modified: / 1.4.1998 / 13:20:47 / cg" |
|
578 |
! |
|
579 |
||
580 |
globalIdentifierEmphasis |
|
581 |
"the emphasis used for global variable identifiers; |
|
582 |
If syntaxColoring is turned on." |
|
583 |
||
584 |
^ self at:#globalIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
585 |
||
586 |
"Created: / 31.3.1998 / 15:18:29 / cg" |
|
587 |
"Modified: / 1.4.1998 / 13:25:31 / cg" |
|
588 |
! |
|
589 |
||
590 |
hereColor |
|
591 |
"the color used for the here pseudoVariable; |
|
592 |
If syntaxColoring is turned on." |
|
593 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
594 |
^ self at:#hereColor ifAbsentPut:[self selfColor] |
3360 | 595 |
|
596 |
"Created: / 31.3.1998 / 17:38:09 / cg" |
|
597 |
"Modified: / 1.4.1998 / 13:20:57 / cg" |
|
598 |
! |
|
599 |
||
600 |
hereEmphasis |
|
601 |
"the emphasis used for the hre special variable; |
|
602 |
If syntaxColoring is turned on." |
|
603 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
604 |
^ self at:#hereEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 605 |
|
606 |
"Created: / 31.3.1998 / 17:35:13 / cg" |
|
607 |
"Modified: / 1.4.1998 / 13:25:17 / cg" |
|
608 |
! |
|
609 |
||
610 |
identifierColor |
|
611 |
"the color used for other identifiers; |
|
612 |
If syntaxColoring is turned on." |
|
613 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
614 |
^ self at:#identifierColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 615 |
|
3362 | 616 |
" |
617 |
UserPreferences current at:#identifierColor put:Color green darkened darkened. |
|
618 |
UserPreferences current at:#identifierColor put:Color black. |
|
619 |
" |
|
620 |
||
3360 | 621 |
"Created: / 31.3.1998 / 17:35:55 / cg" |
3362 | 622 |
"Modified: / 2.4.1998 / 10:39:42 / cg" |
3360 | 623 |
! |
624 |
||
625 |
identifierEmphasis |
|
626 |
"the emphasis used for other identifiers; |
|
627 |
If syntaxColoring is turned on." |
|
628 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
629 |
^ self at:#identifierEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
3360 | 630 |
|
631 |
"Created: / 31.3.1998 / 15:09:41 / cg" |
|
632 |
"Modified: / 1.4.1998 / 13:25:06 / cg" |
|
633 |
! |
|
634 |
||
3378 | 635 |
instVarIdentifierColor |
3377 | 636 |
"the color used for instance variable identifiers; |
637 |
If syntaxColoring is turned on." |
|
638 |
||
3378 | 639 |
^ self at:#instVarIdentifierColor ifAbsentPut:[self identifierColor] |
3377 | 640 |
|
641 |
" |
|
3378 | 642 |
UserPreferences current at:#instVarIdentifierColor put:Color green darkened. |
643 |
UserPreferences current at:#instVarIdentifierColor put:Color black. |
|
644 |
UserPreferences current instVarIdentifierColor |
|
3377 | 645 |
" |
646 |
||
647 |
"Created: / 16.4.1998 / 18:31:29 / cg" |
|
3378 | 648 |
"Modified: / 16.4.1998 / 18:57:06 / cg" |
3377 | 649 |
! |
650 |
||
3378 | 651 |
instVarIdentifierEmphasis |
3377 | 652 |
"the emphais used for instance variable identifiers; |
653 |
If syntaxColoring is turned on." |
|
654 |
||
3378 | 655 |
^ self at:#instVarIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
3377 | 656 |
|
657 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
3378 | 658 |
"Created: / 16.4.1998 / 18:40:05 / cg" |
3377 | 659 |
! |
660 |
||
3360 | 661 |
localIdentifierColor |
662 |
"the color used for local variable identifiers; |
|
663 |
If syntaxColoring is turned on." |
|
664 |
||
665 |
^ self at:#localIdentifierColor ifAbsentPut:[self identifierColor] |
|
666 |
||
3362 | 667 |
" |
668 |
UserPreferences current at:#localIdentifierColor put:Color green darkened. |
|
669 |
UserPreferences current at:#localIdentifierColor put:Color black. |
|
670 |
" |
|
671 |
||
3360 | 672 |
"Created: / 31.3.1998 / 15:18:07 / cg" |
3362 | 673 |
"Modified: / 2.4.1998 / 10:40:05 / cg" |
3360 | 674 |
! |
675 |
||
676 |
localIdentifierEmphasis |
|
677 |
"the emphais used for local variable identifiers; |
|
678 |
If syntaxColoring is turned on." |
|
679 |
||
680 |
^ self at:#localIdentifierEmphasis ifAbsentPut:[self identifierEmphasis] |
|
681 |
||
682 |
"Created: / 31.3.1998 / 15:16:56 / cg" |
|
683 |
"Modified: / 1.4.1998 / 13:24:42 / cg" |
|
684 |
! |
|
685 |
||
686 |
methodSelectorColor |
|
687 |
"the color used for a methods selector pattern; |
|
688 |
If syntaxColoring is turned on." |
|
689 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
690 |
^ self at:#methodSelectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 691 |
|
692 |
"Created: / 31.3.1998 / 15:11:24 / cg" |
|
693 |
"Modified: / 1.4.1998 / 13:24:26 / cg" |
|
694 |
! |
|
695 |
||
696 |
methodSelectorEmphasis |
|
697 |
"the emphasis used for a methods selector pattern; |
|
698 |
If syntaxColoring is turned on." |
|
699 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
700 |
^ self at:#methodSelectorEmphasis ifAbsentPut:[DefaultPreferences at:#methodSelectorEmphasis] |
3360 | 701 |
|
702 |
"Created: / 31.3.1998 / 15:11:16 / cg" |
|
703 |
"Modified: / 1.4.1998 / 13:24:20 / cg" |
|
704 |
! |
|
705 |
||
4076 | 706 |
returnColor |
707 |
"the color used for the return expression; |
|
708 |
If syntaxColoring is turned on." |
|
709 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
710 |
^ self at:#returnColor ifAbsentPut:[self defaultSyntaxColor] |
4076 | 711 |
|
712 |
"Modified: / 5.1.1980 / 00:43:52 / cg" |
|
713 |
! |
|
714 |
||
715 |
returnEmphasis |
|
716 |
"the emphasis used for returns; |
|
717 |
If syntaxColoring is turned on." |
|
718 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
719 |
^ self at:#returnEmphasis ifAbsentPut:[self defaultSyntaxEmphasis] |
4076 | 720 |
|
721 |
"Created: / 5.1.1980 / 00:43:39 / cg" |
|
722 |
! |
|
723 |
||
3360 | 724 |
selectorColor |
725 |
"the color used for message selectors; |
|
726 |
If syntaxColoring is turned on." |
|
727 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
728 |
^ self at:#selectorColor ifAbsentPut:[self defaultSyntaxColor] |
3360 | 729 |
|
730 |
"Created: / 31.3.1998 / 15:19:19 / cg" |
|
731 |
"Modified: / 1.4.1998 / 13:24:04 / cg" |
|
732 |
! |
|
733 |
||
734 |
selectorEmphasis |
|
735 |
"the emphasis used for message selectors; |
|
736 |
If syntaxColoring is turned on." |
|
737 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
738 |
^ self at:#selectorEmphasis ifAbsentPut:[DefaultPreferences at:#selectorEmphasis] |
3360 | 739 |
|
740 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
741 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
|
742 |
! |
|
743 |
||
744 |
selfColor |
|
745 |
"the color used for the self pseudoVariable; |
|
746 |
If syntaxColoring is turned on." |
|
747 |
||
748 |
^ self at:#selfColor ifAbsentPut:[self identifierColor] |
|
749 |
||
750 |
"Created: / 31.3.1998 / 17:35:45 / cg" |
|
751 |
"Modified: / 1.4.1998 / 13:21:07 / cg" |
|
752 |
! |
|
753 |
||
754 |
selfEmphasis |
|
755 |
"the emphasis used for the self pseudoVariable; |
|
756 |
If syntaxColoring is turned on." |
|
757 |
||
758 |
^ self at:#selfEmphasis ifAbsentPut:[self identifierEmphasis] |
|
759 |
||
760 |
"Created: / 31.3.1998 / 17:34:57 / cg" |
|
761 |
"Modified: / 1.4.1998 / 13:21:51 / cg" |
|
762 |
! |
|
763 |
||
764 |
stringColor |
|
765 |
"the color used for string constants; |
|
766 |
If syntaxColoring is turned on." |
|
767 |
||
768 |
^ self at:#stringColor ifAbsentPut:[self constantColor] |
|
769 |
||
770 |
"Created: / 31.3.1998 / 15:19:50 / cg" |
|
771 |
"Modified: / 1.4.1998 / 13:22:06 / cg" |
|
772 |
! |
|
773 |
||
774 |
stringEmphasis |
|
775 |
"the emphasis used for string constants; |
|
776 |
If syntaxColoring is turned on." |
|
777 |
||
778 |
^ self at:#stringEmphasis ifAbsentPut:[self constantEmphasis] |
|
779 |
||
780 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
|
781 |
"Modified: / 1.4.1998 / 13:22:00 / cg" |
|
782 |
! |
|
783 |
||
784 |
superColor |
|
785 |
"the color used for the super pseudoVariable; |
|
786 |
If syntaxColoring is turned on." |
|
787 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
788 |
^ self at:#superColor ifAbsentPut:[self selfColor] |
3360 | 789 |
|
790 |
"Created: / 31.3.1998 / 17:37:56 / cg" |
|
791 |
"Modified: / 1.4.1998 / 13:21:15 / cg" |
|
792 |
! |
|
793 |
||
794 |
superEmphasis |
|
795 |
"the emphasis used for the super pseudoVariable; |
|
796 |
If syntaxColoring is turned on." |
|
797 |
||
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
798 |
^ self at:#superEmphasis ifAbsentPut:[self selfEmphasis] |
3360 | 799 |
|
800 |
"Created: / 31.3.1998 / 17:35:08 / cg" |
|
801 |
"Modified: / 1.4.1998 / 13:21:41 / cg" |
|
802 |
! |
|
803 |
||
804 |
symbolColor |
|
805 |
"the color used for symbol constants; |
|
806 |
If syntaxColoring is turned on." |
|
807 |
||
808 |
^ self at:#symbolColor ifAbsentPut:[self constantColor] |
|
809 |
||
810 |
"Created: / 1.4.1998 / 12:57:35 / cg" |
|
811 |
"Modified: / 1.4.1998 / 13:22:16 / cg" |
|
812 |
! |
|
813 |
||
814 |
symbolEmphasis |
|
815 |
"the emphasis used for symbol constants; |
|
816 |
If syntaxColoring is turned on." |
|
817 |
||
818 |
^ self at:#symbolEmphasis ifAbsentPut:[self constantEmphasis] |
|
819 |
||
820 |
"Created: / 1.4.1998 / 12:57:43 / cg" |
|
821 |
"Modified: / 1.4.1998 / 13:23:43 / cg" |
|
3352 | 822 |
! |
823 |
||
824 |
thisContextColor |
|
3360 | 825 |
"the color used for the thisContext pseudoVariable; |
826 |
If syntaxColoring is turned on." |
|
827 |
||
3355 | 828 |
^ self at:#thisContextColor ifAbsentPut:[self identifierColor] |
3352 | 829 |
|
830 |
"Created: / 31.3.1998 / 17:37:49 / cg" |
|
3360 | 831 |
"Modified: / 1.4.1998 / 13:21:24 / cg" |
3352 | 832 |
! |
833 |
||
834 |
thisContextEmphasis |
|
3360 | 835 |
"the emphasis used for the thisContext pseudoVariable; |
836 |
If syntaxColoring is turned on." |
|
837 |
||
3355 | 838 |
^ self at:#thisContextEmphasis ifAbsentPut:[self identifierEmphasis] |
3352 | 839 |
|
840 |
"Created: / 31.3.1998 / 17:35:27 / cg" |
|
3360 | 841 |
"Modified: / 1.4.1998 / 13:21:30 / cg" |
3354 | 842 |
! |
843 |
||
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
844 |
unimplementedSelectorColor |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
845 |
"the color used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
846 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
847 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
848 |
^ self at:#unimplementedSelectorColor ifAbsentPut:[DefaultPreferences at:#unimplementedSelectorColor] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
849 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
850 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
851 |
unimplementedSelectorEmphasis |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
852 |
"the emphasis used for bad message selectors; |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
853 |
If syntaxColoring is turned on." |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
854 |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
855 |
^ self at:#unimplementedSelectorEmphasis ifAbsentPut:[DefaultPreferences at:#unimplementedSelectorEmphasis] |
4316
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
856 |
|
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
857 |
"Created: / 31.3.1998 / 15:19:09 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
858 |
"Modified: / 1.4.1998 / 13:23:59 / cg" |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
859 |
! |
c3934d0d1e3e
added unimplementedSelector emphasis&colors
Claus Gittinger <cg@exept.de>
parents:
4306
diff
changeset
|
860 |
|
3354 | 861 |
unknownIdentifierColor |
3360 | 862 |
"the color used for unknown identifiers; |
863 |
If syntaxColoring is turned on." |
|
864 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
865 |
^ self at:#unknownIdentifierColor ifAbsentPut:[self badIdentifierColor] |
3354 | 866 |
|
3361 | 867 |
" |
868 |
self current at:#unknownIdentifierColor put:Color red. |
|
869 |
self current at:#unknownIdentifierEmphasis put:#bold |
|
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
870 |
|
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
871 |
self current unknownIdentifierColor |
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
872 |
self current unknownIdentifierEmphasis |
3361 | 873 |
" |
874 |
||
3354 | 875 |
"Created: / 31.3.1998 / 19:11:38 / cg" |
3360 | 876 |
"Modified: / 1.4.1998 / 13:22:33 / cg" |
3354 | 877 |
! |
878 |
||
879 |
unknownIdentifierEmphasis |
|
3360 | 880 |
"the emphasis used for unknown identifiers; |
881 |
If syntaxColoring is turned on." |
|
882 |
||
4326
9b1d4f1bf719
inserted badIdentifierColor & emphasis
Claus Gittinger <cg@exept.de>
parents:
4320
diff
changeset
|
883 |
^ self at:#unknownIdentifierEmphasis ifAbsentPut:[self badIdentifierEmphasis] |
3354 | 884 |
|
885 |
"Created: / 31.3.1998 / 19:11:55 / cg" |
|
3360 | 886 |
"Modified: / 1.4.1998 / 13:22:45 / cg" |
3347 | 887 |
! ! |
888 |
||
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
889 |
!UserPreferences methodsFor:'default settings'! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
890 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
891 |
resetSyntaxColors |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
892 |
"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
|
893 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
894 |
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
|
895 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
896 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
897 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
898 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
899 |
resetSyntaxColorsAllBlackExceptBadIDs |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
900 |
"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
|
901 |
except for bad identifiers, which are underwaved." |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
902 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
903 |
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
|
904 |
self at:#badIdentifierEmphasis put:(Array with:#underwave with:(#underlineColor->Color red)). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
905 |
self at:#commentColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
906 |
self at:#constantColor put:Color black. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
907 |
self at:#methodSelectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
908 |
self at:#selectorEmphasis put:#normal. |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
909 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
910 |
! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
911 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
912 |
resetSyntaxColorsGreenComments |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
913 |
"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
|
914 |
(with green comments)" |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
915 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
916 |
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
|
917 |
self at:#commentColor put:(Color green darkened). |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
918 |
|
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
919 |
! ! |
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
920 |
|
3347 | 921 |
!UserPreferences class methodsFor:'documentation'! |
922 |
||
923 |
version |
|
4342
f2bbfcd2f072
added some default color settings
Claus Gittinger <cg@exept.de>
parents:
4341
diff
changeset
|
924 |
^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.41 1999-07-07 12:17:45 cg Exp $' |
3347 | 925 |
! ! |
4317
aba88adaf752
concentrated defaults into #initialize method.
Claus Gittinger <cg@exept.de>
parents:
4316
diff
changeset
|
926 |
UserPreferences initialize! |