author | ca |
Mon, 24 Jan 2000 12:02:32 +0100 | |
changeset 1304 | c4a9211a6ec7 |
parent 1268 | 1bc516d840bf |
child 1305 | 3aa9dab59633 |
permissions | -rw-r--r-- |
163 | 1 |
" |
2 |
COPYRIGHT (c) 1995 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 |
||
16 |
ApplicationModel subclass:#UILayoutTool |
|
1072 | 17 |
instanceVariableNames:'modifiedHolder aspects selection layoutView tabList layoutSpec' |
163 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
20 |
category:'Interface-UIPainter' |
|
21 |
! |
|
22 |
||
1304 | 23 |
ApplicationModel subclass:#LayoutOrigin |
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
24 |
instanceVariableNames:'' |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
25 |
classVariableNames:'' |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
26 |
poolDictionaries:'' |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
27 |
privateIn:UILayoutTool |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
28 |
! |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
29 |
|
1304 | 30 |
ApplicationModel subclass:#AlignmentOrigin |
31 |
instanceVariableNames:'' |
|
32 |
classVariableNames:'' |
|
33 |
poolDictionaries:'' |
|
34 |
privateIn:UILayoutTool |
|
35 |
! |
|
36 |
||
37 |
ApplicationModel subclass:#Rectangle |
|
1198 | 38 |
instanceVariableNames:'' |
39 |
classVariableNames:'' |
|
40 |
poolDictionaries:'' |
|
41 |
privateIn:UILayoutTool |
|
42 |
! |
|
43 |
||
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
44 |
ApplicationModel subclass:#Point |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
45 |
instanceVariableNames:'' |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
46 |
classVariableNames:'' |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
47 |
poolDictionaries:'' |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
48 |
privateIn:UILayoutTool |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
49 |
! |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
50 |
|
1304 | 51 |
ApplicationModel subclass:#LayoutFrame |
163 | 52 |
instanceVariableNames:'' |
53 |
classVariableNames:'' |
|
54 |
poolDictionaries:'' |
|
55 |
privateIn:UILayoutTool |
|
56 |
! |
|
57 |
||
184 | 58 |
ApplicationModel subclass:#Extent |
59 |
instanceVariableNames:'' |
|
60 |
classVariableNames:'' |
|
61 |
poolDictionaries:'' |
|
62 |
privateIn:UILayoutTool |
|
63 |
! |
|
64 |
||
163 | 65 |
!UILayoutTool class methodsFor:'documentation'! |
66 |
||
67 |
copyright |
|
68 |
" |
|
69 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
70 |
All Rights Reserved |
|
71 |
||
72 |
This software is furnished under a license and may be used |
|
73 |
only in accordance with the terms of that license and with the |
|
74 |
inclusion of the above copyright notice. This software may not |
|
75 |
be provided or otherwise made available to, or used by, any |
|
76 |
other person. No title to or ownership of the software is |
|
77 |
hereby transferred. |
|
78 |
" |
|
79 |
||
80 |
||
81 |
||
82 |
! |
|
83 |
||
84 |
documentation |
|
85 |
" |
|
86 |
used by the UIPainter to manipulate the layout of the selected component |
|
87 |
||
88 |
[author:] |
|
89 |
Claus Atzkern |
|
90 |
||
91 |
[see also:] |
|
92 |
UIPainter |
|
93 |
UIHelpTool |
|
94 |
UISpecificationTool |
|
95 |
" |
|
96 |
||
97 |
||
98 |
! ! |
|
99 |
||
100 |
!UILayoutTool class methodsFor:'constants'! |
|
101 |
||
102 |
label |
|
103 |
^ 'Layout' |
|
104 |
! ! |
|
105 |
||
184 | 106 |
!UILayoutTool class methodsFor:'help specs'! |
107 |
||
108 |
helpSpec |
|
741 | 109 |
"This resource specification was automatically generated |
110 |
by the UIHelpTool of ST/X." |
|
111 |
||
112 |
"Do not manually edit this!! If it is corrupted, |
|
113 |
the UIHelpTool may not be able to read the specification." |
|
293 | 114 |
|
184 | 115 |
" |
741 | 116 |
UIHelpTool openOnClass:UILayoutTool |
293 | 117 |
" |
118 |
||
741 | 119 |
<resource: #help> |
120 |
||
121 |
^super helpSpec addPairsFrom:#( |
|
122 |
||
123 |
#cornerX |
|
124 |
'Absolute corner x of the selected widget.' |
|
125 |
||
126 |
#cornerY |
|
127 |
'Absolute corner y of the selected widget.' |
|
128 |
||
129 |
#layoutTool |
|
130 |
'Tool to set the layout of the selected widget.' |
|
184 | 131 |
|
132 |
#leftAbsolute |
|
714 | 133 |
'Offset of the left edge; positive is to the right, negative to the left.' |
184 | 134 |
|
741 | 135 |
#leftRelative |
136 |
'Relative origin x of the selected widget.' |
|
201 | 137 |
|
138 |
#makeLeftAbsolute |
|
714 | 139 |
'Computes current left offset and relative origin x to an absolute origin x.' |
201 | 140 |
|
741 | 141 |
#makeLeftRelative |
142 |
'Compute current relative origin x and offset of the left edge to a relative origin x.' |
|
143 |
||
144 |
#makeTopAbsolute |
|
145 |
'Computes current top offset and relative origin y to an absolute origin y.' |
|
146 |
||
147 |
#makeTopRelative |
|
148 |
'Computes current relative origin y and offset of the top edge to a relative origin y.' |
|
149 |
||
150 |
#originX |
|
151 |
'Absolute origin x of the selected widget.' |
|
152 |
||
153 |
#originY |
|
154 |
'Absolute origin y of the selected widget.' |
|
155 |
||
184 | 156 |
#topAbsolute |
714 | 157 |
'Offset of the top edge; positive is to the bottom, negative to the top.' |
184 | 158 |
|
201 | 159 |
#topRelative |
714 | 160 |
'Relative origin y of the selected widget.' |
201 | 161 |
|
184 | 162 |
) |
163 |
! ! |
|
164 |
||
163 | 165 |
!UILayoutTool class methodsFor:'interface specs'! |
166 |
||
184 | 167 |
layoutOriginSpec |
741 | 168 |
"This resource specification was automatically generated |
169 |
by the UIPainter of ST/X." |
|
184 | 170 |
|
741 | 171 |
"Do not manually edit this!! If it is corrupted, |
172 |
the UIPainter may not be able to read the specification." |
|
184 | 173 |
|
174 |
" |
|
259 | 175 |
UIPainter new openOnClass:UILayoutTool andSelector:#layoutOriginSpec |
176 |
UILayoutTool new openInterface:#layoutOriginSpec |
|
184 | 177 |
" |
178 |
||
179 |
<resource: #canvas> |
|
180 |
||
1304 | 181 |
^ |
182 |
#(#FullSpec |
|
183 |
#name: #layoutOriginSpec |
|
184 |
#window: |
|
185 |
#(#WindowSpec |
|
186 |
#label: 'UILayoutTool' |
|
187 |
#name: 'UILayoutTool' |
|
188 |
#min: #(#Point 10 10) |
|
189 |
#max: #(#Point 1152 900) |
|
190 |
#bounds: #(#Rectangle 506 24 851 206) |
|
191 |
) |
|
192 |
#component: |
|
193 |
#(#SpecCollection |
|
194 |
#collection: #( |
|
195 |
#(#FramedBoxSpec |
|
196 |
#label: 'Origin' |
|
197 |
#name: 'FramedBox' |
|
198 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 108 0) |
|
199 |
#labelPosition: #topLeft |
|
200 |
#component: |
|
201 |
#(#SpecCollection |
|
202 |
#collection: #( |
|
203 |
#(#LabelSpec |
|
204 |
#label: 'Relative:' |
|
205 |
#name: 'labelRelative' |
|
206 |
#layout: #(#Point 87 6) |
|
207 |
) |
|
208 |
#(#LabelSpec |
|
209 |
#label: 'Offset:' |
|
210 |
#name: 'labelAbsolute' |
|
211 |
#layout: #(#Point 187 6) |
|
212 |
) |
|
213 |
#(#LabelSpec |
|
214 |
#label: 'Left:' |
|
215 |
#name: 'labelLeft' |
|
216 |
#layout: #(#AlignmentOrigin 85 0 27 0 1 0) |
|
217 |
) |
|
218 |
#(#InputFieldSpec |
|
219 |
#attributes: |
|
220 |
#(#tabable |
|
221 |
true |
|
222 |
) |
|
223 |
#name: 'fieldLeftFraction' |
|
224 |
#layout: #(#LayoutFrame 87 0 24 0 137 0 46 0) |
|
225 |
#activeHelpKey: #leftRelative |
|
226 |
#tabable: true |
|
227 |
#model: #leftFraction |
|
228 |
#group: #inputGroup |
|
229 |
#type: #numberOrNil |
|
230 |
#acceptChannel: #acceptChannel |
|
231 |
#modifiedChannel: #modifiedChannel |
|
232 |
#acceptOnPointerLeave: false |
|
233 |
) |
|
234 |
#(#ActionButtonSpec |
|
235 |
#attributes: |
|
236 |
#(#tabable |
|
237 |
true |
|
238 |
) |
|
239 |
#name: 'actionRelativeLeft' |
|
240 |
#layout: #(#LayoutFrame 142 0 24 0 164 0 46 0) |
|
241 |
#activeHelpKey: #makeLeftRelative |
|
242 |
#tabable: true |
|
243 |
#model: #relativeLeft |
|
244 |
) |
|
245 |
#(#InputFieldSpec |
|
246 |
#attributes: |
|
247 |
#(#tabable |
|
248 |
true |
|
249 |
) |
|
250 |
#name: 'fieldLeftOffset' |
|
251 |
#layout: #(#LayoutFrame 187 0 24 0 237 0 46 0) |
|
252 |
#activeHelpKey: #leftAbsolute |
|
253 |
#tabable: true |
|
254 |
#model: #leftOffset |
|
255 |
#group: #inputGroup |
|
256 |
#type: #numberOrNil |
|
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
257 |
#acceptChannel: #acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
258 |
#modifiedChannel: #modifiedChannel |
1304 | 259 |
#acceptOnPointerLeave: false |
260 |
) |
|
261 |
#(#ActionButtonSpec |
|
262 |
#attributes: |
|
263 |
#(#tabable |
|
264 |
true |
|
265 |
) |
|
266 |
#name: 'actionAbsoluteLeft' |
|
267 |
#layout: #(#LayoutFrame 242 0 24 0 264 0 46 0) |
|
268 |
#activeHelpKey: #makeLeftAbsolute |
|
269 |
#tabable: true |
|
270 |
#model: #absoluteLeft |
|
271 |
) |
|
272 |
#(#LabelSpec |
|
273 |
#label: 'Top:' |
|
274 |
#name: 'labelTop' |
|
275 |
#layout: #(#AlignmentOrigin 85 0 54 0 1 0) |
|
276 |
) |
|
277 |
#(#InputFieldSpec |
|
278 |
#attributes: |
|
279 |
#(#tabable |
|
280 |
true |
|
281 |
) |
|
282 |
#name: 'fieldTopFraction' |
|
283 |
#layout: #(#LayoutFrame 87 0 51 0 137 0 73 0) |
|
284 |
#activeHelpKey: #topRelative |
|
285 |
#tabable: true |
|
286 |
#model: #topFraction |
|
287 |
#group: #inputGroup |
|
288 |
#type: #numberOrNil |
|
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
289 |
#acceptChannel: #acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
290 |
#modifiedChannel: #modifiedChannel |
1304 | 291 |
#acceptOnPointerLeave: false |
292 |
) |
|
293 |
#(#ActionButtonSpec |
|
294 |
#attributes: |
|
295 |
#(#tabable |
|
296 |
true |
|
297 |
) |
|
298 |
#name: 'actionRelativeTop' |
|
299 |
#layout: #(#LayoutFrame 142 0 51 0 164 0 73 0) |
|
300 |
#activeHelpKey: #makeTopRelative |
|
301 |
#tabable: true |
|
302 |
#model: #relativeTop |
|
303 |
) |
|
304 |
#(#InputFieldSpec |
|
305 |
#attributes: |
|
306 |
#(#tabable |
|
307 |
true |
|
308 |
) |
|
309 |
#name: 'fieldTopOffset' |
|
310 |
#layout: #(#LayoutFrame 187 0 51 0 237 0 73 0) |
|
311 |
#activeHelpKey: #topAbsolute |
|
312 |
#tabable: true |
|
313 |
#model: #topOffset |
|
314 |
#group: #inputGroup |
|
315 |
#type: #numberOrNil |
|
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
316 |
#acceptChannel: #acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
317 |
#modifiedChannel: #modifiedChannel |
1304 | 318 |
#acceptOnPointerLeave: false |
319 |
) |
|
320 |
#(#ActionButtonSpec |
|
321 |
#attributes: |
|
322 |
#(#tabable |
|
323 |
true |
|
751 | 324 |
) |
1304 | 325 |
#name: 'actionAbsoluteTop' |
326 |
#layout: #(#LayoutFrame 242 0 51 0 264 0 73 0) |
|
327 |
#activeHelpKey: #makeTopAbsolute |
|
328 |
#tabable: true |
|
329 |
#model: #absoluteTop |
|
330 |
) |
|
331 |
) |
|
332 |
||
184 | 333 |
) |
1304 | 334 |
) |
335 |
) |
|
336 |
||
337 |
) |
|
184 | 338 |
) |
339 |
! |
|
340 |
||
341 |
layoutPointSpec |
|
741 | 342 |
"This resource specification was automatically generated |
343 |
by the UIPainter of ST/X." |
|
184 | 344 |
|
741 | 345 |
"Do not manually edit this!! If it is corrupted, |
346 |
the UIPainter may not be able to read the specification." |
|
184 | 347 |
|
348 |
" |
|
259 | 349 |
UIPainter new openOnClass:UILayoutTool andSelector:#layoutPointSpec |
350 |
UILayoutTool new openInterface:#layoutPointSpec |
|
184 | 351 |
" |
259 | 352 |
|
184 | 353 |
<resource: #canvas> |
354 |
||
355 |
^ |
|
259 | 356 |
|
184 | 357 |
#(#FullSpec |
690 | 358 |
#window: |
184 | 359 |
#(#WindowSpec |
741 | 360 |
#name: 'UILayoutTool' |
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
361 |
#layout: #(#LayoutFrame 216 0 173 0 493 0 296 0) |
741 | 362 |
#label: 'UILayoutTool' |
690 | 363 |
#min: #(#Point 10 10) |
364 |
#max: #(#Point 1152 900) |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
365 |
#bounds: #(#Rectangle 216 173 494 297) |
690 | 366 |
#usePreferredExtent: false |
184 | 367 |
) |
690 | 368 |
#component: |
184 | 369 |
#(#SpecCollection |
690 | 370 |
#collection: |
184 | 371 |
#( |
751 | 372 |
#(#FramedBoxSpec |
373 |
#name: 'FramedBox' |
|
374 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 94 0) |
|
375 |
#component: |
|
376 |
#(#SpecCollection |
|
377 |
#collection: |
|
378 |
#( |
|
379 |
#(#LabelSpec |
|
380 |
#name: 'labelOriginY' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
381 |
#layout: #(#AlignmentOrigin 83 0 14 0 1 0) |
751 | 382 |
#label: 'Left:' |
383 |
) |
|
384 |
#(#InputFieldSpec |
|
385 |
#name: 'fieldOriginX' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
386 |
#layout: #(#LayoutFrame 85 0 11 0 135 0 33 0) |
751 | 387 |
#activeHelpKey: #originX |
388 |
#tabable: true |
|
389 |
#model: #leftOffset |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
390 |
#group: #inputGroup |
751 | 391 |
#type: #numberOrNil |
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
392 |
#acceptChannel: #acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
393 |
#modifiedChannel: #modifiedChannel |
751 | 394 |
) |
395 |
#(#LabelSpec |
|
396 |
#name: 'labelOriginX' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
397 |
#layout: #(#AlignmentOrigin 83 0 39 0 1 0) |
751 | 398 |
#label: 'Top:' |
399 |
) |
|
400 |
#(#InputFieldSpec |
|
401 |
#name: 'fieldOriginY' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
402 |
#layout: #(#LayoutFrame 85 0 36 0 135 0 58 0) |
751 | 403 |
#activeHelpKey: #originY |
404 |
#tabable: true |
|
405 |
#model: #topOffset |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
406 |
#group: #inputGroup |
751 | 407 |
#type: #numberOrNil |
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
408 |
#acceptChannel: #acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
409 |
#modifiedChannel: #modifiedChannel |
751 | 410 |
) |
411 |
) |
|
412 |
) |
|
413 |
#label: 'Origin' |
|
414 |
#labelPosition: #topLeft |
|
184 | 415 |
) |
416 |
) |
|
417 |
) |
|
418 |
) |
|
922
0a5799408f54
assign all inputFields to a common group.
Claus Gittinger <cg@exept.de>
parents:
751
diff
changeset
|
419 |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
420 |
"Modified: / 13.8.1998 / 19:52:15 / cg" |
184 | 421 |
! |
422 |
||
163 | 423 |
slices |
424 |
^ #( |
|
425 |
( 'Frame' LayoutFrame) |
|
426 |
( 'Origin' LayoutOrigin) |
|
427 |
( 'Alig.Origin' AlignmentOrigin) |
|
428 |
( 'Point' Point) |
|
429 |
( 'Rectangle' Rectangle) |
|
430 |
( 'Extent' Extent) |
|
431 |
) |
|
432 |
||
433 |
! |
|
434 |
||
435 |
windowSpec |
|
741 | 436 |
"This resource specification was automatically generated |
437 |
by the UIPainter of ST/X." |
|
163 | 438 |
|
741 | 439 |
"Do not manually edit this!! If it is corrupted, |
440 |
the UIPainter may not be able to read the specification." |
|
163 | 441 |
|
442 |
" |
|
443 |
UIPainter new openOnClass:UILayoutTool andSelector:#windowSpec |
|
444 |
UILayoutTool new openInterface:#windowSpec |
|
741 | 445 |
UILayoutTool open |
163 | 446 |
" |
447 |
||
448 |
<resource: #canvas> |
|
449 |
||
450 |
^ |
|
451 |
||
452 |
#(#FullSpec |
|
741 | 453 |
#window: |
163 | 454 |
#(#WindowSpec |
741 | 455 |
#name: 'UILayoutTool' |
456 |
#layout: #(#LayoutFrame 571 0 290 0 870 0 589 0) |
|
457 |
#label: 'UILayoutTool' |
|
458 |
#min: #(#Point 10 10) |
|
459 |
#max: #(#Point 1152 900) |
|
460 |
#bounds: #(#Rectangle 571 290 871 590) |
|
461 |
#usePreferredExtent: false |
|
163 | 462 |
) |
741 | 463 |
#component: |
163 | 464 |
#(#SpecCollection |
741 | 465 |
#collection: |
163 | 466 |
#( |
467 |
#(#NoteBookViewSpec |
|
741 | 468 |
#name: 'NoteBook' |
469 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
470 |
#activeHelpKey: #layoutTool |
|
471 |
#enableChannel: #enableChannel |
|
472 |
#tabable: true |
|
473 |
#model: #noteBookModel |
|
474 |
#menu: #noteBookList |
|
475 |
#style: #(#FontDescription #helvetica #medium #roman #'10') |
|
476 |
#direction: #bottom |
|
477 |
#canvas: #noteBookView |
|
163 | 478 |
) |
479 |
) |
|
480 |
) |
|
481 |
) |
|
482 |
! ! |
|
483 |
||
484 |
!UILayoutTool methodsFor:'accessing'! |
|
485 |
||
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
486 |
acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
487 |
"return the value of the instance variable 'acceptChannel' (automatically generated)" |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
488 |
|
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
489 |
^ masterApplication acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
490 |
! |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
491 |
|
163 | 492 |
layout |
493 |
"returns configued layout or nil |
|
494 |
" |
|
495 |
|appl| |
|
496 |
||
497 |
(appl := self noteBookView application) notNil ifTrue:[ |
|
498 |
^ appl layout |
|
499 |
]. |
|
500 |
^ nil |
|
501 |
! |
|
502 |
||
503 |
layoutType |
|
504 |
"returns current layout type or nil |
|
505 |
" |
|
506 |
|slice| |
|
507 |
||
508 |
(slice := self selectedSlice) notNil ifTrue:[ |
|
509 |
^ slice last |
|
510 |
]. |
|
511 |
^ nil |
|
512 |
! |
|
513 |
||
514 |
layoutView |
|
515 |
"returns current edited view |
|
516 |
" |
|
517 |
^ layoutView |
|
518 |
! |
|
519 |
||
1072 | 520 |
layoutView:aView type:aTypeOrNil spec:aSpec |
283 | 521 |
"change current edited view |
522 |
" |
|
163 | 523 |
|type name list| |
524 |
||
525 |
layoutView := aView. |
|
1072 | 526 |
layoutSpec := aSpec. |
163 | 527 |
|
1074
49ef9991d1d5
disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents:
1072
diff
changeset
|
528 |
(self aspectFor:#defaultExtentEnabled) value:(aSpec class == WindowSpec) not. |
49ef9991d1d5
disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents:
1072
diff
changeset
|
529 |
|
283 | 530 |
aTypeOrNil notNil ifTrue:[ |
163 | 531 |
self class slices findFirst:[:e| |
283 | 532 |
e last == aTypeOrNil ifTrue:[name := e first. true] |
163 | 533 |
]. |
283 | 534 |
list := Array with:name |
535 |
] ifFalse:[ |
|
536 |
(type := UIPainterView layoutType:layoutView) notNil ifTrue:[ |
|
537 |
self class slices findFirst:[:e| |
|
538 |
e last == type ifTrue:[name := e first. true] |
|
539 |
]. |
|
540 |
list := tabList. |
|
235 | 541 |
|
283 | 542 |
type == #Extent ifTrue:[ |
543 |
aView superView specClass isLayoutContainer ifTrue:[ |
|
544 |
list := Array with:name |
|
545 |
] ifFalse:[ |
|
546 |
list := list copyWith:name |
|
547 |
] |
|
235 | 548 |
] |
549 |
] |
|
163 | 550 |
]. |
551 |
self noteBookList value:list. |
|
552 |
self noteBookModel value:name. |
|
553 |
self update. |
|
554 |
! |
|
555 |
||
556 |
modifiedHolder:aValueHolder |
|
557 |
"set the value holder set to true in case of modifying attributes |
|
558 |
" |
|
559 |
modifiedHolder notNil ifTrue:[ |
|
560 |
modifiedHolder removeDependent:self. |
|
561 |
]. |
|
562 |
||
563 |
(modifiedHolder := aValueHolder) notNil ifTrue:[ |
|
564 |
modifiedHolder addDependent:self. |
|
565 |
]. |
|
566 |
||
567 |
! |
|
568 |
||
569 |
update |
|
570 |
"update from view |
|
571 |
" |
|
572 |
|view appl| |
|
573 |
||
574 |
selection notNil ifTrue:[ |
|
1072 | 575 |
(view := layoutView) notNil ifTrue:[ |
163 | 576 |
(appl := self noteBookView application) notNil ifTrue:[ |
1072 | 577 |
appl fetch:view spec:layoutSpec |
163 | 578 |
] |
579 |
] |
|
580 |
]. |
|
581 |
||
582 |
! ! |
|
583 |
||
584 |
!UILayoutTool methodsFor:'aspects'! |
|
585 |
||
586 |
aspectFor:aKey |
|
587 |
"returns aspect for a key or nil |
|
588 |
" |
|
589 |
^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ] |
|
590 |
||
591 |
||
592 |
! |
|
593 |
||
1072 | 594 |
notUsingDefaultExtent |
595 |
|holder| |
|
596 |
||
597 |
(holder := builder bindingAt:#notUsingDefaultExtent) isNil ifTrue:[ |
|
598 |
holder := BlockValue forLogicalNot:(self aspectFor:#useDefaultExtent). |
|
599 |
builder aspectAt:#notUsingDefaultExtent put:holder. |
|
600 |
]. |
|
601 |
^ holder |
|
602 |
||
603 |
! |
|
604 |
||
163 | 605 |
noteBookList |
606 |
"returns list of tab labels |
|
607 |
" |
|
608 |
|holder| |
|
609 |
||
610 |
(holder := builder bindingAt:#noteBookList) isNil ifTrue:[ |
|
611 |
holder := nil asValue. |
|
612 |
builder aspectAt:#noteBookList put:holder |
|
613 |
]. |
|
614 |
^ holder |
|
615 |
! |
|
616 |
||
617 |
noteBookModel |
|
618 |
"automatically generated by UIPainter ..." |
|
619 |
||
620 |
|holder| |
|
621 |
||
622 |
(holder := builder bindingAt:#noteBookModel) isNil ifTrue:[ |
|
623 |
holder := AspectAdaptor new subject:self; forAspect:#selection. |
|
624 |
builder aspectAt:#noteBookModel put:holder. |
|
625 |
]. |
|
626 |
^ holder |
|
627 |
! |
|
628 |
||
629 |
noteBookView |
|
630 |
"automatically generated by UIPainter ... |
|
631 |
" |
|
632 |
|holder| |
|
633 |
||
634 |
(holder := builder bindingAt:#noteBookView) isNil ifTrue:[ |
|
635 |
holder := SubCanvas new. |
|
636 |
builder aspectAt:#noteBookView put:holder |
|
637 |
]. |
|
638 |
^ holder |
|
639 |
! ! |
|
640 |
||
641 |
!UILayoutTool methodsFor:'change & update'! |
|
642 |
||
643 |
update:something with:aParameter from:changedObject |
|
644 |
"one of my models changed its value |
|
645 |
" |
|
646 |
changedObject ~~ modifiedHolder ifTrue:[ |
|
647 |
modifiedHolder value ~~ true ifTrue:[ |
|
648 |
modifiedHolder isNil ifFalse:[ |
|
649 |
modifiedHolder value:true |
|
650 |
] |
|
651 |
] |
|
652 |
] |
|
653 |
||
654 |
! ! |
|
655 |
||
656 |
!UILayoutTool methodsFor:'converting absolute'! |
|
657 |
||
658 |
absolute:what xOrY:xOrY |
|
1198 | 659 |
|extent fraction offset fractSymb offsetSymb fractHolder offsetHolder| |
163 | 660 |
|
661 |
extent := (self layoutView superView computeExtent) perform:xOrY. |
|
662 |
fractSymb := (what, 'Fraction') asSymbol. |
|
663 |
offsetSymb := (what, 'Offset') asSymbol. |
|
1198 | 664 |
fractHolder := (self aspectFor:fractSymb). |
665 |
offsetHolder := (self aspectFor:offsetSymb). |
|
666 |
fraction := fractHolder value. |
|
667 |
offset := offsetHolder value. |
|
163 | 668 |
offset := offset + ((fraction * extent) asInteger). |
669 |
||
1198 | 670 |
offsetHolder value:offset. |
671 |
fractHolder value:0. |
|
163 | 672 |
|
673 |
||
674 |
||
675 |
! |
|
676 |
||
677 |
absoluteBottom |
|
678 |
self absolute:'bottom' xOrY:#y |
|
679 |
||
680 |
! |
|
681 |
||
682 |
absoluteLeft |
|
683 |
self absolute:'left' xOrY:#x |
|
684 |
||
685 |
! |
|
686 |
||
687 |
absoluteRight |
|
688 |
self absolute:'right' xOrY:#x |
|
689 |
||
690 |
! |
|
691 |
||
692 |
absoluteTop |
|
693 |
self absolute:'top' xOrY:#y |
|
694 |
||
695 |
! ! |
|
696 |
||
697 |
!UILayoutTool methodsFor:'converting relative'! |
|
698 |
||
699 |
relative:what xOrY:xOrY |
|
1198 | 700 |
|extent fraction offset fractSymb offsetSymb fractHolder offsetHolder| |
163 | 701 |
|
702 |
extent := (self layoutView superView computeExtent) perform:xOrY. |
|
703 |
fractSymb := (what, 'Fraction') asSymbol. |
|
704 |
offsetSymb := (what, 'Offset') asSymbol. |
|
1198 | 705 |
fractHolder := (self aspectFor:fractSymb). |
706 |
offsetHolder := (self aspectFor:offsetSymb). |
|
707 |
fraction := fractHolder value. |
|
708 |
offset := offsetHolder value. |
|
163 | 709 |
fraction := (fraction + (offset / extent)) asFloat. |
710 |
||
711 |
(fraction > 1.0) ifTrue:[ fraction := 1.0 ]. |
|
712 |
(fraction < 0.0) ifTrue:[ fraction := 0 ]. |
|
713 |
||
1198 | 714 |
offsetHolder value:0. |
715 |
fractHolder value:fraction. |
|
163 | 716 |
|
717 |
||
718 |
||
719 |
! |
|
720 |
||
721 |
relativeBottom |
|
722 |
self relative:'bottom' xOrY:#y |
|
723 |
||
724 |
||
725 |
! |
|
726 |
||
727 |
relativeLeft |
|
728 |
self relative:'left' xOrY:#x |
|
729 |
||
730 |
! |
|
731 |
||
732 |
relativeRight |
|
733 |
self relative:'right' xOrY:#x |
|
734 |
||
735 |
! |
|
736 |
||
737 |
relativeTop |
|
738 |
self relative:'top' xOrY:#y |
|
739 |
||
740 |
! ! |
|
741 |
||
742 |
!UILayoutTool methodsFor:'initialization'! |
|
743 |
||
744 |
initialize |
|
745 |
"initialize channels |
|
746 |
" |
|
221 | 747 |
|slices size| |
748 |
||
163 | 749 |
super initialize. |
750 |
||
751 |
aspects := IdentityDictionary new. |
|
752 |
||
753 |
#( bottomFraction bottomOffset |
|
754 |
leftFraction leftOffset |
|
755 |
topFraction topOffset |
|
756 |
rightFraction rightOffset |
|
757 |
leftAlignmentFraction topAlignmentFraction |
|
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
758 |
(useDefaultExtent false) |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
759 |
(defaultExtentEnabled false) |
163 | 760 |
) |
761 |
||
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
762 |
do:[:aKeyOrPair| |holder key val| |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
763 |
(key := aKeyOrPair) isSymbol ifFalse:[ |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
764 |
key := aKeyOrPair first. |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
765 |
val := aKeyOrPair second |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
766 |
]. |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
767 |
holder := val asValue. |
163 | 768 |
holder addDependent:self. |
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
769 |
aspects at:key put:holder. |
163 | 770 |
]. |
771 |
||
221 | 772 |
slices := self class slices. |
773 |
size := slices size - 1. |
|
774 |
tabList := Array new:size. |
|
163 | 775 |
|
221 | 776 |
1 to:size do:[:i| tabList at:i put:((slices at:i) first) ]. |
163 | 777 |
|
778 |
||
779 |
! ! |
|
780 |
||
781 |
!UILayoutTool methodsFor:'selection'! |
|
782 |
||
783 |
selectedSlice |
|
784 |
"returns slice assigned to selection or nil |
|
785 |
" |
|
786 |
selection notNil ifTrue:[ |
|
787 |
self class slices do:[:aSlice| |
|
788 |
aSlice first = selection ifTrue:[ |
|
789 |
^ aSlice |
|
790 |
] |
|
791 |
] |
|
792 |
]. |
|
793 |
^ nil |
|
794 |
||
795 |
! |
|
796 |
||
797 |
selection |
|
798 |
^ selection |
|
799 |
! |
|
800 |
||
801 |
selection:aSelection |
|
296 | 802 |
|appl slice sel noteBook| |
163 | 803 |
|
293 | 804 |
aSelection isNumber ifTrue:[ |
805 |
aSelection ~~ 0 ifTrue:[sel := tabList at:aSelection] |
|
806 |
] ifFalse:[ |
|
807 |
sel := aSelection |
|
808 |
]. |
|
809 |
selection = sel ifFalse:[ |
|
810 |
(selection := sel) notNil ifTrue:[ |
|
163 | 811 |
slice := self selectedSlice. |
812 |
appl := slice last asString. |
|
813 |
appl := Smalltalk classNamed:(self class name asString, '::', appl). |
|
814 |
appl := appl new. |
|
815 |
appl masterApplication:self. |
|
184 | 816 |
modifiedHolder value:true. |
163 | 817 |
]. |
296 | 818 |
noteBook := self noteBookView. |
819 |
noteBook client:appl. |
|
820 |
||
821 |
appl notNil ifTrue:[ |
|
822 |
noteBook scrolledView allViewBackground:(noteBook viewBackground). |
|
823 |
] |
|
163 | 824 |
]. |
825 |
self update |
|
293 | 826 |
|
163 | 827 |
! ! |
828 |
||
1304 | 829 |
!UILayoutTool::LayoutOrigin class methodsFor:'interface specs'! |
830 |
||
831 |
windowSpec |
|
832 |
"This resource specification was automatically generated |
|
833 |
by the UIPainter of ST/X." |
|
834 |
||
835 |
"Do not manually edit this!! If it is corrupted, |
|
836 |
the UIPainter may not be able to read the specification." |
|
837 |
||
838 |
" |
|
839 |
UIPainter new openOnClass:UILayoutTool::LayoutOrigin andSelector:#windowSpec |
|
840 |
UILayoutTool::LayoutOrigin new openInterface:#windowSpec |
|
841 |
UILayoutTool::LayoutOrigin open |
|
842 |
" |
|
843 |
||
844 |
<resource: #canvas> |
|
845 |
||
846 |
^ |
|
847 |
||
848 |
#(#FullSpec |
|
849 |
#window: |
|
850 |
#(#WindowSpec |
|
851 |
#name: 'UILayoutTool-LayoutOrigin' |
|
852 |
#layout: #(#LayoutFrame 290 0 420 0 647 0 565 0) |
|
853 |
#label: 'UILayoutTool-LayoutOrigin' |
|
854 |
#min: #(#Point 10 10) |
|
855 |
#max: #(#Point 1152 900) |
|
856 |
#bounds: #(#Rectangle 290 420 648 566) |
|
857 |
#usePreferredExtent: false |
|
858 |
) |
|
859 |
#component: |
|
860 |
#(#SpecCollection |
|
861 |
#collection: |
|
862 |
#( |
|
863 |
#(#UISubSpecification |
|
864 |
#name: 'layoutOriginSpec' |
|
865 |
#layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 110 0) |
|
866 |
#majorKey: #UILayoutTool |
|
867 |
#minorKey: #layoutOriginSpec |
|
868 |
) |
|
869 |
) |
|
870 |
) |
|
871 |
) |
|
872 |
! ! |
|
873 |
||
874 |
!UILayoutTool::LayoutOrigin methodsFor:'accessing'! |
|
875 |
||
876 |
fetch:aView spec:aSpec |
|
877 |
"fetch layoutOrigin |
|
878 |
" |
|
879 |
|layout| |
|
880 |
||
881 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
882 |
||
883 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
|
884 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
885 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
886 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
887 |
||
888 |
||
889 |
! |
|
890 |
||
891 |
layout |
|
892 |
"returns current layout as layoutOrigin |
|
893 |
" |
|
894 |
|layout| |
|
895 |
||
896 |
layout := Smalltalk::LayoutOrigin new. |
|
897 |
||
898 |
layout leftOffset:((self aspectFor:#leftOffset) value) ? 0. |
|
899 |
layout topOffset:((self aspectFor:#topOffset) value) ? 0. |
|
900 |
layout leftFraction:((self aspectFor:#leftFraction) value) ? 0. |
|
901 |
layout topFraction:((self aspectFor:#topFraction) value) ? 0. |
|
902 |
||
903 |
^ layout |
|
904 |
||
905 |
! ! |
|
906 |
||
907 |
!UILayoutTool::AlignmentOrigin class methodsFor:'help specs'! |
|
908 |
||
909 |
helpSpec |
|
910 |
"This resource specification was automatically generated |
|
911 |
by the UIHelpTool of ST/X." |
|
912 |
||
913 |
"Do not manually edit this!! If it is corrupted, |
|
914 |
the UIHelpTool may not be able to read the specification." |
|
915 |
||
916 |
" |
|
917 |
UIHelpTool openOnClass:UILayoutTool::AlignmentOrigin |
|
918 |
" |
|
919 |
||
920 |
<resource: #help> |
|
921 |
||
922 |
^super helpSpec addPairsFrom:#( |
|
923 |
||
924 |
#alignBottomCenter |
|
925 |
'Aligns the selected widget bottomCenter to location.' |
|
926 |
||
927 |
#alignBottomLeft |
|
928 |
'Aligns the selected widget bottomLeft to location.' |
|
929 |
||
930 |
#alignBottomRight |
|
931 |
'Aligns the selected widget bottomRight to location.' |
|
932 |
||
933 |
#alignCenter |
|
934 |
'Aligns the selected widget center to location.' |
|
935 |
||
936 |
#alignHorizontal |
|
937 |
'Horizontal inset to the location point of the selected widget.' |
|
938 |
||
939 |
#alignLeftCenter |
|
940 |
'Aligns the selected widget leftCenter to location.' |
|
941 |
||
942 |
#alignRightCenter |
|
943 |
'Aligns the selected widget rightCenter to location.' |
|
944 |
||
945 |
#alignTopCenter |
|
946 |
'Aligns the selected widget topCenter to location.' |
|
947 |
||
948 |
#alignTopLeft |
|
949 |
'Aligns the selected widget topLeft to location.' |
|
950 |
||
951 |
#alignTopRight |
|
952 |
'Aligns the selected widget topRight to location.' |
|
953 |
||
954 |
#alignVertical |
|
955 |
'Vertical inset to the location point of the widget.' |
|
956 |
||
957 |
) |
|
958 |
! ! |
|
959 |
||
960 |
!UILayoutTool::AlignmentOrigin class methodsFor:'interface specs'! |
|
961 |
||
962 |
windowSpec |
|
963 |
"This resource specification was automatically generated |
|
964 |
by the UIPainter of ST/X." |
|
965 |
||
966 |
"Do not manually edit this!! If it is corrupted, |
|
967 |
the UIPainter may not be able to read the specification." |
|
968 |
||
969 |
" |
|
970 |
UIPainter new openOnClass:UILayoutTool::AlignmentOrigin andSelector:#windowSpec |
|
971 |
UILayoutTool::AlignmentOrigin new openInterface:#windowSpec |
|
972 |
UILayoutTool::AlignmentOrigin open |
|
973 |
" |
|
974 |
||
975 |
<resource: #canvas> |
|
976 |
||
977 |
^ |
|
978 |
#(#FullSpec |
|
979 |
#name: #windowSpec |
|
980 |
#window: |
|
981 |
#(#WindowSpec |
|
982 |
#label: 'UILayoutTool-AlignmentOrigin' |
|
983 |
#name: 'UILayoutTool-AlignmentOrigin' |
|
984 |
#min: #(#Point 10 10) |
|
985 |
#max: #(#Point 1152 900) |
|
986 |
#bounds: #(#Rectangle 42 231 447 438) |
|
987 |
) |
|
988 |
#component: |
|
989 |
#(#SpecCollection |
|
990 |
#collection: #( |
|
991 |
#(#UISubSpecification |
|
992 |
#name: 'layoutOriginSpec' |
|
993 |
#layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 111 0) |
|
994 |
#majorKey: #UILayoutTool |
|
995 |
#minorKey: #layoutOriginSpec |
|
996 |
) |
|
997 |
#(#FramedBoxSpec |
|
998 |
#label: 'Alignment' |
|
999 |
#name: 'FramedBox' |
|
1000 |
#layout: #(#LayoutFrame 1 0.0 113 0 0 1.0 208 0) |
|
1001 |
#labelPosition: #topLeft |
|
1002 |
#component: |
|
1003 |
#(#SpecCollection |
|
1004 |
#collection: #( |
|
1005 |
#(#LabelSpec |
|
1006 |
#label: 'Horizontal:' |
|
1007 |
#name: 'alignHLabel' |
|
1008 |
#layout: #(#AlignmentOrigin 88 0 17 0 1 0) |
|
1009 |
#adjust: #right |
|
1010 |
) |
|
1011 |
#(#InputFieldSpec |
|
1012 |
#attributes: |
|
1013 |
#(#tabable |
|
1014 |
true |
|
1015 |
) |
|
1016 |
#name: 'leftAlignmentFractionField' |
|
1017 |
#layout: #(#LayoutFrame 90 0 14 0 147 0 36 0) |
|
1018 |
#activeHelpKey: #alignHorizontal |
|
1019 |
#tabable: true |
|
1020 |
#model: #leftAlignmentFraction |
|
1021 |
#group: #inputGroup |
|
1022 |
#type: #numberOrNil |
|
1023 |
#acceptOnLostFocus: true |
|
1024 |
#acceptChannel: #acceptChannel |
|
1025 |
#modifiedChannel: #modifiedChannel |
|
1026 |
#acceptOnPointerLeave: false |
|
1027 |
) |
|
1028 |
#(#LabelSpec |
|
1029 |
#label: 'Vertical:' |
|
1030 |
#name: 'alignVLabel' |
|
1031 |
#layout: #(#AlignmentOrigin 88 0 43 0 1 0) |
|
1032 |
#adjust: #right |
|
1033 |
) |
|
1034 |
#(#InputFieldSpec |
|
1035 |
#attributes: |
|
1036 |
#(#tabable |
|
1037 |
true |
|
1038 |
) |
|
1039 |
#name: 'topAlignmentFractionField' |
|
1040 |
#layout: #(#LayoutFrame 90 0 40 0 147 0 62 0) |
|
1041 |
#activeHelpKey: #alignVertical |
|
1042 |
#tabable: true |
|
1043 |
#model: #topAlignmentFraction |
|
1044 |
#group: #inputGroup |
|
1045 |
#type: #numberOrNil |
|
1046 |
#acceptOnLostFocus: true |
|
1047 |
#acceptChannel: #acceptChannel |
|
1048 |
#modifiedChannel: #modifiedChannel |
|
1049 |
#acceptOnPointerLeave: false |
|
1050 |
) |
|
1051 |
#(#DividerSpec |
|
1052 |
#name: 'separator1' |
|
1053 |
#layout: #(#LayoutFrame 204 0 19 0 245 0 22 0) |
|
1054 |
) |
|
1055 |
#(#DividerSpec |
|
1056 |
#name: 'separator2' |
|
1057 |
#layout: #(#LayoutFrame 204 0 55 0 245 0 58 0) |
|
1058 |
) |
|
1059 |
#(#DividerSpec |
|
1060 |
#name: 'separator3' |
|
1061 |
#layout: #(#LayoutFrame 196 0 28 0 199 0 50 0) |
|
1062 |
#orientation: #vertical |
|
1063 |
) |
|
1064 |
#(#DividerSpec |
|
1065 |
#name: 'separator4' |
|
1066 |
#layout: #(#LayoutFrame 250 0 28 0 253 0 50 0) |
|
1067 |
#orientation: #vertical |
|
1068 |
) |
|
1069 |
#(#ActionButtonSpec |
|
1070 |
#attributes: |
|
1071 |
#(#tabable |
|
1072 |
true |
|
1073 |
) |
|
1074 |
#name: 'alignTopLeft' |
|
1075 |
#layout: #(#LayoutFrame 190 0 14 0 204 0 28 0) |
|
1076 |
#activeHelpKey: #alignTopLeft |
|
1077 |
#tabable: true |
|
1078 |
#model: #alignTopLeft |
|
1079 |
) |
|
1080 |
#(#ActionButtonSpec |
|
1081 |
#attributes: |
|
1082 |
#(#tabable |
|
1083 |
true |
|
1084 |
) |
|
1085 |
#name: 'alignTopCenter' |
|
1086 |
#layout: #(#LayoutFrame 217 0 14 0 231 0 28 0) |
|
1087 |
#activeHelpKey: #alignTopCenter |
|
1088 |
#tabable: true |
|
1089 |
#model: #alignTopCenter |
|
1090 |
) |
|
1091 |
#(#ActionButtonSpec |
|
1092 |
#attributes: |
|
1093 |
#(#tabable |
|
1094 |
true |
|
1095 |
) |
|
1096 |
#name: 'alignTopRight' |
|
1097 |
#layout: #(#LayoutFrame 245 0 14 0 259 0 28 0) |
|
1098 |
#activeHelpKey: #alignTopRight |
|
1099 |
#tabable: true |
|
1100 |
#model: #alignTopRight |
|
1101 |
) |
|
1102 |
#(#ActionButtonSpec |
|
1103 |
#attributes: |
|
1104 |
#(#tabable |
|
1105 |
true |
|
1106 |
) |
|
1107 |
#name: 'alignLeftCenter' |
|
1108 |
#layout: #(#LayoutFrame 190 0 32 0 204 0 46 0) |
|
1109 |
#activeHelpKey: #alignLeftCenter |
|
1110 |
#tabable: true |
|
1111 |
#model: #alignLeftCenter |
|
1112 |
) |
|
1113 |
#(#ActionButtonSpec |
|
1114 |
#attributes: |
|
1115 |
#(#tabable |
|
1116 |
true |
|
1117 |
) |
|
1118 |
#name: 'alignCenter' |
|
1119 |
#layout: #(#LayoutFrame 217 0 32 0 231 0 46 0) |
|
1120 |
#activeHelpKey: #alignCenter |
|
1121 |
#tabable: true |
|
1122 |
#model: #alignCenter |
|
1123 |
) |
|
1124 |
#(#ActionButtonSpec |
|
1125 |
#attributes: |
|
1126 |
#(#tabable |
|
1127 |
true |
|
1128 |
) |
|
1129 |
#name: 'alignRightCenter' |
|
1130 |
#layout: #(#LayoutFrame 245 0 32 0 259 0 46 0) |
|
1131 |
#activeHelpKey: #alignRightCenter |
|
1132 |
#tabable: true |
|
1133 |
#model: #alignRightCenter |
|
1134 |
) |
|
1135 |
#(#ActionButtonSpec |
|
1136 |
#attributes: |
|
1137 |
#(#tabable |
|
1138 |
true |
|
1139 |
) |
|
1140 |
#name: 'alignBottomLeft' |
|
1141 |
#layout: #(#LayoutFrame 190 0 50 0 204 0 64 0) |
|
1142 |
#activeHelpKey: #alignBottomLeft |
|
1143 |
#tabable: true |
|
1144 |
#model: #alignBottomLeft |
|
1145 |
) |
|
1146 |
#(#ActionButtonSpec |
|
1147 |
#attributes: |
|
1148 |
#(#tabable |
|
1149 |
true |
|
1150 |
) |
|
1151 |
#name: 'alignBottomCenter' |
|
1152 |
#layout: #(#LayoutFrame 217 0 50 0 231 0 64 0) |
|
1153 |
#activeHelpKey: #alignBottomCenter |
|
1154 |
#tabable: true |
|
1155 |
#model: #alignBottomCenter |
|
1156 |
) |
|
1157 |
#(#ActionButtonSpec |
|
1158 |
#attributes: |
|
1159 |
#(#tabable |
|
1160 |
true |
|
1161 |
) |
|
1162 |
#name: 'alignBottomRight' |
|
1163 |
#layout: #(#LayoutFrame 245 0 50 0 259 0 64 0) |
|
1164 |
#activeHelpKey: #alignBottomRight |
|
1165 |
#tabable: true |
|
1166 |
#model: #alignBottomRight |
|
1167 |
) |
|
1168 |
) |
|
1169 |
||
1170 |
) |
|
1171 |
) |
|
1172 |
) |
|
1173 |
||
1174 |
) |
|
1175 |
) |
|
1176 |
! ! |
|
1177 |
||
1178 |
!UILayoutTool::AlignmentOrigin methodsFor:'accessing'! |
|
1179 |
||
1180 |
fetch:aView spec:aSpec |
|
1181 |
"fetch alignmentOrigin |
|
1182 |
" |
|
1183 |
|layout type |
|
1184 |
leftAlignmentFractionHolder topAlignmentFractionHolder |
|
1185 |
leftOffsetHolder leftFractionHolder topOffsetHolder topFractionHolder| |
|
1186 |
||
1187 |
type := UIPainterView layoutType:aView. |
|
1188 |
layout := aView geometryLayout. |
|
1189 |
||
1190 |
leftOffsetHolder := (self aspectFor:#leftOffset). |
|
1191 |
leftFractionHolder := (self aspectFor:#leftFraction). |
|
1192 |
topOffsetHolder := (self aspectFor:#topOffset). |
|
1193 |
topFractionHolder := (self aspectFor:#topFraction). |
|
1194 |
leftAlignmentFractionHolder := (self aspectFor:#leftAlignmentFraction). |
|
1195 |
topAlignmentFractionHolder := (self aspectFor:#topAlignmentFraction). |
|
1196 |
||
1197 |
layout isLayout ifTrue:[ |
|
1198 |
leftOffsetHolder value:(layout leftOffset). |
|
1199 |
leftFractionHolder value:(layout leftFraction). |
|
1200 |
topOffsetHolder value:(layout topOffset). |
|
1201 |
topFractionHolder value:(layout topFraction). |
|
1202 |
||
1203 |
type == #AlignmentOrigin ifTrue:[ |
|
1204 |
leftAlignmentFractionHolder value:(layout leftAlignmentFraction). |
|
1205 |
topAlignmentFractionHolder value:(layout topAlignmentFraction). |
|
1206 |
^ self |
|
1207 |
] |
|
1208 |
] ifFalse:[ |
|
1209 |
layout := aView computeOrigin. |
|
1210 |
||
1211 |
leftOffsetHolder value:(layout x). |
|
1212 |
leftFractionHolder value:0. |
|
1213 |
topOffsetHolder value:(layout y). |
|
1214 |
topFractionHolder value:0. |
|
1215 |
]. |
|
1216 |
leftAlignmentFractionHolder value:0. |
|
1217 |
topAlignmentFractionHolder value:0. |
|
1218 |
||
1219 |
||
1220 |
! |
|
1221 |
||
1222 |
layout |
|
1223 |
"returns current layout as alignmentOrigin |
|
1224 |
" |
|
1225 |
|layout| |
|
1226 |
||
1227 |
layout := Smalltalk::AlignmentOrigin new. |
|
1228 |
||
1229 |
layout leftOffset:((self aspectFor:#leftOffset) value) ? 0. |
|
1230 |
layout topOffset:((self aspectFor:#topOffset) value) ? 0. |
|
1231 |
layout leftFraction:((self aspectFor:#leftFraction) value) ? 0. |
|
1232 |
layout topFraction:((self aspectFor:#topFraction) value) ? 0. |
|
1233 |
||
1234 |
layout leftAlignmentFraction:((self aspectFor:#leftAlignmentFraction) value) ? 0. |
|
1235 |
layout topAlignmentFraction:((self aspectFor:#topAlignmentFraction) value) ? 0. |
|
1236 |
||
1237 |
^ layout |
|
1238 |
! ! |
|
1239 |
||
1240 |
!UILayoutTool::AlignmentOrigin methodsFor:'alignment'! |
|
1241 |
||
1242 |
alignBottomCenter |
|
1243 |
self makeAlignLeft:0.5 top:1 |
|
1244 |
||
1245 |
||
1246 |
! |
|
1247 |
||
1248 |
alignBottomLeft |
|
1249 |
self makeAlignLeft:0 top:1 |
|
1250 |
||
1251 |
||
1252 |
! |
|
1253 |
||
1254 |
alignBottomRight |
|
1255 |
self makeAlignLeft:1 top:1 |
|
1256 |
||
1257 |
||
1258 |
! |
|
1259 |
||
1260 |
alignCenter |
|
1261 |
self makeAlignLeft:0.5 top:0.5 |
|
1262 |
||
1263 |
||
1264 |
! |
|
1265 |
||
1266 |
alignLeftCenter |
|
1267 |
self makeAlignLeft:0 top:0.5 |
|
1268 |
||
1269 |
||
1270 |
! |
|
1271 |
||
1272 |
alignRightCenter |
|
1273 |
self makeAlignLeft:1 top:0.5 |
|
1274 |
||
1275 |
||
1276 |
! |
|
1277 |
||
1278 |
alignTopCenter |
|
1279 |
self makeAlignLeft:0.5 top:0 |
|
1280 |
||
1281 |
||
1282 |
! |
|
1283 |
||
1284 |
alignTopLeft |
|
1285 |
self makeAlignLeft:0 top:0 |
|
1286 |
||
1287 |
||
1288 |
! |
|
1289 |
||
1290 |
alignTopRight |
|
1291 |
self makeAlignLeft:1 top:0 |
|
1292 |
||
1293 |
||
1294 |
! |
|
1295 |
||
1296 |
makeAlignLeft:leftAlignmentFraction top:topAlignmentFraction |
|
1297 |
|lAF tAF lO tO ext lAHolder tAHolder lOHolder tOHolder| |
|
1298 |
||
1299 |
lAF := (lAHolder := self aspectFor:#leftAlignmentFraction) value ? 0. |
|
1300 |
tAF := (tAHolder := self aspectFor:#topAlignmentFraction) value ? 0. |
|
1301 |
ext := (self aspectFor:#layoutView) computeExtent. |
|
1302 |
||
1303 |
lAHolder value:leftAlignmentFraction. |
|
1304 |
tAHolder value:topAlignmentFraction. |
|
1305 |
||
1306 |
lO := (lOHolder := self aspectFor:#leftOffset) value ? 0. |
|
1307 |
tO := (tOHolder := self aspectFor:#topOffset) value ? 0. |
|
1308 |
||
1309 |
lO := lO + (ext x * (leftAlignmentFraction - lAF)). |
|
1310 |
tO := tO + (ext y * (topAlignmentFraction - tAF)). |
|
1311 |
||
1312 |
lOHolder value:(lO rounded). |
|
1313 |
tOHolder value:(tO rounded). |
|
1314 |
||
1315 |
! |
|
1316 |
||
1317 |
makeAlignTopRight |
|
1318 |
self makeAlignLeft:1 top:0 |
|
1319 |
||
1320 |
||
1321 |
! ! |
|
1322 |
||
1323 |
!UILayoutTool::Rectangle class methodsFor:'interface specs'! |
|
1324 |
||
1325 |
windowSpec |
|
1326 |
"This resource specification was automatically generated |
|
1327 |
by the UIPainter of ST/X." |
|
1328 |
||
1329 |
"Do not manually edit this!! If it is corrupted, |
|
1330 |
the UIPainter may not be able to read the specification." |
|
1331 |
||
1332 |
" |
|
1333 |
UIPainter new openOnClass:UILayoutTool::Rectangle andSelector:#windowSpec |
|
1334 |
UILayoutTool::Rectangle new openInterface:#windowSpec |
|
1335 |
UILayoutTool::Rectangle open |
|
1336 |
" |
|
1337 |
||
1338 |
<resource: #canvas> |
|
1339 |
||
1340 |
^ |
|
1341 |
||
1342 |
#(#FullSpec |
|
1343 |
#window: |
|
1344 |
#(#WindowSpec |
|
1345 |
#name: 'UILayoutTool-Rectangle' |
|
1346 |
#layout: #(#LayoutFrame 291 0 130 0 632 0 328 0) |
|
1347 |
#label: 'UILayoutTool-Rectangle' |
|
1348 |
#min: #(#Point 10 10) |
|
1349 |
#max: #(#Point 1152 900) |
|
1350 |
#bounds: #(#Rectangle 291 130 633 329) |
|
1351 |
#usePreferredExtent: false |
|
1352 |
) |
|
1353 |
#component: |
|
1354 |
#(#SpecCollection |
|
1355 |
#collection: |
|
1356 |
#( |
|
1357 |
#(#UISubSpecification |
|
1358 |
#name: 'subSpecification' |
|
1359 |
#layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 96 0) |
|
1360 |
#majorKey: #UILayoutTool |
|
1361 |
#minorKey: #layoutPointSpec |
|
1362 |
) |
|
1363 |
#(#FramedBoxSpec |
|
1364 |
#name: 'FramedBox' |
|
1365 |
#layout: #(#LayoutFrame 1 0.0 99 0 0 1.0 194 0) |
|
1366 |
#component: |
|
1367 |
#(#SpecCollection |
|
1368 |
#collection: |
|
1369 |
#( |
|
1370 |
#(#LabelSpec |
|
1371 |
#name: 'labelCornerY' |
|
1372 |
#layout: #(#AlignmentOrigin 83 0 16 0 1 0) |
|
1373 |
#label: 'Right:' |
|
1374 |
#adjust: #left |
|
1375 |
) |
|
1376 |
#(#InputFieldSpec |
|
1377 |
#name: 'fieldCornerX' |
|
1378 |
#layout: #(#LayoutFrame 85 0 13 0 135 0 35 0) |
|
1379 |
#activeHelpKey: #cornerX |
|
1380 |
#tabable: true |
|
1381 |
#model: #rightOffset |
|
1382 |
#group: #inputGroup |
|
1383 |
#type: #numberOrNil |
|
1384 |
#acceptOnLostFocus: true |
|
1385 |
#acceptChannel: #acceptChannel |
|
1386 |
#modifiedChannel: #modifiedChannel |
|
1387 |
) |
|
1388 |
#(#LabelSpec |
|
1389 |
#name: 'labelCornerX' |
|
1390 |
#layout: #(#AlignmentOrigin 83 0 41 0 1 0) |
|
1391 |
#label: 'Bottom:' |
|
1392 |
#adjust: #left |
|
1393 |
) |
|
1394 |
#(#InputFieldSpec |
|
1395 |
#name: 'fieldCornerY' |
|
1396 |
#layout: #(#LayoutFrame 85 0 38 0 135 0 60 0) |
|
1397 |
#activeHelpKey: #cornerY |
|
1398 |
#tabable: true |
|
1399 |
#model: #bottomOffset |
|
1400 |
#group: #inputGroup |
|
1401 |
#type: #numberOrNil |
|
1402 |
#acceptOnLostFocus: true |
|
1403 |
#acceptChannel: #acceptChannel |
|
1404 |
#modifiedChannel: #modifiedChannel |
|
1405 |
) |
|
1406 |
) |
|
1407 |
) |
|
1408 |
#label: 'Corner' |
|
1409 |
#labelPosition: #topLeft |
|
1410 |
) |
|
1411 |
) |
|
1412 |
) |
|
1413 |
) |
|
1414 |
||
1415 |
"Modified: / 13.8.1998 / 19:59:16 / cg" |
|
1416 |
! ! |
|
1417 |
||
1418 |
!UILayoutTool::Rectangle methodsFor:'accessing'! |
|
1419 |
||
1420 |
fetch:aView spec:aSpec |
|
1421 |
"fetch rectangle |
|
1422 |
" |
|
1423 |
|origin corner| |
|
1424 |
||
1425 |
origin := aView computeOrigin. |
|
1426 |
corner := aView computeCorner. |
|
1427 |
||
1428 |
(self aspectFor:#leftOffset) value:(origin x). |
|
1429 |
(self aspectFor:#rightOffset) value:(corner x). |
|
1430 |
(self aspectFor:#topOffset) value:(origin y). |
|
1431 |
(self aspectFor:#bottomOffset) value:(corner y). |
|
1432 |
||
1433 |
||
1434 |
! |
|
1435 |
||
1436 |
layout |
|
1437 |
"returns current layout as rectangle |
|
1438 |
" |
|
1439 |
^ Smalltalk::Rectangle left:(((self aspectFor:#leftOffset) value) ? 0) |
|
1440 |
top:(((self aspectFor:#topOffset) value) ? 0) |
|
1441 |
right:(((self aspectFor:#rightOffset) value) ? 0) |
|
1442 |
bottom:(((self aspectFor:#bottomOffset) value) ? 0) |
|
1443 |
||
1444 |
||
1445 |
! ! |
|
1446 |
||
1447 |
!UILayoutTool::Point class methodsFor:'interface specs'! |
|
1448 |
||
1449 |
windowSpec |
|
1450 |
"This resource specification was automatically generated |
|
1451 |
by the UIPainter of ST/X." |
|
1452 |
||
1453 |
"Do not manually edit this!! If it is corrupted, |
|
1454 |
the UIPainter may not be able to read the specification." |
|
1455 |
||
1456 |
" |
|
1457 |
UIPainter new openOnClass:UILayoutTool::Point andSelector:#windowSpec |
|
1458 |
UILayoutTool::Point new openInterface:#windowSpec |
|
1459 |
UILayoutTool::Point open |
|
1460 |
" |
|
1461 |
||
1462 |
<resource: #canvas> |
|
1463 |
||
1464 |
^ |
|
1465 |
||
1466 |
#(#FullSpec |
|
1467 |
#window: |
|
1468 |
#(#WindowSpec |
|
1469 |
#name: 'UILayoutTool-Point' |
|
1470 |
#layout: #(#LayoutFrame 324 0 410 0 618 0 547 0) |
|
1471 |
#label: 'UILayoutTool-Point' |
|
1472 |
#min: #(#Point 10 10) |
|
1473 |
#max: #(#Point 1152 900) |
|
1474 |
#bounds: #(#Rectangle 324 410 619 548) |
|
1475 |
#usePreferredExtent: false |
|
1476 |
) |
|
1477 |
#component: |
|
1478 |
#(#SpecCollection |
|
1479 |
#collection: |
|
1480 |
#( |
|
1481 |
#(#UISubSpecification |
|
1482 |
#name: 'layoutPointSpec' |
|
1483 |
#layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 100 0) |
|
1484 |
#majorKey: #UILayoutTool |
|
1485 |
#minorKey: #layoutPointSpec |
|
1486 |
) |
|
1487 |
) |
|
1488 |
) |
|
1489 |
) |
|
1490 |
! ! |
|
1491 |
||
1492 |
!UILayoutTool::Point methodsFor:'accessing'! |
|
1493 |
||
1494 |
fetch:aView spec:aSpec |
|
1495 |
"fetch point |
|
1496 |
" |
|
1497 |
|origin| |
|
1498 |
||
1499 |
origin := aView computeOrigin. |
|
1500 |
||
1501 |
(self aspectFor:#leftOffset) value:(origin x). |
|
1502 |
(self aspectFor:#topOffset) value:(origin y). |
|
1503 |
||
1504 |
||
1505 |
! |
|
1506 |
||
1507 |
layout |
|
1508 |
"returns current layout as point |
|
1509 |
" |
|
1510 |
^ Smalltalk::Point x:(((self aspectFor:#leftOffset) value) ? 0) |
|
1511 |
y:(((self aspectFor:#topOffset) value) ? 0) |
|
1512 |
||
1513 |
! ! |
|
1514 |
||
184 | 1515 |
!UILayoutTool::LayoutFrame class methodsFor:'help specs'! |
1516 |
||
1517 |
helpSpec |
|
741 | 1518 |
"This resource specification was automatically generated |
1519 |
by the UIHelpTool of ST/X." |
|
1520 |
||
1521 |
"Do not manually edit this!! If it is corrupted, |
|
1522 |
the UIHelpTool may not be able to read the specification." |
|
293 | 1523 |
|
184 | 1524 |
" |
741 | 1525 |
UIHelpTool openOnClass:UILayoutTool::LayoutFrame |
293 | 1526 |
" |
1527 |
||
741 | 1528 |
<resource: #help> |
184 | 1529 |
|
741 | 1530 |
^super helpSpec addPairsFrom:#( |
293 | 1531 |
|
1532 |
#bottomAbsolute |
|
714 | 1533 |
'Offset of the bottom edge; positive is to the bottom, negative to the top.' |
293 | 1534 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1535 |
#bottomFixPartLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1536 |
'Set the layout for a fixed area at the bottom of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1537 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1538 |
#bottomHalfLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1539 |
'Set the layout for the bottom half of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1540 |
|
741 | 1541 |
#bottomRelative |
1542 |
'Relative corner y of the selected widget.' |
|
1543 |
||
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1544 |
#leftHalfLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1545 |
'Set the layout for the left half of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1546 |
|
741 | 1547 |
#makeBottomAbsolute |
1548 |
'Computes current bottom offset and relative corner y to an absolute corner y.' |
|
184 | 1549 |
|
1550 |
#makeBottomRelative |
|
714 | 1551 |
'Computes current relative corner y and offset of the bottom edge to a relative corner y.' |
184 | 1552 |
|
1553 |
#makeRightAbsolute |
|
714 | 1554 |
'Computes current right offset and relative corner x to an absolute corner x.' |
184 | 1555 |
|
741 | 1556 |
#makeRightRelative |
1557 |
'Computes current relative corner x and offset of the right edge to a relative corner x.' |
|
184 | 1558 |
|
1559 |
#rightAbsolute |
|
714 | 1560 |
'Offset of the right edge; positive is to the right, negative to the left.' |
184 | 1561 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1562 |
#rightHalfLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1563 |
'Set the layout for the right half of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1564 |
|
741 | 1565 |
#rightRelative |
1566 |
'Relative corner x of the selected widget.' |
|
1567 |
||
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1568 |
#topFixPartLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1569 |
'Set the layout for a fixed area at the top of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1570 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1571 |
#topHalfLayout |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1572 |
'Set the layout for the top half of the widgets containers space' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1573 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1574 |
#topLeftQuarterLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1575 |
'Set the layout for the top-left quarter of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1576 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1577 |
#topRightQuarterLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1578 |
'Set the layout for the top-right quarter of the widgets containers space' |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1579 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1580 |
#bottomRightQuarterLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1581 |
'Set the layout for the bottom-right quarter of the widgets containers space' |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1582 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1583 |
#bottomLeftQuarterLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1584 |
'Set the layout for the bottom-left quarter of the widgets containers space' |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1585 |
|
184 | 1586 |
) |
1587 |
! ! |
|
1588 |
||
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1589 |
!UILayoutTool::LayoutFrame class methodsFor:'image specs'! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1590 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1591 |
setBottomFixPartIcon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1592 |
"This resource specification was automatically generated |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1593 |
by the ImageEditor of ST/X." |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1594 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1595 |
"Do not manually edit this!! If it is corrupted, |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1596 |
the ImageEditor may not be able to read the specification." |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1597 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1598 |
" |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1599 |
self setBottomFixPartIcon inspect |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1600 |
ImageEditor openOnClass:self andSelector:#setBottomFixPartIcon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1601 |
" |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1602 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1603 |
<resource: #image> |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1604 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1605 |
^Icon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1606 |
constantNamed:#'UILayoutTool::LayoutFrame setBottomFixPartIcon' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1607 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H"H"@BH"H @!!DQD@DQDR@BDQDP@QDQH@H"H"@BH"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@X@A @G???????????????<b') ; yourself); yourself]! |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1608 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1609 |
setBottomHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1610 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1611 |
by the ImageEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1612 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1613 |
"Do not manually edit this!! If it is corrupted, |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1614 |
the ImageEditor may not be able to read the specification." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1615 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1616 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1617 |
self setBottomHalfIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1618 |
ImageEditor openOnClass:self andSelector:#setBottomHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1619 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1620 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1621 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1622 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1623 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1624 |
constantNamed:#'UILayoutTool::LayoutFrame setBottomHalfIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1625 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"H"H"@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H"H"H"H"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@_????????????????????<b') ; yourself); yourself]! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1626 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1627 |
setBottomLeftQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1628 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1629 |
by the ImageEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1630 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1631 |
"Do not manually edit this!! If it is corrupted, |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1632 |
the ImageEditor may not be able to read the specification." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1633 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1634 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1635 |
self setBottomLeftQuarterIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1636 |
ImageEditor openOnClass:self andSelector:#setBottomLeftQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1637 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1638 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1639 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1640 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1641 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1642 |
constantNamed:#'UILayoutTool::LayoutFrame setBottomLeftQuarterIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1643 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H"H"@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @G?@_<A?0G?@_<A?0G?@_<A??<b') ; yourself); yourself]! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1644 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1645 |
setBottomRightQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1646 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1647 |
by the ImageEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1648 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1649 |
"Do not manually edit this!! If it is corrupted, |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1650 |
the ImageEditor may not be able to read the specification." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1651 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1652 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1653 |
self setBottomRightQuarterIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1654 |
ImageEditor openOnClass:self andSelector:#setBottomRightQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1655 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1656 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1657 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1658 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1659 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1660 |
constantNamed:#'UILayoutTool::LayoutFrame setBottomRightQuarterIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1661 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@XG? _>A?8G? _>A?8G???<b') ; yourself); yourself]! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1662 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1663 |
setLeftHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1664 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1665 |
by the ImageEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1666 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1667 |
"Do not manually edit this!! If it is corrupted, |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1668 |
the ImageEditor may not be able to read the specification." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1669 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1670 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1671 |
self setLeftHalfIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1672 |
ImageEditor openOnClass:self andSelector:#setLeftHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1673 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1674 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1675 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1676 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1677 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1678 |
constantNamed:#'UILayoutTool::LayoutFrame setLeftHalfIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1679 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@BH"H @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'????@_<A?0G?@_<A?0G?@_<A?0G?@_<A?0G?@_<A??<b') ; yourself); yourself]! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1680 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1681 |
setRightHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1682 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1683 |
by the ImageEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1684 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1685 |
"Do not manually edit this!! If it is corrupted, |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1686 |
the ImageEditor may not be able to read the specification." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1687 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1688 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1689 |
self setRightHalfIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1690 |
ImageEditor openOnClass:self andSelector:#setRightHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1691 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1692 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1693 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1694 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1695 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1696 |
constantNamed:#'UILayoutTool::LayoutFrame setRightHalfIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1697 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BH"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@?8C? O>@?8C? O>@?8C? O>@?8C? O>@?8C???<b') ; yourself); yourself]! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1698 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1699 |
setToRightQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1700 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1701 |
by the ImageEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1702 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1703 |
"Do not manually edit this!! If it is corrupted, |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1704 |
the ImageEditor may not be able to read the specification." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1705 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1706 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1707 |
self setToRightQuarterIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1708 |
ImageEditor openOnClass:self andSelector:#setToRightQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1709 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1710 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1711 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1712 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1713 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1714 |
constantNamed:#'UILayoutTool::LayoutFrame setToRightQuarterIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1715 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@?8C? O>@?8C? O>@?8C? @F@@X@A @F@@X@A??<b') ; yourself); yourself]! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1716 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1717 |
setTopFixPartIcon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1718 |
"This resource specification was automatically generated |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1719 |
by the ImageEditor of ST/X." |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1720 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1721 |
"Do not manually edit this!! If it is corrupted, |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1722 |
the ImageEditor may not be able to read the specification." |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1723 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1724 |
" |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1725 |
self setTopFixPartIcon inspect |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1726 |
ImageEditor openOnClass:self andSelector:#setTopFixPartIcon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1727 |
" |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1728 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1729 |
<resource: #image> |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1730 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1731 |
^Icon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1732 |
constantNamed:#'UILayoutTool::LayoutFrame setTopFixPartIcon' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1733 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@BH"H @"H"H@HQDQ@ADQD @!!DQD@DQDR@BH"H @"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???????????????? @F@@X@A @F@@X@A @F@@X@A??<b') ; yourself); yourself]! |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1734 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1735 |
setTopHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1736 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1737 |
by the ImageEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1738 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1739 |
"Do not manually edit this!! If it is corrupted, |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1740 |
the ImageEditor may not be able to read the specification." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1741 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1742 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1743 |
self setTopHalfIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1744 |
ImageEditor openOnClass:self andSelector:#setTopHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1745 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1746 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1747 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1748 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1749 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1750 |
constantNamed:#'UILayoutTool::LayoutFrame setTopHalfIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1751 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @"H"H"H"H"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?????????????????????8@A @F@@X@A @F@@X@A??<b') ; yourself); yourself]! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1752 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1753 |
setTopLeftQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1754 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1755 |
by the ImageEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1756 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1757 |
"Do not manually edit this!! If it is corrupted, |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1758 |
the ImageEditor may not be able to read the specification." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1759 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1760 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1761 |
self setTopLeftQuarterIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1762 |
ImageEditor openOnClass:self andSelector:#setTopLeftQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1763 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1764 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1765 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1766 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1767 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1768 |
constantNamed:#'UILayoutTool::LayoutFrame setTopLeftQuarterIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1769 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???? _>A?8G? _>A?8G? X@A @F@@X@A @F@@X@A??<b') ; yourself); yourself]! ! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1770 |
|
184 | 1771 |
!UILayoutTool::LayoutFrame class methodsFor:'interface specs'! |
1772 |
||
1773 |
windowSpec |
|
751 | 1774 |
"This resource specification was automatically generated |
1775 |
by the UIPainter of ST/X." |
|
184 | 1776 |
|
751 | 1777 |
"Do not manually edit this!! If it is corrupted, |
1778 |
the UIPainter may not be able to read the specification." |
|
184 | 1779 |
|
1780 |
" |
|
1781 |
UIPainter new openOnClass:UILayoutTool::LayoutFrame andSelector:#windowSpec |
|
1782 |
UILayoutTool::LayoutFrame new openInterface:#windowSpec |
|
751 | 1783 |
UILayoutTool::LayoutFrame open |
184 | 1784 |
" |
1785 |
||
1786 |
<resource: #canvas> |
|
1787 |
||
1304 | 1788 |
^ |
1789 |
#(#FullSpec |
|
1790 |
#name: #windowSpec |
|
1791 |
#window: |
|
1792 |
#(#WindowSpec |
|
1793 |
#label: 'UILayoutTool-LayoutFrame' |
|
1794 |
#name: 'UILayoutTool-LayoutFrame' |
|
1795 |
#min: #(#Point 10 10) |
|
1796 |
#max: #(#Point 1152 900) |
|
1797 |
#bounds: #(#Rectangle 228 240 627 543) |
|
1798 |
#forceRecursiveBackground: false |
|
1799 |
) |
|
1800 |
#component: |
|
1801 |
#(#SpecCollection |
|
1802 |
#collection: #( |
|
1803 |
#(#UISubSpecification |
|
1804 |
#name: 'layoutOriginSpec' |
|
1805 |
#layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 110 0) |
|
1806 |
#majorKey: #UILayoutTool |
|
1807 |
#minorKey: #layoutOriginSpec |
|
1808 |
) |
|
1809 |
#(#FramedBoxSpec |
|
1810 |
#label: 'Corner' |
|
1811 |
#name: 'FramedBox' |
|
1812 |
#layout: #(#LayoutFrame 1 0.0 113 0 0 1.0 214 0) |
|
1813 |
#labelPosition: #topLeft |
|
1814 |
#component: |
|
1815 |
#(#SpecCollection |
|
1816 |
#collection: #( |
|
1817 |
#(#LabelSpec |
|
1818 |
#label: 'Right:' |
|
1819 |
#name: 'labelRight' |
|
1820 |
#layout: #(#AlignmentOrigin 88 0 25 0 1 0.5) |
|
1821 |
) |
|
1822 |
#(#InputFieldSpec |
|
1823 |
#attributes: |
|
1824 |
#(#fieldRightFraction |
|
1825 |
nil #tabable |
|
1826 |
true |
|
1827 |
) |
|
1828 |
#name: 'fieldRightFraction' |
|
1829 |
#layout: #(#LayoutFrame 90 0 14 0 140 0 36 0) |
|
1830 |
#activeHelpKey: #rightRelative |
|
1831 |
#tabable: true |
|
1832 |
#model: #rightFraction |
|
1833 |
#group: #inputGroup |
|
1834 |
#type: #numberOrNil |
|
1835 |
#acceptOnLostFocus: true |
|
1836 |
#acceptChannel: #acceptChannel |
|
1837 |
#modifiedChannel: #modifiedChannel |
|
1838 |
#acceptOnPointerLeave: false |
|
1839 |
) |
|
1840 |
#(#ActionButtonSpec |
|
1841 |
#attributes: |
|
1842 |
#(#tabable |
|
1843 |
true |
|
1844 |
) |
|
1845 |
#name: 'actionRelativeRight' |
|
1846 |
#layout: #(#LayoutFrame 145 0 14 0 167 0 36 0) |
|
1847 |
#activeHelpKey: #makeRightRelative |
|
1848 |
#tabable: true |
|
1849 |
#model: #relativeRight |
|
1850 |
) |
|
1851 |
#(#InputFieldSpec |
|
1852 |
#attributes: |
|
1853 |
#(#fieldRightOffset |
|
1854 |
nil #tabable |
|
1855 |
true |
|
1856 |
) |
|
1857 |
#name: 'fieldRightOffset' |
|
1858 |
#layout: #(#LayoutFrame 190 0 14 0 240 0 36 0) |
|
1859 |
#activeHelpKey: #rightAbsolute |
|
1860 |
#tabable: true |
|
1861 |
#model: #rightOffset |
|
1862 |
#group: #inputGroup |
|
1863 |
#type: #numberOrNil |
|
1864 |
#acceptOnLostFocus: true |
|
1865 |
#acceptChannel: #acceptChannel |
|
1866 |
#modifiedChannel: #modifiedChannel |
|
1867 |
#acceptOnPointerLeave: false |
|
1868 |
) |
|
1869 |
#(#ActionButtonSpec |
|
1870 |
#attributes: |
|
1871 |
#(#tabable |
|
1872 |
true |
|
1873 |
) |
|
1874 |
#name: 'actionAbsoluteRight' |
|
1875 |
#layout: #(#LayoutFrame 245 0 14 0 267 0 36 0) |
|
1876 |
#activeHelpKey: #makeRightAbsolute |
|
1877 |
#tabable: true |
|
1878 |
#model: #absoluteRight |
|
1879 |
) |
|
1880 |
#(#LabelSpec |
|
1881 |
#label: 'Bottom:' |
|
1882 |
#name: 'labelBottom' |
|
1883 |
#layout: #(#AlignmentOrigin 88 0 53 0 1 0.5) |
|
1884 |
) |
|
1885 |
#(#InputFieldSpec |
|
1886 |
#attributes: |
|
1887 |
#(#fieldBottomFraction |
|
1888 |
nil #tabable |
|
1889 |
true |
|
1890 |
) |
|
1891 |
#name: 'fieldBottomFraction' |
|
1892 |
#layout: #(#LayoutFrame 90 0 42 0 140 0 64 0) |
|
1893 |
#activeHelpKey: #bottomRelative |
|
1894 |
#tabable: true |
|
1895 |
#model: #bottomFraction |
|
1896 |
#group: #inputGroup |
|
1897 |
#type: #numberOrNil |
|
1898 |
#acceptOnLostFocus: true |
|
1899 |
#acceptChannel: #acceptChannel |
|
1900 |
#modifiedChannel: #modifiedChannel |
|
1901 |
#acceptOnPointerLeave: false |
|
1902 |
) |
|
1903 |
#(#ActionButtonSpec |
|
1904 |
#attributes: |
|
1905 |
#(#tabable |
|
1906 |
true |
|
1907 |
) |
|
1908 |
#name: 'actionRelativeBottom' |
|
1909 |
#layout: #(#LayoutFrame 145 0 42 0 167 0 64 0) |
|
1910 |
#activeHelpKey: #makeBottomRelative |
|
1911 |
#tabable: true |
|
1912 |
#model: #relativeBottom |
|
1913 |
) |
|
1914 |
#(#InputFieldSpec |
|
1915 |
#attributes: |
|
1916 |
#(#fieldBottomOffset |
|
1917 |
nil #tabable |
|
1918 |
true |
|
1919 |
) |
|
1920 |
#name: 'fieldBottomOffset' |
|
1921 |
#layout: #(#LayoutFrame 190 0 42 0 240 0 64 0) |
|
1922 |
#activeHelpKey: #bottomAbsolute |
|
1923 |
#tabable: true |
|
1924 |
#model: #bottomOffset |
|
1925 |
#group: #inputGroup |
|
1926 |
#type: #numberOrNil |
|
1927 |
#acceptOnLostFocus: true |
|
1928 |
#acceptChannel: #acceptChannel |
|
1929 |
#modifiedChannel: #modifiedChannel |
|
1930 |
#acceptOnPointerLeave: false |
|
1931 |
) |
|
1932 |
#(#ActionButtonSpec |
|
1933 |
#attributes: |
|
1934 |
#(#tabable |
|
1935 |
true |
|
1936 |
) |
|
1937 |
#name: 'actionAbsoluteBottom' |
|
1938 |
#layout: #(#LayoutFrame 245 0 42 0 267 0 64 0) |
|
1939 |
#activeHelpKey: #makeBottomAbsolute |
|
1940 |
#tabable: true |
|
1941 |
#model: #absoluteBottom |
|
1942 |
) |
|
1943 |
) |
|
1944 |
||
1945 |
) |
|
1946 |
) |
|
1947 |
#(#MenuPanelSpec |
|
1948 |
#name: 'commonLayoutToolBar' |
|
1949 |
#layout: #(#LayoutFrame 10 0.0 224 0 0 1.0 256 0) |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1950 |
#level: 0 |
1304 | 1951 |
#menu: #commonFrameLayoutsMenu |
1952 |
#textDefault: true |
|
1953 |
) |
|
1954 |
) |
|
1955 |
||
1956 |
) |
|
184 | 1957 |
) |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1958 |
! ! |
922
0a5799408f54
assign all inputFields to a common group.
Claus Gittinger <cg@exept.de>
parents:
751
diff
changeset
|
1959 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1960 |
!UILayoutTool::LayoutFrame class methodsFor:'menu specs'! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1961 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1962 |
commonFrameLayoutsMenu |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1963 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1964 |
by the MenuEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1965 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1966 |
"Do not manually edit this!! If it is corrupted, |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1967 |
the MenuEditor may not be able to read the specification." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1968 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1969 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1970 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1971 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu)) startUp |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1972 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1973 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1974 |
<resource: #menu> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1975 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1976 |
^ |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1977 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1978 |
#(#Menu |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1979 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1980 |
#( |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1981 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1982 |
#label: 'setTopHalfFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1983 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1984 |
#isButton: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1985 |
#nameKey: #setTopHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1986 |
#value: #setTopHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1987 |
#activeHelpKey: #topHalfLayout |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1988 |
#labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setTopHalfIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1989 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1990 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1991 |
#label: 'setBottomHalfFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1992 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1993 |
#isButton: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1994 |
#nameKey: #setBottomHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1995 |
#value: #setBottomHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1996 |
#activeHelpKey: #bottomHalfLayout |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1997 |
#labelImage: #(#ResourceRetriever nil #setBottomHalfIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1998 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1999 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2000 |
#label: 'setLeftHalfFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2001 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2002 |
#isButton: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2003 |
#nameKey: #setLeftHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2004 |
#value: #setLeftHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2005 |
#activeHelpKey: #leftHalfLayout |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2006 |
#labelImage: #(#ResourceRetriever nil #setLeftHalfIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2007 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2008 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2009 |
#label: 'setRightHalfFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2010 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2011 |
#isButton: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2012 |
#nameKey: #setRightHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2013 |
#value: #setRightHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2014 |
#activeHelpKey: #rightHalfLayout |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2015 |
#labelImage: #(#ResourceRetriever nil #setRightHalfIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2016 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2017 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2018 |
#label: '' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2019 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2020 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2021 |
#label: 'setTopLeftQuarterFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2022 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2023 |
#isButton: true |
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2024 |
#activeHelpKey: #topLeftQuarterLayout |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2025 |
#nameKey: #setTopLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2026 |
#value: #setTopLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2027 |
#labelImage: #(#ResourceRetriever nil #setTopLeftQuarterIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2028 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2029 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2030 |
#label: 'setTopRightQuarterFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2031 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2032 |
#isButton: true |
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2033 |
#activeHelpKey: #topRightQuarterLayout |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2034 |
#nameKey: #setTopRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2035 |
#value: #setTopRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2036 |
#labelImage: #(#ResourceRetriever nil #setToRightQuarterIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2037 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2038 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2039 |
#label: 'setBottomRightQuarterFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2040 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2041 |
#isButton: true |
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2042 |
#activeHelpKey: #bottomRightQuarterLayout |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2043 |
#nameKey: #setBottomRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2044 |
#value: #setBottomRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2045 |
#labelImage: #(#ResourceRetriever nil #setBottomRightQuarterIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2046 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2047 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2048 |
#label: 'setBottomLeftQuarterFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2049 |
#translateLabel: true |
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2050 |
#activeHelpKey: #bottomLeftQuarterLayout |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2051 |
#isButton: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2052 |
#nameKey: #setBottomLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2053 |
#value: #setBottomLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2054 |
#labelImage: #(#ResourceRetriever nil #setBottomLeftQuarterIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2055 |
) |
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2056 |
#(#MenuItem |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2057 |
#label: '' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2058 |
) |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2059 |
#(#MenuItem |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2060 |
#label: 'setTopFixPartFrame' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2061 |
#translateLabel: true |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2062 |
#isButton: true |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2063 |
#nameKey: #setTopFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2064 |
#value: #setTopFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2065 |
#activeHelpKey: #topFixPartLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2066 |
#labelImage: #(#ResourceRetriever nil #setTopFixPartIcon) |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2067 |
) |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2068 |
#(#MenuItem |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2069 |
#label: 'setBottomFixPartFrame' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2070 |
#translateLabel: true |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2071 |
#isButton: true |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2072 |
#nameKey: #setBottomFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2073 |
#value: #setBottomFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2074 |
#activeHelpKey: #bottomFixPartLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2075 |
#labelImage: #(#ResourceRetriever nil #setBottomFixPartIcon) |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2076 |
) |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2077 |
) nil |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2078 |
nil |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2079 |
) |
184 | 2080 |
! ! |
2081 |
||
2082 |
!UILayoutTool::LayoutFrame methodsFor:'accessing'! |
|
2083 |
||
1072 | 2084 |
fetch:aView spec:aSpec |
184 | 2085 |
|layout| |
2086 |
||
2087 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
2088 |
||
2089 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
|
2090 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
2091 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
2092 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
2093 |
(self aspectFor:#rightOffset) value:(layout rightOffset). |
|
2094 |
(self aspectFor:#bottomOffset) value:(layout bottomOffset). |
|
2095 |
(self aspectFor:#rightFraction) value:(layout rightFraction). |
|
2096 |
(self aspectFor:#bottomFraction) value:(layout bottomFraction). |
|
2097 |
||
2098 |
! |
|
2099 |
||
2100 |
layout |
|
2101 |
"returns current layout as layoutFrame |
|
2102 |
" |
|
2103 |
|layout| |
|
2104 |
||
2105 |
layout := Smalltalk::LayoutFrame new. |
|
2106 |
||
2107 |
layout leftOffset:((self aspectFor:#leftOffset) value) ? 0. |
|
2108 |
layout rightOffset:((self aspectFor:#rightOffset) value) ? 0. |
|
2109 |
layout topOffset:((self aspectFor:#topOffset) value) ? 0. |
|
2110 |
layout bottomOffset:((self aspectFor:#bottomOffset) value) ? 0. |
|
2111 |
layout leftFraction:((self aspectFor:#leftFraction) value) ? 0. |
|
2112 |
layout rightFraction:((self aspectFor:#rightFraction) value) ? 0. |
|
2113 |
layout topFraction:((self aspectFor:#topFraction) value) ? 0. |
|
2114 |
layout bottomFraction:((self aspectFor:#bottomFraction) value) ? 0. |
|
2115 |
||
2116 |
^ layout |
|
2117 |
||
2118 |
! ! |
|
2119 |
||
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2120 |
!UILayoutTool::LayoutFrame methodsFor:'common frames'! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2121 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2122 |
setBottomFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2123 |
self |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2124 |
setFrameLeft:0 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2125 |
right:1 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2126 |
top:1 offset:-30 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2127 |
bottom:1 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2128 |
! |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2129 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2130 |
setBottomHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2131 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2132 |
setFrameLeft:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2133 |
right:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2134 |
top:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2135 |
bottom:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2136 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2137 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2138 |
setBottomLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2139 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2140 |
setFrameLeft:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2141 |
right:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2142 |
top:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2143 |
bottom:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2144 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2145 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2146 |
setBottomRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2147 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2148 |
setFrameLeft:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2149 |
right:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2150 |
top:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2151 |
bottom:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2152 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2153 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2154 |
setFrameLeft:lF offset:lO right:rF offset:rO top:tF offset:tO bottom:bF offset:bO |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2155 |
(self aspectFor:#leftOffset) value:lO. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2156 |
(self aspectFor:#rightOffset) value:rO. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2157 |
(self aspectFor:#topOffset) value:tO. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2158 |
(self aspectFor:#bottomOffset) value:bO. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2159 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2160 |
(self aspectFor:#leftFraction) value:lF. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2161 |
(self aspectFor:#rightFraction) value:rF. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2162 |
(self aspectFor:#topFraction) value:tF. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2163 |
(self aspectFor:#bottomFraction) value:bF. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2164 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2165 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2166 |
setLeftHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2167 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2168 |
setFrameLeft:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2169 |
right:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2170 |
top:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2171 |
bottom:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2172 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2173 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2174 |
setRightHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2175 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2176 |
setFrameLeft:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2177 |
right:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2178 |
top:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2179 |
bottom:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2180 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2181 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2182 |
setTopFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2183 |
self |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2184 |
setFrameLeft:0 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2185 |
right:1 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2186 |
top:0 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2187 |
bottom:0 offset:30 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2188 |
! |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
2189 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2190 |
setTopHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2191 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2192 |
setFrameLeft:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2193 |
right:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2194 |
top:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2195 |
bottom:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2196 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2197 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2198 |
setTopLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2199 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2200 |
setFrameLeft:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2201 |
right:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2202 |
top:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2203 |
bottom:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2204 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2205 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2206 |
setTopRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2207 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2208 |
setFrameLeft:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2209 |
right:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2210 |
top:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2211 |
bottom:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2212 |
! ! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
2213 |
|
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2214 |
!UILayoutTool::Extent class methodsFor:'help specs'! |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2215 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2216 |
helpSpec |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2217 |
"This resource specification was automatically generated |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2218 |
by the UIHelpTool of ST/X." |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2219 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2220 |
"Do not manually edit this!! If it is corrupted, |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2221 |
the UIHelpTool may not be able to read the specification." |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2222 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2223 |
" |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2224 |
UIHelpTool openOnClass:UILayoutTool::Extent |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2225 |
" |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2226 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2227 |
<resource: #help> |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2228 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2229 |
^super helpSpec addPairsFrom:#( |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2230 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2231 |
#hrzExtent |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2232 |
'Horizontal extent of the selected widget.' |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2233 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2234 |
#vrtExtent |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2235 |
'Vertical extent of the selected widget.' |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2236 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2237 |
) |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2238 |
! ! |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2239 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2240 |
!UILayoutTool::Extent class methodsFor:'interface specs'! |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2241 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2242 |
windowSpec |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2243 |
"This resource specification was automatically generated |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2244 |
by the UIPainter of ST/X." |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2245 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2246 |
"Do not manually edit this!! If it is corrupted, |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2247 |
the UIPainter may not be able to read the specification." |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2248 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2249 |
" |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2250 |
UIPainter new openOnClass:UILayoutTool::Extent andSelector:#windowSpec |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2251 |
UILayoutTool::Extent new openInterface:#windowSpec |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2252 |
UILayoutTool::Extent open |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2253 |
" |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2254 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2255 |
<resource: #canvas> |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2256 |
|
1304 | 2257 |
^ |
2258 |
#(#FullSpec |
|
2259 |
#name: #windowSpec |
|
2260 |
#window: |
|
2261 |
#(#WindowSpec |
|
2262 |
#label: 'UILayoutTool-Extent' |
|
2263 |
#name: 'UILayoutTool-Extent' |
|
2264 |
#min: #(#Point 10 10) |
|
2265 |
#max: #(#Point 1152 900) |
|
2266 |
#bounds: #(#Rectangle 506 24 832 173) |
|
2267 |
) |
|
2268 |
#component: |
|
2269 |
#(#SpecCollection |
|
2270 |
#collection: #( |
|
2271 |
#(#FramedBoxSpec |
|
2272 |
#label: 'Extent' |
|
2273 |
#name: 'FramedBox' |
|
2274 |
#layout: #(#LayoutFrame 0 0.0 6 0.0 0 1.0 137 0) |
|
2275 |
#labelPosition: #topLeft |
|
2276 |
#component: |
|
2277 |
#(#SpecCollection |
|
2278 |
#collection: #( |
|
2279 |
#(#LabelSpec |
|
2280 |
#label: 'Width:' |
|
2281 |
#name: 'labelWidth' |
|
2282 |
#layout: #(#AlignmentOrigin 89 0 24 0 1 0.5) |
|
2283 |
#adjust: #right |
|
2284 |
) |
|
2285 |
#(#InputFieldSpec |
|
2286 |
#attributes: |
|
2287 |
#(#tabable |
|
2288 |
true |
|
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2289 |
) |
1304 | 2290 |
#name: 'fieldLeftOffset' |
2291 |
#layout: #(#LayoutFrame 90 0 13 0 140 0 35 0) |
|
2292 |
#activeHelpKey: #hrzExtent |
|
2293 |
#enableChannel: #notUsingDefaultExtent |
|
2294 |
#tabable: true |
|
2295 |
#model: #leftOffset |
|
2296 |
#group: #inputGroup |
|
2297 |
#type: #numberOrNil |
|
2298 |
#acceptOnLostFocus: true |
|
2299 |
#acceptChannel: #acceptChannel |
|
2300 |
#modifiedChannel: #modifiedChannel |
|
2301 |
#acceptOnPointerLeave: false |
|
2302 |
) |
|
2303 |
#(#LabelSpec |
|
2304 |
#label: 'Height:' |
|
2305 |
#name: 'labelHeight' |
|
2306 |
#layout: #(#AlignmentOrigin 89 0 49 0 1 0.5) |
|
2307 |
#adjust: #right |
|
2308 |
) |
|
2309 |
#(#InputFieldSpec |
|
2310 |
#attributes: |
|
2311 |
#(#tabable |
|
2312 |
true |
|
2313 |
) |
|
2314 |
#name: 'fieldRightOffset' |
|
2315 |
#layout: #(#LayoutFrame 90 0 38 0 140 0 60 0) |
|
2316 |
#activeHelpKey: #vrtExtent |
|
2317 |
#enableChannel: #notUsingDefaultExtent |
|
2318 |
#tabable: true |
|
2319 |
#model: #rightOffset |
|
2320 |
#group: #inputGroup |
|
2321 |
#type: #numberOrNil |
|
2322 |
#acceptOnLostFocus: true |
|
2323 |
#acceptChannel: #acceptChannel |
|
2324 |
#modifiedChannel: #modifiedChannel |
|
2325 |
#acceptOnPointerLeave: false |
|
2326 |
) |
|
2327 |
#(#CheckBoxSpec |
|
2328 |
#attributes: |
|
2329 |
#(#tabable |
|
2330 |
true |
|
2331 |
) |
|
2332 |
#label: 'Use Widgets Default Extent' |
|
2333 |
#name: 'useDefaultExtentCheckBox' |
|
2334 |
#layout: #(#Point 5 74) |
|
2335 |
#enableChannel: #defaultExtentEnabled |
|
2336 |
#tabable: true |
|
2337 |
#model: #useDefaultExtent |
|
2338 |
#translateLabel: true |
|
2339 |
) |
|
2340 |
) |
|
2341 |
||
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2342 |
) |
1304 | 2343 |
) |
2344 |
) |
|
2345 |
||
2346 |
) |
|
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2347 |
) |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2348 |
! ! |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2349 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2350 |
!UILayoutTool::Extent methodsFor:'accessing'! |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2351 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2352 |
fetch:aView spec:aSpec |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2353 |
"fetch extent |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2354 |
" |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2355 |
|extent| |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2356 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2357 |
extent := aView computeExtent. |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2358 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2359 |
(self aspectFor:#leftOffset) value:(extent x). |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2360 |
(self aspectFor:#rightOffset) value:(extent y). |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2361 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2362 |
(self aspectFor:#useDefaultExtent) value:aSpec useDefaultExtent |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2363 |
! |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2364 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2365 |
layout |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2366 |
"returns current extent |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2367 |
" |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2368 |
^ Smalltalk::Point x:(((self aspectFor:#leftOffset) value) ? 0) |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2369 |
y:(((self aspectFor:#rightOffset) value) ? 0) |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2370 |
|
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2371 |
! ! |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
2372 |
|
163 | 2373 |
!UILayoutTool class methodsFor:'documentation'! |
2374 |
||
2375 |
version |
|
2376 |
^ '$Header$' |
|
2377 |
! ! |