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