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