author | Claus Gittinger <cg@exept.de> |
Tue, 08 Sep 2015 17:37:47 +0200 | |
changeset 4832 | 083a1522f3cd |
parent 4824 | 98d9c12ab96f |
child 4972 | 9914ef4a84fc |
permissions | -rw-r--r-- |
1301
93a3ec8c339c
OOPS - stefan what happened to your checkin (garbage)
Claus Gittinger <cg@exept.de>
parents:
1294
diff
changeset
|
1 |
" |
332 | 2 |
COPYRIGHT (c) 1996 by eXept Software AG / Claus Gittinger |
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 |
" |
|
1884
bf33562ea53b
use rootWindowId (save a message send)
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
12 |
"{ Package: 'stx:libwidg2' }" |
bf33562ea53b
use rootWindowId (save a message send)
Claus Gittinger <cg@exept.de>
parents:
1696
diff
changeset
|
13 |
|
4824 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
129 | 16 |
View subclass:#ComboView |
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
17 |
instanceVariableNames:'field pullDownButton list listHolder listMsg action resizableMenu |
4187 | 18 |
currentIndex comboMenuHolder comboMenuMessage' |
2950 | 19 |
classVariableNames:'DefaultButtonForm ComboButtonForms' |
1306
56e90a9e5da1
renambe #enableStateChange to #enableStateChanged
Claus Gittinger <cg@exept.de>
parents:
1301
diff
changeset
|
20 |
poolDictionaries:'' |
56e90a9e5da1
renambe #enableStateChange to #enableStateChanged
Claus Gittinger <cg@exept.de>
parents:
1301
diff
changeset
|
21 |
category:'Views-Interactors' |
129 | 22 |
! |
23 |
||
263
865b7d99d3f5
added an example for a menu-pull-hook
Claus Gittinger <cg@exept.de>
parents:
247
diff
changeset
|
24 |
!ComboView class methodsFor:'documentation'! |
129 | 25 |
|
332 | 26 |
copyright |
27 |
" |
|
28 |
COPYRIGHT (c) 1996 by eXept Software AG / Claus Gittinger |
|
29 |
All Rights Reserved |
|
30 |
||
31 |
This software is furnished under a license and may be used |
|
32 |
only in accordance with the terms of that license and with the |
|
33 |
inclusion of the above copyright notice. This software may not |
|
34 |
be provided or otherwise made available to, or used by, any |
|
35 |
other person. No title to or ownership of the software is |
|
36 |
hereby transferred. |
|
37 |
" |
|
38 |
||
39 |
||
40 |
! |
|
41 |
||
129 | 42 |
documentation |
43 |
" |
|
44 |
A ComboView combines some field (typically an enterField or Label) |
|
45 |
with a drop down list of default inputs; |
|
46 |
ComboView is abstract, providing protocol common to ComboBoxView and |
|
47 |
ComboListView. See documentation & examples there. |
|
274
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
48 |
|
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
49 |
[author:] |
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
50 |
Claus Gittinger |
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
51 |
|
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
52 |
[instance variables:] |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
53 |
currentIndex Integer index into the list, that is currently selected |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
54 |
|
274
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
55 |
[see also:] |
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
56 |
PopUpList |
1281 | 57 |
ComboListView ComboBoxView ExtendedComboBox |
274
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
58 |
PullDownMenu Label EntryField |
129 | 59 |
" |
60 |
! |
|
61 |
||
62 |
examples |
|
63 |
" |
|
308 | 64 |
see examples in ComboListView and ComboBoxView |
129 | 65 |
" |
66 |
! ! |
|
67 |
||
263
865b7d99d3f5
added an example for a menu-pull-hook
Claus Gittinger <cg@exept.de>
parents:
247
diff
changeset
|
68 |
!ComboView class methodsFor:'defaults'! |
129 | 69 |
|
70 |
buttonForm |
|
282 | 71 |
"return the pull-buttons image" |
72 |
||
1344
100e4d309847
support for disabled-image in pull-button
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
73 |
<resource: #style (#'comboView.downForm' |
100e4d309847
support for disabled-image in pull-button
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
74 |
#'comboView.downFormFile')> |
274
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
75 |
|
276
8f90ed6c37bc
allow either fileName or form to be given by styleSheet
Claus Gittinger <cg@exept.de>
parents:
274
diff
changeset
|
76 |
|fileName form| |
129 | 77 |
|
525 | 78 |
DefaultButtonForm notNil ifTrue:[ |
79 |
^ DefaultButtonForm |
|
80 |
]. |
|
81 |
||
1334 | 82 |
form := StyleSheet at:#'comboView.downForm'. |
274
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
83 |
form isNil ifTrue:[ |
1334 | 84 |
fileName := StyleSheet at:#'comboView.downFormFile' "default:'ComboDn.14.xbm'". |
1622
ea4d9baf568f
try bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
1560
diff
changeset
|
85 |
fileName notNil ifTrue:[ |
1633 | 86 |
form := Smalltalk imageFromFileNamed:fileName forClass:self. |
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
87 |
form isNil ifTrue:[ |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
88 |
form := Smalltalk imageFromFileNamed:fileName inPackage:'stx:libwidg'. |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
89 |
] |
1622
ea4d9baf568f
try bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
1560
diff
changeset
|
90 |
]. |
274
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
91 |
]. |
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
92 |
form isNil ifTrue:[ |
605 | 93 |
form := Form width:12 height:12 |
274
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
94 |
fromArray:#[2r00000000 2r00000000 |
605 | 95 |
"/ 2r00001111 2r00000000 |
96 |
"/ 2r00001111 2r00000000 |
|
97 |
2r00001111 2r00000000 |
|
98 |
2r00001111 2r00000000 |
|
99 |
2r00001111 2r00000000 |
|
100 |
2r01111111 2r11100000 |
|
101 |
2r00111111 2r11000000 |
|
102 |
2r00011111 2r10000000 |
|
103 |
2r00001111 2r00000000 |
|
104 |
2r00000110 2r00000000 |
|
274
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
105 |
2r00000000 2r00000000 |
605 | 106 |
2r01111111 2r11100000 |
274
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
107 |
2r00000000 2r00000000] |
3231
5dd5dd610d50
Use Form class>>#width:height:fromArray:onDevice: instead of obsolete
Stefan Vogel <sv@exept.de>
parents:
2950
diff
changeset
|
108 |
onDevice:Display. |
274
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
109 |
]. |
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
110 |
form notNil ifTrue:[ |
525 | 111 |
form := DefaultButtonForm := form onDevice:Display. |
112 |
^ form |
|
274
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
113 |
]. |
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
114 |
^ nil |
92b51554b1d7
allow form to be specified by styleSheet
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
115 |
|
1344
100e4d309847
support for disabled-image in pull-button
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
116 |
"Modified: / 28.4.1999 / 12:49:42 / cg" |
304 | 117 |
! |
118 |
||
3839
d269a10c33c9
comment/format in: #comboButtonFor:
Claus Gittinger <cg@exept.de>
parents:
3836
diff
changeset
|
119 |
comboButtonFor:aComboView |
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
120 |
<resource: #style (#'comboView.disabledDownForm' |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
121 |
#'comboView.disabledDownFormFile' |
2176 | 122 |
#'comboView.activeDownFormFile' |
123 |
#'comboView.button.activeForegroundColor' |
|
124 |
#'comboView.button.activeBackgroundColor' |
|
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
125 |
#'comboView.button.activeLevel' |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
126 |
#'comboView.button.passiveLevel' )> |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
127 |
|
2176 | 128 |
|pullDownButton fn logo disabledLogo activeLogo enteredLogo lvl clr| |
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
129 |
|
3839
d269a10c33c9
comment/format in: #comboButtonFor:
Claus Gittinger <cg@exept.de>
parents:
3836
diff
changeset
|
130 |
pullDownButton := ComboBoxButton in:aComboView. |
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
131 |
pullDownButton controller beTriggerOnDown. |
2785
3c705bdd5792
Do not use obsolete message #logo:
Stefan Vogel <sv@exept.de>
parents:
2750
diff
changeset
|
132 |
pullDownButton label:(logo := self buttonForm). |
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
133 |
|
2950 | 134 |
ComboButtonForms isNil ifTrue:[ |
135 |
ComboButtonForms := IdentityDictionary new. |
|
136 |
]. |
|
137 |
||
138 |
disabledLogo := ComboButtonForms at:disabledLogo ifAbsentPut:[|logo| |
|
139 |
logo := StyleSheet at:#'comboView.disabledDownForm'. |
|
140 |
||
141 |
logo isNil ifTrue:[ |
|
142 |
fn := StyleSheet at:#'comboView.disabledDownFormFile'. |
|
143 |
fn notNil ifTrue:[ |
|
144 |
logo := Smalltalk imageFromFileNamed:fn forClass:self. |
|
145 |
logo isNil ifTrue:[ |
|
146 |
logo := Smalltalk imageFromFileNamed:fn inPackage:'stx:libwidg'. |
|
147 |
] |
|
2176 | 148 |
] |
2950 | 149 |
]. |
150 |
logo |
|
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
151 |
]. |
2950 | 152 |
|
153 |
activeLogo := ComboButtonForms at:#activeLogo ifAbsentPut:[|logo| |
|
154 |
logo := StyleSheet at:#'comboView.activeDownForm'. |
|
155 |
||
156 |
logo isNil ifTrue:[ |
|
157 |
fn := StyleSheet at:#'comboView.activeDownFormFile'. |
|
158 |
fn notNil ifTrue:[ |
|
159 |
logo := Smalltalk imageFromFileNamed:fn forClass:self. |
|
160 |
logo isNil ifTrue:[ |
|
161 |
logo := Smalltalk imageFromFileNamed:fn inPackage:'stx:libwidg'. |
|
162 |
] |
|
163 |
] |
|
164 |
]. |
|
165 |
logo |
|
166 |
]. |
|
167 |
||
168 |
enteredLogo := ComboButtonForms at:#enteredLogo ifAbsentPut:[|logo| |
|
169 |
logo := StyleSheet at:#'comboView.enteredDownForm'. |
|
170 |
||
171 |
logo isNil ifTrue:[ |
|
172 |
fn := StyleSheet at:#'comboView.enteredDownFormFile'. |
|
173 |
fn notNil ifTrue:[ |
|
174 |
logo := Smalltalk imageFromFileNamed:fn forClass:self. |
|
175 |
logo isNil ifTrue:[ |
|
176 |
logo := Smalltalk imageFromFileNamed:fn inPackage:'stx:libwidg'. |
|
177 |
] |
|
178 |
] |
|
179 |
]. |
|
180 |
logo |
|
181 |
]. |
|
182 |
||
2176 | 183 |
disabledLogo notNil ifTrue:[ |
184 |
pullDownButton passiveLogo:logo. |
|
185 |
pullDownButton activeLogo:logo. |
|
186 |
pullDownButton disabledLogo:disabledLogo. |
|
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
187 |
]. |
2950 | 188 |
|
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
189 |
pullDownButton showLamp:false. |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
190 |
|
2176 | 191 |
activeLogo notNil ifTrue:[ |
192 |
pullDownButton activeLogo:activeLogo. |
|
193 |
pullDownButton passiveLogo:logo. |
|
2785
3c705bdd5792
Do not use obsolete message #logo:
Stefan Vogel <sv@exept.de>
parents:
2750
diff
changeset
|
194 |
pullDownButton label:logo. |
2176 | 195 |
]. |
196 |
||
197 |
enteredLogo notNil ifTrue:[ |
|
198 |
pullDownButton enteredLogo:enteredLogo. |
|
199 |
]. |
|
200 |
||
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
201 |
(lvl := StyleSheet at:#'comboView.button.activeLevel') notNil ifTrue:[ |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
202 |
pullDownButton activeLevel:lvl |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
203 |
]. |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
204 |
(lvl := StyleSheet at:#'comboView.button.passiveLevel') notNil ifTrue:[ |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
205 |
pullDownButton passiveLevel:lvl |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
206 |
]. |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
207 |
|
2176 | 208 |
(clr := StyleSheet colorAt:#'comboView.button.activeForegroundColor') notNil ifTrue:[ |
209 |
pullDownButton activeForegroundColor:clr |
|
210 |
]. |
|
211 |
(clr := StyleSheet colorAt:#'comboView.button.activeBackgroundColor') notNil ifTrue:[ |
|
212 |
pullDownButton activeBackgroundColor:clr |
|
213 |
]. |
|
214 |
||
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
215 |
pullDownButton activeLevel == pullDownButton passiveLevel ifTrue:[ |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
216 |
pullDownButton activeLevel:0. |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
217 |
]. |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
218 |
^ pullDownButton. |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
219 |
! |
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
220 |
|
415 | 221 |
defaultFont |
222 |
"/ for now - should come from the styleSheet |
|
223 |
||
4567 | 224 |
^ EditField defaultFont. |
225 |
"/ ^ SelectionInListView defaultFont. |
|
415 | 226 |
|
227 |
"Created: 4.6.1997 / 15:44:17 / cg" |
|
228 |
! |
|
229 |
||
304 | 230 |
defaultListMessage |
231 |
^ #list |
|
232 |
||
233 |
"Created: 26.2.1997 / 19:34:50 / cg" |
|
605 | 234 |
! |
235 |
||
236 |
updateStyleCache |
|
3842 | 237 |
"flush the forms cache" |
238 |
||
2950 | 239 |
DefaultButtonForm := ComboButtonForms := nil. |
605 | 240 |
|
241 |
"Created: / 3.11.1997 / 15:28:48 / cg" |
|
304 | 242 |
! ! |
243 |
||
244 |
!ComboView methodsFor:'accessing-behavior'! |
|
245 |
||
246 |
action:aBlock |
|
247 |
"specify, a block, which is evaluated when the lists selection changes. |
|
248 |
This is an additional hook - normally, you would communicate with the model |
|
249 |
alone" |
|
250 |
||
251 |
action := aBlock. |
|
252 |
||
253 |
"Created: 26.7.1996 / 17:44:18 / cg" |
|
254 |
"Modified: 26.2.1997 / 19:37:18 / cg" |
|
411 | 255 |
! |
256 |
||
257 |
enabled |
|
4663 | 258 |
"return true, if it is enabled" |
2892 | 259 |
|
1207 | 260 |
enableChannel isNil ifTrue:[^ true]. |
4663 | 261 |
^ enableChannel value ? true |
1294 | 262 |
! |
263 |
||
264 |
enabled:aBoolean |
|
265 |
"enable/disable components" |
|
266 |
||
267 |
self enableChannel value:aBoolean. |
|
268 |
||
269 |
"Modified: / 30.3.1999 / 14:56:18 / stefan" |
|
2892 | 270 |
! |
271 |
||
272 |
resizableMenu |
|
273 |
"return true, if the menu is to be resizable. |
|
274 |
This feature is as yet unimplemented." |
|
275 |
||
276 |
^ resizableMenu ? false |
|
277 |
! |
|
278 |
||
279 |
resizableMenu:aBoolean |
|
280 |
"enable/disable, if the menu is to be resizable. |
|
281 |
This feature is as yet unimplemented." |
|
282 |
||
283 |
resizableMenu := aBoolean |
|
411 | 284 |
! ! |
285 |
||
286 |
!ComboView methodsFor:'accessing-channels'! |
|
287 |
||
288 |
enableChannel |
|
2892 | 289 |
"return a valueHolder for enable/disable" |
290 |
||
1207 | 291 |
enableChannel isNil ifTrue:[ |
1294 | 292 |
self enableChannel:(true asValue). |
411 | 293 |
]. |
1207 | 294 |
^ enableChannel |
411 | 295 |
|
1294 | 296 |
"Modified: / 30.3.1999 / 16:20:25 / stefan" |
129 | 297 |
! ! |
298 |
||
299 |
!ComboView methodsFor:'accessing-components'! |
|
300 |
||
1560 | 301 |
field |
302 |
"return the field (input or label) component. |
|
303 |
For knowledgable users only." |
|
304 |
||
305 |
^ field |
|
306 |
||
307 |
"Created: / 26.9.1999 / 13:33:15 / cg" |
|
308 |
! |
|
309 |
||
129 | 310 |
menuButton |
311 |
"return the menuButton component" |
|
312 |
||
313 |
^ pullDownButton |
|
314 |
||
315 |
"Created: 28.2.1996 / 15:03:14 / cg" |
|
316 |
! ! |
|
317 |
||
318 |
!ComboView methodsFor:'accessing-contents'! |
|
319 |
||
181 | 320 |
contents |
304 | 321 |
"get the contents of my field" |
322 |
||
4115 | 323 |
|m| |
181 | 324 |
|
4115 | 325 |
(m := field model) isNil ifTrue:[ |
326 |
^ field contents |
|
327 |
]. |
|
328 |
^ m value |
|
329 |
||
330 |
"Created: / 14-05-1996 / 13:05:16 / cg" |
|
331 |
"Modified: / 21-03-2012 / 12:06:42 / cg" |
|
181 | 332 |
! |
333 |
||
334 |
contents:something |
|
304 | 335 |
"set the contents of my field; questionable" |
336 |
||
214 | 337 |
|m| |
338 |
||
339 |
(m := field model) notNil ifTrue:[ |
|
304 | 340 |
m value:something |
214 | 341 |
] |
181 | 342 |
|
343 |
"Created: 14.5.1996 / 13:05:33 / cg" |
|
304 | 344 |
"Modified: 26.2.1997 / 16:56:08 / cg" |
181 | 345 |
! |
346 |
||
889
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
347 |
list |
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
348 |
"return the list" |
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
349 |
|
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
350 |
^ list |
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
351 |
|
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
352 |
"Created: / 18.5.1998 / 18:58:08 / cg" |
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
353 |
! |
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
354 |
|
129 | 355 |
list:aList |
304 | 356 |
"set the list explicitely; used internally or |
357 |
to be send from the outside if no model/listHolder is used." |
|
358 |
||
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
359 |
list ~~ aList ifTrue:[ |
3369
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
360 |
self assert:aList isSequenceable. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
361 |
currentIndex := 1. |
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
362 |
list := aList. |
2474 | 363 |
]. |
3315 | 364 |
"maybe some values have been added to / removed from list" |
365 |
self enableStateChanged. |
|
1294 | 366 |
|
367 |
"Modified: / 30.3.1999 / 14:17:38 / stefan" |
|
129 | 368 |
! ! |
369 |
||
853 | 370 |
!ComboView methodsFor:'accessing-look'! |
371 |
||
372 |
backgroundColor |
|
373 |
||
374 |
^field backgroundColor |
|
375 |
! |
|
376 |
||
377 |
backgroundColor:aColor |
|
378 |
||
379 |
field backgroundColor:aColor |
|
380 |
! |
|
381 |
||
382 |
font:aFont |
|
383 |
||
384 |
super font:aFont. |
|
1183
667132091c2f
ComboBox's inputField ought to use its default font.
Claus Gittinger <cg@exept.de>
parents:
1126
diff
changeset
|
385 |
self setFieldsFont:aFont. |
853 | 386 |
! |
387 |
||
388 |
foregroundColor |
|
389 |
||
390 |
^field foregroundColor |
|
391 |
! |
|
392 |
||
393 |
foregroundColor:aColor |
|
394 |
||
395 |
field foregroundColor:aColor |
|
396 |
! ! |
|
397 |
||
214 | 398 |
!ComboView methodsFor:'accessing-mvc'! |
399 |
||
4187 | 400 |
comboMenuHolder |
401 |
^ comboMenuHolder |
|
402 |
! |
|
403 |
||
4225 | 404 |
comboMenuHolder:aMenuHolder |
405 |
"allows for arbitrary menus to be opened via the combo button" |
|
406 |
||
407 |
comboMenuHolder := aMenuHolder. |
|
408 |
! |
|
409 |
||
410 |
comboMenuHolder:aMenuHolder comboMenuMessage:aSelectorToTheHolder |
|
411 |
"allows for arbitrary menus to be opened via the combo button" |
|
412 |
||
413 |
comboMenuHolder := aMenuHolder. |
|
414 |
comboMenuMessage := aSelectorToTheHolder. |
|
4187 | 415 |
! |
416 |
||
417 |
comboMenuMessage |
|
418 |
^ comboMenuMessage |
|
419 |
! |
|
420 |
||
4225 | 421 |
comboMenuMessage:aSelectorToTheHolder |
422 |
"allows for arbitrary menus to be opened via the combo button" |
|
423 |
||
424 |
comboMenuMessage := aSelectorToTheHolder. |
|
4187 | 425 |
! |
426 |
||
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
427 |
listHolder:aValueHolder |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
428 |
"set the listHolder. |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
429 |
If not set, the list is supposed to be set explicitely" |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
430 |
|
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
431 |
listHolder notNil ifTrue:[ |
304 | 432 |
listHolder removeDependent:self. |
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
433 |
]. |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
434 |
listHolder := aValueHolder. |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
435 |
listHolder notNil ifTrue:[ |
304 | 436 |
aValueHolder addDependent:self. |
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
437 |
]. |
3274
e162e9218179
must fetch the lists value when the listHilder is set.
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
438 |
|
e162e9218179
must fetch the lists value when the listHilder is set.
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
439 |
"/ cg: either fetch it here or when realized; |
e162e9218179
must fetch the lists value when the listHilder is set.
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
440 |
"/ (otherwise we'd never fetch the list if it wont change later) |
e162e9218179
must fetch the lists value when the listHilder is set.
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
441 |
"/ realized ifTrue:[ |
304 | 442 |
self getListFromModel. |
3274
e162e9218179
must fetch the lists value when the listHilder is set.
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
443 |
"/ ] |
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
444 |
|
3274
e162e9218179
must fetch the lists value when the listHilder is set.
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
445 |
"Modified: / 09-11-2007 / 15:59:18 / cg" |
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
446 |
! |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
447 |
|
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
448 |
listMessage:aSymbol |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
449 |
"define the message selector sent to the model, to fetch |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
450 |
the list. If not defined, #list is used" |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
451 |
|
304 | 452 |
listMsg := aSymbol |
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
453 |
|
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
454 |
"Created: 14.2.1997 / 19:16:52 / cg" |
304 | 455 |
"Modified: 26.2.1997 / 19:33:09 / cg" |
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
456 |
! |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
457 |
|
214 | 458 |
model:aModel |
304 | 459 |
"set the model, which is supposed to provide the boxes value. |
460 |
If a listMessage was defined, it is also responsible for providing |
|
461 |
the list" |
|
462 |
||
214 | 463 |
super model:aModel. |
464 |
||
3596 | 465 |
listHolder isNil ifTrue:[ |
466 |
self getListFromModel. |
|
467 |
]. |
|
314
6ff49c930c71
fetch models value when a model is assigned;
Claus Gittinger <cg@exept.de>
parents:
312
diff
changeset
|
468 |
self getValueFromModel. |
304 | 469 |
|
314
6ff49c930c71
fetch models value when a model is assigned;
Claus Gittinger <cg@exept.de>
parents:
312
diff
changeset
|
470 |
"Modified: 28.2.1997 / 19:08:45 / cg" |
310 | 471 |
! ! |
472 |
||
473 |
!ComboView methodsFor:'change & update'! |
|
214 | 474 |
|
475 |
update:something with:aParameter from:changedObject |
|
1207 | 476 |
|
214 | 477 |
changedObject == model ifTrue:[ |
310 | 478 |
listHolder isNil ifTrue:[ |
479 |
self getListFromModel. |
|
480 |
]. |
|
481 |
self getValueFromModel. |
|
482 |
^ self |
|
214 | 483 |
]. |
310 | 484 |
changedObject == listHolder ifTrue:[ |
485 |
self getListFromModel. |
|
486 |
^ self |
|
487 |
]. |
|
488 |
||
214 | 489 |
super update:something with:aParameter from:changedObject |
490 |
||
1294 | 491 |
"Created: / 15.7.1996 / 12:26:49 / cg" |
492 |
"Modified: / 28.2.1997 / 13:48:51 / cg" |
|
493 |
"Modified: / 30.3.1999 / 14:17:55 / stefan" |
|
214 | 494 |
! ! |
495 |
||
869
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
496 |
!ComboView methodsFor:'event handling'! |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
497 |
|
1306
56e90a9e5da1
renambe #enableStateChange to #enableStateChanged
Claus Gittinger <cg@exept.de>
parents:
1301
diff
changeset
|
498 |
enableStateChanged |
1294 | 499 |
"the enable state has changed - pass this to my field and pullDownButton" |
500 |
||
501 |
|msg| |
|
502 |
||
503 |
(enableChannel isNil or:[enableChannel value]) ifTrue:[ |
|
504 |
msg := #enable |
|
505 |
] ifFalse:[ |
|
506 |
msg := #disable |
|
507 |
]. |
|
508 |
field perform:msg ifNotUnderstood:nil. |
|
509 |
||
3755 | 510 |
list isEmptyOrNil ifTrue:[ |
4186 | 511 |
"/ may only do this, if the list is static or a valueModel. |
512 |
"/ If it is a block, we do not know what value will be returned the next |
|
513 |
"/ time. |
|
514 |
listHolder isBlock ifFalse:[ |
|
515 |
msg := #disable |
|
516 |
]. |
|
1294 | 517 |
]. |
518 |
pullDownButton perform:msg ifNotUnderstood:nil. |
|
519 |
||
520 |
"Modified: / 22.2.1999 / 00:47:46 / cg" |
|
521 |
"Modified: / 30.3.1999 / 14:17:10 / stefan" |
|
522 |
! |
|
523 |
||
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
524 |
handlesMouseWheelMotion:event inView:aView |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
525 |
"we handle delegated mousewheel events" |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
526 |
|
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
527 |
^ true |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
528 |
! |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
529 |
|
869
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
530 |
keyPress:key x:x y:y |
2868 | 531 |
"pull the menu on space and return keys" |
532 |
||
2025 | 533 |
<resource: #keyboard (#Return)> |
534 |
||
2868 | 535 |
(key == Character space or:[key == #Return]) ifTrue:[ |
869
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
536 |
self pullMenu. |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
537 |
^ self. |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
538 |
]. |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
539 |
|
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
540 |
^ super keyPress:key x:x y:y |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
541 |
|
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
542 |
"Modified: / 21.4.1998 / 20:10:05 / cg" |
3236 | 543 |
! |
544 |
||
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
545 |
mouseWheelMotion:buttonState x:x y:y amount:amount deltaTime:dTime view:delegatingView |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
546 |
"scroll through the list items" |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
547 |
|
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
548 |
self enableChannel value ifFalse:[ |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
549 |
^ self. |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
550 |
]. |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
551 |
|
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
552 |
list isNil ifTrue:[ |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
553 |
self getListFromModel. |
3365
06a46f12cb2e
changed #mouseWheelMotion:x:y:amount:deltaTime:view:
Stefan Vogel <sv@exept.de>
parents:
3327
diff
changeset
|
554 |
list isEmptyOrNil ifTrue:[ |
06a46f12cb2e
changed #mouseWheelMotion:x:y:amount:deltaTime:view:
Stefan Vogel <sv@exept.de>
parents:
3327
diff
changeset
|
555 |
"nothing to scroll" |
06a46f12cb2e
changed #mouseWheelMotion:x:y:amount:deltaTime:view:
Stefan Vogel <sv@exept.de>
parents:
3327
diff
changeset
|
556 |
^ self |
06a46f12cb2e
changed #mouseWheelMotion:x:y:amount:deltaTime:view:
Stefan Vogel <sv@exept.de>
parents:
3327
diff
changeset
|
557 |
]. |
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
558 |
]. |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
559 |
|
3369
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
560 |
self deltaSelect:amount sign negated. |
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
561 |
! |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
562 |
|
3236 | 563 |
processEvent:anEvent |
3290
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
564 |
|evView point x y button| |
3236 | 565 |
|
3495 | 566 |
"/ only care for buttonpress in my field... |
567 |
anEvent isButtonPressEvent ifFalse:[^ false]. |
|
568 |
evView := anEvent view. |
|
569 |
evView isNil ifTrue:[^ false]. |
|
570 |
||
3290
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
571 |
button := anEvent state. |
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
572 |
((button == 1) or:[button == #select]) ifFalse:[ |
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
573 |
^ false |
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
574 |
]. |
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
575 |
|
3236 | 576 |
(field isNil or:[field shown not]) ifTrue:[ |
577 |
^ false |
|
578 |
]. |
|
579 |
(field isKeyboardConsumer and:[field isEnabled]) ifTrue:[ |
|
580 |
^ false |
|
581 |
]. |
|
582 |
||
3755 | 583 |
x := anEvent x. |
584 |
y := anEvent y. |
|
3236 | 585 |
|
586 |
evView ~~ field ifTrue:[ |
|
587 |
(evView isSameOrComponentOf:field) ifFalse:[ |
|
588 |
^ false |
|
589 |
]. |
|
3755 | 590 |
point := x @ y. |
4503 | 591 |
point := self graphicsDevice translatePoint:point fromView:evView toView:field. |
3755 | 592 |
x := point x. |
593 |
y := point y. |
|
3236 | 594 |
]. |
595 |
(x between:0 and:field width) ifFalse:[^ false]. |
|
596 |
(y between:0 and:field height) ifFalse:[^ false]. |
|
597 |
||
3281 | 598 |
self pullMenu == false ifTrue:[ ^ false ]. |
3495 | 599 |
|
600 |
"/ although eaten, we still must care for the focus !! |
|
601 |
self wantsFocusWithButtonPress ifTrue:[ |
|
3503 | 602 |
self windowGroup notNil ifTrue:[ |
603 |
self windowGroup focusView:self. |
|
604 |
"/ Transcript showCR:self windowGroup focusCameByTab. |
|
605 |
] |
|
3495 | 606 |
]. |
3236 | 607 |
^ true |
869
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
608 |
! ! |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
609 |
|
2499 | 610 |
!ComboView methodsFor:'initialization & release'! |
129 | 611 |
|
3236 | 612 |
destroy |
613 |
|wgrp| |
|
614 |
||
615 |
(wgrp := self windowGroup) notNil ifTrue:[ |
|
616 |
wgrp removePreEventHook:self. |
|
617 |
]. |
|
618 |
super destroy. |
|
619 |
! |
|
620 |
||
3825 | 621 |
initStyle |
622 |
super initStyle. |
|
623 |
||
624 |
self borderWidth:(EditField defaultBorderWidth). |
|
625 |
self borderColor:(EditField defaultBorderColor). |
|
626 |
! |
|
627 |
||
129 | 628 |
initialize |
2750 | 629 |
|prefExt leftInset rightInset prefWidth halfSpacing nm lvl| |
129 | 630 |
|
631 |
super initialize. |
|
308 | 632 |
|
304 | 633 |
listMsg := self class defaultListMessage. |
634 |
aspectMsg := self class defaultAspectMessage. |
|
635 |
changeMsg := self class defaultChangeMessage. |
|
129 | 636 |
|
637 |
self initializeField. |
|
3825 | 638 |
field origin:margin@margin corner:1.0@1.0. |
2136 | 639 |
self shadowColor:(field shadowColor). |
129 | 640 |
|
331 | 641 |
self initializeButton. |
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
642 |
pullDownButton pressAction:[self pullMenu]. |
280 | 643 |
prefExt := pullDownButton preferredExtent. |
644 |
prefWidth := prefExt x. |
|
645 |
||
129 | 646 |
pullDownButton origin:1.0@0.0 corner:1.0@1.0. |
217 | 647 |
styleSheet is3D ifTrue:[ |
280 | 648 |
halfSpacing := ViewSpacing // 2. |
649 |
leftInset := rightInset := prefWidth + halfSpacing. |
|
2750 | 650 |
(lvl := styleSheet at:#'comboView.level' default:nil) notNil ifTrue:[ |
651 |
self level:lvl. |
|
319 | 652 |
field level:0. |
653 |
field rightInset:margin. |
|
654 |
] ifFalse:[ |
|
655 |
pullDownButton rightInset:halfSpacing. |
|
656 |
field leftInset:halfSpacing |
|
657 |
]. |
|
217 | 658 |
] ifFalse:[ |
280 | 659 |
leftInset := prefWidth + pullDownButton borderWidth. |
660 |
rightInset := prefWidth. |
|
217 | 661 |
]. |
1125 | 662 |
|
3836 | 663 |
"/ what a hack... |
1696
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1633
diff
changeset
|
664 |
nm := styleSheet name. |
3836 | 665 |
(nm = #win95 or:[nm = #win98 or:[nm = #winXP or:[nm = #st80 or:[nm = #winVista]]]]) ifTrue:[ |
1125 | 666 |
field level:0. |
2750 | 667 |
lvl isNil ifTrue:[self level:-1]. |
1125 | 668 |
pullDownButton rightInset:0. |
1696
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1633
diff
changeset
|
669 |
nm ~= #st80 ifTrue:[ |
3429
f2b4b84cd477
added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents:
3369
diff
changeset
|
670 |
leftInset := (ArrowButton new preferredWidth). |
1126 | 671 |
rightInset := leftInset. |
1125 | 672 |
]. |
673 |
field origin:0.0@0.0. |
|
2750 | 674 |
field leftInset:0. |
1125 | 675 |
"/ field topInset:1; bottomInset:1. |
2750 | 676 |
"/ nm = #winXP ifTrue:[ |
677 |
"/ self borderWidth:1. |
|
678 |
"/ self borderColor:(Color blue lightened). |
|
679 |
"/ ]. |
|
1125 | 680 |
]. |
1126 | 681 |
field rightInset:rightInset. |
280 | 682 |
pullDownButton leftInset:leftInset negated. |
129 | 683 |
|
3429
f2b4b84cd477
added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents:
3369
diff
changeset
|
684 |
self initialHeight:field preferredHeight + ViewSpacing. |
129 | 685 |
" |
686 |
|b| |
|
687 |
||
688 |
b := ComboBoxView new. |
|
689 |
b list:#('hello' 'world' 'this' 'is' 'st/x'). |
|
690 |
b open |
|
691 |
" |
|
692 |
||
1125 | 693 |
"Created: / 28.2.1996 / 15:03:17 / cg" |
694 |
"Modified: / 8.9.1998 / 20:33:22 / cg" |
|
331 | 695 |
! |
696 |
||
697 |
initializeButton |
|
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
698 |
pullDownButton := self class comboButtonFor:self. |
331 | 699 |
pullDownButton disable. |
700 |
! |
|
701 |
||
702 |
initializeField |
|
703 |
self subclassResponsibility |
|
704 |
||
705 |
"Created: 29.3.1997 / 11:17:14 / cg" |
|
2157 | 706 |
! |
707 |
||
3236 | 708 |
realize |
3238 | 709 |
|pullMenuIfClickedOnField wgrp| |
3236 | 710 |
|
711 |
super realize. |
|
712 |
||
3824 | 713 |
pullMenuIfClickedOnField := |
714 |
styleSheet |
|
715 |
at:#'comboView.pullMenuIfClickedOnField' |
|
716 |
default:[ OperatingSystem isMSWINDOWSlike ]. |
|
3236 | 717 |
|
718 |
pullMenuIfClickedOnField == true ifTrue:[ |
|
3238 | 719 |
wgrp := self windowGroup. |
720 |
wgrp notNil ifTrue:[ wgrp addPreEventHook:self ]. |
|
3236 | 721 |
]. |
722 |
! |
|
723 |
||
2157 | 724 |
release |
725 |
listHolder notNil ifTrue:[ |
|
726 |
listHolder removeDependent:self. |
|
727 |
listHolder := nil. |
|
728 |
]. |
|
729 |
super release |
|
129 | 730 |
! ! |
731 |
||
2406 | 732 |
!ComboView methodsFor:'menu interaction'! |
733 |
||
4564
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
734 |
createPullDownMenuForList:aList |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
735 |
"pull the menu - triggered from the button" |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
736 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
737 |
|menu index| |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
738 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
739 |
comboMenuHolder notNil ifTrue:[ |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
740 |
menu := (comboMenuHolder perform:comboMenuMessage ? #value). |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
741 |
(menu isKindOf:Menu) ifTrue:[ |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
742 |
menu := MenuPanel new menu:menu. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
743 |
] |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
744 |
] ifFalse:[ |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
745 |
menu := MenuPanel new. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
746 |
menu doAccessCharacterTranslation:false. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
747 |
menu labels:aList. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
748 |
menu hideOnRelease:false. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
749 |
menu backgroundColor: field backgroundColor. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
750 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
751 |
index := 1. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
752 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
753 |
menu do:[:el | |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
754 |
el value:#select: argument:index. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
755 |
index := index + 1. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
756 |
]. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
757 |
menu receiver:self. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
758 |
]. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
759 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
760 |
menu font:self font. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
761 |
menu preferredWidth:self width. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
762 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
763 |
^ menu |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
764 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
765 |
"Modified: / 25-03-2014 / 01:21:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
766 |
! |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
767 |
|
3369
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
768 |
deltaSelect:delta |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
769 |
"change selection by delta. Wrap at start/end" |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
770 |
|
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
771 |
|newIndex| |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
772 |
|
3556
e7d87b5b3cf7
care for mouse-wheel deltaSelect: if list is empty
Claus Gittinger <cg@exept.de>
parents:
3503
diff
changeset
|
773 |
list size == 0 ifTrue:[^ self]. |
e7d87b5b3cf7
care for mouse-wheel deltaSelect: if list is empty
Claus Gittinger <cg@exept.de>
parents:
3503
diff
changeset
|
774 |
|
3369
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
775 |
newIndex := currentIndex + delta. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
776 |
newIndex > list size ifTrue:[ |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
777 |
newIndex := 1. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
778 |
] ifFalse:[ |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
779 |
newIndex <= 0 ifTrue:[ |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
780 |
newIndex := list size. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
781 |
]. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
782 |
]. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
783 |
|
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
784 |
self select:newIndex. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
785 |
! |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
786 |
|
2406 | 787 |
pullMenu |
3281 | 788 |
"pull the menu - triggered from the button |
789 |
returns false if the menu cannot be opened" |
|
2406 | 790 |
|
3281 | 791 |
|menu origin opensMenu| |
2406 | 792 |
|
793 |
self getListFromModel. |
|
794 |
||
4227 | 795 |
opensMenu := ((list notEmptyOrNil or:[comboMenuHolder notNil]) |
796 |
and:[self enableChannel value]). |
|
3281 | 797 |
|
798 |
opensMenu ifTrue:[ |
|
2406 | 799 |
menu := self createPullDownMenuForList:list. |
4503 | 800 |
origin := self graphicsDevice translatePoint:(0 @ self height) fromView:self toView:nil. |
4227 | 801 |
"/ menu extentChangedFlag:false. |
802 |
"/ menu originChangedFlag:false. |
|
803 |
menu showAt:origin resizing:false. |
|
2406 | 804 |
]. |
805 |
||
806 |
pullDownButton turnOff. |
|
3281 | 807 |
^ opensMenu |
2406 | 808 |
|
809 |
"Created: / 10.10.2001 / 14:47:25 / cg" |
|
810 |
"Modified: / 10.10.2001 / 15:04:44 / cg" |
|
811 |
! |
|
812 |
||
813 |
select:anIndex |
|
814 |
"sent from the popped menu, when an item was selected" |
|
815 |
||
816 |
self subclassResponsibility |
|
817 |
||
818 |
"Modified: 27.2.1997 / 15:19:07 / cg" |
|
819 |
! ! |
|
820 |
||
129 | 821 |
!ComboView methodsFor:'message delegation'! |
822 |
||
823 |
doesNotUnderstand:aMessage |
|
4824 | 824 |
"delegate to my field" |
825 |
||
129 | 826 |
(field respondsTo:aMessage selector) ifTrue:[ |
1207 | 827 |
^ aMessage sendTo:field |
129 | 828 |
]. |
829 |
^ super doesNotUnderstand:aMessage |
|
830 |
||
831 |
"Created: 28.2.1996 / 15:03:17 / cg" |
|
832 |
"Modified: 28.2.1996 / 15:06:09 / cg" |
|
166 | 833 |
! |
834 |
||
2300 | 835 |
flash |
4824 | 836 |
"delegate to my field" |
837 |
||
2300 | 838 |
field flash |
839 |
! |
|
840 |
||
4824 | 841 |
flash:message withColor:flashColor |
842 |
"delegate to my field" |
|
843 |
||
844 |
field flash:message withColor:flashColor |
|
845 |
! |
|
846 |
||
166 | 847 |
respondsTo:aSymbol |
4824 | 848 |
"delegate to my field" |
849 |
||
166 | 850 |
^ (field respondsTo:aSymbol) or:[super respondsTo:aSymbol] |
851 |
||
852 |
"Created: 2.5.1996 / 16:57:34 / stefan" |
|
129 | 853 |
! ! |
854 |
||
214 | 855 |
!ComboView methodsFor:'private'! |
856 |
||
857 |
getListFromModel |
|
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
858 |
"fetch the list - either from the listHolder, or |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
859 |
from the model. If no listMessage was defined, fetch it |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
860 |
using #list." |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
861 |
|
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
862 |
listHolder notNil ifTrue:[ |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
863 |
self list:listHolder value |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
864 |
] ifFalse:[ |
304 | 865 |
(model notNil and:[listMsg notNil]) ifTrue:[ |
866 |
(model respondsTo:listMsg) ifTrue:[ |
|
867 |
self list:(model perform:listMsg) |
|
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
868 |
] |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
869 |
] |
214 | 870 |
]. |
871 |
||
872 |
"Created: 15.7.1996 / 12:22:56 / cg" |
|
304 | 873 |
"Modified: 26.2.1997 / 19:40:58 / cg" |
214 | 874 |
! |
875 |
||
876 |
getValueFromModel |
|
877 |
||
878 |
"Modified: 15.7.1996 / 12:28:59 / cg" |
|
1183
667132091c2f
ComboBox's inputField ought to use its default font.
Claus Gittinger <cg@exept.de>
parents:
1126
diff
changeset
|
879 |
! |
667132091c2f
ComboBox's inputField ought to use its default font.
Claus Gittinger <cg@exept.de>
parents:
1126
diff
changeset
|
880 |
|
1210
55f2c4209f94
oops - only pull-button is disabled with empty list;
Claus Gittinger <cg@exept.de>
parents:
1207
diff
changeset
|
881 |
setFieldsFont:aFont |
55f2c4209f94
oops - only pull-button is disabled with empty list;
Claus Gittinger <cg@exept.de>
parents:
1207
diff
changeset
|
882 |
field font:aFont. |
214 | 883 |
! ! |
884 |
||
129 | 885 |
!ComboView methodsFor:'queries'! |
886 |
||
887 |
preferredExtent |
|
285 | 888 |
"compute & return the boxes preferredExtent from the components' preferrences" |
889 |
||
683 | 890 |
|fieldPref buttonPref m menuPrefX menuPrefY w h| |
129 | 891 |
|
3573
29daa27bd290
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3556
diff
changeset
|
892 |
"/ If I have an explicit preferredExtent.. |
29daa27bd290
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3556
diff
changeset
|
893 |
explicitExtent notNil ifTrue:[ |
29daa27bd290
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3556
diff
changeset
|
894 |
^ explicitExtent |
29daa27bd290
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3556
diff
changeset
|
895 |
]. |
312 | 896 |
|
3573
29daa27bd290
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3556
diff
changeset
|
897 |
"/ If I have a cached preferredExtent value.. |
312 | 898 |
preferredExtent notNil ifTrue:[ |
899 |
^ preferredExtent |
|
900 |
]. |
|
901 |
||
129 | 902 |
list isNil ifTrue:[ |
308 | 903 |
self getListFromModel |
904 |
]. |
|
905 |
||
906 |
list isNil ifTrue:[ |
|
683 | 907 |
menuPrefX := menuPrefY := 0 |
129 | 908 |
] ifFalse:[ |
4503 | 909 |
|graphicsDevice| |
910 |
||
911 |
graphicsDevice := self graphicsDevice ? Screen current. |
|
912 |
m := (MenuView onDevice:graphicsDevice) labels:list. |
|
3429
f2b4b84cd477
added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents:
3369
diff
changeset
|
913 |
menuPrefX := m preferredWidth. |
1348 | 914 |
|
915 |
"/ the menuView returns rubbish ... |
|
916 |
"/ menuPrefY := (m preferredExtentForLines:1 cols:10) y |
|
917 |
||
918 |
"/ any non-strings ? |
|
919 |
menuPrefY := list |
|
920 |
inject:('X' heightOn:self) |
|
921 |
into:[:max :el | el isString ifTrue:[ |
|
922 |
max |
|
923 |
] ifFalse:[ |
|
924 |
max max:(el heightOn:self) |
|
925 |
] |
|
926 |
]. |
|
129 | 927 |
]. |
928 |
||
302
8af5f51ce7a5
preferredExtent is sum of menu + button
Claus Gittinger <cg@exept.de>
parents:
285
diff
changeset
|
929 |
fieldPref := field preferredExtent. |
8af5f51ce7a5
preferredExtent is sum of menu + button
Claus Gittinger <cg@exept.de>
parents:
285
diff
changeset
|
930 |
buttonPref := pullDownButton preferredExtent. |
8af5f51ce7a5
preferredExtent is sum of menu + button
Claus Gittinger <cg@exept.de>
parents:
285
diff
changeset
|
931 |
|
319 | 932 |
w := ((fieldPref x max:menuPrefX) max:50) + buttonPref x. |
933 |
w := w + margin + margin. |
|
683 | 934 |
h := (fieldPref y max:buttonPref y) max:menuPrefY. |
319 | 935 |
h := h + margin + margin. |
936 |
^ w @ h |
|
129 | 937 |
|
4060 | 938 |
"Created: / 28-02-1996 / 15:03:17 / cg" |
939 |
"Modified: / 18-07-2011 / 09:31:31 / cg" |
|
129 | 940 |
! ! |
941 |
||
4832 | 942 |
!ComboView methodsFor:'testing'! |
943 |
||
944 |
isComboView |
|
945 |
^ true |
|
946 |
! ! |
|
947 |
||
263
865b7d99d3f5
added an example for a menu-pull-hook
Claus Gittinger <cg@exept.de>
parents:
247
diff
changeset
|
948 |
!ComboView class methodsFor:'documentation'! |
129 | 949 |
|
950 |
version |
|
4824 | 951 |
^ '$Header$' |
3777
83c52227471d
changed: #createPullDownMenuForList:
Claus Gittinger <cg@exept.de>
parents:
3755
diff
changeset
|
952 |
! |
83c52227471d
changed: #createPullDownMenuForList:
Claus Gittinger <cg@exept.de>
parents:
3755
diff
changeset
|
953 |
|
83c52227471d
changed: #createPullDownMenuForList:
Claus Gittinger <cg@exept.de>
parents:
3755
diff
changeset
|
954 |
version_CVS |
4824 | 955 |
^ '$Header$' |
129 | 956 |
! ! |
4180 | 957 |