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