author | Claus Gittinger <cg@exept.de> |
Sat, 17 Apr 1999 01:55:48 +0200 | |
changeset 1109 | df7d7c6611b6 |
parent 1077 | 46793bf50415 |
child 1198 | 6b7cfe55105b |
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 |
|
1074
49ef9991d1d5
disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents:
1072
diff
changeset
|
492 |
(self aspectFor:#defaultExtentEnabled) value:(aSpec class == WindowSpec) not. |
49ef9991d1d5
disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents:
1072
diff
changeset
|
493 |
|
283 | 494 |
aTypeOrNil notNil ifTrue:[ |
163 | 495 |
self class slices findFirst:[:e| |
283 | 496 |
e last == aTypeOrNil ifTrue:[name := e first. true] |
163 | 497 |
]. |
283 | 498 |
list := Array with:name |
499 |
] ifFalse:[ |
|
500 |
(type := UIPainterView layoutType:layoutView) notNil ifTrue:[ |
|
501 |
self class slices findFirst:[:e| |
|
502 |
e last == type ifTrue:[name := e first. true] |
|
503 |
]. |
|
504 |
list := tabList. |
|
235 | 505 |
|
283 | 506 |
type == #Extent ifTrue:[ |
507 |
aView superView specClass isLayoutContainer ifTrue:[ |
|
508 |
list := Array with:name |
|
509 |
] ifFalse:[ |
|
510 |
list := list copyWith:name |
|
511 |
] |
|
235 | 512 |
] |
513 |
] |
|
163 | 514 |
]. |
515 |
self noteBookList value:list. |
|
516 |
self noteBookModel value:name. |
|
517 |
self update. |
|
518 |
! |
|
519 |
||
520 |
modifiedHolder:aValueHolder |
|
521 |
"set the value holder set to true in case of modifying attributes |
|
522 |
" |
|
523 |
modifiedHolder notNil ifTrue:[ |
|
524 |
modifiedHolder removeDependent:self. |
|
525 |
]. |
|
526 |
||
527 |
(modifiedHolder := aValueHolder) notNil ifTrue:[ |
|
528 |
modifiedHolder addDependent:self. |
|
529 |
]. |
|
530 |
||
531 |
! |
|
532 |
||
533 |
update |
|
534 |
"update from view |
|
535 |
" |
|
536 |
|view appl| |
|
537 |
||
538 |
selection notNil ifTrue:[ |
|
1072 | 539 |
(view := layoutView) notNil ifTrue:[ |
163 | 540 |
(appl := self noteBookView application) notNil ifTrue:[ |
1072 | 541 |
appl fetch:view spec:layoutSpec |
163 | 542 |
] |
543 |
] |
|
544 |
]. |
|
545 |
||
546 |
! ! |
|
547 |
||
548 |
!UILayoutTool methodsFor:'aspects'! |
|
549 |
||
550 |
aspectFor:aKey |
|
551 |
"returns aspect for a key or nil |
|
552 |
" |
|
553 |
^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ] |
|
554 |
||
555 |
||
556 |
! |
|
557 |
||
1072 | 558 |
notUsingDefaultExtent |
559 |
|holder| |
|
560 |
||
561 |
(holder := builder bindingAt:#notUsingDefaultExtent) isNil ifTrue:[ |
|
562 |
holder := BlockValue forLogicalNot:(self aspectFor:#useDefaultExtent). |
|
563 |
builder aspectAt:#notUsingDefaultExtent put:holder. |
|
564 |
]. |
|
565 |
^ holder |
|
566 |
||
567 |
! |
|
568 |
||
163 | 569 |
noteBookList |
570 |
"returns list of tab labels |
|
571 |
" |
|
572 |
|holder| |
|
573 |
||
574 |
(holder := builder bindingAt:#noteBookList) isNil ifTrue:[ |
|
575 |
holder := nil asValue. |
|
576 |
builder aspectAt:#noteBookList put:holder |
|
577 |
]. |
|
578 |
^ holder |
|
579 |
! |
|
580 |
||
581 |
noteBookModel |
|
582 |
"automatically generated by UIPainter ..." |
|
583 |
||
584 |
|holder| |
|
585 |
||
586 |
(holder := builder bindingAt:#noteBookModel) isNil ifTrue:[ |
|
587 |
holder := AspectAdaptor new subject:self; forAspect:#selection. |
|
588 |
builder aspectAt:#noteBookModel put:holder. |
|
589 |
]. |
|
590 |
^ holder |
|
591 |
! |
|
592 |
||
593 |
noteBookView |
|
594 |
"automatically generated by UIPainter ... |
|
595 |
" |
|
596 |
|holder| |
|
597 |
||
598 |
(holder := builder bindingAt:#noteBookView) isNil ifTrue:[ |
|
599 |
holder := SubCanvas new. |
|
600 |
builder aspectAt:#noteBookView put:holder |
|
601 |
]. |
|
602 |
^ holder |
|
603 |
! ! |
|
604 |
||
605 |
!UILayoutTool methodsFor:'change & update'! |
|
606 |
||
607 |
update:something with:aParameter from:changedObject |
|
608 |
"one of my models changed its value |
|
609 |
" |
|
610 |
changedObject ~~ modifiedHolder ifTrue:[ |
|
611 |
modifiedHolder value ~~ true ifTrue:[ |
|
612 |
modifiedHolder isNil ifFalse:[ |
|
613 |
modifiedHolder value:true |
|
614 |
] |
|
615 |
] |
|
616 |
] |
|
617 |
||
618 |
! ! |
|
619 |
||
620 |
!UILayoutTool methodsFor:'converting absolute'! |
|
621 |
||
622 |
absolute:what xOrY:xOrY |
|
623 |
|extent fraction offset fractSymb offsetSymb| |
|
624 |
||
625 |
extent := (self layoutView superView computeExtent) perform:xOrY. |
|
626 |
fractSymb := (what, 'Fraction') asSymbol. |
|
627 |
offsetSymb := (what, 'Offset') asSymbol. |
|
628 |
fraction := (self aspectFor:fractSymb) value. |
|
629 |
offset := (self aspectFor:offsetSymb) value. |
|
630 |
offset := offset + ((fraction * extent) asInteger). |
|
631 |
||
632 |
(self aspectFor:offsetSymb) value:offset. |
|
633 |
(self aspectFor:fractSymb) value:0. |
|
634 |
||
635 |
||
636 |
||
637 |
! |
|
638 |
||
639 |
absoluteBottom |
|
640 |
self absolute:'bottom' xOrY:#y |
|
641 |
||
642 |
! |
|
643 |
||
644 |
absoluteLeft |
|
645 |
self absolute:'left' xOrY:#x |
|
646 |
||
647 |
! |
|
648 |
||
649 |
absoluteRight |
|
650 |
self absolute:'right' xOrY:#x |
|
651 |
||
652 |
! |
|
653 |
||
654 |
absoluteTop |
|
655 |
self absolute:'top' xOrY:#y |
|
656 |
||
657 |
! ! |
|
658 |
||
659 |
!UILayoutTool methodsFor:'converting relative'! |
|
660 |
||
661 |
relative:what xOrY:xOrY |
|
662 |
|extent fraction offset fractSymb offsetSymb| |
|
663 |
||
664 |
extent := (self layoutView superView computeExtent) perform:xOrY. |
|
665 |
fractSymb := (what, 'Fraction') asSymbol. |
|
666 |
offsetSymb := (what, 'Offset') asSymbol. |
|
667 |
fraction := (self aspectFor:fractSymb) value. |
|
668 |
offset := (self aspectFor:offsetSymb) value. |
|
669 |
fraction := (fraction + (offset / extent)) asFloat. |
|
670 |
||
671 |
(fraction > 1.0) ifTrue:[ fraction := 1.0 ]. |
|
672 |
(fraction < 0.0) ifTrue:[ fraction := 0 ]. |
|
673 |
||
674 |
(self aspectFor:offsetSymb) value:0. |
|
675 |
(self aspectFor:fractSymb) value:fraction. |
|
676 |
||
677 |
||
678 |
||
679 |
! |
|
680 |
||
681 |
relativeBottom |
|
682 |
self relative:'bottom' xOrY:#y |
|
683 |
||
684 |
||
685 |
! |
|
686 |
||
687 |
relativeLeft |
|
688 |
self relative:'left' xOrY:#x |
|
689 |
||
690 |
! |
|
691 |
||
692 |
relativeRight |
|
693 |
self relative:'right' xOrY:#x |
|
694 |
||
695 |
! |
|
696 |
||
697 |
relativeTop |
|
698 |
self relative:'top' xOrY:#y |
|
699 |
||
700 |
! ! |
|
701 |
||
702 |
!UILayoutTool methodsFor:'initialization'! |
|
703 |
||
704 |
initialize |
|
705 |
"initialize channels |
|
706 |
" |
|
221 | 707 |
|slices size| |
708 |
||
163 | 709 |
super initialize. |
710 |
||
711 |
aspects := IdentityDictionary new. |
|
712 |
||
713 |
#( bottomFraction bottomOffset |
|
714 |
leftFraction leftOffset |
|
715 |
topFraction topOffset |
|
716 |
rightFraction rightOffset |
|
717 |
leftAlignmentFraction topAlignmentFraction |
|
1072 | 718 |
useDefaultExtent |
1074
49ef9991d1d5
disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents:
1072
diff
changeset
|
719 |
defaultExtentEnabled |
163 | 720 |
) |
721 |
||
722 |
do:[:aKey||holder| |
|
723 |
holder := ValueHolder new. |
|
724 |
holder addDependent:self. |
|
725 |
aspects at:aKey put:holder. |
|
726 |
]. |
|
727 |
||
221 | 728 |
slices := self class slices. |
729 |
size := slices size - 1. |
|
730 |
tabList := Array new:size. |
|
163 | 731 |
|
221 | 732 |
1 to:size do:[:i| tabList at:i put:((slices at:i) first) ]. |
163 | 733 |
|
734 |
||
735 |
! ! |
|
736 |
||
737 |
!UILayoutTool methodsFor:'selection'! |
|
738 |
||
739 |
selectedSlice |
|
740 |
"returns slice assigned to selection or nil |
|
741 |
" |
|
742 |
selection notNil ifTrue:[ |
|
743 |
self class slices do:[:aSlice| |
|
744 |
aSlice first = selection ifTrue:[ |
|
745 |
^ aSlice |
|
746 |
] |
|
747 |
] |
|
748 |
]. |
|
749 |
^ nil |
|
750 |
||
751 |
! |
|
752 |
||
753 |
selection |
|
754 |
^ selection |
|
755 |
! |
|
756 |
||
757 |
selection:aSelection |
|
296 | 758 |
|appl slice sel noteBook| |
163 | 759 |
|
293 | 760 |
aSelection isNumber ifTrue:[ |
761 |
aSelection ~~ 0 ifTrue:[sel := tabList at:aSelection] |
|
762 |
] ifFalse:[ |
|
763 |
sel := aSelection |
|
764 |
]. |
|
765 |
selection = sel ifFalse:[ |
|
766 |
(selection := sel) notNil ifTrue:[ |
|
163 | 767 |
slice := self selectedSlice. |
768 |
appl := slice last asString. |
|
769 |
appl := Smalltalk classNamed:(self class name asString, '::', appl). |
|
770 |
appl := appl new. |
|
771 |
appl masterApplication:self. |
|
184 | 772 |
modifiedHolder value:true. |
163 | 773 |
]. |
296 | 774 |
noteBook := self noteBookView. |
775 |
noteBook client:appl. |
|
776 |
||
777 |
appl notNil ifTrue:[ |
|
778 |
noteBook scrolledView allViewBackground:(noteBook viewBackground). |
|
779 |
] |
|
163 | 780 |
]. |
781 |
self update |
|
293 | 782 |
|
163 | 783 |
! ! |
784 |
||
184 | 785 |
!UILayoutTool::AlignmentOrigin class methodsFor:'help specs'! |
163 | 786 |
|
184 | 787 |
helpSpec |
741 | 788 |
"This resource specification was automatically generated |
789 |
by the UIHelpTool of ST/X." |
|
790 |
||
791 |
"Do not manually edit this!! If it is corrupted, |
|
792 |
the UIHelpTool may not be able to read the specification." |
|
293 | 793 |
|
163 | 794 |
" |
741 | 795 |
UIHelpTool openOnClass:UILayoutTool::AlignmentOrigin |
293 | 796 |
" |
797 |
||
741 | 798 |
<resource: #help> |
799 |
||
800 |
^super helpSpec addPairsFrom:#( |
|
801 |
||
802 |
#alignBottomCenter |
|
803 |
'Aligns the selected widget bottomCenter to location.' |
|
804 |
||
805 |
#alignBottomLeft |
|
806 |
'Aligns the selected widget bottomLeft to location.' |
|
807 |
||
808 |
#alignBottomRight |
|
809 |
'Aligns the selected widget bottomRight to location.' |
|
810 |
||
811 |
#alignCenter |
|
812 |
'Aligns the selected widget center to location.' |
|
813 |
||
814 |
#alignHorizontal |
|
815 |
'Horizontal inset to the location point of the selected widget.' |
|
163 | 816 |
|
293 | 817 |
#alignLeftCenter |
714 | 818 |
'Aligns the selected widget leftCenter to location.' |
293 | 819 |
|
741 | 820 |
#alignRightCenter |
821 |
'Aligns the selected widget rightCenter to location.' |
|
293 | 822 |
|
823 |
#alignTopCenter |
|
714 | 824 |
'Aligns the selected widget topCenter to location.' |
163 | 825 |
|
293 | 826 |
#alignTopLeft |
714 | 827 |
'Aligns the selected widget topLeft to location.' |
293 | 828 |
|
829 |
#alignTopRight |
|
714 | 830 |
'Aligns the selected widget topRight to location.' |
293 | 831 |
|
832 |
#alignVertical |
|
714 | 833 |
'Vertical inset to the location point of the widget.' |
293 | 834 |
|
184 | 835 |
) |
163 | 836 |
! ! |
837 |
||
838 |
!UILayoutTool::AlignmentOrigin class methodsFor:'interface specs'! |
|
839 |
||
840 |
windowSpec |
|
741 | 841 |
"This resource specification was automatically generated |
842 |
by the UIPainter of ST/X." |
|
163 | 843 |
|
741 | 844 |
"Do not manually edit this!! If it is corrupted, |
845 |
the UIPainter may not be able to read the specification." |
|
163 | 846 |
|
847 |
" |
|
848 |
UIPainter new openOnClass:UILayoutTool::AlignmentOrigin andSelector:#windowSpec |
|
849 |
UILayoutTool::AlignmentOrigin new openInterface:#windowSpec |
|
741 | 850 |
UILayoutTool::AlignmentOrigin open |
163 | 851 |
" |
852 |
||
853 |
<resource: #canvas> |
|
854 |
||
855 |
^ |
|
856 |
||
857 |
#(#FullSpec |
|
690 | 858 |
#window: |
163 | 859 |
#(#WindowSpec |
741 | 860 |
#name: 'UILayoutTool-AlignmentOrigin' |
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
861 |
#layout: #(#LayoutFrame 291 0 130 0 695 0 336 0) |
741 | 862 |
#label: 'UILayoutTool-AlignmentOrigin' |
690 | 863 |
#min: #(#Point 10 10) |
864 |
#max: #(#Point 1152 900) |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
865 |
#bounds: #(#Rectangle 291 130 696 337) |
690 | 866 |
#usePreferredExtent: false |
163 | 867 |
) |
690 | 868 |
#component: |
163 | 869 |
#(#SpecCollection |
690 | 870 |
#collection: |
163 | 871 |
#( |
872 |
#(#UISubSpecification |
|
751 | 873 |
#name: 'layoutOriginSpec' |
874 |
#layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 111 0) |
|
690 | 875 |
#majorKey: #UILayoutTool |
876 |
#minorKey: #layoutOriginSpec |
|
163 | 877 |
) |
751 | 878 |
#(#FramedBoxSpec |
879 |
#name: 'FramedBox' |
|
880 |
#layout: #(#LayoutFrame 1 0.0 113 0 0 1.0 208 0) |
|
881 |
#component: |
|
882 |
#(#SpecCollection |
|
883 |
#collection: |
|
884 |
#( |
|
885 |
#(#LabelSpec |
|
886 |
#name: 'alignHLabel' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
887 |
#layout: #(#AlignmentOrigin 88 0 17 0 1 0) |
751 | 888 |
#label: 'Horizontal:' |
889 |
#adjust: #right |
|
890 |
) |
|
891 |
#(#LabelSpec |
|
892 |
#name: 'alignVLabel' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
893 |
#layout: #(#AlignmentOrigin 88 0 43 0 1 0) |
751 | 894 |
#label: 'Vertical:' |
895 |
#adjust: #right |
|
896 |
) |
|
897 |
#(#InputFieldSpec |
|
898 |
#name: 'leftAlignmentFractionField' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
899 |
#layout: #(#LayoutFrame 90 0 14 0 147 0 36 0) |
751 | 900 |
#activeHelpKey: #alignHorizontal |
901 |
#tabable: true |
|
902 |
#model: #leftAlignmentFraction |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
903 |
#group: #inputGroup |
751 | 904 |
#type: #numberOrNil |
1072 | 905 |
#acceptOnLostFocus: true |
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
906 |
#acceptChannel: #acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
907 |
#modifiedChannel: #modifiedChannel |
751 | 908 |
) |
909 |
#(#InputFieldSpec |
|
910 |
#name: 'topAlignmentFractionField' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
911 |
#layout: #(#LayoutFrame 90 0 40 0 147 0 62 0) |
751 | 912 |
#activeHelpKey: #alignVertical |
913 |
#tabable: true |
|
914 |
#model: #topAlignmentFraction |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
915 |
#group: #inputGroup |
751 | 916 |
#type: #numberOrNil |
1072 | 917 |
#acceptOnLostFocus: true |
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
918 |
#acceptChannel: #acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
919 |
#modifiedChannel: #modifiedChannel |
751 | 920 |
) |
921 |
#(#DividerSpec |
|
922 |
#name: 'separator1' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
923 |
#layout: #(#LayoutFrame 204 0 19 0 245 0 22 0) |
751 | 924 |
) |
925 |
#(#DividerSpec |
|
926 |
#name: 'separator2' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
927 |
#layout: #(#LayoutFrame 204 0 55 0 245 0 58 0) |
751 | 928 |
) |
929 |
#(#DividerSpec |
|
930 |
#name: 'separator3' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
931 |
#layout: #(#LayoutFrame 196 0 28 0 199 0 50 0) |
751 | 932 |
#orientation: #vertical |
933 |
) |
|
934 |
#(#DividerSpec |
|
935 |
#name: 'separator4' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
936 |
#layout: #(#LayoutFrame 250 0 28 0 253 0 50 0) |
751 | 937 |
#orientation: #vertical |
938 |
) |
|
939 |
#(#ActionButtonSpec |
|
940 |
#name: 'alignBottomRight' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
941 |
#layout: #(#LayoutFrame 245 0 50 0 259 0 64 0) |
751 | 942 |
#activeHelpKey: #alignBottomRight |
943 |
#model: #alignBottomRight |
|
944 |
) |
|
945 |
#(#ActionButtonSpec |
|
946 |
#name: 'alignTopLeft' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
947 |
#layout: #(#LayoutFrame 190 0 14 0 204 0 28 0) |
751 | 948 |
#activeHelpKey: #alignTopLeft |
949 |
#model: #alignTopLeft |
|
950 |
) |
|
951 |
#(#ActionButtonSpec |
|
952 |
#name: 'alignTopRight' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
953 |
#layout: #(#LayoutFrame 245 0 14 0 259 0 28 0) |
751 | 954 |
#activeHelpKey: #alignTopRight |
955 |
#model: #alignTopRight |
|
956 |
) |
|
957 |
#(#ActionButtonSpec |
|
958 |
#name: 'alignBottomLeft' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
959 |
#layout: #(#LayoutFrame 190 0 50 0 204 0 64 0) |
751 | 960 |
#activeHelpKey: #alignBottomLeft |
961 |
#model: #alignBottomLeft |
|
962 |
) |
|
963 |
#(#ActionButtonSpec |
|
964 |
#name: 'alignTopCenter' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
965 |
#layout: #(#LayoutFrame 217 0 14 0 231 0 28 0) |
751 | 966 |
#activeHelpKey: #alignTopCenter |
967 |
#model: #alignTopCenter |
|
968 |
) |
|
969 |
#(#ActionButtonSpec |
|
970 |
#name: 'alignBottomCenter' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
971 |
#layout: #(#LayoutFrame 217 0 50 0 231 0 64 0) |
751 | 972 |
#activeHelpKey: #alignBottomCenter |
973 |
#model: #alignBottomCenter |
|
974 |
) |
|
975 |
#(#ActionButtonSpec |
|
976 |
#name: 'alignLeftCenter' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
977 |
#layout: #(#LayoutFrame 190 0 32 0 204 0 46 0) |
751 | 978 |
#activeHelpKey: #alignLeftCenter |
979 |
#model: #alignLeftCenter |
|
980 |
) |
|
981 |
#(#ActionButtonSpec |
|
982 |
#name: 'alignRightCenter' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
983 |
#layout: #(#LayoutFrame 245 0 32 0 259 0 46 0) |
751 | 984 |
#activeHelpKey: #alignRightCenter |
985 |
#model: #alignRightCenter |
|
986 |
) |
|
987 |
#(#ActionButtonSpec |
|
988 |
#name: 'alignCenter' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
989 |
#layout: #(#LayoutFrame 217 0 32 0 231 0 46 0) |
751 | 990 |
#activeHelpKey: #alignCenter |
991 |
#model: #alignCenter |
|
992 |
) |
|
993 |
) |
|
994 |
) |
|
995 |
#label: 'Alignment' |
|
996 |
#labelPosition: #topLeft |
|
163 | 997 |
) |
998 |
) |
|
999 |
) |
|
1000 |
) |
|
922
0a5799408f54
assign all inputFields to a common group.
Claus Gittinger <cg@exept.de>
parents:
751
diff
changeset
|
1001 |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1002 |
"Modified: / 13.8.1998 / 19:57:47 / cg" |
163 | 1003 |
! ! |
1004 |
||
1005 |
!UILayoutTool::AlignmentOrigin methodsFor:'accessing'! |
|
1006 |
||
1072 | 1007 |
fetch:aView spec:aSpec |
163 | 1008 |
"fetch alignmentOrigin |
1009 |
" |
|
252 | 1010 |
|layout type| |
163 | 1011 |
|
1012 |
type := UIPainterView layoutType:aView. |
|
1013 |
layout := aView geometryLayout. |
|
1014 |
||
1015 |
layout isLayout ifTrue:[ |
|
1016 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
|
1017 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
1018 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
1019 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
1020 |
||
1021 |
type == #AlignmentOrigin ifTrue:[ |
|
1022 |
(self aspectFor:#leftAlignmentFraction) value:(layout leftAlignmentFraction). |
|
1023 |
(self aspectFor:#topAlignmentFraction) value:(layout topAlignmentFraction). |
|
1024 |
^ self |
|
1025 |
] |
|
1026 |
] ifFalse:[ |
|
1027 |
layout := aView computeOrigin. |
|
1028 |
||
1029 |
(self aspectFor:#leftOffset) value:(layout x). |
|
1030 |
(self aspectFor:#leftFraction) value:0. |
|
1031 |
(self aspectFor:#topOffset) value:(layout y). |
|
1032 |
(self aspectFor:#topFraction) value:0. |
|
1033 |
]. |
|
1034 |
(self aspectFor:#leftAlignmentFraction) value:0. |
|
1035 |
(self aspectFor:#topAlignmentFraction) value:0. |
|
1036 |
||
1037 |
||
1038 |
! |
|
1039 |
||
1040 |
layout |
|
1041 |
"returns current layout as alignmentOrigin |
|
1042 |
" |
|
1043 |
|layout| |
|
1044 |
||
1045 |
layout := Smalltalk::AlignmentOrigin new. |
|
1046 |
||
1047 |
layout leftOffset:((self aspectFor:#leftOffset) value) ? 0. |
|
1048 |
layout topOffset:((self aspectFor:#topOffset) value) ? 0. |
|
1049 |
layout leftFraction:((self aspectFor:#leftFraction) value) ? 0. |
|
1050 |
layout topFraction:((self aspectFor:#topFraction) value) ? 0. |
|
1051 |
||
1052 |
layout leftAlignmentFraction:((self aspectFor:#leftAlignmentFraction) value) ? 0. |
|
1053 |
layout topAlignmentFraction:((self aspectFor:#topAlignmentFraction) value) ? 0. |
|
1054 |
||
1055 |
^ layout |
|
1056 |
! ! |
|
1057 |
||
1058 |
!UILayoutTool::AlignmentOrigin methodsFor:'alignment'! |
|
1059 |
||
1060 |
alignBottomCenter |
|
1061 |
self makeAlignLeft:0.5 top:1 |
|
1062 |
||
1063 |
||
1064 |
! |
|
1065 |
||
1066 |
alignBottomLeft |
|
1067 |
self makeAlignLeft:0 top:1 |
|
1068 |
||
1069 |
||
1070 |
! |
|
1071 |
||
1072 |
alignBottomRight |
|
1073 |
self makeAlignLeft:1 top:1 |
|
1074 |
||
1075 |
||
1076 |
! |
|
1077 |
||
1078 |
alignCenter |
|
1079 |
self makeAlignLeft:0.5 top:0.5 |
|
1080 |
||
1081 |
||
1082 |
! |
|
1083 |
||
1084 |
alignLeftCenter |
|
1085 |
self makeAlignLeft:0 top:0.5 |
|
1086 |
||
1087 |
||
1088 |
! |
|
1089 |
||
1090 |
alignRightCenter |
|
1091 |
self makeAlignLeft:1 top:0.5 |
|
1092 |
||
1093 |
||
1094 |
! |
|
1095 |
||
1096 |
alignTopCenter |
|
1097 |
self makeAlignLeft:0.5 top:0 |
|
1098 |
||
1099 |
||
1100 |
! |
|
1101 |
||
1102 |
alignTopLeft |
|
1103 |
self makeAlignLeft:0 top:0 |
|
1104 |
||
1105 |
||
1106 |
! |
|
1107 |
||
1108 |
alignTopRight |
|
1109 |
self makeAlignLeft:1 top:0 |
|
1110 |
||
1111 |
||
1112 |
! |
|
1113 |
||
1114 |
makeAlignLeft:leftAlignmentFraction top:topAlignmentFraction |
|
1115 |
|lAF tAF lO tO ext| |
|
1116 |
||
1117 |
lAF := (self aspectFor:#leftAlignmentFraction) value ? 0. |
|
1118 |
tAF := (self aspectFor:#topAlignmentFraction) value ? 0. |
|
1119 |
ext := (self aspectFor:#layoutView) computeExtent. |
|
1120 |
||
1121 |
(self aspectFor:#leftAlignmentFraction) value:leftAlignmentFraction. |
|
1122 |
(self aspectFor:#topAlignmentFraction) value:topAlignmentFraction. |
|
1123 |
||
1124 |
lO := (self aspectFor:#leftOffset) value ? 0. |
|
1125 |
tO := (self aspectFor:#topOffset) value ? 0. |
|
1126 |
||
1127 |
lO := lO + (ext x * (leftAlignmentFraction - lAF)). |
|
1128 |
tO := tO + (ext y * (topAlignmentFraction - tAF)). |
|
1129 |
||
1130 |
(self aspectFor:#leftOffset) value:(lO rounded). |
|
1131 |
(self aspectFor:#topOffset) value:(tO rounded). |
|
1132 |
||
1133 |
! |
|
1134 |
||
1135 |
makeAlignTopRight |
|
1136 |
self makeAlignLeft:1 top:0 |
|
1137 |
||
1138 |
||
1139 |
! ! |
|
1140 |
||
184 | 1141 |
!UILayoutTool::Extent class methodsFor:'help specs'! |
1142 |
||
1143 |
helpSpec |
|
741 | 1144 |
"This resource specification was automatically generated |
1145 |
by the UIHelpTool of ST/X." |
|
1146 |
||
1147 |
"Do not manually edit this!! If it is corrupted, |
|
1148 |
the UIHelpTool may not be able to read the specification." |
|
293 | 1149 |
|
184 | 1150 |
" |
741 | 1151 |
UIHelpTool openOnClass:UILayoutTool::Extent |
293 | 1152 |
" |
1153 |
||
741 | 1154 |
<resource: #help> |
1155 |
||
1156 |
^super helpSpec addPairsFrom:#( |
|
1157 |
||
1158 |
#hrzExtent |
|
1159 |
'Horizontal extent of the selected widget.' |
|
184 | 1160 |
|
293 | 1161 |
#vrtExtent |
714 | 1162 |
'Vertical extent of the selected widget.' |
293 | 1163 |
|
184 | 1164 |
) |
1165 |
! ! |
|
1166 |
||
163 | 1167 |
!UILayoutTool::Extent class methodsFor:'interface specs'! |
1168 |
||
1169 |
windowSpec |
|
751 | 1170 |
"This resource specification was automatically generated |
1171 |
by the UIPainter of ST/X." |
|
163 | 1172 |
|
751 | 1173 |
"Do not manually edit this!! If it is corrupted, |
1174 |
the UIPainter may not be able to read the specification." |
|
163 | 1175 |
|
1176 |
" |
|
1177 |
UIPainter new openOnClass:UILayoutTool::Extent andSelector:#windowSpec |
|
1178 |
UILayoutTool::Extent new openInterface:#windowSpec |
|
751 | 1179 |
UILayoutTool::Extent open |
163 | 1180 |
" |
1181 |
||
1182 |
<resource: #canvas> |
|
1183 |
||
1184 |
^ |
|
1185 |
||
1186 |
#(#FullSpec |
|
1072 | 1187 |
#name: #windowSpec |
690 | 1188 |
#window: |
163 | 1189 |
#(#WindowSpec |
741 | 1190 |
#name: 'UILayoutTool-Extent' |
1074
49ef9991d1d5
disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents:
1072
diff
changeset
|
1191 |
#layout: #(#LayoutFrame 216 0 173 0 541 0 321 0) |
1072 | 1192 |
#level: 0 |
741 | 1193 |
#label: 'UILayoutTool-Extent' |
690 | 1194 |
#min: #(#Point 10 10) |
1195 |
#max: #(#Point 1152 900) |
|
1074
49ef9991d1d5
disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents:
1072
diff
changeset
|
1196 |
#bounds: #(#Rectangle 216 173 542 322) |
690 | 1197 |
#usePreferredExtent: false |
1072 | 1198 |
#returnIsOKInDialog: true |
1199 |
#escapeIsCancelInDialog: true |
|
163 | 1200 |
) |
690 | 1201 |
#component: |
163 | 1202 |
#(#SpecCollection |
690 | 1203 |
#collection: |
163 | 1204 |
#( |
751 | 1205 |
#(#FramedBoxSpec |
1206 |
#name: 'FramedBox' |
|
1072 | 1207 |
#layout: #(#LayoutFrame 0 0.0 6 0.0 0 1.0 137 0) |
751 | 1208 |
#component: |
1209 |
#(#SpecCollection |
|
1210 |
#collection: |
|
1211 |
#( |
|
1212 |
#(#LabelSpec |
|
1213 |
#name: 'labelWidth' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1214 |
#layout: #(#AlignmentOrigin 89 0 24 0 1 0.5) |
751 | 1215 |
#label: 'Width:' |
1216 |
#adjust: #right |
|
1217 |
) |
|
1218 |
#(#InputFieldSpec |
|
1219 |
#name: 'fieldLeftOffset' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1220 |
#layout: #(#LayoutFrame 90 0 13 0 140 0 35 0) |
751 | 1221 |
#activeHelpKey: #hrzExtent |
1072 | 1222 |
#enableChannel: #notUsingDefaultExtent |
751 | 1223 |
#tabable: true |
1224 |
#model: #leftOffset |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1225 |
#group: #inputGroup |
751 | 1226 |
#type: #numberOrNil |
1072 | 1227 |
#acceptOnLostFocus: true |
1228 |
#acceptChannel: #acceptChannel |
|
1229 |
#modifiedChannel: #modifiedChannel |
|
751 | 1230 |
) |
1231 |
#(#LabelSpec |
|
1232 |
#name: 'labelHeight' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1233 |
#layout: #(#AlignmentOrigin 89 0 49 0 1 0.5) |
751 | 1234 |
#label: 'Height:' |
1235 |
#adjust: #right |
|
1236 |
) |
|
1237 |
#(#InputFieldSpec |
|
1238 |
#name: 'fieldRightOffset' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1239 |
#layout: #(#LayoutFrame 90 0 38 0 140 0 60 0) |
751 | 1240 |
#activeHelpKey: #vrtExtent |
1072 | 1241 |
#enableChannel: #notUsingDefaultExtent |
751 | 1242 |
#tabable: true |
1243 |
#model: #rightOffset |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1244 |
#group: #inputGroup |
751 | 1245 |
#type: #numberOrNil |
1072 | 1246 |
#acceptOnLostFocus: true |
1247 |
#acceptChannel: #acceptChannel |
|
1248 |
#modifiedChannel: #modifiedChannel |
|
1249 |
) |
|
1250 |
#(#CheckBoxSpec |
|
1251 |
#name: 'useDefaultExtentCheckBox' |
|
1074
49ef9991d1d5
disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents:
1072
diff
changeset
|
1252 |
#layout: #(#LayoutFrame -1 0 75 0 296 0 97 0) |
1072 | 1253 |
#model: #useDefaultExtent |
1254 |
#label: 'Use Widgets Default Extent' |
|
1255 |
#translateLabel: true |
|
1074
49ef9991d1d5
disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents:
1072
diff
changeset
|
1256 |
#enableChannel: #defaultExtentEnabled |
751 | 1257 |
) |
1258 |
) |
|
1259 |
) |
|
1260 |
#label: 'Extent' |
|
1261 |
#labelPosition: #topLeft |
|
163 | 1262 |
) |
1263 |
) |
|
1264 |
) |
|
1265 |
) |
|
1266 |
! ! |
|
1267 |
||
1268 |
!UILayoutTool::Extent methodsFor:'accessing'! |
|
1269 |
||
1072 | 1270 |
fetch:aView spec:aSpec |
163 | 1271 |
"fetch extent |
1272 |
" |
|
1273 |
|extent| |
|
1274 |
||
1275 |
extent := aView computeExtent. |
|
1276 |
||
1277 |
(self aspectFor:#leftOffset) value:(extent x). |
|
1278 |
(self aspectFor:#rightOffset) value:(extent y). |
|
1279 |
||
1072 | 1280 |
(self aspectFor:#useDefaultExtent) value:aSpec useDefaultExtent |
163 | 1281 |
! |
1282 |
||
1283 |
layout |
|
1284 |
"returns current extent |
|
1285 |
" |
|
1286 |
^ Smalltalk::Point x:(((self aspectFor:#leftOffset) value) ? 0) |
|
1287 |
y:(((self aspectFor:#rightOffset) value) ? 0) |
|
1288 |
||
1289 |
! ! |
|
1290 |
||
184 | 1291 |
!UILayoutTool::LayoutFrame class methodsFor:'help specs'! |
1292 |
||
1293 |
helpSpec |
|
741 | 1294 |
"This resource specification was automatically generated |
1295 |
by the UIHelpTool of ST/X." |
|
1296 |
||
1297 |
"Do not manually edit this!! If it is corrupted, |
|
1298 |
the UIHelpTool may not be able to read the specification." |
|
293 | 1299 |
|
184 | 1300 |
" |
741 | 1301 |
UIHelpTool openOnClass:UILayoutTool::LayoutFrame |
293 | 1302 |
" |
1303 |
||
741 | 1304 |
<resource: #help> |
184 | 1305 |
|
741 | 1306 |
^super helpSpec addPairsFrom:#( |
293 | 1307 |
|
1308 |
#bottomAbsolute |
|
714 | 1309 |
'Offset of the bottom edge; positive is to the bottom, negative to the top.' |
293 | 1310 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1311 |
#bottomFixPartLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1312 |
'Set the layout for a fixed area at the bottom of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1313 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1314 |
#bottomHalfLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1315 |
'Set the layout for the bottom half of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1316 |
|
741 | 1317 |
#bottomRelative |
1318 |
'Relative corner y of the selected widget.' |
|
1319 |
||
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1320 |
#leftHalfLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1321 |
'Set the layout for the left half of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1322 |
|
741 | 1323 |
#makeBottomAbsolute |
1324 |
'Computes current bottom offset and relative corner y to an absolute corner y.' |
|
184 | 1325 |
|
1326 |
#makeBottomRelative |
|
714 | 1327 |
'Computes current relative corner y and offset of the bottom edge to a relative corner y.' |
184 | 1328 |
|
1329 |
#makeRightAbsolute |
|
714 | 1330 |
'Computes current right offset and relative corner x to an absolute corner x.' |
184 | 1331 |
|
741 | 1332 |
#makeRightRelative |
1333 |
'Computes current relative corner x and offset of the right edge to a relative corner x.' |
|
184 | 1334 |
|
1335 |
#rightAbsolute |
|
714 | 1336 |
'Offset of the right edge; positive is to the right, negative to the left.' |
184 | 1337 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1338 |
#rightHalfLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1339 |
'Set the layout for the right half of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1340 |
|
741 | 1341 |
#rightRelative |
1342 |
'Relative corner x of the selected widget.' |
|
1343 |
||
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1344 |
#topFixPartLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1345 |
'Set the layout for a fixed area at the top of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1346 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1347 |
#topHalfLayout |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1348 |
'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
|
1349 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1350 |
#topLeftQuarterLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1351 |
'Set the layout for the top-left quarter of the widgets containers space' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1352 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1353 |
#topRightQuarterLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1354 |
'Set the layout for the top-right quarter of the widgets containers space' |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1355 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1356 |
#bottomRightQuarterLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1357 |
'Set the layout for the bottom-right quarter of the widgets containers space' |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1358 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1359 |
#bottomLeftQuarterLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1360 |
'Set the layout for the bottom-left quarter of the widgets containers space' |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1361 |
|
184 | 1362 |
) |
1363 |
! ! |
|
1364 |
||
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1365 |
!UILayoutTool::LayoutFrame class methodsFor:'image specs'! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1366 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1367 |
setBottomFixPartIcon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1368 |
"This resource specification was automatically generated |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1369 |
by the ImageEditor of ST/X." |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1370 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1371 |
"Do not manually edit this!! If it is corrupted, |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1372 |
the ImageEditor may not be able to read the specification." |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1373 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1374 |
" |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1375 |
self setBottomFixPartIcon inspect |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1376 |
ImageEditor openOnClass:self andSelector:#setBottomFixPartIcon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1377 |
" |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1378 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1379 |
<resource: #image> |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1380 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1381 |
^Icon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1382 |
constantNamed:#'UILayoutTool::LayoutFrame setBottomFixPartIcon' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1383 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H"H"@BH"H @!!DQD@DQDR@BDQDP@QDQH@H"H"@BH"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@X@A @G???????????????<b') ; yourself); yourself]! |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1384 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1385 |
setBottomHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1386 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1387 |
by the ImageEditor of ST/X." |
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 |
"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
|
1390 |
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
|
1391 |
|
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 |
self setBottomHalfIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1394 |
ImageEditor openOnClass:self andSelector:#setBottomHalfIcon |
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 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1397 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1398 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1399 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1400 |
constantNamed:#'UILayoutTool::LayoutFrame setBottomHalfIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1401 |
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
|
1402 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1403 |
setBottomLeftQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1404 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1405 |
by the ImageEditor of ST/X." |
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 |
"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
|
1408 |
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
|
1409 |
|
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 |
self setBottomLeftQuarterIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1412 |
ImageEditor openOnClass:self andSelector:#setBottomLeftQuarterIcon |
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 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1415 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1416 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1417 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1418 |
constantNamed:#'UILayoutTool::LayoutFrame setBottomLeftQuarterIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1419 |
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
|
1420 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1421 |
setBottomRightQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1422 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1423 |
by the ImageEditor of ST/X." |
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 |
"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
|
1426 |
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
|
1427 |
|
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 |
self setBottomRightQuarterIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1430 |
ImageEditor openOnClass:self andSelector:#setBottomRightQuarterIcon |
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 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1433 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1434 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1435 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1436 |
constantNamed:#'UILayoutTool::LayoutFrame setBottomRightQuarterIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1437 |
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
|
1438 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1439 |
setLeftHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1440 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1441 |
by the ImageEditor of ST/X." |
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 |
"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
|
1444 |
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
|
1445 |
|
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 |
self setLeftHalfIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1448 |
ImageEditor openOnClass:self andSelector:#setLeftHalfIcon |
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 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1451 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1452 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1453 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1454 |
constantNamed:#'UILayoutTool::LayoutFrame setLeftHalfIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1455 |
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
|
1456 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1457 |
setRightHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1458 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1459 |
by the ImageEditor of ST/X." |
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 |
"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
|
1462 |
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
|
1463 |
|
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 |
self setRightHalfIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1466 |
ImageEditor openOnClass:self andSelector:#setRightHalfIcon |
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 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1469 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1470 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1471 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1472 |
constantNamed:#'UILayoutTool::LayoutFrame setRightHalfIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1473 |
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
|
1474 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1475 |
setToRightQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1476 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1477 |
by the ImageEditor of ST/X." |
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 |
"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
|
1480 |
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
|
1481 |
|
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 |
self setToRightQuarterIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1484 |
ImageEditor openOnClass:self andSelector:#setToRightQuarterIcon |
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 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1487 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1488 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1489 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1490 |
constantNamed:#'UILayoutTool::LayoutFrame setToRightQuarterIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1491 |
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
|
1492 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1493 |
setTopFixPartIcon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1494 |
"This resource specification was automatically generated |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1495 |
by the ImageEditor of ST/X." |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1496 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1497 |
"Do not manually edit this!! If it is corrupted, |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1498 |
the ImageEditor may not be able to read the specification." |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1499 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1500 |
" |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1501 |
self setTopFixPartIcon inspect |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1502 |
ImageEditor openOnClass:self andSelector:#setTopFixPartIcon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1503 |
" |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1504 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1505 |
<resource: #image> |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1506 |
|
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1507 |
^Icon |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1508 |
constantNamed:#'UILayoutTool::LayoutFrame setTopFixPartIcon' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1509 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@BH"H @"H"H@HQDQ@ADQD @!!DQD@DQDR@BH"H @"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???????????????? @F@@X@A @F@@X@A @F@@X@A??<b') ; yourself); yourself]! |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1510 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1511 |
setTopHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1512 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1513 |
by the ImageEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1514 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1515 |
"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
|
1516 |
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
|
1517 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1518 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1519 |
self setTopHalfIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1520 |
ImageEditor openOnClass:self andSelector:#setTopHalfIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1521 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1522 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1523 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1524 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1525 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1526 |
constantNamed:#'UILayoutTool::LayoutFrame setTopHalfIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1527 |
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
|
1528 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1529 |
setTopLeftQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1530 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1531 |
by the ImageEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1532 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1533 |
"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
|
1534 |
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
|
1535 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1536 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1537 |
self setTopLeftQuarterIcon inspect |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1538 |
ImageEditor openOnClass:self andSelector:#setTopLeftQuarterIcon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1539 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1540 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1541 |
<resource: #image> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1542 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1543 |
^Icon |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1544 |
constantNamed:#'UILayoutTool::LayoutFrame setTopLeftQuarterIcon' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1545 |
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
|
1546 |
|
184 | 1547 |
!UILayoutTool::LayoutFrame class methodsFor:'interface specs'! |
1548 |
||
1549 |
windowSpec |
|
751 | 1550 |
"This resource specification was automatically generated |
1551 |
by the UIPainter of ST/X." |
|
184 | 1552 |
|
751 | 1553 |
"Do not manually edit this!! If it is corrupted, |
1554 |
the UIPainter may not be able to read the specification." |
|
184 | 1555 |
|
1556 |
" |
|
1557 |
UIPainter new openOnClass:UILayoutTool::LayoutFrame andSelector:#windowSpec |
|
1558 |
UILayoutTool::LayoutFrame new openInterface:#windowSpec |
|
751 | 1559 |
UILayoutTool::LayoutFrame open |
184 | 1560 |
" |
1561 |
||
1562 |
<resource: #canvas> |
|
1563 |
||
1564 |
^ |
|
1565 |
||
1566 |
#(#FullSpec |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1567 |
#name: #windowSpec |
690 | 1568 |
#window: |
184 | 1569 |
#(#WindowSpec |
741 | 1570 |
#name: 'UILayoutTool-LayoutFrame' |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1571 |
#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
|
1572 |
#level: 0 |
741 | 1573 |
#label: 'UILayoutTool-LayoutFrame' |
690 | 1574 |
#min: #(#Point 10 10) |
1575 |
#max: #(#Point 1152 900) |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1576 |
#bounds: #(#Rectangle 216 173 615 476) |
690 | 1577 |
#usePreferredExtent: false |
751 | 1578 |
#forceRecursiveBackground: false |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1579 |
#returnIsOKInDialog: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1580 |
#escapeIsCancelInDialog: true |
184 | 1581 |
) |
690 | 1582 |
#component: |
184 | 1583 |
#(#SpecCollection |
690 | 1584 |
#collection: |
184 | 1585 |
#( |
1586 |
#(#UISubSpecification |
|
751 | 1587 |
#name: 'layoutOriginSpec' |
1588 |
#layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 110 0) |
|
690 | 1589 |
#majorKey: #UILayoutTool |
1590 |
#minorKey: #layoutOriginSpec |
|
184 | 1591 |
) |
751 | 1592 |
#(#FramedBoxSpec |
1593 |
#name: 'FramedBox' |
|
1594 |
#layout: #(#LayoutFrame 1 0.0 113 0 0 1.0 214 0) |
|
1595 |
#component: |
|
1596 |
#(#SpecCollection |
|
1597 |
#collection: |
|
1598 |
#( |
|
1599 |
#(#LabelSpec |
|
1600 |
#name: 'labelRight' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1601 |
#layout: #(#AlignmentOrigin 88 0 25 0 1 0.5) |
751 | 1602 |
#label: 'Right:' |
1603 |
) |
|
1604 |
#(#InputFieldSpec |
|
1605 |
#name: 'fieldRightFraction' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1606 |
#layout: #(#LayoutFrame 90 0 14 0 140 0 36 0) |
751 | 1607 |
#activeHelpKey: #rightRelative |
1608 |
#model: #rightFraction |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1609 |
#group: #inputGroup |
751 | 1610 |
#type: #numberOrNil |
1072 | 1611 |
#acceptOnLostFocus: true |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1612 |
#acceptChannel: #acceptChannel |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1613 |
#modifiedChannel: #modifiedChannel |
751 | 1614 |
) |
1615 |
#(#ActionButtonSpec |
|
1616 |
#name: 'actionRelativeRight' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1617 |
#layout: #(#LayoutFrame 145 0 14 0 167 0 36 0) |
751 | 1618 |
#activeHelpKey: #makeRightRelative |
1619 |
#model: #relativeRight |
|
1620 |
) |
|
1621 |
#(#InputFieldSpec |
|
1622 |
#name: 'fieldRightOffset' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1623 |
#layout: #(#LayoutFrame 190 0 14 0 240 0 36 0) |
751 | 1624 |
#activeHelpKey: #rightAbsolute |
1625 |
#model: #rightOffset |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1626 |
#group: #inputGroup |
751 | 1627 |
#type: #numberOrNil |
1072 | 1628 |
#acceptOnLostFocus: true |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1629 |
#acceptChannel: #acceptChannel |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1630 |
#modifiedChannel: #modifiedChannel |
751 | 1631 |
) |
1632 |
#(#ActionButtonSpec |
|
1633 |
#name: 'actionAbsoluteRight' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1634 |
#layout: #(#LayoutFrame 245 0 14 0 267 0 36 0) |
751 | 1635 |
#activeHelpKey: #makeRightAbsolute |
1636 |
#model: #absoluteRight |
|
1637 |
) |
|
1638 |
#(#LabelSpec |
|
1639 |
#name: 'labelBottom' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1640 |
#layout: #(#AlignmentOrigin 88 0 53 0 1 0.5) |
751 | 1641 |
#label: 'Bottom:' |
1642 |
) |
|
1643 |
#(#InputFieldSpec |
|
1644 |
#name: 'fieldBottomFraction' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1645 |
#layout: #(#LayoutFrame 90 0 42 0 140 0 64 0) |
751 | 1646 |
#activeHelpKey: #bottomRelative |
1647 |
#model: #bottomFraction |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1648 |
#group: #inputGroup |
751 | 1649 |
#type: #numberOrNil |
1072 | 1650 |
#acceptOnLostFocus: true |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1651 |
#acceptChannel: #acceptChannel |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1652 |
#modifiedChannel: #modifiedChannel |
751 | 1653 |
) |
1654 |
#(#ActionButtonSpec |
|
1655 |
#name: 'actionRelativeBottom' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1656 |
#layout: #(#LayoutFrame 145 0 42 0 167 0 64 0) |
751 | 1657 |
#activeHelpKey: #makeBottomRelative |
1658 |
#model: #relativeBottom |
|
1659 |
) |
|
1660 |
#(#InputFieldSpec |
|
1661 |
#name: 'fieldBottomOffset' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1662 |
#layout: #(#LayoutFrame 190 0 42 0 240 0 64 0) |
751 | 1663 |
#activeHelpKey: #bottomAbsolute |
1664 |
#model: #bottomOffset |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1665 |
#group: #inputGroup |
751 | 1666 |
#type: #numberOrNil |
1072 | 1667 |
#acceptOnLostFocus: true |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1668 |
#acceptChannel: #acceptChannel |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1669 |
#modifiedChannel: #modifiedChannel |
751 | 1670 |
) |
1671 |
#(#ActionButtonSpec |
|
1672 |
#name: 'actionAbsoluteBottom' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
1673 |
#layout: #(#LayoutFrame 245 0 42 0 267 0 64 0) |
751 | 1674 |
#activeHelpKey: #makeBottomAbsolute |
1675 |
#model: #absoluteBottom |
|
1676 |
) |
|
1677 |
) |
|
1678 |
) |
|
1679 |
#label: 'Corner' |
|
1680 |
#labelPosition: #topLeft |
|
184 | 1681 |
) |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1682 |
#(#MenuPanelSpec |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1683 |
#name: 'commonLayoutToolBar' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1684 |
#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
|
1685 |
#level: 0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1686 |
#menu: #commonFrameLayoutsMenu |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1687 |
#textDefault: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1688 |
) |
184 | 1689 |
) |
1690 |
) |
|
1691 |
) |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1692 |
! ! |
922
0a5799408f54
assign all inputFields to a common group.
Claus Gittinger <cg@exept.de>
parents:
751
diff
changeset
|
1693 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1694 |
!UILayoutTool::LayoutFrame class methodsFor:'menu specs'! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1695 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1696 |
commonFrameLayoutsMenu |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1697 |
"This resource specification was automatically generated |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1698 |
by the MenuEditor of ST/X." |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1699 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1700 |
"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
|
1701 |
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
|
1702 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1703 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1704 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1705 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu)) startUp |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1706 |
" |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1707 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1708 |
<resource: #menu> |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1709 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1710 |
^ |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1711 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1712 |
#(#Menu |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1713 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1714 |
#( |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1715 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1716 |
#label: 'setTopHalfFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1717 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1718 |
#isButton: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1719 |
#nameKey: #setTopHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1720 |
#value: #setTopHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1721 |
#activeHelpKey: #topHalfLayout |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1722 |
#labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setTopHalfIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1723 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1724 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1725 |
#label: 'setBottomHalfFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1726 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1727 |
#isButton: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1728 |
#nameKey: #setBottomHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1729 |
#value: #setBottomHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1730 |
#activeHelpKey: #bottomHalfLayout |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1731 |
#labelImage: #(#ResourceRetriever nil #setBottomHalfIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1732 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1733 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1734 |
#label: 'setLeftHalfFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1735 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1736 |
#isButton: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1737 |
#nameKey: #setLeftHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1738 |
#value: #setLeftHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1739 |
#activeHelpKey: #leftHalfLayout |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1740 |
#labelImage: #(#ResourceRetriever nil #setLeftHalfIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1741 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1742 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1743 |
#label: 'setRightHalfFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1744 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1745 |
#isButton: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1746 |
#nameKey: #setRightHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1747 |
#value: #setRightHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1748 |
#activeHelpKey: #rightHalfLayout |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1749 |
#labelImage: #(#ResourceRetriever nil #setRightHalfIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1750 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1751 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1752 |
#label: '' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1753 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1754 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1755 |
#label: 'setTopLeftQuarterFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1756 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1757 |
#isButton: true |
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1758 |
#activeHelpKey: #topLeftQuarterLayout |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1759 |
#nameKey: #setTopLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1760 |
#value: #setTopLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1761 |
#labelImage: #(#ResourceRetriever nil #setTopLeftQuarterIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1762 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1763 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1764 |
#label: 'setTopRightQuarterFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1765 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1766 |
#isButton: true |
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1767 |
#activeHelpKey: #topRightQuarterLayout |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1768 |
#nameKey: #setTopRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1769 |
#value: #setTopRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1770 |
#labelImage: #(#ResourceRetriever nil #setToRightQuarterIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1771 |
) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1772 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1773 |
#label: 'setBottomRightQuarterFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1774 |
#translateLabel: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1775 |
#isButton: true |
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1776 |
#activeHelpKey: #bottomRightQuarterLayout |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1777 |
#nameKey: #setBottomRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1778 |
#value: #setBottomRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1779 |
#labelImage: #(#ResourceRetriever nil #setBottomRightQuarterIcon) |
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 |
#(#MenuItem |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1782 |
#label: 'setBottomLeftQuarterFrame' |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1783 |
#translateLabel: true |
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1784 |
#activeHelpKey: #bottomLeftQuarterLayout |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1785 |
#isButton: true |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1786 |
#nameKey: #setBottomLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1787 |
#value: #setBottomLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1788 |
#labelImage: #(#ResourceRetriever nil #setBottomLeftQuarterIcon) |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1789 |
) |
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1790 |
#(#MenuItem |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1791 |
#label: '' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1792 |
) |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1793 |
#(#MenuItem |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1794 |
#label: 'setTopFixPartFrame' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1795 |
#translateLabel: true |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1796 |
#isButton: true |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1797 |
#nameKey: #setTopFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1798 |
#value: #setTopFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1799 |
#activeHelpKey: #topFixPartLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1800 |
#labelImage: #(#ResourceRetriever nil #setTopFixPartIcon) |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1801 |
) |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1802 |
#(#MenuItem |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1803 |
#label: 'setBottomFixPartFrame' |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1804 |
#translateLabel: true |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1805 |
#isButton: true |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1806 |
#nameKey: #setBottomFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1807 |
#value: #setBottomFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1808 |
#activeHelpKey: #bottomFixPartLayout |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1809 |
#labelImage: #(#ResourceRetriever nil #setBottomFixPartIcon) |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1810 |
) |
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1811 |
) nil |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1812 |
nil |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1813 |
) |
184 | 1814 |
! ! |
1815 |
||
1816 |
!UILayoutTool::LayoutFrame methodsFor:'accessing'! |
|
1817 |
||
1072 | 1818 |
fetch:aView spec:aSpec |
184 | 1819 |
|layout| |
1820 |
||
1821 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
1822 |
||
1823 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
|
1824 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
1825 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
1826 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
1827 |
(self aspectFor:#rightOffset) value:(layout rightOffset). |
|
1828 |
(self aspectFor:#bottomOffset) value:(layout bottomOffset). |
|
1829 |
(self aspectFor:#rightFraction) value:(layout rightFraction). |
|
1830 |
(self aspectFor:#bottomFraction) value:(layout bottomFraction). |
|
1831 |
||
1832 |
! |
|
1833 |
||
1834 |
layout |
|
1835 |
"returns current layout as layoutFrame |
|
1836 |
" |
|
1837 |
|layout| |
|
1838 |
||
1839 |
layout := Smalltalk::LayoutFrame new. |
|
1840 |
||
1841 |
layout leftOffset:((self aspectFor:#leftOffset) value) ? 0. |
|
1842 |
layout rightOffset:((self aspectFor:#rightOffset) value) ? 0. |
|
1843 |
layout topOffset:((self aspectFor:#topOffset) value) ? 0. |
|
1844 |
layout bottomOffset:((self aspectFor:#bottomOffset) value) ? 0. |
|
1845 |
layout leftFraction:((self aspectFor:#leftFraction) value) ? 0. |
|
1846 |
layout rightFraction:((self aspectFor:#rightFraction) value) ? 0. |
|
1847 |
layout topFraction:((self aspectFor:#topFraction) value) ? 0. |
|
1848 |
layout bottomFraction:((self aspectFor:#bottomFraction) value) ? 0. |
|
1849 |
||
1850 |
^ layout |
|
1851 |
||
1852 |
! ! |
|
1853 |
||
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1854 |
!UILayoutTool::LayoutFrame methodsFor:'common frames'! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1855 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1856 |
setBottomFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1857 |
self |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1858 |
setFrameLeft:0 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1859 |
right:1 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1860 |
top:1 offset:-30 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1861 |
bottom:1 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1862 |
! |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1863 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1864 |
setBottomHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1865 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1866 |
setFrameLeft:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1867 |
right:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1868 |
top:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1869 |
bottom:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1870 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1871 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1872 |
setBottomLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1873 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1874 |
setFrameLeft:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1875 |
right:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1876 |
top:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1877 |
bottom:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1878 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1879 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1880 |
setBottomRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1881 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1882 |
setFrameLeft:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1883 |
right:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1884 |
top:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1885 |
bottom:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1886 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1887 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1888 |
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
|
1889 |
(self aspectFor:#leftOffset) value:lO. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1890 |
(self aspectFor:#rightOffset) value:rO. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1891 |
(self aspectFor:#topOffset) value:tO. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1892 |
(self aspectFor:#bottomOffset) value:bO. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1893 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1894 |
(self aspectFor:#leftFraction) value:lF. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1895 |
(self aspectFor:#rightFraction) value:rF. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1896 |
(self aspectFor:#topFraction) value:tF. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1897 |
(self aspectFor:#bottomFraction) value:bF. |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1898 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1899 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1900 |
setLeftHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1901 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1902 |
setFrameLeft:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1903 |
right:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1904 |
top:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1905 |
bottom:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1906 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1907 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1908 |
setRightHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1909 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1910 |
setFrameLeft:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1911 |
right:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1912 |
top:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1913 |
bottom:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1914 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1915 |
|
1077
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1916 |
setTopFixPartFrame |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1917 |
self |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1918 |
setFrameLeft:0 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1919 |
right:1 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1920 |
top:0 offset:0 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1921 |
bottom:0 offset:30 |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1922 |
! |
46793bf50415
two more common layouts added.
Claus Gittinger <cg@exept.de>
parents:
1074
diff
changeset
|
1923 |
|
1070
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1924 |
setTopHalfFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1925 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1926 |
setFrameLeft:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1927 |
right:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1928 |
top:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1929 |
bottom:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1930 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1931 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1932 |
setTopLeftQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1933 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1934 |
setFrameLeft:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1935 |
right:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1936 |
top:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1937 |
bottom:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1938 |
! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1939 |
|
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1940 |
setTopRightQuarterFrame |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1941 |
self |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1942 |
setFrameLeft:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1943 |
right:1 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1944 |
top:0 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1945 |
bottom:0.5 offset:0 |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1946 |
! ! |
1735e40c6825
added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents:
1069
diff
changeset
|
1947 |
|
184 | 1948 |
!UILayoutTool::LayoutOrigin class methodsFor:'interface specs'! |
1949 |
||
1950 |
windowSpec |
|
741 | 1951 |
"This resource specification was automatically generated |
1952 |
by the UIPainter of ST/X." |
|
184 | 1953 |
|
741 | 1954 |
"Do not manually edit this!! If it is corrupted, |
1955 |
the UIPainter may not be able to read the specification." |
|
184 | 1956 |
|
1957 |
" |
|
1958 |
UIPainter new openOnClass:UILayoutTool::LayoutOrigin andSelector:#windowSpec |
|
1959 |
UILayoutTool::LayoutOrigin new openInterface:#windowSpec |
|
741 | 1960 |
UILayoutTool::LayoutOrigin open |
184 | 1961 |
" |
1962 |
||
1963 |
<resource: #canvas> |
|
1964 |
||
1965 |
^ |
|
1966 |
||
1967 |
#(#FullSpec |
|
741 | 1968 |
#window: |
184 | 1969 |
#(#WindowSpec |
741 | 1970 |
#name: 'UILayoutTool-LayoutOrigin' |
751 | 1971 |
#layout: #(#LayoutFrame 290 0 420 0 647 0 565 0) |
741 | 1972 |
#label: 'UILayoutTool-LayoutOrigin' |
1973 |
#min: #(#Point 10 10) |
|
1974 |
#max: #(#Point 1152 900) |
|
751 | 1975 |
#bounds: #(#Rectangle 290 420 648 566) |
741 | 1976 |
#usePreferredExtent: false |
184 | 1977 |
) |
741 | 1978 |
#component: |
184 | 1979 |
#(#SpecCollection |
741 | 1980 |
#collection: |
184 | 1981 |
#( |
1982 |
#(#UISubSpecification |
|
751 | 1983 |
#name: 'layoutOriginSpec' |
1984 |
#layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 110 0) |
|
741 | 1985 |
#majorKey: #UILayoutTool |
1986 |
#minorKey: #layoutOriginSpec |
|
184 | 1987 |
) |
1988 |
) |
|
1989 |
) |
|
1990 |
) |
|
1991 |
! ! |
|
1992 |
||
1993 |
!UILayoutTool::LayoutOrigin methodsFor:'accessing'! |
|
1994 |
||
1072 | 1995 |
fetch:aView spec:aSpec |
184 | 1996 |
"fetch layoutOrigin |
1997 |
" |
|
1998 |
|layout| |
|
1999 |
||
2000 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
2001 |
||
2002 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
|
2003 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
2004 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
2005 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
2006 |
||
2007 |
||
2008 |
! |
|
2009 |
||
2010 |
layout |
|
2011 |
"returns current layout as layoutOrigin |
|
2012 |
" |
|
2013 |
|layout| |
|
2014 |
||
2015 |
layout := Smalltalk::LayoutOrigin new. |
|
2016 |
||
2017 |
layout leftOffset:((self aspectFor:#leftOffset) value) ? 0. |
|
2018 |
layout topOffset:((self aspectFor:#topOffset) value) ? 0. |
|
2019 |
layout leftFraction:((self aspectFor:#leftFraction) value) ? 0. |
|
2020 |
layout topFraction:((self aspectFor:#topFraction) value) ? 0. |
|
2021 |
||
2022 |
^ layout |
|
2023 |
||
2024 |
! ! |
|
2025 |
||
2026 |
!UILayoutTool::Point class methodsFor:'interface specs'! |
|
2027 |
||
2028 |
windowSpec |
|
741 | 2029 |
"This resource specification was automatically generated |
2030 |
by the UIPainter of ST/X." |
|
184 | 2031 |
|
741 | 2032 |
"Do not manually edit this!! If it is corrupted, |
2033 |
the UIPainter may not be able to read the specification." |
|
184 | 2034 |
|
2035 |
" |
|
2036 |
UIPainter new openOnClass:UILayoutTool::Point andSelector:#windowSpec |
|
2037 |
UILayoutTool::Point new openInterface:#windowSpec |
|
741 | 2038 |
UILayoutTool::Point open |
184 | 2039 |
" |
2040 |
||
2041 |
<resource: #canvas> |
|
2042 |
||
2043 |
^ |
|
2044 |
||
2045 |
#(#FullSpec |
|
741 | 2046 |
#window: |
184 | 2047 |
#(#WindowSpec |
741 | 2048 |
#name: 'UILayoutTool-Point' |
751 | 2049 |
#layout: #(#LayoutFrame 324 0 410 0 618 0 547 0) |
741 | 2050 |
#label: 'UILayoutTool-Point' |
2051 |
#min: #(#Point 10 10) |
|
2052 |
#max: #(#Point 1152 900) |
|
751 | 2053 |
#bounds: #(#Rectangle 324 410 619 548) |
741 | 2054 |
#usePreferredExtent: false |
184 | 2055 |
) |
741 | 2056 |
#component: |
184 | 2057 |
#(#SpecCollection |
741 | 2058 |
#collection: |
184 | 2059 |
#( |
2060 |
#(#UISubSpecification |
|
751 | 2061 |
#name: 'layoutPointSpec' |
2062 |
#layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 100 0) |
|
741 | 2063 |
#majorKey: #UILayoutTool |
2064 |
#minorKey: #layoutPointSpec |
|
184 | 2065 |
) |
2066 |
) |
|
2067 |
) |
|
2068 |
) |
|
2069 |
! ! |
|
2070 |
||
2071 |
!UILayoutTool::Point methodsFor:'accessing'! |
|
2072 |
||
1072 | 2073 |
fetch:aView spec:aSpec |
184 | 2074 |
"fetch point |
2075 |
" |
|
2076 |
|origin| |
|
2077 |
||
2078 |
origin := aView computeOrigin. |
|
2079 |
||
2080 |
(self aspectFor:#leftOffset) value:(origin x). |
|
2081 |
(self aspectFor:#topOffset) value:(origin y). |
|
2082 |
||
2083 |
||
2084 |
! |
|
2085 |
||
2086 |
layout |
|
2087 |
"returns current layout as point |
|
2088 |
" |
|
2089 |
^ Smalltalk::Point x:(((self aspectFor:#leftOffset) value) ? 0) |
|
2090 |
y:(((self aspectFor:#topOffset) value) ? 0) |
|
2091 |
||
2092 |
! ! |
|
2093 |
||
2094 |
!UILayoutTool::Rectangle class methodsFor:'interface specs'! |
|
2095 |
||
2096 |
windowSpec |
|
741 | 2097 |
"This resource specification was automatically generated |
2098 |
by the UIPainter of ST/X." |
|
184 | 2099 |
|
741 | 2100 |
"Do not manually edit this!! If it is corrupted, |
2101 |
the UIPainter may not be able to read the specification." |
|
184 | 2102 |
|
2103 |
" |
|
2104 |
UIPainter new openOnClass:UILayoutTool::Rectangle andSelector:#windowSpec |
|
2105 |
UILayoutTool::Rectangle new openInterface:#windowSpec |
|
741 | 2106 |
UILayoutTool::Rectangle open |
184 | 2107 |
" |
2108 |
||
2109 |
<resource: #canvas> |
|
2110 |
||
2111 |
^ |
|
2112 |
||
2113 |
#(#FullSpec |
|
690 | 2114 |
#window: |
184 | 2115 |
#(#WindowSpec |
741 | 2116 |
#name: 'UILayoutTool-Rectangle' |
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
2117 |
#layout: #(#LayoutFrame 291 0 130 0 632 0 328 0) |
741 | 2118 |
#label: 'UILayoutTool-Rectangle' |
690 | 2119 |
#min: #(#Point 10 10) |
2120 |
#max: #(#Point 1152 900) |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
2121 |
#bounds: #(#Rectangle 291 130 633 329) |
690 | 2122 |
#usePreferredExtent: false |
184 | 2123 |
) |
690 | 2124 |
#component: |
184 | 2125 |
#(#SpecCollection |
690 | 2126 |
#collection: |
184 | 2127 |
#( |
2128 |
#(#UISubSpecification |
|
690 | 2129 |
#name: 'subSpecification' |
751 | 2130 |
#layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 96 0) |
690 | 2131 |
#majorKey: #UILayoutTool |
2132 |
#minorKey: #layoutPointSpec |
|
184 | 2133 |
) |
751 | 2134 |
#(#FramedBoxSpec |
2135 |
#name: 'FramedBox' |
|
2136 |
#layout: #(#LayoutFrame 1 0.0 99 0 0 1.0 194 0) |
|
2137 |
#component: |
|
2138 |
#(#SpecCollection |
|
2139 |
#collection: |
|
2140 |
#( |
|
2141 |
#(#LabelSpec |
|
2142 |
#name: 'labelCornerY' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
2143 |
#layout: #(#AlignmentOrigin 83 0 16 0 1 0) |
751 | 2144 |
#label: 'Right:' |
2145 |
#adjust: #left |
|
2146 |
) |
|
2147 |
#(#InputFieldSpec |
|
2148 |
#name: 'fieldCornerX' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
2149 |
#layout: #(#LayoutFrame 85 0 13 0 135 0 35 0) |
751 | 2150 |
#activeHelpKey: #cornerX |
2151 |
#tabable: true |
|
2152 |
#model: #rightOffset |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
2153 |
#group: #inputGroup |
751 | 2154 |
#type: #numberOrNil |
1072 | 2155 |
#acceptOnLostFocus: true |
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2156 |
#acceptChannel: #acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2157 |
#modifiedChannel: #modifiedChannel |
751 | 2158 |
) |
2159 |
#(#LabelSpec |
|
2160 |
#name: 'labelCornerX' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
2161 |
#layout: #(#AlignmentOrigin 83 0 41 0 1 0) |
751 | 2162 |
#label: 'Bottom:' |
2163 |
#adjust: #left |
|
2164 |
) |
|
2165 |
#(#InputFieldSpec |
|
2166 |
#name: 'fieldCornerY' |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
2167 |
#layout: #(#LayoutFrame 85 0 38 0 135 0 60 0) |
751 | 2168 |
#activeHelpKey: #cornerY |
2169 |
#tabable: true |
|
2170 |
#model: #bottomOffset |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
2171 |
#group: #inputGroup |
751 | 2172 |
#type: #numberOrNil |
1072 | 2173 |
#acceptOnLostFocus: true |
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2174 |
#acceptChannel: #acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2175 |
#modifiedChannel: #modifiedChannel |
751 | 2176 |
) |
2177 |
) |
|
2178 |
) |
|
2179 |
#label: 'Corner' |
|
2180 |
#labelPosition: #topLeft |
|
184 | 2181 |
) |
2182 |
) |
|
2183 |
) |
|
2184 |
) |
|
922
0a5799408f54
assign all inputFields to a common group.
Claus Gittinger <cg@exept.de>
parents:
751
diff
changeset
|
2185 |
|
949
2e3469100a6a
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
2186 |
"Modified: / 13.8.1998 / 19:59:16 / cg" |
184 | 2187 |
! ! |
2188 |
||
2189 |
!UILayoutTool::Rectangle methodsFor:'accessing'! |
|
2190 |
||
1072 | 2191 |
fetch:aView spec:aSpec |
184 | 2192 |
"fetch rectangle |
2193 |
" |
|
2194 |
|origin corner| |
|
2195 |
||
2196 |
origin := aView computeOrigin. |
|
2197 |
corner := aView computeCorner. |
|
2198 |
||
2199 |
(self aspectFor:#leftOffset) value:(origin x). |
|
2200 |
(self aspectFor:#rightOffset) value:(corner x). |
|
2201 |
(self aspectFor:#topOffset) value:(origin y). |
|
2202 |
(self aspectFor:#bottomOffset) value:(corner y). |
|
2203 |
||
2204 |
||
2205 |
! |
|
2206 |
||
2207 |
layout |
|
2208 |
"returns current layout as rectangle |
|
2209 |
" |
|
2210 |
^ Smalltalk::Rectangle left:(((self aspectFor:#leftOffset) value) ? 0) |
|
2211 |
top:(((self aspectFor:#topOffset) value) ? 0) |
|
2212 |
right:(((self aspectFor:#rightOffset) value) ? 0) |
|
2213 |
bottom:(((self aspectFor:#bottomOffset) value) ? 0) |
|
2214 |
||
2215 |
||
2216 |
! ! |
|
2217 |
||
163 | 2218 |
!UILayoutTool class methodsFor:'documentation'! |
2219 |
||
2220 |
version |
|
2221 |
^ '$Header$' |
|
2222 |
! ! |