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