author | Stefan Vogel <sv@exept.de> |
Fri, 21 Feb 2003 22:03:00 +0100 | |
changeset 4595 | 09c632988dad |
parent 4407 | 1fbe3b0fbfcf |
child 4912 | 139a7edbdec4 |
permissions | -rw-r--r-- |
3892 | 1 |
" |
2 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
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 |
||
12 |
||
13 |
" |
|
14 |
||
15 |
"{ Package: 'stx:libtool' }" |
|
16 |
||
17 |
Object subclass:#FileBrowserV2UISpecifications |
|
18 |
instanceVariableNames:'' |
|
19 |
classVariableNames:'' |
|
20 |
poolDictionaries:'' |
|
21 |
category:'Interface-Tools-File' |
|
22 |
! |
|
23 |
||
24 |
VariablePanelSpec subclass:#PanelSpec |
|
25 |
instanceVariableNames:'whichView orientation visibility' |
|
26 |
classVariableNames:'' |
|
27 |
poolDictionaries:'' |
|
28 |
privateIn:FileBrowserV2UISpecifications |
|
29 |
! |
|
30 |
||
31 |
!FileBrowserV2UISpecifications class methodsFor:'documentation'! |
|
32 |
||
33 |
copyright |
|
34 |
" |
|
35 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
36 |
All Rights Reserved |
|
37 |
||
38 |
This software is furnished under a license and may be used |
|
39 |
only in accordance with the terms of that license and with the |
|
40 |
inclusion of the above copyright notice. This software may not |
|
41 |
be provided or otherwise made available to, or used by, any |
|
42 |
other person. No title to or ownership of the software is |
|
43 |
hereby transferred. |
|
44 |
||
45 |
||
46 |
" |
|
47 |
! |
|
48 |
||
49 |
documentation |
|
50 |
" |
|
51 |
copy of the Panel from CBrowser , if a better HorizontalPanel and VerticalPanel is available |
|
52 |
the new version can be used here |
|
53 |
" |
|
54 |
! ! |
|
55 |
||
56 |
!FileBrowserV2UISpecifications class methodsFor:'classAccess'! |
|
57 |
||
58 |
panelSpecClass |
|
59 |
||
60 |
^ PanelSpec |
|
61 |
! ! |
|
62 |
||
63 |
!FileBrowserV2UISpecifications class methodsFor:'interface specs'! |
|
64 |
||
65 |
listSpec |
|
66 |
"This resource specification was automatically generated |
|
67 |
by the UIPainter of ST/X." |
|
68 |
||
69 |
"Do not manually edit this!! If it is corrupted, |
|
70 |
the UIPainter may not be able to read the specification." |
|
71 |
||
72 |
" |
|
73 |
UIPainter new openOnClass:FileBrowserV2UISpecifications andSelector:#listSpec |
|
74 |
" |
|
75 |
||
76 |
<resource: #canvas> |
|
77 |
||
78 |
^ |
|
79 |
#(#FullSpec |
|
80 |
#name: #listSpec |
|
81 |
#window: |
|
82 |
#(#WindowSpec |
|
83 |
#label: 'Graphs' |
|
84 |
#name: 'Graphs' |
|
85 |
#layout: #(#LayoutFrame 7 0 129 0 441 0 316 0) |
|
86 |
#level: 0 |
|
87 |
#min: #(#Point 10 10) |
|
88 |
#max: #(#Point 1280 1024) |
|
89 |
#bounds: #(#Rectangle 7 129 442 317) |
|
90 |
#usePreferredExtent: false |
|
91 |
#returnIsOKInDialog: true |
|
92 |
#escapeIsCancelInDialog: true |
|
93 |
) |
|
94 |
#component: |
|
95 |
#(#SpecCollection |
|
96 |
#collection: #( |
|
97 |
#(#HierarchicalListViewSpec |
|
98 |
#name: 'HierarchicalListModel' |
|
99 |
#layout: #(#LayoutFrame 225 0 7 0 398 0 79 0) |
|
100 |
#hasHorizontalScrollBar: true |
|
101 |
#hasVerticalScrollBar: true |
|
102 |
#miniScrollerHorizontal: true |
|
103 |
#highlightMode: #line |
|
104 |
) |
|
105 |
#(#LabelSpec |
|
106 |
#label: 'HierarchicalList' |
|
107 |
#name: 'HierarchicalListLabel' |
|
108 |
#layout: #(#Point 252 15) |
|
109 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
110 |
#resizeForLabel: true |
|
111 |
#adjust: #left |
|
112 |
#canUIDrag: false |
|
113 |
) |
|
114 |
#(#SelectionInListModelViewSpec |
|
115 |
#name: 'SelectionInListModel' |
|
116 |
#layout: #(#LayoutFrame 6 0 7 0 179 0 79 0) |
|
117 |
#hasHorizontalScrollBar: true |
|
118 |
#hasVerticalScrollBar: true |
|
119 |
#miniScrollerHorizontal: true |
|
120 |
#highlightMode: #line |
|
121 |
) |
|
122 |
#(#LabelSpec |
|
123 |
#label: 'SelectionInList' |
|
124 |
#name: 'SelectionInListLabel' |
|
125 |
#layout: #(#Point 33 15) |
|
126 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
127 |
#resizeForLabel: true |
|
128 |
#adjust: #left |
|
129 |
#canUIDrag: false |
|
130 |
) |
|
131 |
#(#ListModelViewSpec |
|
132 |
#name: 'ListModel' |
|
133 |
#layout: #(#LayoutFrame 6 0 100 0 179 0 172 0) |
|
134 |
#hasHorizontalScrollBar: true |
|
135 |
#hasVerticalScrollBar: true |
|
136 |
#miniScrollerHorizontal: true |
|
137 |
) |
|
138 |
#(#LabelSpec |
|
139 |
#label: 'ListModel' |
|
140 |
#name: 'ListModelLabel' |
|
141 |
#layout: #(#Point 33 109) |
|
142 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
143 |
#resizeForLabel: true |
|
144 |
#adjust: #left |
|
145 |
#canUIDrag: false |
|
146 |
) |
|
147 |
) |
|
148 |
||
149 |
) |
|
150 |
) |
|
151 |
! |
|
152 |
||
153 |
othersSpec |
|
154 |
"This resource specification was automatically generated |
|
155 |
by the UIPainter of ST/X." |
|
156 |
||
157 |
"Do not manually edit this!! If it is corrupted, |
|
158 |
the UIPainter may not be able to read the specification." |
|
159 |
||
160 |
" |
|
161 |
UIPainter new openOnClass:FileBrowserV2UISpecifications andSelector:#othersSpec |
|
162 |
" |
|
163 |
||
164 |
<resource: #canvas> |
|
165 |
||
166 |
^ |
|
167 |
#(#FullSpec |
|
168 |
#name: #othersSpec |
|
169 |
#window: |
|
170 |
#(#WindowSpec |
|
171 |
#label: 'Panel Specs' |
|
172 |
#name: 'Panel Specs' |
|
173 |
#layout: #(#LayoutFrame 119 0 66 0 536 0 215 0) |
|
174 |
#level: 0 |
|
175 |
#min: #(#Point 10 10) |
|
176 |
#max: #(#Point 1280 1024) |
|
177 |
#bounds: #(#Rectangle 119 66 537 216) |
|
178 |
#usePreferredExtent: false |
|
179 |
#returnIsOKInDialog: true |
|
180 |
#escapeIsCancelInDialog: true |
|
181 |
) |
|
182 |
#component: |
|
183 |
#(#SpecCollection |
|
184 |
#collection: #( |
|
185 |
#(#LabelSpec |
|
186 |
#label: 'Wrapper' |
|
187 |
#name: 'WrapperLabel' |
|
188 |
#layout: #(#Point 9 6) |
|
189 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
190 |
#resizeForLabel: true |
|
191 |
#adjust: #left |
|
192 |
#canUIDrag: false |
|
193 |
) |
|
194 |
#(#'FileBrowserV2UISpecifications::WrapperSpec' |
|
195 |
#name: 'Wrapper' |
|
196 |
#layout: #(#LayoutFrame 6 0 26 0 179 0 98 0) |
|
197 |
) |
|
198 |
#(#LabelSpec |
|
199 |
#label: 'Panel' |
|
200 |
#name: 'PanelLabel' |
|
201 |
#layout: #(#Point 201 6) |
|
202 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
203 |
#resizeForLabel: true |
|
204 |
#adjust: #left |
|
205 |
#canUIDrag: false |
|
206 |
) |
|
207 |
||
208 |
#(#'FileBrowserV2UISpecifications::PanelSpec' |
|
209 |
#name: 'Panel' |
|
210 |
#layout: #(#LayoutFrame 198 0 26 0 376 0 98 0) |
|
211 |
#level: 0 |
|
212 |
#whichView: #first |
|
213 |
#orientation: #vertical |
|
214 |
#component: |
|
215 |
#(#SpecCollection |
|
216 |
#collection: #( |
|
217 |
#(#LabelSpec |
|
218 |
#label: 'A' |
|
219 |
#name: 'Label1' |
|
220 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 0.5 0 1.0) |
|
221 |
#level: 2 |
|
222 |
#canUIDrag: false |
|
223 |
) |
|
224 |
#(#LabelSpec |
|
225 |
#label: 'B' |
|
226 |
#name: 'Label2' |
|
227 |
#layout: #(#LayoutFrame 0 0.5 0 0.0 0 1.0 0 1.0) |
|
228 |
#level: 2 |
|
229 |
#canUIDrag: false |
|
230 |
) |
|
231 |
) |
|
232 |
||
233 |
) |
|
234 |
) |
|
235 |
) |
|
236 |
||
237 |
) |
|
238 |
) |
|
239 |
! ! |
|
240 |
||
241 |
!FileBrowserV2UISpecifications class methodsFor:'setup'! |
|
242 |
||
243 |
setup |
|
244 |
" |
|
245 |
FileBrowserV2UISpecifications setup. |
|
246 |
||
247 |
" |
|
248 |
|listSpec othersSpec| |
|
249 |
||
250 |
UISelectionPanel galleryClass removeUserSpecWithLabel:'Graphs'. |
|
251 |
UISelectionPanel galleryClass removeUserSpecWithLabel:'Clocks etc.'. |
|
252 |
UISelectionPanel galleryClass removeUserSpecWithLabel:'Business Graphics'. |
|
253 |
UISelectionPanel galleryClass removeUserSpecWithLabel:'C-Lists'. |
|
254 |
UISelectionPanel galleryClass removeUserSpecWithLabel:'C-Others'. |
|
255 |
||
256 |
listSpec := ValueHolder new. |
|
257 |
listSpec value:(self listSpec). |
|
258 |
||
259 |
UISelectionPanel galleryClass addUserSpecHolder:listSpec |
|
260 |
label:'C-Lists'. |
|
261 |
||
262 |
othersSpec := ValueHolder new. |
|
263 |
othersSpec value:(self othersSpec). |
|
264 |
||
265 |
UISelectionPanel galleryClass addUserSpecHolder:othersSpec |
|
266 |
label:'C-Others'. |
|
267 |
! ! |
|
268 |
||
269 |
!FileBrowserV2UISpecifications::PanelSpec class methodsFor:'interface - painter'! |
|
270 |
||
271 |
addBindingsTo:env for:anInstance channel:aChannel |
|
272 |
"add bindings as required to allow the GUI Painter to operate on an instance of me" |
|
273 |
||
274 |
super addBindingsTo:env for:anInstance channel:aChannel. |
|
275 |
||
276 |
self adaptApects:#( visibility ) to:env for:anInstance channel:aChannel converter:#symbolOrNil. |
|
277 |
self adaptApects:#( whichView orientation ) to:env for:anInstance channel:aChannel. |
|
278 |
||
279 |
env at:#whichViewList put:#( #first #last ) asValue. |
|
280 |
env at:#orientationList put:#( #horizontal #vertical ) asValue. |
|
281 |
||
282 |
||
283 |
||
284 |
! ! |
|
285 |
||
4407 | 286 |
!FileBrowserV2UISpecifications::PanelSpec class methodsFor:'interface specs'! |
3892 | 287 |
|
288 |
detailsEditSpec |
|
289 |
"This resource specification was automatically generated |
|
290 |
by the UIPainter of ST/X." |
|
291 |
||
292 |
"Do not manually edit this!! If it is corrupted, |
|
293 |
the UIPainter may not be able to read the specification." |
|
294 |
||
295 |
" |
|
296 |
UIPainter new openOnClass:FileBrowserV2UISpecifications::PanelSpec andSelector:#detailsEditSpec |
|
297 |
" |
|
298 |
||
299 |
<resource: #canvas> |
|
300 |
||
301 |
^ |
|
302 |
#(#FullSpec |
|
303 |
#name: #detailsEditSpec |
|
304 |
#window: |
|
305 |
#(#WindowSpec |
|
306 |
#label: 'Panel Detail Spec' |
|
307 |
#name: 'Panel Detail Spec' |
|
308 |
#min: #(#Point 10 10) |
|
309 |
#max: #(#Point 1160 870) |
|
4595
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
310 |
#bounds: #(#Rectangle 14 46 452 420) |
3892 | 311 |
) |
312 |
#component: |
|
313 |
#(#SpecCollection |
|
314 |
#collection: #( |
|
315 |
#(#UISubSpecification |
|
316 |
#name: 'SubSpecification1' |
|
317 |
#layout: #(#LayoutFrame 1 0 0 0.0 0 1.0 183 0) |
|
318 |
#majorKey: #ViewSpec |
|
319 |
#minorKey: #detailsEditSpec |
|
320 |
) |
|
321 |
#(#FramedBoxSpec |
|
4595
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
322 |
#label: 'Handles' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
323 |
#name: 'FramedBox2' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
324 |
#layout: #(#LayoutFrame 0 0.0 169 0 0 1.0 284 0) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
325 |
#labelPosition: #topLeft |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
326 |
#translateLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
327 |
#component: |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
328 |
#(#SpecCollection |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
329 |
#collection: #( |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
330 |
#(#LabelSpec |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
331 |
#label: 'Bar Width:' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
332 |
#name: 'BarWidthLabel' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
333 |
#layout: #(#AlignmentOrigin 88 0 13 0 1 0.5) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
334 |
#activeHelpKey: #barWidth |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
335 |
#translateLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
336 |
#resizeForLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
337 |
#adjust: #left |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
338 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
339 |
#(#InputFieldSpec |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
340 |
#name: 'BarWidthField' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
341 |
#layout: #(#LayoutFrame 90 0 0 0 140 0 22 0) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
342 |
#activeHelpKey: #barWidth |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
343 |
#tabable: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
344 |
#model: #barWidth |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
345 |
#acceptChannel: #acceptChannel |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
346 |
#modifiedChannel: #modifiedChannel |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
347 |
#acceptOnPointerLeave: false |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
348 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
349 |
#(#LabelSpec |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
350 |
#label: 'Bar Level:' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
351 |
#name: 'BarLevelLabel' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
352 |
#layout: #(#AlignmentOrigin 244 0 13 0 1 0.5) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
353 |
#activeHelpKey: #barLevel |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
354 |
#translateLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
355 |
#resizeForLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
356 |
#adjust: #left |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
357 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
358 |
#(#InputFieldSpec |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
359 |
#name: 'BarLevelField' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
360 |
#layout: #(#LayoutFrame 246 0 0 0 296 0 22 0) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
361 |
#activeHelpKey: #barLevel |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
362 |
#tabable: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
363 |
#model: #barLevel |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
364 |
#acceptChannel: #acceptChannel |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
365 |
#modifiedChannel: #modifiedChannel |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
366 |
#acceptOnPointerLeave: false |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
367 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
368 |
#(#LabelSpec |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
369 |
#label: 'Show Handles:' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
370 |
#name: 'ShowHandlesLabel' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
371 |
#layout: #(#AlignmentOrigin 85 0 38 0 1 0.5) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
372 |
#activeHelpKey: #showHandle |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
373 |
#translateLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
374 |
#resizeForLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
375 |
#adjust: #right |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
376 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
377 |
#(#PopUpListSpec |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
378 |
#label: 'Default' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
379 |
#name: 'ShowHandlesPopUpList' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
380 |
#layout: #(#AlignmentOrigin 90 0 38 0 0 0.5) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
381 |
#activeHelpKey: #showHandle |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
382 |
#resizeForLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
383 |
#tabable: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
384 |
#model: #showHandleIdx |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
385 |
#menu: #showHandleList |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
386 |
#useIndex: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
387 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
388 |
#(#LabelSpec |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
389 |
#label: 'Snap Mode:' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
390 |
#name: 'SnapLabel' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
391 |
#layout: #(#LayoutFrame 0 0 54 0 86 0 76 0) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
392 |
#activeHelpKey: #snapMode |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
393 |
#translateLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
394 |
#adjust: #right |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
395 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
396 |
#(#PopUpListSpec |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
397 |
#label: 'none' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
398 |
#name: 'SnapModePopUpList' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
399 |
#layout: #(#LayoutFrame 90 0 54 0 236 0 75 0) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
400 |
#activeHelpKey: #snapMode |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
401 |
#adjust: #center |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
402 |
#tabable: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
403 |
#model: #snapModeIdx |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
404 |
#menu: #snapModeList |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
405 |
#useIndex: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
406 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
407 |
#(#LabelSpec |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
408 |
#label: 'Position:' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
409 |
#name: 'HandlePositionLabel' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
410 |
#layout: #(#AlignmentOrigin 293 0 38 0 1 0.5) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
411 |
#activeHelpKey: #handlePosition |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
412 |
#translateLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
413 |
#resizeForLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
414 |
#adjust: #right |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
415 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
416 |
#(#PopUpListSpec |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
417 |
#label: 'Default' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
418 |
#name: 'HandlePositionPopUpList' |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
419 |
#layout: #(#AlignmentOrigin 298 0 38 0 0 0.5) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
420 |
#activeHelpKey: #handlePosition |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
421 |
#resizeForLabel: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
422 |
#tabable: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
423 |
#model: #handlePositionIdx |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
424 |
#menu: #handlePositionList |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
425 |
#useIndex: true |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
426 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
427 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
428 |
|
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
429 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
430 |
) |
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
431 |
#(#FramedBoxSpec |
3892 | 432 |
#label: 'Visibility' |
433 |
#name: 'FramedBox1' |
|
4595
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
434 |
#layout: #(#LayoutFrame 0 0.0 287 0 0 1.0 371 0) |
3892 | 435 |
#labelPosition: #topLeft |
436 |
#translateLabel: true |
|
437 |
#component: |
|
438 |
#(#SpecCollection |
|
439 |
#collection: #( |
|
440 |
#(#LabelSpec |
|
441 |
#label: 'orientation:' |
|
442 |
#name: 'orientation' |
|
443 |
#layout: #(#AlignmentOrigin 85 0 13 0 1 0.5) |
|
444 |
#activeHelpKey: #borderWidth |
|
445 |
#resizeForLabel: true |
|
446 |
#adjust: #left |
|
447 |
) |
|
448 |
#(#ComboListSpec |
|
449 |
#name: 'orientationList' |
|
450 |
#layout: #(#LayoutFrame 85 0 2 0 194 0 24 0) |
|
451 |
#model: #orientation |
|
452 |
#comboList: #orientationList |
|
453 |
#useIndex: false |
|
454 |
) |
|
455 |
#(#LabelSpec |
|
456 |
#label: 'which:' |
|
457 |
#name: 'visibilityOf' |
|
458 |
#layout: #(#AlignmentOrigin 248 0 13 0 1 0.5) |
|
459 |
#activeHelpKey: #borderWidth |
|
460 |
#resizeForLabel: true |
|
461 |
#adjust: #left |
|
462 |
) |
|
463 |
#(#ComboListSpec |
|
464 |
#name: 'whichViewList' |
|
465 |
#layout: #(#LayoutFrame 247 0 2 0 0 1.0 24 0) |
|
466 |
#model: #whichView |
|
467 |
#comboList: #whichViewList |
|
468 |
#useIndex: false |
|
469 |
) |
|
470 |
#(#InputFieldSpec |
|
471 |
#name: 'visibility' |
|
472 |
#layout: #(#LayoutFrame 85 0 29 0 0 1.0 51 0) |
|
473 |
#activeHelpKey: #canvas |
|
474 |
#model: #visibility |
|
475 |
#group: #inputGroup |
|
476 |
#acceptChannel: #acceptChannel |
|
477 |
#modifiedChannel: #modifiedChannel |
|
478 |
#acceptOnPointerLeave: false |
|
479 |
) |
|
480 |
#(#LabelSpec |
|
481 |
#label: 'visibility:' |
|
482 |
#name: 'visibilityLabel' |
|
483 |
#layout: #(#AlignmentOrigin 85 0 40 0 1 0.5) |
|
484 |
#resizeForLabel: true |
|
485 |
) |
|
486 |
) |
|
487 |
||
488 |
) |
|
489 |
) |
|
490 |
) |
|
491 |
||
492 |
) |
|
493 |
) |
|
494 |
! ! |
|
495 |
||
496 |
!FileBrowserV2UISpecifications::PanelSpec methodsFor:'accessing'! |
|
497 |
||
498 |
orientation |
|
499 |
"return the value of the instance variable 'orientation' (automatically generated)" |
|
500 |
||
501 |
^ orientation ? #vertical |
|
502 |
! |
|
503 |
||
504 |
orientation:something |
|
505 |
"set the value of the instance variable 'orientation' (automatically generated)" |
|
506 |
something notNil ifTrue:[ |
|
507 |
orientation := something asSymbol |
|
508 |
] ifFalse:[ |
|
509 |
orientation := something. |
|
510 |
] |
|
511 |
! |
|
512 |
||
513 |
visibility |
|
514 |
"return the value of the instance variable 'orientation' (automatically generated)" |
|
515 |
||
516 |
^ visibility |
|
517 |
! |
|
518 |
||
519 |
visibility:something |
|
520 |
"set the value of the instance variable 'visibility' (automatically generated)" |
|
521 |
||
522 |
visibility := something. |
|
523 |
! |
|
524 |
||
525 |
whichView |
|
526 |
"return the value of the instance variable 'whichView' (automatically generated)" |
|
527 |
||
528 |
^ whichView ? #first |
|
529 |
! |
|
530 |
||
531 |
whichView:something |
|
532 |
"set the value of the instance variable 'whichView' (automatically generated)" |
|
533 |
||
534 |
whichView := something. |
|
535 |
! ! |
|
536 |
||
537 |
!FileBrowserV2UISpecifications::PanelSpec methodsFor:'building'! |
|
538 |
||
539 |
aspectSelectors |
|
540 |
"add more aspect selectors |
|
541 |
" |
|
542 |
|more| |
|
543 |
||
544 |
more := super aspectSelectors. |
|
545 |
visibility notNil ifTrue:[more add:visibility]. |
|
546 |
^ more |
|
547 |
||
548 |
! |
|
549 |
||
550 |
setAttributesIn:aView with:aBuilder |
|
551 |
"set my attributes to aView |
|
552 |
" |
|
553 |
super setAttributesIn:aView with:aBuilder. |
|
554 |
||
555 |
aView whichView:(self whichView). |
|
556 |
aView orientation:(self orientation). |
|
557 |
aView visibilityHolder:(self getBindingIn:aBuilder binding:visibility). |
|
558 |
||
559 |
||
560 |
||
561 |
! ! |
|
562 |
||
563 |
!FileBrowserV2UISpecifications::PanelSpec methodsFor:'computation'! |
|
564 |
||
565 |
recomputeHandlesIn:aPanel |
|
566 |
|subs isVertical| |
|
567 |
||
568 |
(subs := aPanel subViews) notNil ifTrue:[ |
|
569 |
isVertical := self isVertical. |
|
570 |
^ subs |
|
571 |
collect: |
|
572 |
[:v | |rel| |
|
573 |
rel := v relativeCorner. |
|
574 |
isVertical ifTrue:[ rel y] ifFalse:[ rel x ]. |
|
575 |
] |
|
576 |
]. |
|
577 |
^ nil |
|
578 |
! |
|
579 |
||
580 |
setLayoutsInLayoutContainer:aPanel |
|
581 |
|x y subs isVertical| |
|
582 |
||
583 |
((subs := aPanel subViews) notNil and:[subs size == handles size]) ifTrue:[ |
|
584 |
isVertical := self isVertical. |
|
585 |
y := x := 0.0. |
|
586 |
subs keysAndValuesDo:[:i :v| |
|
587 |
isVertical ifTrue:[ |
|
588 |
v relativeOrigin:(0.0 @ y). |
|
589 |
y := handles at:i. |
|
590 |
v relativeCorner:(1.0 @ y). |
|
591 |
] ifFalse:[ |
|
592 |
v relativeOrigin:(x @ 0.0). |
|
593 |
x := handles at:i. |
|
594 |
v relativeCorner:(x @ 1.0). |
|
595 |
] |
|
596 |
] |
|
597 |
] |
|
598 |
! |
|
599 |
||
600 |
setupInitialLayoutFor:aView |
|
601 |
|superView| |
|
602 |
||
603 |
aView geometryLayout:nil. |
|
604 |
||
605 |
( aView relativeOrigin isNil |
|
606 |
or:[aView relativeExtent isNil |
|
607 |
and:[aView relativeCorner isNil]] |
|
608 |
) ifTrue:[ |
|
609 |
superView := aView superView. |
|
610 |
||
611 |
self isVertical ifTrue:[ |
|
612 |
aView corner:0@0. |
|
613 |
aView origin:0.0@0.0. |
|
614 |
aView extent:1.0@0.3. |
|
615 |
superView notNil ifTrue:[ |
|
616 |
superView setupSubviews. |
|
617 |
superView resizeSubviews. |
|
618 |
] |
|
619 |
] ifFalse:[ |
|
620 |
aView origin:0.0@0.0. |
|
621 |
aView extent:0.3@1.0. |
|
622 |
superView notNil ifTrue:[ |
|
623 |
superView setupSubviews |
|
624 |
] |
|
625 |
] |
|
626 |
] |
|
627 |
! ! |
|
628 |
||
629 |
!FileBrowserV2UISpecifications::PanelSpec methodsFor:'converting'! |
|
630 |
||
631 |
skippedInLiteralEncoding |
|
632 |
|l| |
|
633 |
||
634 |
l := super skippedInLiteralEncoding asOrderedCollection. |
|
635 |
visibility isNil ifTrue:[l add:#visibility]. |
|
636 |
^ l |
|
637 |
! ! |
|
638 |
||
639 |
!FileBrowserV2UISpecifications::PanelSpec methodsFor:'queries'! |
|
640 |
||
641 |
isVertical |
|
642 |
^ self orientation == #vertical |
|
643 |
||
644 |
! |
|
645 |
||
646 |
viewClass |
|
647 |
"return the corresponding view class of the spec" |
|
648 |
||
649 |
^ FileBrowserV2PanelView |
|
650 |
! ! |
|
651 |
||
652 |
!FileBrowserV2UISpecifications class methodsFor:'documentation'! |
|
653 |
||
654 |
version |
|
4595
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4407
diff
changeset
|
655 |
^ '$Header: /cvs/stx/stx/libtool/FileBrowserV2UISpecifications.st,v 1.3 2003-02-21 21:02:02 stefan Exp $' |
3892 | 656 |
! ! |