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