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