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