1236
|
1 |
ApplicationModel subclass:#ListEditor
|
|
2 |
instanceVariableNames:'choiceList choiceSelection selectionList selectionSelection'
|
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
|
5 |
category:'Views-Lists'
|
|
6 |
!
|
1235
|
7 |
|
1236
|
8 |
|
|
9 |
!ListEditor class methodsFor:'interface specs'!
|
|
10 |
|
|
11 |
windowSpec
|
|
12 |
"This resource specification was automatically generated
|
|
13 |
by the UIPainter of ST/X."
|
|
14 |
|
|
15 |
"Do not manually edit this!! If it is corrupted,
|
|
16 |
the UIPainter may not be able to read the specification."
|
|
17 |
|
|
18 |
"
|
|
19 |
UIPainter new openOnClass:ListEditor andSelector:#windowSpec
|
|
20 |
ListEditor new openInterface:#windowSpec
|
|
21 |
ListEditor open
|
|
22 |
"
|
|
23 |
|
|
24 |
<resource: #canvas>
|
|
25 |
|
|
26 |
^
|
|
27 |
|
|
28 |
#(#FullSpec
|
|
29 |
#window:
|
|
30 |
#(#WindowSpec
|
|
31 |
#name: 'NewApplication'
|
|
32 |
#layout: #(#LayoutFrame 134 0 100 0 433 0 399 0)
|
|
33 |
#level: 0
|
|
34 |
#label: 'NewApplication'
|
|
35 |
#min: #(#Point 10 10)
|
|
36 |
#max: #(#Point 800 553)
|
|
37 |
#bounds: #(#Rectangle 134 100 434 400)
|
|
38 |
#usePreferredExtent: false
|
|
39 |
)
|
|
40 |
#component:
|
|
41 |
#(#SpecCollection
|
|
42 |
#collection:
|
|
43 |
#(
|
|
44 |
#(#SequenceViewSpec
|
|
45 |
#name: 'choiceList'
|
|
46 |
#layout: #(#LayoutFrame 0 0.0 30 0.0 -12 0.5 0 1.0)
|
|
47 |
#model: #choiceSelection
|
|
48 |
#hasHorizontalScrollBar: true
|
|
49 |
#hasVerticalScrollBar: true
|
|
50 |
#useIndex: true
|
|
51 |
#sequenceList: #choiceList
|
|
52 |
)
|
|
53 |
#(#SequenceViewSpec
|
|
54 |
#name: 'selectionList'
|
|
55 |
#layout: #(#LayoutFrame 12 0.5 30 0.0 0 1.0 0 1.0)
|
|
56 |
#model: #selectionSelection
|
|
57 |
#hasHorizontalScrollBar: true
|
|
58 |
#hasVerticalScrollBar: true
|
|
59 |
#useIndex: true
|
|
60 |
#sequenceList: #selectionList
|
|
61 |
)
|
|
62 |
#(#LabelSpec
|
|
63 |
#name: 'choiceLabel'
|
|
64 |
#layout: #(#LayoutFrame 0 0.0 0 0 -20 0.5 30 0)
|
|
65 |
#label: 'Choices'
|
|
66 |
#translateLabel: true
|
|
67 |
)
|
|
68 |
#(#LabelSpec
|
|
69 |
#name: 'selectionLabel'
|
|
70 |
#layout: #(#LayoutFrame 20 0.5 0 0 0 1.0 30 0)
|
|
71 |
#label: 'Selected'
|
|
72 |
#translateLabel: true
|
|
73 |
)
|
|
74 |
#(#ArrowButtonSpec
|
|
75 |
#name: 'addButton'
|
|
76 |
#layout: #(#LayoutFrame -10 0.5 -25 0.5 10 0.5 -5 0.5)
|
|
77 |
#model: #addToSelection
|
|
78 |
#isTriggerOnDown: true
|
|
79 |
#direction: #right
|
|
80 |
)
|
|
81 |
#(#ArrowButtonSpec
|
|
82 |
#name: 'removeButton'
|
|
83 |
#layout: #(#LayoutFrame -10 0.5 5 0.5 10 0.5 25 0.5)
|
|
84 |
#model: #removeFromSelection
|
|
85 |
#isTriggerOnDown: true
|
|
86 |
#direction: #left
|
|
87 |
)
|
|
88 |
)
|
|
89 |
)
|
|
90 |
)
|
|
91 |
|
|
92 |
"Modified: / 7.3.1999 / 00:43:21 / cg"
|
|
93 |
! !
|
|
94 |
|
|
95 |
!ListEditor methodsFor:'actions'!
|
|
96 |
|
|
97 |
addToSelection
|
|
98 |
"automatically generated by UIPainter ..."
|
|
99 |
|
|
100 |
"*** the code below performs no action"
|
|
101 |
"*** (except for some feedback on the Transcript)"
|
|
102 |
"*** Please change as required and accept in the browser."
|
|
103 |
|
|
104 |
"action to be added ..."
|
|
105 |
|
|
106 |
Transcript showCR:self class name, ': action for addToSelection ...'.
|
|
107 |
|
|
108 |
"Created: / 7.3.1999 / 00:44:23 / cg"
|
|
109 |
!
|
|
110 |
|
|
111 |
removeFromSelection
|
|
112 |
"automatically generated by UIPainter ..."
|
|
113 |
|
|
114 |
"*** the code below performs no action"
|
|
115 |
"*** (except for some feedback on the Transcript)"
|
|
116 |
"*** Please change as required and accept in the browser."
|
|
117 |
|
|
118 |
"action to be added ..."
|
|
119 |
|
|
120 |
Transcript showCR:self class name, ': action for removeFromSelection ...'.
|
|
121 |
|
|
122 |
"Created: / 7.3.1999 / 00:44:24 / cg"
|
|
123 |
! !
|
|
124 |
|
|
125 |
!ListEditor methodsFor:'aspects'!
|
|
126 |
|
|
127 |
choiceList
|
|
128 |
choiceList isNil ifTrue:[
|
|
129 |
choiceList := ValueHolder new.
|
|
130 |
].
|
|
131 |
^ choiceList.
|
|
132 |
|
|
133 |
"Created: / 7.3.1999 / 00:44:23 / cg"
|
|
134 |
"Modified: / 7.3.1999 / 00:45:51 / cg"
|
|
135 |
!
|
|
136 |
|
|
137 |
choiceSelection
|
|
138 |
choiceSelection isNil ifTrue:[
|
|
139 |
choiceSelection := ValueHolder new.
|
|
140 |
].
|
|
141 |
^ choiceSelection.
|
|
142 |
|
|
143 |
"Created: / 7.3.1999 / 00:44:23 / cg"
|
|
144 |
"Modified: / 7.3.1999 / 00:46:29 / cg"
|
|
145 |
!
|
|
146 |
|
|
147 |
selectionList
|
|
148 |
selectionList isNil ifTrue:[
|
|
149 |
selectionList := ValueHolder new.
|
|
150 |
].
|
|
151 |
^ selectionList.
|
|
152 |
|
|
153 |
"Created: / 7.3.1999 / 00:44:23 / cg"
|
|
154 |
"Modified: / 7.3.1999 / 00:47:34 / cg"
|
|
155 |
!
|
|
156 |
|
|
157 |
selectionSelection
|
|
158 |
selectionSelection isNil ifTrue:[
|
|
159 |
selectionSelection := ValueHolder new.
|
|
160 |
].
|
|
161 |
^ selectionSelection.
|
|
162 |
|
|
163 |
"Created: / 7.3.1999 / 00:44:23 / cg"
|
|
164 |
"Modified: / 7.3.1999 / 00:48:27 / cg"
|
|
165 |
! !
|
|
166 |
|
|
167 |
!ListEditor class methodsFor:'documentation'!
|
|
168 |
|
|
169 |
version
|
|
170 |
^ '$Header: /cvs/stx/stx/libwidg2/ListEditor.st,v 1.2 1999-03-07 13:39:54 cg Exp $'
|
|
171 |
! !
|