author | mawalch |
Wed, 20 Jul 2016 17:25:06 +0200 | |
changeset 5180 | afe1add1fcec |
parent 4994 | 7d232a2752db |
child 5352 | af74e6a10e4f |
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 |
||
4972 | 244 |
!ComboView class methodsFor:'queries'! |
245 |
||
246 |
isAbstract |
|
247 |
"Return if this class is an abstract class. |
|
248 |
True is returned here for myself only; false for subclasses. |
|
249 |
Abstract subclasses must redefine this again." |
|
250 |
||
251 |
^ self == ComboView. |
|
252 |
! ! |
|
253 |
||
304 | 254 |
!ComboView methodsFor:'accessing-behavior'! |
255 |
||
256 |
action:aBlock |
|
257 |
"specify, a block, which is evaluated when the lists selection changes. |
|
258 |
This is an additional hook - normally, you would communicate with the model |
|
259 |
alone" |
|
260 |
||
261 |
action := aBlock. |
|
262 |
||
263 |
"Created: 26.7.1996 / 17:44:18 / cg" |
|
264 |
"Modified: 26.2.1997 / 19:37:18 / cg" |
|
411 | 265 |
! |
266 |
||
267 |
enabled |
|
4663 | 268 |
"return true, if it is enabled" |
2892 | 269 |
|
1207 | 270 |
enableChannel isNil ifTrue:[^ true]. |
4663 | 271 |
^ enableChannel value ? true |
1294 | 272 |
! |
273 |
||
274 |
enabled:aBoolean |
|
275 |
"enable/disable components" |
|
276 |
||
277 |
self enableChannel value:aBoolean. |
|
278 |
||
279 |
"Modified: / 30.3.1999 / 14:56:18 / stefan" |
|
2892 | 280 |
! |
281 |
||
282 |
resizableMenu |
|
283 |
"return true, if the menu is to be resizable. |
|
284 |
This feature is as yet unimplemented." |
|
285 |
||
286 |
^ resizableMenu ? false |
|
287 |
! |
|
288 |
||
289 |
resizableMenu:aBoolean |
|
290 |
"enable/disable, if the menu is to be resizable. |
|
291 |
This feature is as yet unimplemented." |
|
292 |
||
293 |
resizableMenu := aBoolean |
|
411 | 294 |
! ! |
295 |
||
296 |
!ComboView methodsFor:'accessing-channels'! |
|
297 |
||
298 |
enableChannel |
|
2892 | 299 |
"return a valueHolder for enable/disable" |
300 |
||
1207 | 301 |
enableChannel isNil ifTrue:[ |
1294 | 302 |
self enableChannel:(true asValue). |
411 | 303 |
]. |
1207 | 304 |
^ enableChannel |
411 | 305 |
|
1294 | 306 |
"Modified: / 30.3.1999 / 16:20:25 / stefan" |
129 | 307 |
! ! |
308 |
||
309 |
!ComboView methodsFor:'accessing-components'! |
|
310 |
||
1560 | 311 |
field |
312 |
"return the field (input or label) component. |
|
313 |
For knowledgable users only." |
|
314 |
||
315 |
^ field |
|
316 |
||
317 |
"Created: / 26.9.1999 / 13:33:15 / cg" |
|
318 |
! |
|
319 |
||
129 | 320 |
menuButton |
321 |
"return the menuButton component" |
|
322 |
||
323 |
^ pullDownButton |
|
324 |
||
325 |
"Created: 28.2.1996 / 15:03:14 / cg" |
|
326 |
! ! |
|
327 |
||
328 |
!ComboView methodsFor:'accessing-contents'! |
|
329 |
||
181 | 330 |
contents |
304 | 331 |
"get the contents of my field" |
332 |
||
4115 | 333 |
|m| |
181 | 334 |
|
4115 | 335 |
(m := field model) isNil ifTrue:[ |
336 |
^ field contents |
|
337 |
]. |
|
338 |
^ m value |
|
339 |
||
340 |
"Created: / 14-05-1996 / 13:05:16 / cg" |
|
341 |
"Modified: / 21-03-2012 / 12:06:42 / cg" |
|
181 | 342 |
! |
343 |
||
344 |
contents:something |
|
304 | 345 |
"set the contents of my field; questionable" |
346 |
||
214 | 347 |
|m| |
348 |
||
349 |
(m := field model) notNil ifTrue:[ |
|
304 | 350 |
m value:something |
214 | 351 |
] |
181 | 352 |
|
353 |
"Created: 14.5.1996 / 13:05:33 / cg" |
|
304 | 354 |
"Modified: 26.2.1997 / 16:56:08 / cg" |
181 | 355 |
! |
356 |
||
889
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
357 |
list |
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
358 |
"return the list" |
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
359 |
|
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
360 |
^ list |
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
361 |
|
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
362 |
"Created: / 18.5.1998 / 18:58:08 / cg" |
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
363 |
! |
7879fffb4810
oops #list returned wrong list
Claus Gittinger <cg@exept.de>
parents:
869
diff
changeset
|
364 |
|
129 | 365 |
list:aList |
304 | 366 |
"set the list explicitely; used internally or |
367 |
to be send from the outside if no model/listHolder is used." |
|
368 |
||
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
369 |
list ~~ aList ifTrue:[ |
3369
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
370 |
self assert:aList isSequenceable. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
371 |
currentIndex := 1. |
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
372 |
list := aList. |
2474 | 373 |
]. |
3315 | 374 |
"maybe some values have been added to / removed from list" |
375 |
self enableStateChanged. |
|
1294 | 376 |
|
377 |
"Modified: / 30.3.1999 / 14:17:38 / stefan" |
|
129 | 378 |
! ! |
379 |
||
853 | 380 |
!ComboView methodsFor:'accessing-look'! |
381 |
||
382 |
backgroundColor |
|
383 |
||
384 |
^field backgroundColor |
|
385 |
! |
|
386 |
||
387 |
backgroundColor:aColor |
|
388 |
||
389 |
field backgroundColor:aColor |
|
390 |
! |
|
391 |
||
392 |
font:aFont |
|
393 |
||
394 |
super font:aFont. |
|
1183
667132091c2f
ComboBox's inputField ought to use its default font.
Claus Gittinger <cg@exept.de>
parents:
1126
diff
changeset
|
395 |
self setFieldsFont:aFont. |
853 | 396 |
! |
397 |
||
398 |
foregroundColor |
|
399 |
||
400 |
^field foregroundColor |
|
401 |
! |
|
402 |
||
403 |
foregroundColor:aColor |
|
404 |
||
405 |
field foregroundColor:aColor |
|
406 |
! ! |
|
407 |
||
214 | 408 |
!ComboView methodsFor:'accessing-mvc'! |
409 |
||
4187 | 410 |
comboMenuHolder |
411 |
^ comboMenuHolder |
|
412 |
! |
|
413 |
||
4225 | 414 |
comboMenuHolder:aMenuHolder |
415 |
"allows for arbitrary menus to be opened via the combo button" |
|
416 |
||
417 |
comboMenuHolder := aMenuHolder. |
|
418 |
! |
|
419 |
||
420 |
comboMenuHolder:aMenuHolder comboMenuMessage:aSelectorToTheHolder |
|
421 |
"allows for arbitrary menus to be opened via the combo button" |
|
422 |
||
423 |
comboMenuHolder := aMenuHolder. |
|
424 |
comboMenuMessage := aSelectorToTheHolder. |
|
4187 | 425 |
! |
426 |
||
427 |
comboMenuMessage |
|
428 |
^ comboMenuMessage |
|
429 |
! |
|
430 |
||
4225 | 431 |
comboMenuMessage:aSelectorToTheHolder |
432 |
"allows for arbitrary menus to be opened via the combo button" |
|
433 |
||
434 |
comboMenuMessage := aSelectorToTheHolder. |
|
4187 | 435 |
! |
436 |
||
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
437 |
listHolder:aValueHolder |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
438 |
"set the listHolder. |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
439 |
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
|
440 |
|
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
441 |
listHolder notNil ifTrue:[ |
304 | 442 |
listHolder removeDependent:self. |
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
443 |
]. |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
444 |
listHolder := aValueHolder. |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
445 |
listHolder notNil ifTrue:[ |
304 | 446 |
aValueHolder addDependent:self. |
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
447 |
]. |
3274
e162e9218179
must fetch the lists value when the listHilder is set.
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
448 |
|
e162e9218179
must fetch the lists value when the listHilder is set.
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
449 |
"/ cg: either fetch it here or when realized; |
5180 | 450 |
"/ (otherwise we'd never fetch the list if it won't change later) |
3274
e162e9218179
must fetch the lists value when the listHilder is set.
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
451 |
"/ realized ifTrue:[ |
304 | 452 |
self getListFromModel. |
3274
e162e9218179
must fetch the lists value when the listHilder is set.
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
453 |
"/ ] |
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
454 |
|
3274
e162e9218179
must fetch the lists value when the listHilder is set.
Claus Gittinger <cg@exept.de>
parents:
3247
diff
changeset
|
455 |
"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
|
456 |
! |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
457 |
|
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
458 |
listMessage:aSymbol |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
459 |
"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
|
460 |
the list. If not defined, #list is used" |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
461 |
|
304 | 462 |
listMsg := aSymbol |
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
463 |
|
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
464 |
"Created: 14.2.1997 / 19:16:52 / cg" |
304 | 465 |
"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
|
466 |
! |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
467 |
|
214 | 468 |
model:aModel |
304 | 469 |
"set the model, which is supposed to provide the boxes value. |
470 |
If a listMessage was defined, it is also responsible for providing |
|
471 |
the list" |
|
472 |
||
214 | 473 |
super model:aModel. |
474 |
||
3596 | 475 |
listHolder isNil ifTrue:[ |
476 |
self getListFromModel. |
|
477 |
]. |
|
314
6ff49c930c71
fetch models value when a model is assigned;
Claus Gittinger <cg@exept.de>
parents:
312
diff
changeset
|
478 |
self getValueFromModel. |
304 | 479 |
|
314
6ff49c930c71
fetch models value when a model is assigned;
Claus Gittinger <cg@exept.de>
parents:
312
diff
changeset
|
480 |
"Modified: 28.2.1997 / 19:08:45 / cg" |
310 | 481 |
! ! |
482 |
||
483 |
!ComboView methodsFor:'change & update'! |
|
214 | 484 |
|
485 |
update:something with:aParameter from:changedObject |
|
1207 | 486 |
|
214 | 487 |
changedObject == model ifTrue:[ |
310 | 488 |
listHolder isNil ifTrue:[ |
489 |
self getListFromModel. |
|
490 |
]. |
|
491 |
self getValueFromModel. |
|
492 |
^ self |
|
214 | 493 |
]. |
310 | 494 |
changedObject == listHolder ifTrue:[ |
495 |
self getListFromModel. |
|
496 |
^ self |
|
497 |
]. |
|
498 |
||
214 | 499 |
super update:something with:aParameter from:changedObject |
500 |
||
1294 | 501 |
"Created: / 15.7.1996 / 12:26:49 / cg" |
502 |
"Modified: / 28.2.1997 / 13:48:51 / cg" |
|
503 |
"Modified: / 30.3.1999 / 14:17:55 / stefan" |
|
214 | 504 |
! ! |
505 |
||
869
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
506 |
!ComboView methodsFor:'event handling'! |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
507 |
|
1306
56e90a9e5da1
renambe #enableStateChange to #enableStateChanged
Claus Gittinger <cg@exept.de>
parents:
1301
diff
changeset
|
508 |
enableStateChanged |
1294 | 509 |
"the enable state has changed - pass this to my field and pullDownButton" |
510 |
||
511 |
|msg| |
|
512 |
||
513 |
(enableChannel isNil or:[enableChannel value]) ifTrue:[ |
|
514 |
msg := #enable |
|
515 |
] ifFalse:[ |
|
516 |
msg := #disable |
|
517 |
]. |
|
518 |
field perform:msg ifNotUnderstood:nil. |
|
519 |
||
3755 | 520 |
list isEmptyOrNil ifTrue:[ |
4186 | 521 |
"/ may only do this, if the list is static or a valueModel. |
522 |
"/ If it is a block, we do not know what value will be returned the next |
|
523 |
"/ time. |
|
524 |
listHolder isBlock ifFalse:[ |
|
525 |
msg := #disable |
|
526 |
]. |
|
1294 | 527 |
]. |
528 |
pullDownButton perform:msg ifNotUnderstood:nil. |
|
529 |
||
530 |
"Modified: / 22.2.1999 / 00:47:46 / cg" |
|
531 |
"Modified: / 30.3.1999 / 14:17:10 / stefan" |
|
532 |
! |
|
533 |
||
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
534 |
handlesMouseWheelMotion:event inView:aView |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
535 |
"we handle delegated mousewheel events" |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
536 |
|
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
537 |
^ true |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
538 |
! |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
539 |
|
869
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
540 |
keyPress:key x:x y:y |
2868 | 541 |
"pull the menu on space and return keys" |
542 |
||
2025 | 543 |
<resource: #keyboard (#Return)> |
544 |
||
2868 | 545 |
(key == Character space or:[key == #Return]) ifTrue:[ |
869
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
546 |
self pullMenu. |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
547 |
^ self. |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
548 |
]. |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
549 |
|
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
550 |
^ super keyPress:key x:x y:y |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
551 |
|
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
552 |
"Modified: / 21.4.1998 / 20:10:05 / cg" |
3236 | 553 |
! |
554 |
||
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
555 |
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
|
556 |
"scroll through the list items" |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
557 |
|
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
558 |
self enableChannel value ifFalse:[ |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
559 |
^ self. |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
560 |
]. |
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 |
list isNil ifTrue:[ |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
563 |
self getListFromModel. |
3365
06a46f12cb2e
changed #mouseWheelMotion:x:y:amount:deltaTime:view:
Stefan Vogel <sv@exept.de>
parents:
3327
diff
changeset
|
564 |
list isEmptyOrNil ifTrue:[ |
06a46f12cb2e
changed #mouseWheelMotion:x:y:amount:deltaTime:view:
Stefan Vogel <sv@exept.de>
parents:
3327
diff
changeset
|
565 |
"nothing to scroll" |
06a46f12cb2e
changed #mouseWheelMotion:x:y:amount:deltaTime:view:
Stefan Vogel <sv@exept.de>
parents:
3327
diff
changeset
|
566 |
^ self |
06a46f12cb2e
changed #mouseWheelMotion:x:y:amount:deltaTime:view:
Stefan Vogel <sv@exept.de>
parents:
3327
diff
changeset
|
567 |
]. |
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
568 |
]. |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
569 |
|
3369
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
570 |
self deltaSelect:amount sign negated. |
3312
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
571 |
! |
ad1dcdaa7ba7
Support for selection via mouse wheel
Stefan Vogel <sv@exept.de>
parents:
3290
diff
changeset
|
572 |
|
3236 | 573 |
processEvent:anEvent |
3290
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
574 |
|evView point x y button| |
3236 | 575 |
|
3495 | 576 |
"/ only care for buttonpress in my field... |
577 |
anEvent isButtonPressEvent ifFalse:[^ false]. |
|
578 |
evView := anEvent view. |
|
579 |
evView isNil ifTrue:[^ false]. |
|
580 |
||
3290
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
581 |
button := anEvent state. |
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
582 |
((button == 1) or:[button == #select]) ifFalse:[ |
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
583 |
^ false |
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
584 |
]. |
d6fafe560ade
bugfix - processEvents should have a look for which button is pressed
ca
parents:
3281
diff
changeset
|
585 |
|
3236 | 586 |
(field isNil or:[field shown not]) ifTrue:[ |
587 |
^ false |
|
588 |
]. |
|
589 |
(field isKeyboardConsumer and:[field isEnabled]) ifTrue:[ |
|
590 |
^ false |
|
591 |
]. |
|
592 |
||
3755 | 593 |
x := anEvent x. |
594 |
y := anEvent y. |
|
3236 | 595 |
|
596 |
evView ~~ field ifTrue:[ |
|
597 |
(evView isSameOrComponentOf:field) ifFalse:[ |
|
598 |
^ false |
|
599 |
]. |
|
3755 | 600 |
point := x @ y. |
4994 | 601 |
point := device translatePoint:point fromView:evView toView:field. |
3755 | 602 |
x := point x. |
603 |
y := point y. |
|
3236 | 604 |
]. |
605 |
(x between:0 and:field width) ifFalse:[^ false]. |
|
606 |
(y between:0 and:field height) ifFalse:[^ false]. |
|
607 |
||
3281 | 608 |
self pullMenu == false ifTrue:[ ^ false ]. |
3495 | 609 |
|
610 |
"/ although eaten, we still must care for the focus !! |
|
611 |
self wantsFocusWithButtonPress ifTrue:[ |
|
3503 | 612 |
self windowGroup notNil ifTrue:[ |
613 |
self windowGroup focusView:self. |
|
614 |
"/ Transcript showCR:self windowGroup focusCameByTab. |
|
615 |
] |
|
3495 | 616 |
]. |
3236 | 617 |
^ true |
869
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
618 |
! ! |
a1838cce9641
popup menu on space or return
Claus Gittinger <cg@exept.de>
parents:
853
diff
changeset
|
619 |
|
2499 | 620 |
!ComboView methodsFor:'initialization & release'! |
129 | 621 |
|
3236 | 622 |
destroy |
623 |
|wgrp| |
|
624 |
||
625 |
(wgrp := self windowGroup) notNil ifTrue:[ |
|
626 |
wgrp removePreEventHook:self. |
|
627 |
]. |
|
628 |
super destroy. |
|
629 |
! |
|
630 |
||
3825 | 631 |
initStyle |
632 |
super initStyle. |
|
633 |
||
634 |
self borderWidth:(EditField defaultBorderWidth). |
|
635 |
self borderColor:(EditField defaultBorderColor). |
|
636 |
! |
|
637 |
||
129 | 638 |
initialize |
2750 | 639 |
|prefExt leftInset rightInset prefWidth halfSpacing nm lvl| |
129 | 640 |
|
641 |
super initialize. |
|
308 | 642 |
|
304 | 643 |
listMsg := self class defaultListMessage. |
644 |
aspectMsg := self class defaultAspectMessage. |
|
645 |
changeMsg := self class defaultChangeMessage. |
|
129 | 646 |
|
647 |
self initializeField. |
|
3825 | 648 |
field origin:margin@margin corner:1.0@1.0. |
2136 | 649 |
self shadowColor:(field shadowColor). |
129 | 650 |
|
331 | 651 |
self initializeButton. |
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
652 |
pullDownButton pressAction:[self pullMenu]. |
280 | 653 |
prefExt := pullDownButton preferredExtent. |
654 |
prefWidth := prefExt x. |
|
655 |
||
129 | 656 |
pullDownButton origin:1.0@0.0 corner:1.0@1.0. |
217 | 657 |
styleSheet is3D ifTrue:[ |
280 | 658 |
halfSpacing := ViewSpacing // 2. |
659 |
leftInset := rightInset := prefWidth + halfSpacing. |
|
2750 | 660 |
(lvl := styleSheet at:#'comboView.level' default:nil) notNil ifTrue:[ |
661 |
self level:lvl. |
|
319 | 662 |
field level:0. |
663 |
field rightInset:margin. |
|
664 |
] ifFalse:[ |
|
665 |
pullDownButton rightInset:halfSpacing. |
|
666 |
field leftInset:halfSpacing |
|
667 |
]. |
|
217 | 668 |
] ifFalse:[ |
280 | 669 |
leftInset := prefWidth + pullDownButton borderWidth. |
670 |
rightInset := prefWidth. |
|
217 | 671 |
]. |
1125 | 672 |
|
3836 | 673 |
"/ what a hack... |
1696
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1633
diff
changeset
|
674 |
nm := styleSheet name. |
3836 | 675 |
(nm = #win95 or:[nm = #win98 or:[nm = #winXP or:[nm = #st80 or:[nm = #winVista]]]]) ifTrue:[ |
1125 | 676 |
field level:0. |
2750 | 677 |
lvl isNil ifTrue:[self level:-1]. |
1125 | 678 |
pullDownButton rightInset:0. |
1696
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1633
diff
changeset
|
679 |
nm ~= #st80 ifTrue:[ |
3429
f2b4b84cd477
added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents:
3369
diff
changeset
|
680 |
leftInset := (ArrowButton new preferredWidth). |
1126 | 681 |
rightInset := leftInset. |
1125 | 682 |
]. |
683 |
field origin:0.0@0.0. |
|
2750 | 684 |
field leftInset:0. |
1125 | 685 |
"/ field topInset:1; bottomInset:1. |
2750 | 686 |
"/ nm = #winXP ifTrue:[ |
687 |
"/ self borderWidth:1. |
|
688 |
"/ self borderColor:(Color blue lightened). |
|
689 |
"/ ]. |
|
1125 | 690 |
]. |
1126 | 691 |
field rightInset:rightInset. |
280 | 692 |
pullDownButton leftInset:leftInset negated. |
129 | 693 |
|
3429
f2b4b84cd477
added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents:
3369
diff
changeset
|
694 |
self initialHeight:field preferredHeight + ViewSpacing. |
129 | 695 |
" |
696 |
|b| |
|
697 |
||
698 |
b := ComboBoxView new. |
|
699 |
b list:#('hello' 'world' 'this' 'is' 'st/x'). |
|
700 |
b open |
|
701 |
" |
|
702 |
||
1125 | 703 |
"Created: / 28.2.1996 / 15:03:17 / cg" |
704 |
"Modified: / 8.9.1998 / 20:33:22 / cg" |
|
331 | 705 |
! |
706 |
||
707 |
initializeButton |
|
2174
ab242e29da64
button init code made publicly available
Claus Gittinger <cg@exept.de>
parents:
2157
diff
changeset
|
708 |
pullDownButton := self class comboButtonFor:self. |
331 | 709 |
pullDownButton disable. |
710 |
! |
|
711 |
||
712 |
initializeField |
|
4972 | 713 |
"concrete subclass is responsible to instantiate |
714 |
a field widget here. |
|
715 |
For comboList, this will be a label; |
|
716 |
for comboBox, this will be an editfield" |
|
717 |
||
331 | 718 |
self subclassResponsibility |
719 |
||
720 |
"Created: 29.3.1997 / 11:17:14 / cg" |
|
2157 | 721 |
! |
722 |
||
3236 | 723 |
realize |
3238 | 724 |
|pullMenuIfClickedOnField wgrp| |
3236 | 725 |
|
726 |
super realize. |
|
727 |
||
3824 | 728 |
pullMenuIfClickedOnField := |
729 |
styleSheet |
|
730 |
at:#'comboView.pullMenuIfClickedOnField' |
|
731 |
default:[ OperatingSystem isMSWINDOWSlike ]. |
|
3236 | 732 |
|
733 |
pullMenuIfClickedOnField == true ifTrue:[ |
|
3238 | 734 |
wgrp := self windowGroup. |
735 |
wgrp notNil ifTrue:[ wgrp addPreEventHook:self ]. |
|
3236 | 736 |
]. |
737 |
! |
|
738 |
||
2157 | 739 |
release |
740 |
listHolder notNil ifTrue:[ |
|
741 |
listHolder removeDependent:self. |
|
742 |
listHolder := nil. |
|
743 |
]. |
|
744 |
super release |
|
129 | 745 |
! ! |
746 |
||
2406 | 747 |
!ComboView methodsFor:'menu interaction'! |
748 |
||
4564
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
749 |
createPullDownMenuForList:aList |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
750 |
"pull the menu - triggered from the button" |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
751 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
752 |
|menu index| |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
753 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
754 |
comboMenuHolder notNil ifTrue:[ |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
755 |
menu := (comboMenuHolder perform:comboMenuMessage ? #value). |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
756 |
(menu isKindOf:Menu) ifTrue:[ |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
757 |
menu := MenuPanel new menu:menu. |
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 |
] ifFalse:[ |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
760 |
menu := MenuPanel new. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
761 |
menu doAccessCharacterTranslation:false. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
762 |
menu labels:aList. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
763 |
menu hideOnRelease:false. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
764 |
menu backgroundColor: field backgroundColor. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
765 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
766 |
index := 1. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
767 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
768 |
menu do:[:el | |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
769 |
el value:#select: argument:index. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
770 |
index := index + 1. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
771 |
]. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
772 |
menu receiver:self. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
773 |
]. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
774 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
775 |
menu font:self font. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
776 |
menu preferredWidth:self width. |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
777 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
778 |
^ menu |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
779 |
|
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
780 |
"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
|
781 |
! |
be449e47ce4b
Fix in ComboView>>createPullDownMenuForList:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4563
diff
changeset
|
782 |
|
3369
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
783 |
deltaSelect:delta |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
784 |
"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
|
785 |
|
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
786 |
|newIndex| |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
787 |
|
3556
e7d87b5b3cf7
care for mouse-wheel deltaSelect: if list is empty
Claus Gittinger <cg@exept.de>
parents:
3503
diff
changeset
|
788 |
list size == 0 ifTrue:[^ self]. |
e7d87b5b3cf7
care for mouse-wheel deltaSelect: if list is empty
Claus Gittinger <cg@exept.de>
parents:
3503
diff
changeset
|
789 |
|
3369
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
790 |
newIndex := currentIndex + delta. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
791 |
newIndex > list size ifTrue:[ |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
792 |
newIndex := 1. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
793 |
] ifFalse:[ |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
794 |
newIndex <= 0 ifTrue:[ |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
795 |
newIndex := list size. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
796 |
]. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
797 |
]. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
798 |
|
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
799 |
self select:newIndex. |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
800 |
! |
9f8f7c5d328f
Correct selection behavior (start with line 1)
Stefan Vogel <sv@exept.de>
parents:
3365
diff
changeset
|
801 |
|
2406 | 802 |
pullMenu |
3281 | 803 |
"pull the menu - triggered from the button |
804 |
returns false if the menu cannot be opened" |
|
2406 | 805 |
|
3281 | 806 |
|menu origin opensMenu| |
2406 | 807 |
|
808 |
self getListFromModel. |
|
809 |
||
4227 | 810 |
opensMenu := ((list notEmptyOrNil or:[comboMenuHolder notNil]) |
811 |
and:[self enableChannel value]). |
|
3281 | 812 |
|
813 |
opensMenu ifTrue:[ |
|
2406 | 814 |
menu := self createPullDownMenuForList:list. |
4994 | 815 |
origin := device translatePoint:(0 @ self height) fromView:self toView:nil. |
4227 | 816 |
"/ menu extentChangedFlag:false. |
817 |
"/ menu originChangedFlag:false. |
|
818 |
menu showAt:origin resizing:false. |
|
2406 | 819 |
]. |
820 |
||
821 |
pullDownButton turnOff. |
|
3281 | 822 |
^ opensMenu |
2406 | 823 |
|
824 |
"Created: / 10.10.2001 / 14:47:25 / cg" |
|
825 |
"Modified: / 10.10.2001 / 15:04:44 / cg" |
|
826 |
! |
|
827 |
||
828 |
select:anIndex |
|
829 |
"sent from the popped menu, when an item was selected" |
|
830 |
||
831 |
self subclassResponsibility |
|
832 |
||
833 |
"Modified: 27.2.1997 / 15:19:07 / cg" |
|
834 |
! ! |
|
835 |
||
129 | 836 |
!ComboView methodsFor:'message delegation'! |
837 |
||
838 |
doesNotUnderstand:aMessage |
|
4824 | 839 |
"delegate to my field" |
840 |
||
129 | 841 |
(field respondsTo:aMessage selector) ifTrue:[ |
1207 | 842 |
^ aMessage sendTo:field |
129 | 843 |
]. |
844 |
^ super doesNotUnderstand:aMessage |
|
845 |
||
846 |
"Created: 28.2.1996 / 15:03:17 / cg" |
|
847 |
"Modified: 28.2.1996 / 15:06:09 / cg" |
|
166 | 848 |
! |
849 |
||
2300 | 850 |
flash |
4824 | 851 |
"delegate to my field" |
852 |
||
2300 | 853 |
field flash |
854 |
! |
|
855 |
||
4824 | 856 |
flash:message withColor:flashColor |
857 |
"delegate to my field" |
|
858 |
||
859 |
field flash:message withColor:flashColor |
|
860 |
! |
|
861 |
||
166 | 862 |
respondsTo:aSymbol |
4824 | 863 |
"delegate to my field" |
864 |
||
166 | 865 |
^ (field respondsTo:aSymbol) or:[super respondsTo:aSymbol] |
866 |
||
867 |
"Created: 2.5.1996 / 16:57:34 / stefan" |
|
129 | 868 |
! ! |
869 |
||
214 | 870 |
!ComboView methodsFor:'private'! |
871 |
||
872 |
getListFromModel |
|
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
873 |
"fetch the list - either from the listHolder, or |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
874 |
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
|
875 |
using #list." |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
876 |
|
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
877 |
listHolder notNil ifTrue:[ |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
878 |
self list:listHolder value |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
879 |
] ifFalse:[ |
304 | 880 |
(model notNil and:[listMsg notNil]) ifTrue:[ |
881 |
(model respondsTo:listMsg) ifTrue:[ |
|
882 |
self list:(model perform:listMsg) |
|
277
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
883 |
] |
44eadbccc2b7
added support for a separate listHolder
Claus Gittinger <cg@exept.de>
parents:
276
diff
changeset
|
884 |
] |
214 | 885 |
]. |
886 |
||
887 |
"Created: 15.7.1996 / 12:22:56 / cg" |
|
304 | 888 |
"Modified: 26.2.1997 / 19:40:58 / cg" |
214 | 889 |
! |
890 |
||
891 |
getValueFromModel |
|
892 |
||
893 |
"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
|
894 |
! |
667132091c2f
ComboBox's inputField ought to use its default font.
Claus Gittinger <cg@exept.de>
parents:
1126
diff
changeset
|
895 |
|
1210
55f2c4209f94
oops - only pull-button is disabled with empty list;
Claus Gittinger <cg@exept.de>
parents:
1207
diff
changeset
|
896 |
setFieldsFont:aFont |
55f2c4209f94
oops - only pull-button is disabled with empty list;
Claus Gittinger <cg@exept.de>
parents:
1207
diff
changeset
|
897 |
field font:aFont. |
214 | 898 |
! ! |
899 |
||
129 | 900 |
!ComboView methodsFor:'queries'! |
901 |
||
902 |
preferredExtent |
|
285 | 903 |
"compute & return the boxes preferredExtent from the components' preferrences" |
904 |
||
683 | 905 |
|fieldPref buttonPref m menuPrefX menuPrefY w h| |
129 | 906 |
|
3573
29daa27bd290
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3556
diff
changeset
|
907 |
"/ If I have an explicit preferredExtent.. |
29daa27bd290
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3556
diff
changeset
|
908 |
explicitExtent notNil ifTrue:[ |
29daa27bd290
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3556
diff
changeset
|
909 |
^ explicitExtent |
29daa27bd290
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3556
diff
changeset
|
910 |
]. |
312 | 911 |
|
3573
29daa27bd290
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
3556
diff
changeset
|
912 |
"/ If I have a cached preferredExtent value.. |
312 | 913 |
preferredExtent notNil ifTrue:[ |
914 |
^ preferredExtent |
|
915 |
]. |
|
916 |
||
129 | 917 |
list isNil ifTrue:[ |
308 | 918 |
self getListFromModel |
919 |
]. |
|
920 |
||
921 |
list isNil ifTrue:[ |
|
683 | 922 |
menuPrefX := menuPrefY := 0 |
129 | 923 |
] ifFalse:[ |
4503 | 924 |
|graphicsDevice| |
925 |
||
4994 | 926 |
graphicsDevice := device ? Screen current. |
4503 | 927 |
m := (MenuView onDevice:graphicsDevice) labels:list. |
3429
f2b4b84cd477
added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents:
3369
diff
changeset
|
928 |
menuPrefX := m preferredWidth. |
1348 | 929 |
|
930 |
"/ the menuView returns rubbish ... |
|
931 |
"/ menuPrefY := (m preferredExtentForLines:1 cols:10) y |
|
932 |
||
933 |
"/ any non-strings ? |
|
934 |
menuPrefY := list |
|
935 |
inject:('X' heightOn:self) |
|
936 |
into:[:max :el | el isString ifTrue:[ |
|
937 |
max |
|
938 |
] ifFalse:[ |
|
939 |
max max:(el heightOn:self) |
|
940 |
] |
|
941 |
]. |
|
129 | 942 |
]. |
943 |
||
302
8af5f51ce7a5
preferredExtent is sum of menu + button
Claus Gittinger <cg@exept.de>
parents:
285
diff
changeset
|
944 |
fieldPref := field preferredExtent. |
8af5f51ce7a5
preferredExtent is sum of menu + button
Claus Gittinger <cg@exept.de>
parents:
285
diff
changeset
|
945 |
buttonPref := pullDownButton preferredExtent. |
8af5f51ce7a5
preferredExtent is sum of menu + button
Claus Gittinger <cg@exept.de>
parents:
285
diff
changeset
|
946 |
|
319 | 947 |
w := ((fieldPref x max:menuPrefX) max:50) + buttonPref x. |
948 |
w := w + margin + margin. |
|
683 | 949 |
h := (fieldPref y max:buttonPref y) max:menuPrefY. |
319 | 950 |
h := h + margin + margin. |
951 |
^ w @ h |
|
129 | 952 |
|
4060 | 953 |
"Created: / 28-02-1996 / 15:03:17 / cg" |
954 |
"Modified: / 18-07-2011 / 09:31:31 / cg" |
|
129 | 955 |
! ! |
956 |
||
4832 | 957 |
!ComboView methodsFor:'testing'! |
958 |
||
959 |
isComboView |
|
960 |
^ true |
|
961 |
! ! |
|
962 |
||
263
865b7d99d3f5
added an example for a menu-pull-hook
Claus Gittinger <cg@exept.de>
parents:
247
diff
changeset
|
963 |
!ComboView class methodsFor:'documentation'! |
129 | 964 |
|
965 |
version |
|
4824 | 966 |
^ '$Header$' |
3777
83c52227471d
changed: #createPullDownMenuForList:
Claus Gittinger <cg@exept.de>
parents:
3755
diff
changeset
|
967 |
! |
83c52227471d
changed: #createPullDownMenuForList:
Claus Gittinger <cg@exept.de>
parents:
3755
diff
changeset
|
968 |
|
83c52227471d
changed: #createPullDownMenuForList:
Claus Gittinger <cg@exept.de>
parents:
3755
diff
changeset
|
969 |
version_CVS |
4824 | 970 |
^ '$Header$' |
129 | 971 |
! ! |
4180 | 972 |