author | Stefan Vogel <sv@exept.de> |
Fri, 23 May 2014 11:27:38 +0200 | |
changeset 3116 | 21e748176901 |
parent 3052 | 8734833de8fe |
child 3176 | ed6b37bc35b0 |
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 |
" |
|
1409 | 12 |
"{ Package: 'stx:libtool2' }" |
13 |
||
163 | 14 |
ApplicationModel subclass:#UILayoutTool |
1305 | 15 |
instanceVariableNames:'modifiedHolder aspects selection currentTool layoutView tabList |
16 |
layoutSpec toolsDictionary' |
|
163 | 17 |
classVariableNames:'' |
18 |
poolDictionaries:'' |
|
19 |
category:'Interface-UIPainter' |
|
20 |
! |
|
21 |
||
1343 | 22 |
ApplicationModel subclass:#AnyLayout |
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
23 |
instanceVariableNames:'' |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
24 |
classVariableNames:'' |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
25 |
poolDictionaries:'' |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
26 |
privateIn:UILayoutTool |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
27 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
28 |
|
1447 | 29 |
UILayoutTool::AnyLayout subclass:#AlignmentOrigin |
30 |
instanceVariableNames:'' |
|
31 |
classVariableNames:'' |
|
32 |
poolDictionaries:'' |
|
33 |
privateIn:UILayoutTool |
|
34 |
! |
|
35 |
||
36 |
UILayoutTool::AnyLayout subclass:#Extent |
|
37 |
instanceVariableNames:'' |
|
38 |
classVariableNames:'' |
|
39 |
poolDictionaries:'' |
|
40 |
privateIn:UILayoutTool |
|
41 |
! |
|
42 |
||
1409 | 43 |
UILayoutTool::AnyLayout subclass:#LayoutFrame |
1343 | 44 |
instanceVariableNames:'' |
1826 | 45 |
classVariableNames:'DefaultFixPartHeight' |
1343 | 46 |
poolDictionaries:'' |
47 |
privateIn:UILayoutTool |
|
48 |
! |
|
49 |
||
1447 | 50 |
UILayoutTool::AnyLayout subclass:#LayoutOrigin |
1310 | 51 |
instanceVariableNames:'' |
52 |
classVariableNames:'' |
|
53 |
poolDictionaries:'' |
|
54 |
privateIn:UILayoutTool |
|
55 |
! |
|
56 |
||
1343 | 57 |
UILayoutTool::AnyLayout subclass:#Point |
1310 | 58 |
instanceVariableNames:'' |
59 |
classVariableNames:'' |
|
60 |
poolDictionaries:'' |
|
61 |
privateIn:UILayoutTool |
|
62 |
! |
|
63 |
||
1343 | 64 |
UILayoutTool::AnyLayout subclass:#Rectangle |
1304 | 65 |
instanceVariableNames:'' |
66 |
classVariableNames:'' |
|
67 |
poolDictionaries:'' |
|
68 |
privateIn:UILayoutTool |
|
69 |
! |
|
70 |
||
163 | 71 |
!UILayoutTool class methodsFor:'documentation'! |
72 |
||
73 |
copyright |
|
74 |
" |
|
75 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
76 |
All Rights Reserved |
|
77 |
||
78 |
This software is furnished under a license and may be used |
|
79 |
only in accordance with the terms of that license and with the |
|
80 |
inclusion of the above copyright notice. This software may not |
|
81 |
be provided or otherwise made available to, or used by, any |
|
82 |
other person. No title to or ownership of the software is |
|
83 |
hereby transferred. |
|
84 |
" |
|
85 |
||
86 |
||
87 |
||
88 |
! |
|
89 |
||
90 |
documentation |
|
91 |
" |
|
92 |
used by the UIPainter to manipulate the layout of the selected component |
|
93 |
||
94 |
[author:] |
|
95 |
Claus Atzkern |
|
96 |
||
97 |
[see also:] |
|
98 |
UIPainter |
|
99 |
UIHelpTool |
|
100 |
UISpecificationTool |
|
101 |
" |
|
102 |
||
103 |
||
104 |
! ! |
|
105 |
||
106 |
!UILayoutTool class methodsFor:'constants'! |
|
107 |
||
108 |
label |
|
109 |
^ 'Layout' |
|
110 |
! ! |
|
111 |
||
184 | 112 |
!UILayoutTool class methodsFor:'help specs'! |
113 |
||
114 |
helpSpec |
|
741 | 115 |
"This resource specification was automatically generated |
116 |
by the UIHelpTool of ST/X." |
|
117 |
||
118 |
"Do not manually edit this!! If it is corrupted, |
|
119 |
the UIHelpTool may not be able to read the specification." |
|
293 | 120 |
|
184 | 121 |
" |
741 | 122 |
UIHelpTool openOnClass:UILayoutTool |
293 | 123 |
" |
124 |
||
741 | 125 |
<resource: #help> |
126 |
||
127 |
^super helpSpec addPairsFrom:#( |
|
128 |
||
129 |
#cornerX |
|
130 |
'Absolute corner x of the selected widget.' |
|
131 |
||
132 |
#cornerY |
|
133 |
'Absolute corner y of the selected widget.' |
|
134 |
||
135 |
#layoutTool |
|
136 |
'Tool to set the layout of the selected widget.' |
|
184 | 137 |
|
138 |
#leftAbsolute |
|
714 | 139 |
'Offset of the left edge; positive is to the right, negative to the left.' |
184 | 140 |
|
741 | 141 |
#leftRelative |
142 |
'Relative origin x of the selected widget.' |
|
201 | 143 |
|
144 |
#makeLeftAbsolute |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
145 |
'Compute pure-absolute x' |
201 | 146 |
|
741 | 147 |
#makeLeftRelative |
1955 | 148 |
'Compute pure-fractional x.' |
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
149 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
150 |
#makeLeftRelativeFromRight |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
151 |
'Compute fraction+offset for x relative to containers right.' |
741 | 152 |
|
153 |
#makeTopAbsolute |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
154 |
'Compute pure-absolute y.' |
741 | 155 |
|
156 |
#makeTopRelative |
|
1955 | 157 |
'Compute pure-fractional y.' |
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
158 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
159 |
#makeTopRelativeFromBottom |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
160 |
'Compute fraction+offset for y relative to containers bottom.' |
741 | 161 |
|
162 |
#originX |
|
163 |
'Absolute origin x of the selected widget.' |
|
164 |
||
165 |
#originY |
|
166 |
'Absolute origin y of the selected widget.' |
|
167 |
||
184 | 168 |
#topAbsolute |
714 | 169 |
'Offset of the top edge; positive is to the bottom, negative to the top.' |
184 | 170 |
|
201 | 171 |
#topRelative |
714 | 172 |
'Relative origin y of the selected widget.' |
201 | 173 |
|
184 | 174 |
) |
175 |
! ! |
|
176 |
||
163 | 177 |
!UILayoutTool class methodsFor:'interface specs'! |
178 |
||
184 | 179 |
layoutOriginSpec |
741 | 180 |
"This resource specification was automatically generated |
181 |
by the UIPainter of ST/X." |
|
184 | 182 |
|
741 | 183 |
"Do not manually edit this!! If it is corrupted, |
184 |
the UIPainter may not be able to read the specification." |
|
184 | 185 |
|
186 |
" |
|
259 | 187 |
UIPainter new openOnClass:UILayoutTool andSelector:#layoutOriginSpec |
188 |
UILayoutTool new openInterface:#layoutOriginSpec |
|
184 | 189 |
" |
190 |
||
191 |
<resource: #canvas> |
|
192 |
||
1304 | 193 |
^ |
3052 | 194 |
#(FullSpec |
195 |
name: layoutOriginSpec |
|
196 |
window: |
|
197 |
(WindowSpec |
|
198 |
label: 'UILayoutTool' |
|
199 |
name: 'UILayoutTool' |
|
200 |
min: (Point 10 10) |
|
201 |
bounds: (Rectangle 0 0 345 107) |
|
202 |
) |
|
203 |
component: |
|
204 |
(SpecCollection |
|
205 |
collection: ( |
|
206 |
(FramedBoxSpec |
|
207 |
label: 'Origin' |
|
208 |
name: 'FramedBox' |
|
209 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 108 0) |
|
210 |
labelPosition: topLeft |
|
211 |
translateLabel: true |
|
212 |
component: |
|
213 |
(SpecCollection |
|
214 |
collection: ( |
|
215 |
(LabelSpec |
|
216 |
label: 'Relative:' |
|
217 |
name: 'labelRelative' |
|
218 |
layout: (Point 103 6) |
|
219 |
translateLabel: true |
|
220 |
) |
|
221 |
(LabelSpec |
|
222 |
label: 'Offset:' |
|
223 |
name: 'labelAbsolute' |
|
224 |
layout: (Point 203 6) |
|
225 |
translateLabel: true |
|
226 |
) |
|
227 |
(LabelSpec |
|
228 |
label: 'Left:' |
|
229 |
name: 'labelLeft' |
|
230 |
layout: (AlignmentOrigin 68 0 27 0 1 0) |
|
231 |
translateLabel: true |
|
232 |
) |
|
233 |
(ActionButtonSpec |
|
234 |
label: 'imageFractX' |
|
235 |
name: 'actionRelativeLeft' |
|
236 |
layout: (LayoutFrame 77 0 24 0 99 0 46 0) |
|
237 |
activeHelpKey: makeLeftRelative |
|
238 |
hasCharacterOrientedLabel: false |
|
239 |
tabable: true |
|
240 |
model: relativeLeft |
|
241 |
) |
|
242 |
(InputFieldSpec |
|
243 |
name: 'fieldLeftFraction' |
|
244 |
layout: (LayoutFrame 102 0 25 0 152 0 47 0) |
|
245 |
activeHelpKey: leftRelative |
|
246 |
tabable: true |
|
247 |
model: leftFraction |
|
248 |
group: inputGroup |
|
249 |
type: numberOrNil |
|
250 |
acceptOnLostFocus: true |
|
251 |
acceptChannel: acceptChannel |
|
252 |
modifiedChannel: modifiedChannel |
|
253 |
acceptOnPointerLeave: true |
|
254 |
) |
|
255 |
(ActionButtonSpec |
|
256 |
label: 'imageAbsX' |
|
257 |
name: 'actionAbsoluteLeft' |
|
258 |
layout: (LayoutFrame 178 0 24 0 200 0 46 0) |
|
259 |
activeHelpKey: makeLeftAbsolute |
|
260 |
hasCharacterOrientedLabel: false |
|
261 |
tabable: true |
|
262 |
model: absoluteLeft |
|
1304 | 263 |
) |
3052 | 264 |
(InputFieldSpec |
265 |
name: 'fieldLeftOffset' |
|
266 |
layout: (LayoutFrame 203 0 24 0 253 0 46 0) |
|
267 |
activeHelpKey: leftAbsolute |
|
268 |
tabable: true |
|
269 |
model: leftOffset |
|
270 |
group: inputGroup |
|
271 |
type: numberOrNil |
|
272 |
acceptOnLostFocus: true |
|
273 |
acceptChannel: acceptChannel |
|
274 |
modifiedChannel: modifiedChannel |
|
275 |
acceptOnPointerLeave: true |
|
276 |
) |
|
277 |
(ActionButtonSpec |
|
278 |
label: 'imageAbsXFromRight' |
|
279 |
name: 'actionRightRelativeLeft' |
|
280 |
layout: (LayoutFrame 257 0 24 0 279 0 46 0) |
|
281 |
activeHelpKey: makeLeftRelativeFromRight |
|
282 |
hasCharacterOrientedLabel: false |
|
283 |
tabable: true |
|
284 |
model: rightRelativeLeft |
|
285 |
) |
|
286 |
(LabelSpec |
|
287 |
label: 'Top:' |
|
288 |
name: 'labelTop' |
|
289 |
layout: (AlignmentOrigin 68 0 54 0 1 0) |
|
290 |
translateLabel: true |
|
291 |
) |
|
292 |
(ActionButtonSpec |
|
293 |
label: 'imageFractY' |
|
294 |
name: 'actionRelativeTop' |
|
295 |
layout: (LayoutFrame 77 0 51 0 99 0 73 0) |
|
296 |
activeHelpKey: makeTopRelative |
|
297 |
hasCharacterOrientedLabel: false |
|
298 |
tabable: true |
|
299 |
model: relativeTop |
|
300 |
) |
|
301 |
(InputFieldSpec |
|
302 |
name: 'fieldTopFraction' |
|
303 |
layout: (LayoutFrame 103 0 51 0 153 0 73 0) |
|
304 |
activeHelpKey: topRelative |
|
305 |
tabable: true |
|
306 |
model: topFraction |
|
307 |
group: inputGroup |
|
308 |
type: numberOrNil |
|
309 |
acceptOnLostFocus: true |
|
310 |
acceptChannel: acceptChannel |
|
311 |
modifiedChannel: modifiedChannel |
|
312 |
acceptOnPointerLeave: true |
|
313 |
) |
|
314 |
(ActionButtonSpec |
|
315 |
label: 'imageAbsY' |
|
316 |
name: 'actionAbsoluteTop' |
|
317 |
layout: (LayoutFrame 178 0 51 0 200 0 73 0) |
|
318 |
activeHelpKey: makeTopAbsolute |
|
319 |
hasCharacterOrientedLabel: false |
|
320 |
tabable: true |
|
321 |
model: absoluteTop |
|
322 |
) |
|
323 |
(InputFieldSpec |
|
324 |
name: 'fieldTopOffset' |
|
325 |
layout: (LayoutFrame 203 0 51 0 253 0 73 0) |
|
326 |
activeHelpKey: topAbsolute |
|
327 |
tabable: true |
|
328 |
model: topOffset |
|
329 |
group: inputGroup |
|
330 |
type: numberOrNil |
|
331 |
acceptOnLostFocus: true |
|
332 |
acceptChannel: acceptChannel |
|
333 |
modifiedChannel: modifiedChannel |
|
334 |
acceptOnPointerLeave: true |
|
335 |
) |
|
336 |
(ActionButtonSpec |
|
337 |
label: 'imageAbsYFromBottom' |
|
338 |
name: 'actionBottomRelativeTop' |
|
339 |
layout: (LayoutFrame 257 0 51 0 279 0 73 0) |
|
340 |
activeHelpKey: makeTopRelativeFromBottom |
|
341 |
hasCharacterOrientedLabel: false |
|
342 |
tabable: true |
|
343 |
model: bottomRelativeTop |
|
344 |
) |
|
345 |
) |
|
346 |
||
347 |
) |
|
1304 | 348 |
) |
3052 | 349 |
) |
350 |
||
351 |
) |
|
352 |
) |
|
184 | 353 |
! |
354 |
||
355 |
layoutPointSpec |
|
741 | 356 |
"This resource specification was automatically generated |
357 |
by the UIPainter of ST/X." |
|
184 | 358 |
|
741 | 359 |
"Do not manually edit this!! If it is corrupted, |
360 |
the UIPainter may not be able to read the specification." |
|
184 | 361 |
|
362 |
" |
|
259 | 363 |
UIPainter new openOnClass:UILayoutTool andSelector:#layoutPointSpec |
364 |
UILayoutTool new openInterface:#layoutPointSpec |
|
184 | 365 |
" |
259 | 366 |
|
184 | 367 |
<resource: #canvas> |
368 |
||
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
369 |
^ |
3052 | 370 |
#(FullSpec |
371 |
name: layoutPointSpec |
|
372 |
window: |
|
373 |
(WindowSpec |
|
374 |
label: 'UILayoutTool' |
|
375 |
name: 'UILayoutTool' |
|
376 |
min: (Point 10 10) |
|
377 |
bounds: (Rectangle 0 0 278 124) |
|
378 |
) |
|
379 |
component: |
|
380 |
(SpecCollection |
|
381 |
collection: ( |
|
382 |
(FramedBoxSpec |
|
383 |
label: 'Origin' |
|
384 |
name: 'FramedBox' |
|
385 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 94 0) |
|
386 |
labelPosition: topLeft |
|
387 |
translateLabel: true |
|
388 |
component: |
|
389 |
(SpecCollection |
|
390 |
collection: ( |
|
391 |
(LabelSpec |
|
392 |
label: 'Left:' |
|
393 |
name: 'labelOriginY' |
|
394 |
layout: (AlignmentOrigin 83 0 14 0 1 0) |
|
395 |
translateLabel: true |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
396 |
) |
3052 | 397 |
(InputFieldSpec |
398 |
name: 'fieldOriginX' |
|
399 |
layout: (LayoutFrame 85 0 11 0 135 0 33 0) |
|
400 |
activeHelpKey: originX |
|
401 |
tabable: true |
|
402 |
model: leftOffset |
|
403 |
group: inputGroup |
|
404 |
type: numberOrNil |
|
405 |
acceptOnLostFocus: true |
|
406 |
acceptChannel: acceptChannel |
|
407 |
modifiedChannel: modifiedChannel |
|
408 |
acceptOnPointerLeave: true |
|
409 |
) |
|
410 |
(LabelSpec |
|
411 |
label: 'Top:' |
|
412 |
name: 'labelOriginX' |
|
413 |
layout: (AlignmentOrigin 83 0 39 0 1 0) |
|
414 |
translateLabel: true |
|
415 |
) |
|
416 |
(InputFieldSpec |
|
417 |
name: 'fieldOriginY' |
|
418 |
layout: (LayoutFrame 85 0 36 0 135 0 58 0) |
|
419 |
activeHelpKey: originY |
|
420 |
tabable: true |
|
421 |
model: topOffset |
|
422 |
group: inputGroup |
|
423 |
type: numberOrNil |
|
424 |
acceptOnLostFocus: true |
|
425 |
acceptChannel: acceptChannel |
|
426 |
modifiedChannel: modifiedChannel |
|
427 |
acceptOnPointerLeave: true |
|
428 |
) |
|
429 |
) |
|
430 |
||
431 |
) |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
432 |
) |
3052 | 433 |
) |
434 |
||
435 |
) |
|
436 |
) |
|
184 | 437 |
! |
438 |
||
163 | 439 |
slices |
440 |
^ #( |
|
441 |
( 'Frame' LayoutFrame) |
|
442 |
( 'Origin' LayoutOrigin) |
|
443 |
( 'Alig.Origin' AlignmentOrigin) |
|
444 |
( 'Point' Point) |
|
445 |
( 'Rectangle' Rectangle) |
|
446 |
( 'Extent' Extent) |
|
447 |
) |
|
448 |
||
449 |
! |
|
450 |
||
451 |
windowSpec |
|
741 | 452 |
"This resource specification was automatically generated |
453 |
by the UIPainter of ST/X." |
|
163 | 454 |
|
741 | 455 |
"Do not manually edit this!! If it is corrupted, |
456 |
the UIPainter may not be able to read the specification." |
|
163 | 457 |
|
458 |
" |
|
459 |
UIPainter new openOnClass:UILayoutTool andSelector:#windowSpec |
|
460 |
UILayoutTool new openInterface:#windowSpec |
|
741 | 461 |
UILayoutTool open |
163 | 462 |
" |
463 |
||
464 |
<resource: #canvas> |
|
465 |
||
1305 | 466 |
^ |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
467 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
468 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
469 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
470 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
471 |
label: 'UILayoutTool' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
472 |
name: 'UILayoutTool' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
473 |
min: (Point 10 10) |
1790 | 474 |
bounds: (Rectangle 12 22 354 321) |
1305 | 475 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
476 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
477 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
478 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
479 |
(NoteBookViewSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
480 |
name: 'NoteBook' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
481 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
482 |
activeHelpKey: layoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
483 |
enableChannel: enableChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
484 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
485 |
model: noteBookModel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
486 |
menu: noteBookList |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
487 |
direction: bottom |
1790 | 488 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
489 |
canvas: layoutCanvasHolder |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
490 |
tabTopMargin: 0 |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
491 |
tabBottomMargin: 0 |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
492 |
keepCanvasAlive: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
493 |
tabLevel: 0 |
1305 | 494 |
) |
495 |
) |
|
496 |
||
497 |
) |
|
163 | 498 |
) |
499 |
! ! |
|
500 |
||
1781
d67090b1ad57
resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents:
1738
diff
changeset
|
501 |
!UILayoutTool class methodsFor:'resources'! |
d67090b1ad57
resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents:
1738
diff
changeset
|
502 |
|
d67090b1ad57
resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents:
1738
diff
changeset
|
503 |
classResources |
d67090b1ad57
resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents:
1738
diff
changeset
|
504 |
"my translations are found in the UIPainter classes resources" |
d67090b1ad57
resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents:
1738
diff
changeset
|
505 |
|
d67090b1ad57
resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents:
1738
diff
changeset
|
506 |
^ UIPainter classResources |
d67090b1ad57
resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents:
1738
diff
changeset
|
507 |
! ! |
d67090b1ad57
resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents:
1738
diff
changeset
|
508 |
|
163 | 509 |
!UILayoutTool methodsFor:'accessing'! |
510 |
||
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
511 |
acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
512 |
"return the value of the instance variable 'acceptChannel' (automatically generated)" |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
513 |
|
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
514 |
^ masterApplication acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
515 |
! |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
516 |
|
163 | 517 |
layout |
518 |
"returns configued layout or nil |
|
519 |
" |
|
1305 | 520 |
^ currentTool notNil ifTrue:[currentTool layout] |
521 |
ifFalse:[nil] |
|
163 | 522 |
! |
523 |
||
524 |
layoutType |
|
525 |
"returns current layout type or nil |
|
526 |
" |
|
527 |
|slice| |
|
528 |
||
529 |
(slice := self selectedSlice) notNil ifTrue:[ |
|
530 |
^ slice last |
|
531 |
]. |
|
532 |
^ nil |
|
533 |
! |
|
534 |
||
535 |
layoutView |
|
536 |
"returns current edited view |
|
537 |
" |
|
538 |
^ layoutView |
|
539 |
! |
|
540 |
||
1072 | 541 |
layoutView:aView type:aTypeOrNil spec:aSpec |
283 | 542 |
"change current edited view |
543 |
" |
|
163 | 544 |
|type name list| |
545 |
||
546 |
layoutView := aView. |
|
1072 | 547 |
layoutSpec := aSpec. |
163 | 548 |
|
1074
49ef9991d1d5
disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents:
1072
diff
changeset
|
549 |
(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
|
550 |
|
1826 | 551 |
aTypeOrNil notNil ifTrue:[ |
163 | 552 |
self class slices findFirst:[:e| |
2533 | 553 |
e last == aTypeOrNil |
554 |
ifTrue:[name := e first. true] |
|
555 |
ifFalse:[false]. |
|
163 | 556 |
]. |
1826 | 557 |
list := Array with:name with: 'Frame'. |
283 | 558 |
] ifFalse:[ |
559 |
(type := UIPainterView layoutType:layoutView) notNil ifTrue:[ |
|
560 |
self class slices findFirst:[:e| |
|
2533 | 561 |
e last == type ifTrue:[name := e first. true] ifFalse:[false] |
283 | 562 |
]. |
563 |
list := tabList. |
|
1826 | 564 |
type == #Extent ifTrue:[ |
283 | 565 |
aView superView specClass isLayoutContainer ifTrue:[ |
566 |
list := Array with:name |
|
567 |
] ifFalse:[ |
|
568 |
list := list copyWith:name |
|
569 |
] |
|
235 | 570 |
] |
571 |
] |
|
163 | 572 |
]. |
573 |
self noteBookList value:list. |
|
574 |
self noteBookModel value:name. |
|
575 |
self update. |
|
576 |
! |
|
577 |
||
578 |
modifiedHolder:aValueHolder |
|
579 |
"set the value holder set to true in case of modifying attributes |
|
580 |
" |
|
581 |
modifiedHolder notNil ifTrue:[ |
|
582 |
modifiedHolder removeDependent:self. |
|
583 |
]. |
|
584 |
||
585 |
(modifiedHolder := aValueHolder) notNil ifTrue:[ |
|
586 |
modifiedHolder addDependent:self. |
|
587 |
]. |
|
588 |
||
589 |
! |
|
590 |
||
591 |
update |
|
592 |
"update from view |
|
593 |
" |
|
1305 | 594 |
|view| |
163 | 595 |
|
1305 | 596 |
(selection notNil and:[currentTool notNil]) ifTrue:[ |
1072 | 597 |
(view := layoutView) notNil ifTrue:[ |
1305 | 598 |
currentTool fetch:view spec:layoutSpec |
163 | 599 |
] |
600 |
]. |
|
601 |
||
602 |
! ! |
|
603 |
||
604 |
!UILayoutTool methodsFor:'aspects'! |
|
605 |
||
606 |
aspectFor:aKey |
|
2365 | 607 |
"returns the aspect for a aKey or nil" |
608 |
||
609 |
^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ] |
|
163 | 610 |
! |
611 |
||
1305 | 612 |
layoutCanvasHolder |
613 |
|holder| |
|
614 |
||
615 |
(holder := builder bindingAt:#layoutCanvasHolder) isNil ifTrue:[ |
|
616 |
holder := ValueHolder new. |
|
617 |
builder aspectAt:#layoutCanvasHolder put:holder |
|
618 |
]. |
|
619 |
^ holder |
|
620 |
! |
|
621 |
||
1072 | 622 |
notUsingDefaultExtent |
623 |
|holder| |
|
624 |
||
625 |
(holder := builder bindingAt:#notUsingDefaultExtent) isNil ifTrue:[ |
|
626 |
holder := BlockValue forLogicalNot:(self aspectFor:#useDefaultExtent). |
|
627 |
builder aspectAt:#notUsingDefaultExtent put:holder. |
|
628 |
]. |
|
629 |
^ holder |
|
630 |
||
631 |
! |
|
632 |
||
163 | 633 |
noteBookList |
2322 | 634 |
"holds the list of tab labels" |
635 |
||
636 |
^ builder valueAspectFor:#noteBookList initialValue:nil |
|
163 | 637 |
! |
638 |
||
639 |
noteBookModel |
|
640 |
"automatically generated by UIPainter ..." |
|
641 |
||
642 |
|holder| |
|
643 |
||
644 |
(holder := builder bindingAt:#noteBookModel) isNil ifTrue:[ |
|
645 |
holder := AspectAdaptor new subject:self; forAspect:#selection. |
|
646 |
builder aspectAt:#noteBookModel put:holder. |
|
647 |
]. |
|
648 |
^ holder |
|
649 |
! ! |
|
650 |
||
651 |
!UILayoutTool methodsFor:'change & update'! |
|
652 |
||
653 |
update:something with:aParameter from:changedObject |
|
654 |
"one of my models changed its value |
|
655 |
" |
|
656 |
changedObject ~~ modifiedHolder ifTrue:[ |
|
657 |
modifiedHolder value ~~ true ifTrue:[ |
|
658 |
modifiedHolder isNil ifFalse:[ |
|
659 |
modifiedHolder value:true |
|
660 |
] |
|
661 |
] |
|
662 |
] |
|
663 |
||
664 |
! ! |
|
665 |
||
666 |
!UILayoutTool methodsFor:'converting absolute'! |
|
667 |
||
668 |
absolute:what xOrY:xOrY |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
669 |
"compute what as absolute (i.e. fraction=0, offset >= 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
670 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
671 |
|extent fraction offset fractSymb offsetSymb |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
672 |
newOffset newFraction fractHolder offsetHolder| |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
673 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
674 |
extent := (self layoutView superView computeExtent) perform:xOrY. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
675 |
fractSymb := (what, 'Fraction') asSymbol. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
676 |
offsetSymb := (what, 'Offset') asSymbol. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
677 |
fractHolder := (self aspectFor:fractSymb). |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
678 |
offsetHolder := (self aspectFor:offsetSymb). |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
679 |
fraction := fractHolder value. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
680 |
offset := offsetHolder value. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
681 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
682 |
newOffset := offset + ((fraction * extent) asInteger). |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
683 |
newFraction := 0. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
684 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
685 |
fractHolder value:newFraction. |
1343 | 686 |
offsetHolder value:newOffset. |
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
687 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
688 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
689 |
absoluteBottom |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
690 |
"compute bottom as absolute (i.e. fraction=0, offset >= 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
691 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
692 |
self absolute:'bottom' xOrY:#y |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
693 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
694 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
695 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
696 |
absoluteLeft |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
697 |
"compute left as absolute (i.e. fraction=0, offset >= 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
698 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
699 |
self absolute:'left' xOrY:#x |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
700 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
701 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
702 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
703 |
absoluteRight |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
704 |
"compute right as absolute (i.e. fraction=0, offset >= 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
705 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
706 |
self absolute:'right' xOrY:#x |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
707 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
708 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
709 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
710 |
absoluteTop |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
711 |
"compute top as absolute (i.e. fraction=0, offset >= 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
712 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
713 |
self absolute:'top' xOrY:#y |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
714 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
715 |
! ! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
716 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
717 |
!UILayoutTool methodsFor:'converting absolute from corner'! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
718 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
719 |
bottomRelativeBottom |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
720 |
"compute bottom relative to containers bottom (fraction=1, offset negative)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
721 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
722 |
self cornerRelative:'bottom' xOrY:#y |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
723 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
724 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
725 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
726 |
bottomRelativeTop |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
727 |
"compute top relative to containers bottom (fraction=1, offset negative)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
728 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
729 |
self cornerRelative:'top' xOrY:#y |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
730 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
731 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
732 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
733 |
cornerRelative:what xOrY:xOrY |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
734 |
"compute what relative to the corner (i.e. fraction=1, offset negative)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
735 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
736 |
|extent fraction offset fractSymb offsetSymb |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
737 |
newFraction newOffset fractHolder offsetHolder| |
163 | 738 |
|
739 |
extent := (self layoutView superView computeExtent) perform:xOrY. |
|
740 |
fractSymb := (what, 'Fraction') asSymbol. |
|
741 |
offsetSymb := (what, 'Offset') asSymbol. |
|
1198 | 742 |
fractHolder := (self aspectFor:fractSymb). |
743 |
offsetHolder := (self aspectFor:offsetSymb). |
|
744 |
fraction := fractHolder value. |
|
745 |
offset := offsetHolder value. |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
746 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
747 |
newOffset := offset + ((fraction * extent) asInteger). |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
748 |
newOffset := newOffset - extent. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
749 |
newFraction := 1. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
750 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
751 |
fractHolder value:newFraction. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
752 |
offsetHolder value:newOffset. |
163 | 753 |
|
754 |
||
755 |
||
756 |
! |
|
757 |
||
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
758 |
rightRelativeLeft |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
759 |
"compute left relative to containers right (fraction=1, offset negative)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
760 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
761 |
self cornerRelative:'left' xOrY:#x |
163 | 762 |
|
763 |
! |
|
764 |
||
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
765 |
rightRelativeRight |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
766 |
"compute right relative to containers right (fraction=1, offset negative)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
767 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
768 |
self cornerRelative:'right' xOrY:#x |
163 | 769 |
|
770 |
! ! |
|
771 |
||
772 |
!UILayoutTool methodsFor:'converting relative'! |
|
773 |
||
774 |
relative:what xOrY:xOrY |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
775 |
"compute what relative to the origin (i.e. fraction=0..1, offset 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
776 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
777 |
|extent fraction offset fractSymb offsetSymb |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
778 |
newFraction newOffset |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
779 |
fractHolder offsetHolder| |
163 | 780 |
|
781 |
extent := (self layoutView superView computeExtent) perform:xOrY. |
|
782 |
fractSymb := (what, 'Fraction') asSymbol. |
|
783 |
offsetSymb := (what, 'Offset') asSymbol. |
|
1198 | 784 |
fractHolder := (self aspectFor:fractSymb). |
785 |
offsetHolder := (self aspectFor:offsetSymb). |
|
786 |
fraction := fractHolder value. |
|
787 |
offset := offsetHolder value. |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
788 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
789 |
newFraction := (fraction + (offset / extent)) asFloat. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
790 |
newOffset := 0. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
791 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
792 |
(newFraction > 1.0) ifTrue:[newFraction := 1.0]. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
793 |
(newFraction < 0.0) ifTrue:[newFraction := 0]. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
794 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
795 |
offsetHolder value:newOffset. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
796 |
fractHolder value:newFraction. |
163 | 797 |
|
798 |
||
799 |
||
800 |
! |
|
801 |
||
802 |
relativeBottom |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
803 |
"compute bottom relative to the origin (i.e. fraction=0..1, offset 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
804 |
|
163 | 805 |
self relative:'bottom' xOrY:#y |
806 |
||
807 |
||
808 |
! |
|
809 |
||
810 |
relativeLeft |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
811 |
"compute left relative to the origin (i.e. fraction=0..1, offset 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
812 |
|
163 | 813 |
self relative:'left' xOrY:#x |
814 |
||
815 |
! |
|
816 |
||
817 |
relativeRight |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
818 |
"compute right relative to the origin (i.e. fraction=0..1, offset 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
819 |
|
163 | 820 |
self relative:'right' xOrY:#x |
821 |
||
822 |
! |
|
823 |
||
824 |
relativeTop |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
825 |
"compute top relative to the origin (i.e. fraction=0..1, offset 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
826 |
|
163 | 827 |
self relative:'top' xOrY:#y |
828 |
||
829 |
! ! |
|
830 |
||
831 |
!UILayoutTool methodsFor:'initialization'! |
|
832 |
||
833 |
initialize |
|
834 |
"initialize channels |
|
835 |
" |
|
221 | 836 |
|slices size| |
837 |
||
163 | 838 |
super initialize. |
839 |
||
840 |
aspects := IdentityDictionary new. |
|
1305 | 841 |
toolsDictionary := IdentityDictionary new. |
163 | 842 |
|
843 |
#( bottomFraction bottomOffset |
|
844 |
leftFraction leftOffset |
|
845 |
topFraction topOffset |
|
846 |
rightFraction rightOffset |
|
847 |
leftAlignmentFraction topAlignmentFraction |
|
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
848 |
(useDefaultExtent false) |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
849 |
(defaultExtentEnabled false) |
2379 | 850 |
|
851 |
(usePreferredWidth false) |
|
852 |
(usePreferredHeight false) |
|
853 |
(useDynamicPreferredWidth false) |
|
854 |
(useDynamicPreferredHeight false) |
|
2953 | 855 |
(keepSpaceForOSXResizeHandleV false) |
856 |
(keepSpaceForOSXResizeHandleH false) |
|
163 | 857 |
) |
858 |
||
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
859 |
do:[:aKeyOrPair| |holder key val| |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
860 |
(key := aKeyOrPair) isSymbol ifFalse:[ |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
861 |
key := aKeyOrPair first. |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
862 |
val := aKeyOrPair second |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
863 |
]. |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
864 |
holder := val asValue. |
163 | 865 |
holder addDependent:self. |
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
866 |
aspects at:key put:holder. |
163 | 867 |
]. |
868 |
||
221 | 869 |
slices := self class slices. |
870 |
size := slices size - 1. |
|
871 |
tabList := Array new:size. |
|
163 | 872 |
|
221 | 873 |
1 to:size do:[:i| tabList at:i put:((slices at:i) first) ]. |
163 | 874 |
! ! |
875 |
||
876 |
!UILayoutTool methodsFor:'selection'! |
|
877 |
||
878 |
selectedSlice |
|
2022 | 879 |
"returns the slice assigned to the selection or nil" |
880 |
||
881 |
selection isNil ifTrue:[^ nil]. |
|
882 |
^ self class slices detect:[:aSlice | aSlice first = selection] ifNone:nil |
|
883 |
||
884 |
"/ selection notNil ifTrue:[ |
|
885 |
"/ self class slices do:[:aSlice| |
|
886 |
"/ aSlice first = selection ifTrue:[ |
|
887 |
"/ ^ aSlice |
|
888 |
"/ ] |
|
889 |
"/ ] |
|
890 |
"/ ]. |
|
891 |
"/ ^ nil |
|
163 | 892 |
! |
893 |
||
894 |
selection |
|
895 |
^ selection |
|
896 |
! |
|
897 |
||
898 |
selection:aSelection |
|
1726 | 899 |
|appl slice sel key view| |
163 | 900 |
|
293 | 901 |
aSelection isNumber ifTrue:[ |
902 |
aSelection ~~ 0 ifTrue:[sel := tabList at:aSelection] |
|
903 |
] ifFalse:[ |
|
904 |
sel := aSelection |
|
905 |
]. |
|
1305 | 906 |
|
293 | 907 |
selection = sel ifFalse:[ |
908 |
(selection := sel) notNil ifTrue:[ |
|
1305 | 909 |
key := selection asSymbol. |
910 |
appl := toolsDictionary at:key ifAbsent:nil. |
|
911 |
||
912 |
appl isNil ifTrue:[ |
|
1334 | 913 |
view := ApplicationSubView new. |
1305 | 914 |
slice := self selectedSlice. |
915 |
appl := slice last asString. |
|
916 |
appl := Smalltalk classNamed:(self class name asString, '::', appl). |
|
917 |
appl := appl new. |
|
918 |
appl masterApplication:self. |
|
919 |
appl createBuilder. |
|
920 |
view client:appl. |
|
921 |
appl window:view. |
|
922 |
toolsDictionary at:key put:appl. |
|
923 |
] ifFalse:[ |
|
924 |
view := appl window |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
925 |
]. |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
926 |
modifiedHolder value:true. |
163 | 927 |
]. |
1305 | 928 |
currentTool := appl. |
929 |
self layoutCanvasHolder value:view. |
|
163 | 930 |
]. |
931 |
self update |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
932 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
933 |
"Modified: / 4.2.2000 / 22:31:41 / cg" |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
934 |
! ! |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
935 |
|
1343 | 936 |
!UILayoutTool::AnyLayout class methodsFor:'image specs'! |
937 |
||
938 |
imageAbsX |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
939 |
<resource: #image> |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
940 |
"This resource specification was automatically generated |
1343 | 941 |
by the ImageEditor of ST/X." |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
942 |
"Do not manually edit this!! If it is corrupted, |
1343 | 943 |
the ImageEditor may not be able to read the specification." |
944 |
" |
|
945 |
self imageAbsX inspect |
|
946 |
ImageEditor openOnClass:self andSelector:#imageAbsX |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
947 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
948 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
949 |
^ Icon constantNamed:'UILayoutTool::AnyLayout class imageAbsX' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
950 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
951 |
(Depth1Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
952 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
953 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
954 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
955 |
bitsPerSample:(#( 1 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
956 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
957 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
958 |
fromPackedString:' |
1343 | 959 |
<@BP@I@N$L*P*)BZ''8*@@(@B''8*P&)B*$L*PC)@@<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
960 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
961 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
962 |
colorMapFromArray:#[ 0 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
963 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
964 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
965 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
966 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
967 |
fromPackedString:'<@C0@O@N<L;0;/C>??;??/?>??;0?/C.<L;0C/@@<@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
968 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
969 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
970 |
] |
1447 | 971 |
! |
1343 | 972 |
|
973 |
imageAbsXFromRight |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
974 |
<resource: #image> |
1343 | 975 |
"This resource specification was automatically generated |
976 |
by the ImageEditor of ST/X." |
|
977 |
"Do not manually edit this!! If it is corrupted, |
|
978 |
the ImageEditor may not be able to read the specification." |
|
979 |
" |
|
980 |
self imageAbsXFromRight inspect |
|
981 |
ImageEditor openOnClass:self andSelector:#imageAbsXFromRight |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
982 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
983 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
984 |
^ Icon constantNamed:'UILayoutTool::AnyLayout class imageAbsXFromRight' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
985 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
986 |
(Depth1Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
987 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
988 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
989 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
990 |
bitsPerSample:(#( 1 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
991 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
992 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
993 |
fromPackedString:'@@<@BW@IT0%UBU$IT_%@@T@AT_%YBUTIT0%0BP@I@@<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
994 |
colorMapFromArray:#[ 0 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
995 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
996 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
997 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
998 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
999 |
fromPackedString:'@@<@C7@O\0=7C7<O_?=??7??_?=?C7\O\0=0C0@O@@<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1000 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1001 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1002 |
] |
1447 | 1003 |
! |
1343 | 1004 |
|
1005 |
imageAbsY |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1006 |
<resource: #image> |
1343 | 1007 |
"This resource specification was automatically generated |
1008 |
by the ImageEditor of ST/X." |
|
1009 |
"Do not manually edit this!! If it is corrupted, |
|
1010 |
the ImageEditor may not be able to read the specification." |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
1011 |
" |
1343 | 1012 |
self imageAbsY inspect |
1013 |
ImageEditor openOnClass:self andSelector:#imageAbsY |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1014 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1015 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1016 |
^ Icon constantNamed:'UILayoutTool::AnyLayout class imageAbsY' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1017 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1018 |
(Depth1Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1019 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1020 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1021 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1022 |
bitsPerSample:(#( 1 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1023 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1024 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1025 |
fromPackedString:'??>@@X@A?''<BP@I@@$@BPA98D@ HD@P O''0 AC?<@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1026 |
colorMapFromArray:#[ 0 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1027 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1028 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1029 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1030 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1031 |
fromPackedString:'??????????<C0@O@@<@C0A?8G? O<@_ O?0??C?<@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1032 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1033 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1034 |
] |
1447 | 1035 |
! |
1343 | 1036 |
|
1037 |
imageAbsYFromBottom |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1038 |
<resource: #image> |
1343 | 1039 |
"This resource specification was automatically generated |
1040 |
by the ImageEditor of ST/X." |
|
1041 |
"Do not manually edit this!! If it is corrupted, |
|
1042 |
the ImageEditor may not be able to read the specification." |
|
1043 |
" |
|
1044 |
self imageAbsYFromBottom inspect |
|
1045 |
ImageEditor openOnClass:self andSelector:#imageAbsYFromBottom |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1046 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1047 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1048 |
^ Icon constantNamed:'UILayoutTool::AnyLayout class imageAbsYFromBottom' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1049 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1050 |
(Depth1Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1051 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1052 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1053 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1054 |
bitsPerSample:(#( 1 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1055 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1056 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1057 |
fromPackedString:'@@@??B@DO''0DH@ PD@ ^^@I@@$@BP@I@?''>@@X@A??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1058 |
colorMapFromArray:#[ 0 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1059 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1060 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1061 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1062 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1063 |
fromPackedString:'@@@??C?<O?0G8@?0G? _>@O@@<@C0@O@??????????<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1064 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1065 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1066 |
] |
1447 | 1067 |
! |
1343 | 1068 |
|
1069 |
imageFractX |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1070 |
<resource: #image> |
1343 | 1071 |
"This resource specification was automatically generated |
1072 |
by the ImageEditor of ST/X." |
|
1073 |
"Do not manually edit this!! If it is corrupted, |
|
1074 |
the ImageEditor may not be able to read the specification." |
|
1075 |
" |
|
1076 |
self imageFractX inspect |
|
1077 |
ImageEditor openOnClass:self andSelector:#imageFractX |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1078 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1079 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1080 |
^ Icon constantNamed:'UILayoutTool::AnyLayout class imageFractX' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1081 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1082 |
(Depth1Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1083 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1084 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1085 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1086 |
bitsPerSample:(#( 1 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1087 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1088 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1089 |
fromPackedString:' |
1343 | 1090 |
<@>PBY@I&A&TJYII$X&@@X@A$X&RRYP)&A&PBY@I<@<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
1091 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1092 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1093 |
colorMapFromArray:#[ 0 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1094 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1095 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1096 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1097 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1098 |
fromPackedString:'<@?0C?@O>A?<O?9????????????>_?0?>A?0C?@O<@<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1099 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1100 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1101 |
] |
1447 | 1102 |
! |
1343 | 1103 |
|
1104 |
imageFractY |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1105 |
<resource: #image> |
1343 | 1106 |
"This resource specification was automatically generated |
1107 |
by the ImageEditor of ST/X." |
|
1108 |
"Do not manually edit this!! If it is corrupted, |
|
1109 |
the ImageEditor may not be able to read the specification." |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
1110 |
" |
1343 | 1111 |
self imageFractY inspect |
1112 |
ImageEditor openOnClass:self andSelector:#imageFractY |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1113 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1114 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1115 |
^ Icon constantNamed:'UILayoutTool::AnyLayout class imageFractY' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1116 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1117 |
(Depth1Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1118 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1119 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1120 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1121 |
bitsPerSample:(#( 1 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1122 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1123 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1124 |
fromPackedString:'??>@@X@A?''<PB@ PAB@BP@I@AB@HDA@H?''>@@X@A??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1125 |
colorMapFromArray:#[ 0 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1126 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1127 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1128 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1129 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1130 |
fromPackedString:'??????????<_>@?0A>@C0@O@A>@O<A?8??????????<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1131 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1132 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1133 |
] |
1447 | 1134 |
! ! |
1135 |
||
1136 |
!UILayoutTool::AlignmentOrigin class methodsFor:'help specs'! |
|
1137 |
||
1138 |
helpSpec |
|
1139 |
"This resource specification was automatically generated |
|
1140 |
by the UIHelpTool of ST/X." |
|
1141 |
||
1142 |
"Do not manually edit this!! If it is corrupted, |
|
1143 |
the UIHelpTool may not be able to read the specification." |
|
1144 |
||
1145 |
" |
|
1146 |
UIHelpTool openOnClass:UILayoutTool::AlignmentOrigin |
|
1147 |
" |
|
1148 |
||
1149 |
<resource: #help> |
|
1150 |
||
1151 |
^super helpSpec addPairsFrom:#( |
|
1152 |
||
1153 |
#alignBottomCenter |
|
2794 | 1154 |
'Aligns the widget''s bottomCenter to location.' |
1447 | 1155 |
|
1156 |
#alignBottomLeft |
|
2794 | 1157 |
'Aligns the widget''s bottomLeft to location.' |
1447 | 1158 |
|
1159 |
#alignBottomRight |
|
2794 | 1160 |
'Aligns the widget''s bottomRight to location.' |
1447 | 1161 |
|
1162 |
#alignCenter |
|
2794 | 1163 |
'Aligns the widget''s center to location.' |
1447 | 1164 |
|
1165 |
#alignHorizontal |
|
2794 | 1166 |
'Horizontal relative position of the alignment point of the widget (that point is aligned with the above origin).' |
1447 | 1167 |
|
1168 |
#alignLeftCenter |
|
2794 | 1169 |
'Aligns the widget''s leftCenter to location.' |
1447 | 1170 |
|
1171 |
#alignRightCenter |
|
2794 | 1172 |
'Aligns the widget''s rightCenter to location.' |
1447 | 1173 |
|
1174 |
#alignTopCenter |
|
2794 | 1175 |
'Aligns the widget''s topCenter to location.' |
1447 | 1176 |
|
1177 |
#alignTopLeft |
|
2794 | 1178 |
'Aligns the widget''s topLeft to location.' |
1447 | 1179 |
|
1180 |
#alignTopRight |
|
2794 | 1181 |
'Aligns the widget''s topRight to location.' |
1447 | 1182 |
|
1183 |
#alignVertical |
|
2794 | 1184 |
'Vertical relative position of the alignment point of the widget (that point is aligned with the above origin).' |
1447 | 1185 |
|
1186 |
) |
|
2794 | 1187 |
|
1188 |
"Modified: / 28-07-2010 / 10:05:41 / cg" |
|
1447 | 1189 |
! ! |
1190 |
||
1191 |
!UILayoutTool::AlignmentOrigin class methodsFor:'interface specs'! |
|
1192 |
||
1193 |
windowSpec |
|
1194 |
"This resource specification was automatically generated |
|
1195 |
by the UIPainter of ST/X." |
|
1196 |
||
1197 |
"Do not manually edit this!! If it is corrupted, |
|
1198 |
the UIPainter may not be able to read the specification." |
|
1199 |
||
1200 |
" |
|
1201 |
UIPainter new openOnClass:UILayoutTool::AlignmentOrigin andSelector:#windowSpec |
|
1202 |
UILayoutTool::AlignmentOrigin new openInterface:#windowSpec |
|
1203 |
UILayoutTool::AlignmentOrigin open |
|
1204 |
" |
|
1205 |
||
1206 |
<resource: #canvas> |
|
1207 |
||
1208 |
^ |
|
3052 | 1209 |
#(FullSpec |
1210 |
name: windowSpec |
|
1211 |
window: |
|
1212 |
(WindowSpec |
|
1213 |
label: 'UILayoutTool-AlignmentOrigin' |
|
1214 |
name: 'UILayoutTool-AlignmentOrigin' |
|
1215 |
min: (Point 10 10) |
|
1216 |
bounds: (Rectangle 0 0 405 220) |
|
1217 |
) |
|
1218 |
component: |
|
1219 |
(SpecCollection |
|
1220 |
collection: ( |
|
1221 |
(UISubSpecification |
|
1222 |
name: 'layoutOriginSpec' |
|
1223 |
layout: (LayoutFrame 1 0.0 6 0 0 1.0 111 0) |
|
1224 |
majorKey: UILayoutTool |
|
1225 |
minorKey: layoutOriginSpec |
|
1226 |
) |
|
1227 |
(FramedBoxSpec |
|
1228 |
label: 'Alignment' |
|
1229 |
name: 'FramedBox' |
|
1230 |
layout: (LayoutFrame 1 0.0 113 0 0 1.0 215 0) |
|
1231 |
labelPosition: topLeft |
|
1232 |
translateLabel: true |
|
1233 |
component: |
|
1234 |
(SpecCollection |
|
1235 |
collection: ( |
|
1236 |
(LabelSpec |
|
1237 |
label: 'Horizontal:' |
|
1238 |
name: 'alignHLabel' |
|
1239 |
layout: (AlignmentOrigin 88 0 17 0 1 0) |
|
1240 |
translateLabel: true |
|
1241 |
adjust: right |
|
1242 |
) |
|
1243 |
(InputFieldSpec |
|
1244 |
name: 'leftAlignmentFractionField' |
|
1245 |
layout: (LayoutFrame 90 0 14 0 147 0 36 0) |
|
1246 |
activeHelpKey: alignHorizontal |
|
1247 |
tabable: true |
|
1248 |
model: leftAlignmentFraction |
|
1249 |
group: inputGroup |
|
1250 |
type: numberOrNil |
|
1251 |
acceptOnLostFocus: true |
|
1252 |
acceptChannel: acceptChannel |
|
1253 |
modifiedChannel: modifiedChannel |
|
1254 |
acceptOnPointerLeave: true |
|
1255 |
) |
|
1256 |
(LabelSpec |
|
1257 |
label: 'Vertical:' |
|
1258 |
name: 'alignVLabel' |
|
1259 |
layout: (AlignmentOrigin 88 0 43 0 1 0) |
|
1260 |
translateLabel: true |
|
1261 |
adjust: right |
|
1262 |
) |
|
1263 |
(InputFieldSpec |
|
1264 |
name: 'topAlignmentFractionField' |
|
1265 |
layout: (LayoutFrame 90 0 40 0 147 0 62 0) |
|
1266 |
activeHelpKey: alignVertical |
|
1267 |
tabable: true |
|
1268 |
model: topAlignmentFraction |
|
1269 |
group: inputGroup |
|
1270 |
type: numberOrNil |
|
1271 |
acceptOnLostFocus: true |
|
1272 |
acceptChannel: acceptChannel |
|
1273 |
modifiedChannel: modifiedChannel |
|
1274 |
acceptOnPointerLeave: true |
|
1275 |
) |
|
1276 |
(DividerSpec |
|
1277 |
name: 'separator1' |
|
1278 |
layout: (LayoutFrame 204 0 19 0 245 0 22 0) |
|
1279 |
) |
|
1280 |
(DividerSpec |
|
1281 |
name: 'separator2' |
|
1282 |
layout: (LayoutFrame 204 0 55 0 245 0 58 0) |
|
1447 | 1283 |
) |
3052 | 1284 |
(DividerSpec |
1285 |
name: 'separator3' |
|
1286 |
layout: (LayoutFrame 196 0 28 0 199 0 50 0) |
|
1287 |
orientation: vertical |
|
1288 |
) |
|
1289 |
(DividerSpec |
|
1290 |
name: 'separator4' |
|
1291 |
layout: (LayoutFrame 250 0 28 0 253 0 50 0) |
|
1292 |
orientation: vertical |
|
1293 |
) |
|
1294 |
(ActionButtonSpec |
|
1295 |
name: 'alignTopLeft' |
|
1296 |
layout: (LayoutFrame 190 0 14 0 204 0 28 0) |
|
1297 |
activeHelpKey: alignTopLeft |
|
1298 |
tabable: true |
|
1299 |
model: alignTopLeft |
|
1300 |
) |
|
1301 |
(ActionButtonSpec |
|
1302 |
name: 'alignTopCenter' |
|
1303 |
layout: (LayoutFrame 217 0 14 0 231 0 28 0) |
|
1304 |
activeHelpKey: alignTopCenter |
|
1305 |
tabable: true |
|
1306 |
model: alignTopCenter |
|
1307 |
) |
|
1308 |
(ActionButtonSpec |
|
1309 |
name: 'alignTopRight' |
|
1310 |
layout: (LayoutFrame 245 0 14 0 259 0 28 0) |
|
1311 |
activeHelpKey: alignTopRight |
|
1312 |
tabable: true |
|
1313 |
model: alignTopRight |
|
1314 |
) |
|
1315 |
(ActionButtonSpec |
|
1316 |
name: 'alignLeftCenter' |
|
1317 |
layout: (LayoutFrame 190 0 32 0 204 0 46 0) |
|
1318 |
activeHelpKey: alignLeftCenter |
|
1319 |
tabable: true |
|
1320 |
model: alignLeftCenter |
|
1321 |
) |
|
1322 |
(ActionButtonSpec |
|
1323 |
name: 'alignCenter' |
|
1324 |
layout: (LayoutFrame 217 0 32 0 231 0 46 0) |
|
1325 |
activeHelpKey: alignCenter |
|
1326 |
tabable: true |
|
1327 |
model: alignCenter |
|
1328 |
) |
|
1329 |
(ActionButtonSpec |
|
1330 |
name: 'alignRightCenter' |
|
1331 |
layout: (LayoutFrame 245 0 32 0 259 0 46 0) |
|
1332 |
activeHelpKey: alignRightCenter |
|
1333 |
tabable: true |
|
1334 |
model: alignRightCenter |
|
1335 |
) |
|
1336 |
(ActionButtonSpec |
|
1337 |
name: 'alignBottomLeft' |
|
1338 |
layout: (LayoutFrame 190 0 50 0 204 0 64 0) |
|
1339 |
activeHelpKey: alignBottomLeft |
|
1340 |
tabable: true |
|
1341 |
model: alignBottomLeft |
|
1342 |
) |
|
1343 |
(ActionButtonSpec |
|
1344 |
name: 'alignBottomCenter' |
|
1345 |
layout: (LayoutFrame 217 0 50 0 231 0 64 0) |
|
1346 |
activeHelpKey: alignBottomCenter |
|
1347 |
tabable: true |
|
1348 |
model: alignBottomCenter |
|
1349 |
) |
|
1350 |
(ActionButtonSpec |
|
1351 |
name: 'alignBottomRight' |
|
1352 |
layout: (LayoutFrame 245 0 50 0 259 0 64 0) |
|
1353 |
activeHelpKey: alignBottomRight |
|
1354 |
tabable: true |
|
1355 |
model: alignBottomRight |
|
1356 |
) |
|
1357 |
) |
|
1358 |
||
1359 |
) |
|
1447 | 1360 |
) |
3052 | 1361 |
) |
1362 |
||
1363 |
) |
|
1364 |
) |
|
1447 | 1365 |
! ! |
1366 |
||
1367 |
!UILayoutTool::AlignmentOrigin methodsFor:'accessing'! |
|
1368 |
||
1369 |
fetch:aView spec:aSpec |
|
1370 |
"fetch alignmentOrigin |
|
1371 |
" |
|
1372 |
|layout type |
|
1373 |
leftAlignmentFractionHolder topAlignmentFractionHolder |
|
1374 |
leftOffsetHolder leftFractionHolder topOffsetHolder topFractionHolder| |
|
1375 |
||
1376 |
type := UIPainterView layoutType:aView. |
|
1377 |
layout := aView geometryLayout. |
|
1378 |
||
1379 |
leftOffsetHolder := (self aspectFor:#leftOffset). |
|
1380 |
leftFractionHolder := (self aspectFor:#leftFraction). |
|
1381 |
topOffsetHolder := (self aspectFor:#topOffset). |
|
1382 |
topFractionHolder := (self aspectFor:#topFraction). |
|
1383 |
leftAlignmentFractionHolder := (self aspectFor:#leftAlignmentFraction). |
|
1384 |
topAlignmentFractionHolder := (self aspectFor:#topAlignmentFraction). |
|
1385 |
||
1386 |
layout isLayout ifTrue:[ |
|
1387 |
leftOffsetHolder value:(layout leftOffset). |
|
1388 |
leftFractionHolder value:(layout leftFraction). |
|
1389 |
topOffsetHolder value:(layout topOffset). |
|
1390 |
topFractionHolder value:(layout topFraction). |
|
1391 |
||
1392 |
type == #AlignmentOrigin ifTrue:[ |
|
1393 |
leftAlignmentFractionHolder value:(layout leftAlignmentFraction). |
|
1394 |
topAlignmentFractionHolder value:(layout topAlignmentFraction). |
|
1395 |
^ self |
|
1396 |
] |
|
1397 |
] ifFalse:[ |
|
1398 |
layout := aView computeOrigin. |
|
1399 |
||
1400 |
leftOffsetHolder value:(layout x). |
|
1401 |
leftFractionHolder value:0. |
|
1402 |
topOffsetHolder value:(layout y). |
|
1403 |
topFractionHolder value:0. |
|
1404 |
]. |
|
1405 |
leftAlignmentFractionHolder value:0. |
|
1406 |
topAlignmentFractionHolder value:0. |
|
1407 |
||
1408 |
||
1409 |
! |
|
1410 |
||
1411 |
layout |
|
1412 |
"returns current layout as alignmentOrigin |
|
1413 |
" |
|
1414 |
|layout| |
|
1415 |
||
1416 |
layout := Smalltalk::AlignmentOrigin new. |
|
1417 |
||
1581 | 1418 |
layout |
1419 |
leftFraction:(((self aspectFor:#leftFraction) value) ? 0) |
|
1420 |
offset:(((self aspectFor:#leftOffset) value) ? 0) |
|
1421 |
topFraction:(((self aspectFor:#topFraction) value) ? 0) |
|
1422 |
offset:(((self aspectFor:#topOffset) value) ? 0). |
|
1423 |
||
1424 |
layout |
|
1425 |
leftAlignmentFraction:(((self aspectFor:#leftAlignmentFraction) value) ? 0) |
|
1426 |
topAlignmentFraction:(((self aspectFor:#topAlignmentFraction) value) ? 0). |
|
1447 | 1427 |
|
1428 |
^ layout |
|
1429 |
! ! |
|
1430 |
||
1431 |
!UILayoutTool::AlignmentOrigin methodsFor:'alignment'! |
|
1432 |
||
1433 |
alignBottomCenter |
|
1434 |
self makeAlignLeft:0.5 top:1 |
|
1435 |
||
1436 |
||
1437 |
! |
|
1438 |
||
1439 |
alignBottomLeft |
|
1440 |
self makeAlignLeft:0 top:1 |
|
1441 |
||
1442 |
||
1443 |
! |
|
1444 |
||
1445 |
alignBottomRight |
|
1446 |
self makeAlignLeft:1 top:1 |
|
1447 |
||
1448 |
||
1449 |
! |
|
1450 |
||
1451 |
alignCenter |
|
1452 |
self makeAlignLeft:0.5 top:0.5 |
|
1453 |
||
1454 |
||
1455 |
! |
|
1456 |
||
1457 |
alignLeftCenter |
|
1458 |
self makeAlignLeft:0 top:0.5 |
|
1459 |
||
1460 |
||
1461 |
! |
|
1462 |
||
1463 |
alignRightCenter |
|
1464 |
self makeAlignLeft:1 top:0.5 |
|
1465 |
||
1466 |
||
1467 |
! |
|
1468 |
||
1469 |
alignTopCenter |
|
1470 |
self makeAlignLeft:0.5 top:0 |
|
1471 |
||
1472 |
||
1473 |
! |
|
1474 |
||
1475 |
alignTopLeft |
|
1476 |
self makeAlignLeft:0 top:0 |
|
1477 |
||
1478 |
||
1479 |
! |
|
1480 |
||
1481 |
alignTopRight |
|
1482 |
self makeAlignLeft:1 top:0 |
|
1483 |
||
1484 |
||
1485 |
! |
|
1486 |
||
1487 |
makeAlignLeft:leftAlignmentFraction top:topAlignmentFraction |
|
1488 |
|lAF tAF lO tO ext lAHolder tAHolder lOHolder tOHolder| |
|
1489 |
||
1490 |
lAF := (lAHolder := self aspectFor:#leftAlignmentFraction) value ? 0. |
|
1491 |
tAF := (tAHolder := self aspectFor:#topAlignmentFraction) value ? 0. |
|
1492 |
ext := (self aspectFor:#layoutView) computeExtent. |
|
1493 |
||
1494 |
lAHolder value:leftAlignmentFraction. |
|
1495 |
tAHolder value:topAlignmentFraction. |
|
1496 |
||
1497 |
lO := (lOHolder := self aspectFor:#leftOffset) value ? 0. |
|
1498 |
tO := (tOHolder := self aspectFor:#topOffset) value ? 0. |
|
1499 |
||
1500 |
lO := lO + (ext x * (leftAlignmentFraction - lAF)). |
|
1501 |
tO := tO + (ext y * (topAlignmentFraction - tAF)). |
|
1502 |
||
1503 |
lOHolder value:(lO rounded). |
|
1504 |
tOHolder value:(tO rounded). |
|
1505 |
||
1506 |
! |
|
1507 |
||
1508 |
makeAlignTopRight |
|
1509 |
self makeAlignLeft:1 top:0 |
|
1510 |
||
1511 |
||
1512 |
! ! |
|
1513 |
||
1514 |
!UILayoutTool::Extent class methodsFor:'help specs'! |
|
1515 |
||
1516 |
helpSpec |
|
1517 |
"This resource specification was automatically generated |
|
1518 |
by the UIHelpTool of ST/X." |
|
1519 |
||
1520 |
"Do not manually edit this!! If it is corrupted, |
|
1521 |
the UIHelpTool may not be able to read the specification." |
|
1522 |
||
1523 |
" |
|
1524 |
UIHelpTool openOnClass:UILayoutTool::Extent |
|
1525 |
" |
|
1526 |
||
1527 |
<resource: #help> |
|
1528 |
||
2949 | 1529 |
^ super helpSpec addPairsFrom:#( |
1447 | 1530 |
|
1531 |
#hrzExtent |
|
1532 |
'Horizontal extent of the selected widget.' |
|
1533 |
||
2949 | 1534 |
#useDynamicPreferredWidth |
1535 |
'Dynamically adapt to any change of the widget''s preferred width' |
|
1536 |
||
1537 |
#useDynamicPreferredHeight |
|
1538 |
'Dynamically adapt to any change of the widget''s preferred height' |
|
1539 |
||
1540 |
#usePreferredHeight |
|
1541 |
'Use the widget''s preferred height as initial size' |
|
1542 |
||
1543 |
#usePreferredWidth |
|
1544 |
'Use the widget''s preferred width as initial size' |
|
1545 |
||
1546 |
#useDefaultExtent |
|
1547 |
'Use the widget''s default extent as initial size' |
|
1548 |
||
1447 | 1549 |
#vrtExtent |
1550 |
'Vertical extent of the selected widget.' |
|
1551 |
||
1552 |
) |
|
1553 |
! ! |
|
1554 |
||
1555 |
!UILayoutTool::Extent class methodsFor:'interface specs'! |
|
1556 |
||
1557 |
windowSpec |
|
1558 |
"This resource specification was automatically generated |
|
1559 |
by the UIPainter of ST/X." |
|
1560 |
||
1561 |
"Do not manually edit this!! If it is corrupted, |
|
1562 |
the UIPainter may not be able to read the specification." |
|
1563 |
||
1564 |
" |
|
1565 |
UIPainter new openOnClass:UILayoutTool::Extent andSelector:#windowSpec |
|
1566 |
UILayoutTool::Extent new openInterface:#windowSpec |
|
1567 |
UILayoutTool::Extent open |
|
1568 |
" |
|
1569 |
||
1570 |
<resource: #canvas> |
|
1571 |
||
1572 |
^ |
|
3052 | 1573 |
#(FullSpec |
1574 |
name: windowSpec |
|
1575 |
window: |
|
1576 |
(WindowSpec |
|
1577 |
label: 'UILayoutTool-Extent' |
|
1578 |
name: 'UILayoutTool-Extent' |
|
1579 |
min: (Point 10 10) |
|
1580 |
bounds: (Rectangle 0 0 506 169) |
|
1581 |
) |
|
1582 |
component: |
|
1583 |
(SpecCollection |
|
1584 |
collection: ( |
|
1585 |
(FramedBoxSpec |
|
1586 |
label: 'Extent' |
|
1587 |
name: 'FramedBox' |
|
1588 |
layout: (LayoutFrame 0 0.0 6 0.0 0 1.0 158 0) |
|
1589 |
labelPosition: topLeft |
|
1590 |
translateLabel: true |
|
1591 |
component: |
|
1592 |
(SpecCollection |
|
1593 |
collection: ( |
|
1594 |
(LabelSpec |
|
1595 |
label: 'Width:' |
|
1596 |
name: 'labelWidth' |
|
1597 |
layout: (AlignmentOrigin 89 0 41 0 1 0.5) |
|
1598 |
translateLabel: true |
|
1599 |
adjust: right |
|
1600 |
) |
|
1601 |
(InputFieldSpec |
|
1602 |
name: 'fieldLeftOffset' |
|
1603 |
layout: (LayoutFrame 90 0 30 0 140 0 52 0) |
|
1604 |
activeHelpKey: hrzExtent |
|
1605 |
enableChannel: notUsingDefaultExtent |
|
1606 |
tabable: true |
|
1607 |
model: leftOffset |
|
1608 |
group: inputGroup |
|
1609 |
type: numberOrNil |
|
1610 |
acceptOnLostFocus: true |
|
1611 |
acceptChannel: acceptChannel |
|
1612 |
modifiedChannel: modifiedChannel |
|
1613 |
acceptOnPointerLeave: true |
|
1614 |
) |
|
1615 |
(LabelSpec |
|
1616 |
label: 'Height:' |
|
1617 |
name: 'labelHeight' |
|
1618 |
layout: (AlignmentOrigin 89 0 66 0 1 0.5) |
|
1619 |
translateLabel: true |
|
1620 |
adjust: right |
|
1447 | 1621 |
) |
3052 | 1622 |
(InputFieldSpec |
1623 |
name: 'fieldRightOffset' |
|
1624 |
layout: (LayoutFrame 90 0 55 0 140 0 77 0) |
|
1625 |
activeHelpKey: vrtExtent |
|
1626 |
enableChannel: notUsingDefaultExtent |
|
1627 |
tabable: true |
|
1628 |
model: topOffset |
|
1629 |
group: inputGroup |
|
1630 |
type: numberOrNil |
|
1631 |
acceptOnLostFocus: true |
|
1632 |
acceptChannel: acceptChannel |
|
1633 |
modifiedChannel: modifiedChannel |
|
1634 |
acceptOnPointerLeave: true |
|
1635 |
) |
|
1636 |
(CheckBoxSpec |
|
1637 |
label: 'Preferred' |
|
1638 |
name: 'CheckBox1' |
|
1639 |
layout: (LayoutFrame 169 0 30 0 275 0 52 0) |
|
1640 |
activeHelpKey: usePreferredWidth |
|
1641 |
model: usePreferredWidth |
|
1642 |
translateLabel: true |
|
1643 |
) |
|
1644 |
(CheckBoxSpec |
|
1645 |
label: 'Dynamic' |
|
1646 |
name: 'CheckBox3' |
|
1647 |
layout: (LayoutFrame 276 0 30 0 371 0 52 0) |
|
1648 |
activeHelpKey: useDynamicPreferredWidth |
|
1649 |
model: useDynamicPreferredWidth |
|
1650 |
translateLabel: true |
|
1651 |
) |
|
1652 |
(CheckBoxSpec |
|
1653 |
label: 'Preferred' |
|
1654 |
name: 'CheckBox2' |
|
1655 |
layout: (LayoutFrame 169 0 58 0 275 0 80 0) |
|
1656 |
activeHelpKey: usePreferredHeight |
|
1657 |
model: usePreferredHeight |
|
1658 |
translateLabel: true |
|
1659 |
) |
|
1660 |
(CheckBoxSpec |
|
1661 |
label: 'Dynamic' |
|
1662 |
name: 'CheckBox4' |
|
1663 |
layout: (LayoutFrame 276 0 58 0 372 0 80 0) |
|
1664 |
activeHelpKey: useDynamicPreferredHeight |
|
1665 |
model: useDynamicPreferredHeight |
|
1666 |
translateLabel: true |
|
1667 |
) |
|
1668 |
(CheckBoxSpec |
|
1669 |
label: 'Use Widget''s Default Extent' |
|
1670 |
name: 'useDefaultExtentCheckBox' |
|
1671 |
layout: (Point 5 84) |
|
1672 |
activeHelpKey: useDefaultExtent |
|
1673 |
enableChannel: defaultExtentEnabled |
|
1674 |
tabable: true |
|
1675 |
model: useDefaultExtent |
|
1676 |
translateLabel: true |
|
1677 |
) |
|
1678 |
) |
|
1679 |
||
1680 |
) |
|
1447 | 1681 |
) |
3052 | 1682 |
(PopUpListSpec |
1683 |
label: 'Common Extents' |
|
1684 |
name: 'CommonExtentsPopUpList' |
|
1685 |
layout: (LayoutFrame 189 0 21 0 314 0 43 0) |
|
1686 |
tabable: true |
|
1687 |
menu: listOfCommonExtents |
|
1688 |
useIndex: true |
|
1689 |
ignoreReselect: false |
|
1690 |
stateChangeCallBackSelector: commonExtentSelected: |
|
1691 |
) |
|
1692 |
) |
|
1693 |
||
1694 |
) |
|
1695 |
) |
|
1447 | 1696 |
! ! |
1697 |
||
1698 |
!UILayoutTool::Extent methodsFor:'accessing'! |
|
1699 |
||
1700 |
fetch:aView spec:aSpec |
|
2022 | 1701 |
"fetch the extent from aView" |
1702 |
||
1447 | 1703 |
|extent| |
1704 |
||
1705 |
extent := aView computeExtent. |
|
1706 |
||
1707 |
(self aspectFor:#leftOffset) value:(extent x). |
|
2022 | 1708 |
(self aspectFor:#topOffset) value:(extent y). |
1447 | 1709 |
|
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1710 |
(self aspectFor:#usePreferredWidth) value:(aSpec usePreferredWidth). |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1711 |
(self aspectFor:#usePreferredHeight) value:(aSpec usePreferredHeight). |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1712 |
(self aspectFor:#useDynamicPreferredWidth) value:(aSpec useDynamicPreferredWidth). |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1713 |
(self aspectFor:#useDynamicPreferredHeight) value:(aSpec useDynamicPreferredHeight). |
1447 | 1714 |
(self aspectFor:#useDefaultExtent) value:aSpec useDefaultExtent |
1715 |
! |
|
1716 |
||
1717 |
layout |
|
2022 | 1718 |
"returns the current extent" |
1719 |
||
1720 |
^ (((self aspectFor:#leftOffset) value) ? 0) @ (((self aspectFor:#topOffset) value) ? 0) |
|
1721 |
! ! |
|
1722 |
||
1723 |
!UILayoutTool::Extent methodsFor:'aspects'! |
|
1724 |
||
1725 |
commonExtentsSpec |
|
1726 |
^ #( |
|
1727 |
('200 x 100' (200 100) ) |
|
1728 |
('300 x 300' (300 300) ) |
|
1729 |
('640 x 400' (640 400) ) |
|
1730 |
('800 x 600' (800 600) ) |
|
2214 | 1731 |
('1024 x 768' (1024 768) ) |
1732 |
('1200 x 800' (1200 800) ) |
|
2022 | 1733 |
) |
1734 |
! |
|
1735 |
||
1736 |
listOfCommonExtents |
|
1737 |
^ self commonExtentsSpec collect:[:eachRow | eachRow first]. |
|
1738 |
! ! |
|
1739 |
||
1740 |
!UILayoutTool::Extent methodsFor:'user actions'! |
|
1741 |
||
1742 |
commonExtentSelected:index |
|
1743 |
|xy x y| |
|
1744 |
||
1745 |
xy := (self commonExtentsSpec at:index) second. |
|
1746 |
x := xy at:1. |
|
1747 |
y := xy at:2. |
|
1748 |
||
1749 |
(self aspectFor:#leftOffset) value:x. |
|
1750 |
(self aspectFor:#topOffset) value:y. |
|
1751 |
||
1752 |
(builder componentAt:#CommonExtentsPopUpList) |
|
1753 |
label:(resources string:'Common Extents'). |
|
1447 | 1754 |
! ! |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
1755 |
|
1826 | 1756 |
!UILayoutTool::LayoutFrame class methodsFor:'defaults'! |
1757 |
||
1758 |
defaultFixPartHeight |
|
1759 |
^ DefaultFixPartHeight ? 30 |
|
1760 |
! ! |
|
1761 |
||
1409 | 1762 |
!UILayoutTool::LayoutFrame class methodsFor:'help specs'! |
1763 |
||
1764 |
helpSpec |
|
1765 |
"This resource specification was automatically generated |
|
1766 |
by the UIHelpTool of ST/X." |
|
1767 |
||
1768 |
"Do not manually edit this!! If it is corrupted, |
|
1769 |
the UIHelpTool may not be able to read the specification." |
|
1770 |
||
1771 |
" |
|
1772 |
UIHelpTool openOnClass:UILayoutTool::LayoutFrame |
|
1773 |
" |
|
1774 |
||
1775 |
<resource: #help> |
|
1776 |
||
1858 | 1777 |
^ super helpSpec addPairsFrom:#( |
1409 | 1778 |
|
2949 | 1779 |
#bigBottomFixPartLayout |
1780 |
'Set layout for a big fixed area at the bottom of the widgets container' |
|
1781 |
||
1782 |
#bigHorizontalFixPartLayout |
|
1783 |
'Set layout for a big fixed-height area centered vertically in the widgets container' |
|
1784 |
||
1785 |
#bigTopFixPartLayout |
|
1786 |
'Set layout for a big fixed area at the top of the widgets container' |
|
1787 |
||
1409 | 1788 |
#bottomAbsolute |
1789 |
'Offset of the bottom edge; positive is to the bottom, negative to the top.' |
|
1790 |
||
1791 |
#bottomFixPartLayout |
|
1858 | 1792 |
'Set layout for a small fixed area at the bottom of the widgets container' |
1409 | 1793 |
|
1794 |
#bottomHalfLayout |
|
1858 | 1795 |
'Set layout for the bottom half of the widgets container' |
1409 | 1796 |
|
1797 |
#bottomLeftQuarterLayout |
|
1858 | 1798 |
'Set layout for the bottom-left quarter of the widgets container' |
1409 | 1799 |
|
1800 |
#bottomRelative |
|
1801 |
'Relative corner y of the selected widget.' |
|
1802 |
||
1803 |
#bottomRightQuarterLayout |
|
1858 | 1804 |
'Set layout for the bottom-right quarter of the widgets container' |
1805 |
||
1806 |
#fullLayout |
|
1807 |
'Set layout to fill all of the widgets container' |
|
1409 | 1808 |
|
1809 |
#horizontalFixPartLayout |
|
1858 | 1810 |
'Set layout for a small fixed-height area centered vertically in the widgets container' |
1811 |
||
2953 | 1812 |
#keepSpaceForOSXResizeHandleH |
2949 | 1813 |
'Keep space at the right for the window resize handle under MAXOS-X; ignored when running on other systems' |
1409 | 1814 |
|
2953 | 1815 |
#keepSpaceForOSXResizeHandleV |
1816 |
'Keep space at the bottom for the window resize handle under MAXOS-X; ignored when running on other systems' |
|
1817 |
||
1409 | 1818 |
#leftFixPartLayout |
1858 | 1819 |
'Set layout for a small fixed area at the left of the widgets container' |
1409 | 1820 |
|
1821 |
#leftHalfLayout |
|
1858 | 1822 |
'Set layout for the left half of the widgets container' |
1409 | 1823 |
|
1824 |
#makeBottomAbsolute |
|
1825 |
'Compute pure-absolute y.' |
|
1826 |
||
1827 |
#makeBottomRelative |
|
1955 | 1828 |
'Compute pure-fractional y.' |
1409 | 1829 |
|
1830 |
#makeBottomRelativeFromBottom |
|
2022 | 1831 |
'Compute fraction+offset for y relative to containers bottom.' |
1409 | 1832 |
|
1833 |
#makeRightAbsolute |
|
1834 |
'Compute pure-absolute x.' |
|
1835 |
||
1836 |
#makeRightRelative |
|
1955 | 1837 |
'Compute pure-fractional x.' |
1409 | 1838 |
|
1839 |
#makeRightRelativeFromRight |
|
1840 |
'Compute fraction+offset for x relative to containers right.' |
|
1841 |
||
1842 |
#rightAbsolute |
|
1843 |
'Offset of the right edge; positive is to the right, negative to the left.' |
|
1844 |
||
1845 |
#rightFixPartLayout |
|
1858 | 1846 |
'Set layout for a small fixed area at the right of the widgets container' |
1409 | 1847 |
|
1848 |
#rightHalfLayout |
|
1858 | 1849 |
'Set layout for the right half of the widgets container' |
1409 | 1850 |
|
1851 |
#rightRelative |
|
1852 |
'Relative corner x of the selected widget.' |
|
1853 |
||
1858 | 1854 |
#screenFrameLayout |
1855 |
'' |
|
1856 |
||
2949 | 1857 |
#useDynamicPreferredWidth |
1858 |
'Dynamically adapt to any change of the widget''s preferred width' |
|
1859 |
||
1860 |
#useDynamicPreferredHeight |
|
1861 |
'Dynamically adapt to any change of the widget''s preferred height' |
|
1862 |
||
1863 |
#usePreferredHeight |
|
1864 |
'Use the widget''s preferred height as initial size' |
|
1865 |
||
1866 |
#usePreferredWidth |
|
1867 |
'Use the widget''s preferred width as initial size' |
|
1868 |
||
1869 |
||
1409 | 1870 |
#topFixPartLayout |
1858 | 1871 |
'Set layout for a small fixed area at the top of the widgets container' |
1872 |
||
1409 | 1873 |
#topHalfLayout |
1858 | 1874 |
'Set layout for the top half of the widgets container' |
1409 | 1875 |
|
1876 |
#topLeftQuarterLayout |
|
1858 | 1877 |
'Set layout for the top-left quarter of the widgets container' |
1409 | 1878 |
|
1879 |
#topRightQuarterLayout |
|
1858 | 1880 |
'Set layout for the top-right quarter of the widgets container' |
1409 | 1881 |
|
1882 |
#verticalFixPartLayout |
|
1858 | 1883 |
'Set layout for a small fixed-width area centered horizontally in the widgets container' |
1409 | 1884 |
|
1885 |
) |
|
1886 |
! ! |
|
1887 |
||
1888 |
!UILayoutTool::LayoutFrame class methodsFor:'image specs'! |
|
1889 |
||
1706 | 1890 |
setBigBottomFixPartIcon |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1891 |
<resource: #image> |
1706 | 1892 |
"This resource specification was automatically generated |
1893 |
by the ImageEditor of ST/X." |
|
1894 |
"Do not manually edit this!! If it is corrupted, |
|
1895 |
the ImageEditor may not be able to read the specification." |
|
1896 |
" |
|
1897 |
self setBigBottomFixPartIcon inspect |
|
1898 |
ImageEditor openOnClass:self andSelector:#setBigBottomFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1899 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1900 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1901 |
^ Icon |
2269 | 1902 |
constantNamed:'UILayoutTool::LayoutFrame class setBigBottomFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1903 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1904 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1905 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1906 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1907 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1908 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1909 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1910 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1911 |
fromPackedString:' |
2022 | 1912 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"H"H"@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1913 |
DQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H"H"H"H"H @@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1914 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1915 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1916 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1917 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1918 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1919 |
fromPackedString:'??>A XFA XFA _????????????????????????????<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1920 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1921 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1922 |
] |
1706 | 1923 |
! |
1924 |
||
1925 |
setBigHorizontalFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1926 |
<resource: #image> |
1706 | 1927 |
"This resource specification was automatically generated |
1928 |
by the ImageEditor of ST/X." |
|
1929 |
"Do not manually edit this!! If it is corrupted, |
|
1930 |
the ImageEditor may not be able to read the specification." |
|
1931 |
" |
|
1932 |
self setBigHorizontalFixPartIcon inspect |
|
1933 |
ImageEditor openOnClass:self andSelector:#setBigHorizontalFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1934 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1935 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1936 |
^ Icon |
2269 | 1937 |
constantNamed:'UILayoutTool::LayoutFrame class setBigHorizontalFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1938 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1939 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1940 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1941 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1942 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1943 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1944 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1945 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1946 |
fromPackedString:' |
2022 | 1947 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H" |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1948 |
H"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1949 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1950 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1951 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1952 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1953 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1954 |
fromPackedString:'??>A XFA??????????????????????????>A XFA??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1955 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1956 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1957 |
] |
1706 | 1958 |
! |
1959 |
||
1960 |
setBigTopFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1961 |
<resource: #image> |
1706 | 1962 |
"This resource specification was automatically generated |
1963 |
by the ImageEditor of ST/X." |
|
1964 |
"Do not manually edit this!! If it is corrupted, |
|
1965 |
the ImageEditor may not be able to read the specification." |
|
1966 |
" |
|
1967 |
self setBigTopFixPartIcon inspect |
|
1968 |
ImageEditor openOnClass:self andSelector:#setBigTopFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1969 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1970 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1971 |
^ Icon |
2269 | 1972 |
constantNamed:'UILayoutTool::LayoutFrame class setBigTopFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1973 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1974 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1975 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1976 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1977 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1978 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1979 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1980 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1981 |
fromPackedString:' |
2022 | 1982 |
@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @"H"H"H"H"@@@@@@@@@@@@@@ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1983 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1984 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1985 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1986 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1987 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1988 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1989 |
fromPackedString:'?????????????????????????????8FA XFA XFA??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1990 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1991 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1992 |
] |
1706 | 1993 |
! |
1994 |
||
1409 | 1995 |
setBottomFixPartIcon |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1996 |
<resource: #image> |
1409 | 1997 |
"This resource specification was automatically generated |
1998 |
by the ImageEditor of ST/X." |
|
1999 |
"Do not manually edit this!! If it is corrupted, |
|
2000 |
the ImageEditor may not be able to read the specification." |
|
2001 |
" |
|
2002 |
self setBottomFixPartIcon inspect |
|
2003 |
ImageEditor openOnClass:self andSelector:#setBottomFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2004 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2005 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2006 |
^ Icon |
2269 | 2007 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2008 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2009 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2010 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2011 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2012 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2013 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2014 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2015 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2016 |
fromPackedString:' |
2269 | 2017 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H" |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2018 |
H"@BH"H @!!DQD@DQDR@BDQDP@QDQH@H"H"@BH"H @@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2019 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2020 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2021 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2022 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2023 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2024 |
fromPackedString:'??>@@X@A @F@@X@A @F@@X@A @G???????????????<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2025 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2026 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2027 |
] |
1447 | 2028 |
! |
1409 | 2029 |
|
2030 |
setBottomHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2031 |
<resource: #image> |
1409 | 2032 |
"This resource specification was automatically generated |
2033 |
by the ImageEditor of ST/X." |
|
2034 |
"Do not manually edit this!! If it is corrupted, |
|
2035 |
the ImageEditor may not be able to read the specification." |
|
2036 |
" |
|
2037 |
self setBottomHalfIcon inspect |
|
2038 |
ImageEditor openOnClass:self andSelector:#setBottomHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2039 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2040 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2041 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setBottomHalfIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2042 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2043 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2044 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2045 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2046 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2047 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2048 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2049 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2050 |
fromPackedString:' |
2269 | 2051 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"H"H"@BDQDQDQDQH@HQ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2052 |
DQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H"H"H"H"H @@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2053 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2054 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2055 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2056 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2057 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2058 |
fromPackedString:'??>@@X@A @F@@X@A @F@@_????????????????????<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2059 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2060 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2061 |
] |
1447 | 2062 |
! |
1409 | 2063 |
|
2064 |
setBottomLeftQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2065 |
<resource: #image> |
1409 | 2066 |
"This resource specification was automatically generated |
2067 |
by the ImageEditor of ST/X." |
|
2068 |
"Do not manually edit this!! If it is corrupted, |
|
2069 |
the ImageEditor may not be able to read the specification." |
|
2070 |
" |
|
2071 |
self setBottomLeftQuarterIcon inspect |
|
2072 |
ImageEditor openOnClass:self andSelector:#setBottomLeftQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2073 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2074 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2075 |
^ Icon |
2269 | 2076 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomLeftQuarterIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2077 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2078 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2079 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2080 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2081 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2082 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2083 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2084 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2085 |
fromPackedString:' |
2269 | 2086 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H"H"@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2087 |
DR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2088 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2089 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2090 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2091 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2092 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2093 |
fromPackedString:'??>@@X@A @F@@X@A @G?@_<A?0G?@_<A?0G?@_<A??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2094 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2095 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2096 |
] |
1447 | 2097 |
! |
1409 | 2098 |
|
2099 |
setBottomRightQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2100 |
<resource: #image> |
1409 | 2101 |
"This resource specification was automatically generated |
2102 |
by the ImageEditor of ST/X." |
|
2103 |
"Do not manually edit this!! If it is corrupted, |
|
2104 |
the ImageEditor may not be able to read the specification." |
|
2105 |
" |
|
2106 |
self setBottomRightQuarterIcon inspect |
|
2107 |
ImageEditor openOnClass:self andSelector:#setBottomRightQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2108 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2109 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2110 |
^ Icon |
2269 | 2111 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomRightQuarterIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2112 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2113 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2114 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2115 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2116 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2117 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2118 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2119 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2120 |
fromPackedString:' |
2269 | 2121 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2122 |
@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2123 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2124 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2125 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2126 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2127 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2128 |
fromPackedString:'??>@@X@A @F@@X@A @F@@XG? _>A?8G? _>A?8G???<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2129 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2130 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2131 |
] |
1447 | 2132 |
! |
1409 | 2133 |
|
1680 | 2134 |
setFullIcon |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2135 |
<resource: #image> |
1680 | 2136 |
"This resource specification was automatically generated |
2137 |
by the ImageEditor of ST/X." |
|
2138 |
"Do not manually edit this!! If it is corrupted, |
|
2139 |
the ImageEditor may not be able to read the specification." |
|
2140 |
" |
|
2141 |
self setFullIcon inspect |
|
2142 |
ImageEditor openOnClass:self andSelector:#setFullIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2143 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2144 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2145 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setFullIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2146 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2147 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2148 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2149 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2150 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2151 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2152 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2153 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2154 |
fromPackedString:' |
1680 | 2155 |
@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2156 |
DQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H"H"H"H"H @@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2157 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2158 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2159 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2160 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2161 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2162 |
fromPackedString:'??????????????????????????????????????????<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2163 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2164 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2165 |
] |
1680 | 2166 |
! |
2167 |
||
1409 | 2168 |
setHorizontalFixPartIcon |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2169 |
<resource: #image> |
1409 | 2170 |
"This resource specification was automatically generated |
2171 |
by the ImageEditor of ST/X." |
|
2172 |
"Do not manually edit this!! If it is corrupted, |
|
2173 |
the ImageEditor may not be able to read the specification." |
|
2174 |
" |
|
2175 |
self setHorizontalFixPartIcon inspect |
|
2176 |
ImageEditor openOnClass:self andSelector:#setHorizontalFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2177 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2178 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2179 |
^ Icon |
2269 | 2180 |
constantNamed:'UILayoutTool::LayoutFrame class setHorizontalFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2181 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2182 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2183 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2184 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2185 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2186 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2187 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2188 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2189 |
fromPackedString:' |
1409 | 2190 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H@H"H"@BDQDP@QDQH@HQDQ@ADQD @"H"H@H"H"@@@@@@@@@@@@@@ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2191 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2192 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2193 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2194 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2195 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2196 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2197 |
fromPackedString:'??>@@X@A @F@@_???????????????8@A @F@@X@A??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2198 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2199 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2200 |
] |
1447 | 2201 |
! |
1409 | 2202 |
|
2203 |
setLeftFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2204 |
<resource: #image> |
1409 | 2205 |
"This resource specification was automatically generated |
2206 |
by the ImageEditor of ST/X." |
|
2207 |
"Do not manually edit this!! If it is corrupted, |
|
2208 |
the ImageEditor may not be able to read the specification." |
|
2209 |
" |
|
2210 |
self setLeftFixPartIcon inspect |
|
2211 |
ImageEditor openOnClass:self andSelector:#setLeftFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2212 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2213 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2214 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setLeftFixPartIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2215 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2216 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2217 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2218 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2219 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2220 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2221 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2222 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2223 |
fromPackedString:' |
1409 | 2224 |
@@@@@@@@@@@BH"@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@@@@@@@@@@@@@@@@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2225 |
H@@@@@@@@!!D @@@@@@@BDR@@@@@@@@H"H@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2226 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2227 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2228 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2229 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2230 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2231 |
fromPackedString:'???<@_0A?@G<@_0A?@G<@_0A?@G<@_0A?@G<@_0A??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2232 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2233 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2234 |
] |
1447 | 2235 |
! |
1409 | 2236 |
|
2237 |
setLeftHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2238 |
<resource: #image> |
1409 | 2239 |
"This resource specification was automatically generated |
2240 |
by the ImageEditor of ST/X." |
|
2241 |
"Do not manually edit this!! If it is corrupted, |
|
2242 |
the ImageEditor may not be able to read the specification." |
|
2243 |
" |
|
2244 |
self setLeftHalfIcon inspect |
|
2245 |
ImageEditor openOnClass:self andSelector:#setLeftHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2246 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2247 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2248 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setLeftHalfIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2249 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2250 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2251 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2252 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2253 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2254 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2255 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2256 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2257 |
fromPackedString:' |
2269 | 2258 |
@@@@@@@@@@@BH"H @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2259 |
DR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2260 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2261 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2262 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2263 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2264 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2265 |
fromPackedString:'????@_<A?0G?@_<A?0G?@_<A?0G?@_<A?0G?@_<A??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2266 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2267 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2268 |
] |
1447 | 2269 |
! |
1409 | 2270 |
|
2271 |
setRightFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2272 |
<resource: #image> |
1409 | 2273 |
"This resource specification was automatically generated |
2274 |
by the ImageEditor of ST/X." |
|
2275 |
"Do not manually edit this!! If it is corrupted, |
|
2276 |
the ImageEditor may not be able to read the specification." |
|
2277 |
" |
|
2278 |
self setRightFixPartIcon inspect |
|
2279 |
ImageEditor openOnClass:self andSelector:#setRightFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2280 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2281 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2282 |
^ Icon |
2269 | 2283 |
constantNamed:'UILayoutTool::LayoutFrame class setRightFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2284 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2285 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2286 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2287 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2288 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2289 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2290 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2291 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2292 |
fromPackedString:' |
1409 | 2293 |
@@@@@@@@@@@@@@@@@@H"H@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BDR@@@@@@@@HQH@@@ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2294 |
@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@"H @@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2295 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2296 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2297 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2298 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2299 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2300 |
fromPackedString:'??>@O8@? C>@O8@? C>@O8@? C>@O8@? C>@O8@???<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2301 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2302 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2303 |
] |
1447 | 2304 |
! |
1409 | 2305 |
|
2306 |
setRightHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2307 |
<resource: #image> |
1409 | 2308 |
"This resource specification was automatically generated |
2309 |
by the ImageEditor of ST/X." |
|
2310 |
"Do not manually edit this!! If it is corrupted, |
|
2311 |
the ImageEditor may not be able to read the specification." |
|
2312 |
" |
|
2313 |
self setRightHalfIcon inspect |
|
2314 |
ImageEditor openOnClass:self andSelector:#setRightHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2315 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2316 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2317 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setRightHalfIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2318 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2319 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2320 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2321 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2322 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2323 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2324 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2325 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2326 |
fromPackedString:' |
2269 | 2327 |
@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2328 |
@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BH"H @@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2329 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2330 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2331 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2332 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2333 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2334 |
fromPackedString:'??>@?8C? O>@?8C? O>@?8C? O>@?8C? O>@?8C???<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2335 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2336 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2337 |
] |
1447 | 2338 |
! |
1409 | 2339 |
|
2340 |
setToRightQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2341 |
<resource: #image> |
1409 | 2342 |
"This resource specification was automatically generated |
2343 |
by the ImageEditor of ST/X." |
|
2344 |
"Do not manually edit this!! If it is corrupted, |
|
2345 |
the ImageEditor may not be able to read the specification." |
|
2346 |
" |
|
2347 |
self setToRightQuarterIcon inspect |
|
2348 |
ImageEditor openOnClass:self andSelector:#setToRightQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2349 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2350 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2351 |
^ Icon |
2269 | 2352 |
constantNamed:'UILayoutTool::LayoutFrame class setToRightQuarterIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2353 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2354 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2355 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2356 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2357 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2358 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2359 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2360 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2361 |
fromPackedString:' |
2269 | 2362 |
@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2363 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2364 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2365 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2366 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2367 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2368 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2369 |
fromPackedString:'??>@?8C? O>@?8C? O>@?8C? @F@@X@A @F@@X@A??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2370 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2371 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2372 |
] |
1447 | 2373 |
! |
1409 | 2374 |
|
2375 |
setTopFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2376 |
<resource: #image> |
1409 | 2377 |
"This resource specification was automatically generated |
2378 |
by the ImageEditor of ST/X." |
|
2379 |
"Do not manually edit this!! If it is corrupted, |
|
2380 |
the ImageEditor may not be able to read the specification." |
|
2381 |
" |
|
2382 |
self setTopFixPartIcon inspect |
|
2383 |
ImageEditor openOnClass:self andSelector:#setTopFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2384 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2385 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2386 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setTopFixPartIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2387 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2388 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2389 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2390 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2391 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2392 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2393 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2394 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2395 |
fromPackedString:' |
2269 | 2396 |
@@@@@@@@@@@BH"H @"H"H@HQDQ@ADQD @!!DQD@DQDR@BH"H @"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2397 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2398 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2399 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2400 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2401 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2402 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2403 |
fromPackedString:'???????????????? @F@@X@A @F@@X@A @F@@X@A??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2404 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2405 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2406 |
] |
1447 | 2407 |
! |
1409 | 2408 |
|
2409 |
setTopHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2410 |
<resource: #image> |
1409 | 2411 |
"This resource specification was automatically generated |
2412 |
by the ImageEditor of ST/X." |
|
2413 |
"Do not manually edit this!! If it is corrupted, |
|
2414 |
the ImageEditor may not be able to read the specification." |
|
2415 |
" |
|
2416 |
self setTopHalfIcon inspect |
|
2417 |
ImageEditor openOnClass:self andSelector:#setTopHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2418 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2419 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2420 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setTopHalfIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2421 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2422 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2423 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2424 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2425 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2426 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2427 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2428 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2429 |
fromPackedString:' |
2269 | 2430 |
@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @"H"H"H"H"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2431 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2432 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2433 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2434 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2435 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2436 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2437 |
fromPackedString:'?????????????????????8@A @F@@X@A @F@@X@A??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2438 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2439 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2440 |
] |
1447 | 2441 |
! |
1409 | 2442 |
|
2443 |
setTopLeftQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2444 |
<resource: #image> |
1409 | 2445 |
"This resource specification was automatically generated |
2446 |
by the ImageEditor of ST/X." |
|
2447 |
"Do not manually edit this!! If it is corrupted, |
|
2448 |
the ImageEditor may not be able to read the specification." |
|
2449 |
" |
|
2450 |
self setTopLeftQuarterIcon inspect |
|
2451 |
ImageEditor openOnClass:self andSelector:#setTopLeftQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2452 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2453 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2454 |
^ Icon |
2269 | 2455 |
constantNamed:'UILayoutTool::LayoutFrame class setTopLeftQuarterIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2456 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2457 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2458 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2459 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2460 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2461 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2462 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2463 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2464 |
fromPackedString:' |
2269 | 2465 |
@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2466 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2467 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2468 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2469 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2470 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2471 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2472 |
fromPackedString:'???? _>A?8G? _>A?8G? X@A @F@@X@A @F@@X@A??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2473 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2474 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2475 |
] |
1447 | 2476 |
! |
1409 | 2477 |
|
2478 |
setVerticalFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2479 |
<resource: #image> |
1409 | 2480 |
"This resource specification was automatically generated |
2481 |
by the ImageEditor of ST/X." |
|
2482 |
"Do not manually edit this!! If it is corrupted, |
|
2483 |
the ImageEditor may not be able to read the specification." |
|
2484 |
" |
|
2485 |
self setVerticalFixPartIcon inspect |
|
2486 |
ImageEditor openOnClass:self andSelector:#setVerticalFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2487 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2488 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2489 |
^ Icon |
2269 | 2490 |
constantNamed:'UILayoutTool::LayoutFrame class setVerticalFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2491 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2492 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2493 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2494 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2495 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2496 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2497 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2498 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2499 |
fromPackedString:' |
1409 | 2500 |
@@@@@@@@@@@@@@@"H @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@HQH@@@@@@@@!!D @@@@@@ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2501 |
@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BH"@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2502 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2503 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2504 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2505 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2506 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2507 |
fromPackedString:'??>G8X_!!!!>FG8X_!!!!>FG8X_!!!!>FG8X_!!!!>FG8X_!!??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2508 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2509 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2510 |
] |
1447 | 2511 |
! ! |
1409 | 2512 |
|
2513 |
!UILayoutTool::LayoutFrame class methodsFor:'interface specs'! |
|
2514 |
||
2515 |
windowSpec |
|
2516 |
"This resource specification was automatically generated |
|
2517 |
by the UIPainter of ST/X." |
|
2518 |
||
2519 |
"Do not manually edit this!! If it is corrupted, |
|
2520 |
the UIPainter may not be able to read the specification." |
|
2521 |
||
2522 |
" |
|
2523 |
UIPainter new openOnClass:UILayoutTool::LayoutFrame andSelector:#windowSpec |
|
2524 |
UILayoutTool::LayoutFrame new openInterface:#windowSpec |
|
2525 |
UILayoutTool::LayoutFrame open |
|
2526 |
" |
|
2527 |
||
2528 |
<resource: #canvas> |
|
2529 |
||
2530 |
^ |
|
3052 | 2531 |
#(FullSpec |
2532 |
name: windowSpec |
|
2533 |
window: |
|
2534 |
(WindowSpec |
|
2535 |
label: 'UILayoutTool-LayoutFrame' |
|
2536 |
name: 'UILayoutTool-LayoutFrame' |
|
2537 |
min: (Point 10 10) |
|
2538 |
bounds: (Rectangle 0 0 527 393) |
|
2539 |
) |
|
2540 |
component: |
|
2541 |
(SpecCollection |
|
2542 |
collection: ( |
|
2543 |
(UISubSpecification |
|
2544 |
name: 'layoutOriginSpec' |
|
2545 |
layout: (LayoutFrame 1 0.0 6 0 0 1.0 110 0) |
|
2546 |
majorKey: UILayoutTool |
|
2547 |
minorKey: layoutOriginSpec |
|
2548 |
) |
|
2549 |
(FramedBoxSpec |
|
2550 |
label: 'Corner' |
|
2551 |
name: 'FramedBox' |
|
2552 |
layout: (LayoutFrame 1 0.0 113 0 0 1.0 266 0) |
|
2553 |
labelPosition: topLeft |
|
2554 |
translateLabel: true |
|
2555 |
component: |
|
2556 |
(SpecCollection |
|
2557 |
collection: ( |
|
2558 |
(LabelSpec |
|
2559 |
label: 'Right:' |
|
2560 |
name: 'labelRight' |
|
2561 |
layout: (AlignmentOrigin 68 0 16 0 1 0) |
|
2562 |
translateLabel: true |
|
2563 |
) |
|
2564 |
(ActionButtonSpec |
|
2565 |
label: 'imageFractX' |
|
2566 |
name: 'actionRelativeRight' |
|
2567 |
layout: (LayoutFrame 78 0 14 0 100 0 36 0) |
|
2568 |
activeHelpKey: makeRightRelative |
|
2569 |
hasCharacterOrientedLabel: false |
|
2570 |
tabable: true |
|
2571 |
model: relativeRight |
|
2572 |
) |
|
2573 |
(InputFieldSpec |
|
2574 |
name: 'fieldRightFraction' |
|
2575 |
layout: (LayoutFrame 103 0 14 0 153 0 36 0) |
|
2576 |
activeHelpKey: rightRelative |
|
2577 |
tabable: true |
|
2578 |
model: rightFraction |
|
2579 |
group: inputGroup |
|
2580 |
type: numberOrNil |
|
2581 |
acceptOnLostFocus: true |
|
2582 |
acceptChannel: acceptChannel |
|
2583 |
modifiedChannel: modifiedChannel |
|
2584 |
acceptOnPointerLeave: true |
|
2585 |
) |
|
2586 |
(ActionButtonSpec |
|
2587 |
label: 'imageAbsX' |
|
2588 |
name: 'actionAbsoluteRight' |
|
2589 |
layout: (LayoutFrame 178 0 14 0 200 0 36 0) |
|
2590 |
activeHelpKey: makeRightAbsolute |
|
2591 |
hasCharacterOrientedLabel: false |
|
2592 |
tabable: true |
|
2593 |
model: absoluteRight |
|
2594 |
) |
|
2595 |
(InputFieldSpec |
|
2596 |
name: 'fieldRightOffset' |
|
2597 |
layout: (LayoutFrame 203 0 14 0 253 0 36 0) |
|
2598 |
activeHelpKey: rightAbsolute |
|
2599 |
tabable: true |
|
2600 |
model: rightOffset |
|
2601 |
group: inputGroup |
|
2602 |
type: numberOrNil |
|
2603 |
acceptOnLostFocus: true |
|
2604 |
acceptChannel: acceptChannel |
|
2605 |
modifiedChannel: modifiedChannel |
|
2606 |
acceptOnPointerLeave: true |
|
2607 |
) |
|
2608 |
(ActionButtonSpec |
|
2609 |
label: 'imageAbsXFromRight' |
|
2610 |
name: 'actionRightRelativeRight' |
|
2611 |
layout: (LayoutFrame 257 0 14 0 279 0 36 0) |
|
2612 |
activeHelpKey: makeRightRelativeFromRight |
|
2613 |
hasCharacterOrientedLabel: false |
|
2614 |
tabable: true |
|
2615 |
model: rightRelativeRight |
|
2616 |
) |
|
2617 |
(LabelSpec |
|
2618 |
label: 'Bottom:' |
|
2619 |
name: 'labelBottom' |
|
2620 |
layout: (AlignmentOrigin 68 0 44 0 1 0) |
|
2621 |
translateLabel: true |
|
2622 |
) |
|
2623 |
(ActionButtonSpec |
|
2624 |
label: 'imageFractY' |
|
2625 |
name: 'actionRelativeBottom' |
|
2626 |
layout: (LayoutFrame 78 0 42 0 100 0 64 0) |
|
2627 |
activeHelpKey: makeBottomRelative |
|
2628 |
hasCharacterOrientedLabel: false |
|
2629 |
tabable: true |
|
2630 |
model: relativeBottom |
|
1409 | 2631 |
) |
3052 | 2632 |
(InputFieldSpec |
2633 |
name: 'fieldBottomFraction' |
|
2634 |
layout: (LayoutFrame 103 0 42 0 153 0 64 0) |
|
2635 |
activeHelpKey: bottomRelative |
|
2636 |
tabable: true |
|
2637 |
model: bottomFraction |
|
2638 |
group: inputGroup |
|
2639 |
type: numberOrNil |
|
2640 |
acceptOnLostFocus: true |
|
2641 |
acceptChannel: acceptChannel |
|
2642 |
modifiedChannel: modifiedChannel |
|
2643 |
acceptOnPointerLeave: true |
|
2644 |
) |
|
2645 |
(ActionButtonSpec |
|
2646 |
label: 'imageAbsY' |
|
2647 |
name: 'actionAbsoluteBottom' |
|
2648 |
layout: (LayoutFrame 178 0 42 0 200 0 64 0) |
|
2649 |
activeHelpKey: makeBottomAbsolute |
|
2650 |
hasCharacterOrientedLabel: false |
|
2651 |
tabable: true |
|
2652 |
model: absoluteBottom |
|
2653 |
) |
|
2654 |
(InputFieldSpec |
|
2655 |
name: 'fieldBottomOffset' |
|
2656 |
layout: (LayoutFrame 203 0 42 0 253 0 64 0) |
|
2657 |
activeHelpKey: bottomAbsolute |
|
2658 |
tabable: true |
|
2659 |
model: bottomOffset |
|
2660 |
group: inputGroup |
|
2661 |
type: numberOrNil |
|
2662 |
acceptOnLostFocus: true |
|
2663 |
acceptChannel: acceptChannel |
|
2664 |
modifiedChannel: modifiedChannel |
|
2665 |
acceptOnPointerLeave: true |
|
2666 |
) |
|
2667 |
(ActionButtonSpec |
|
2668 |
label: 'imageAbsYFromBottom' |
|
2669 |
name: 'actionBottomRelativeBottom' |
|
2670 |
layout: (LayoutFrame 257 0 42 0 279 0 64 0) |
|
2671 |
activeHelpKey: makeBottomRelativeFromBottom |
|
2672 |
hasCharacterOrientedLabel: false |
|
2673 |
tabable: true |
|
2674 |
model: bottomRelativeBottom |
|
2675 |
) |
|
2676 |
(CheckBoxSpec |
|
2677 |
label: 'Preferred' |
|
2678 |
name: 'CheckBox1' |
|
2679 |
layout: (LayoutFrame 287 0 14 0 393 0 36 0) |
|
2680 |
activeHelpKey: usePreferredWidth |
|
2681 |
model: usePreferredWidth |
|
2682 |
translateLabel: true |
|
2683 |
) |
|
2684 |
(CheckBoxSpec |
|
2685 |
label: 'Preferred' |
|
2686 |
name: 'CheckBox2' |
|
2687 |
layout: (LayoutFrame 287 0 42 0 393 0 64 0) |
|
2688 |
activeHelpKey: usePreferredHeight |
|
2689 |
model: usePreferredHeight |
|
2690 |
translateLabel: true |
|
2691 |
) |
|
2692 |
(CheckBoxSpec |
|
2693 |
label: 'Dynamic' |
|
2694 |
name: 'CheckBox3' |
|
2695 |
layout: (LayoutFrame 394 0 14 0 481 0 36 0) |
|
2696 |
activeHelpKey: useDynamicPreferredWidth |
|
2697 |
model: useDynamicPreferredWidth |
|
2698 |
translateLabel: true |
|
2699 |
) |
|
2700 |
(CheckBoxSpec |
|
2701 |
label: 'Dynamic' |
|
2702 |
name: 'CheckBox4' |
|
2703 |
layout: (LayoutFrame 394 0 42 0 481 0 64 0) |
|
2704 |
activeHelpKey: useDynamicPreferredWidth |
|
2705 |
model: useDynamicPreferredHeight |
|
2706 |
translateLabel: true |
|
2707 |
) |
|
2708 |
(CheckBoxSpec |
|
2709 |
label: 'OSX-ResizeH' |
|
2710 |
name: 'OSXResizeH Checkbox' |
|
2711 |
layout: (LayoutFrame 287 0 70 0 480 0 92 0) |
|
2712 |
activeHelpKey: keepSpaceForOSXResizeHandleH |
|
2713 |
model: keepSpaceForOSXResizeHandleH |
|
2714 |
translateLabel: true |
|
2715 |
) |
|
2716 |
(CheckBoxSpec |
|
2717 |
label: 'OSX-ResizeV' |
|
2718 |
name: 'OSXResizeV Checkbox' |
|
2719 |
layout: (LayoutFrame 287 0 98 0 480 0 120 0) |
|
2720 |
activeHelpKey: keepSpaceForOSXResizeHandleV |
|
2721 |
model: keepSpaceForOSXResizeHandleV |
|
2722 |
translateLabel: true |
|
2723 |
) |
|
2724 |
) |
|
2725 |
||
2726 |
) |
|
1409 | 2727 |
) |
3052 | 2728 |
(MenuPanelSpec |
2729 |
name: 'commonLayoutToolBar1' |
|
2730 |
layout: (LayoutFrame 6 0.0 267 0 -4 1.0 299 0) |
|
2731 |
level: 0 |
|
2732 |
tabable: true |
|
2733 |
menu: commonFrameLayoutsMenu1 |
|
2734 |
textDefault: true |
|
2735 |
) |
|
2736 |
(MenuPanelSpec |
|
2737 |
name: 'commonLayoutToolBar2' |
|
2738 |
layout: (LayoutFrame 6 0.0 299 0 -4 1.0 331 0) |
|
2739 |
level: 0 |
|
2740 |
tabable: true |
|
2741 |
menu: commonFrameLayoutsMenu2 |
|
2742 |
textDefault: true |
|
2743 |
) |
|
2744 |
(MenuPanelSpec |
|
2745 |
name: 'commonLayoutToolBar3' |
|
2746 |
layout: (LayoutFrame 6 0.0 323 0 -4 1.0 355 0) |
|
2747 |
level: 0 |
|
2748 |
tabable: true |
|
2749 |
menu: commonFrameLayoutsMenu3 |
|
2750 |
textDefault: true |
|
2751 |
) |
|
2752 |
) |
|
2753 |
||
2754 |
) |
|
2755 |
) |
|
1409 | 2756 |
! ! |
2757 |
||
2758 |
!UILayoutTool::LayoutFrame class methodsFor:'menu specs'! |
|
2759 |
||
1680 | 2760 |
commonFrameLayoutsMenu1 |
1409 | 2761 |
"This resource specification was automatically generated |
2762 |
by the MenuEditor of ST/X." |
|
2763 |
||
2764 |
"Do not manually edit this!! If it is corrupted, |
|
2765 |
the MenuEditor may not be able to read the specification." |
|
2766 |
||
2767 |
" |
|
1680 | 2768 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu1 |
2769 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu1)) startUp |
|
1409 | 2770 |
" |
2771 |
||
2772 |
<resource: #menu> |
|
2773 |
||
1680 | 2774 |
^ |
2775 |
#(#Menu |
|
2776 |
#( |
|
2777 |
#(#MenuItem |
|
2778 |
#activeHelpKey: #fullLayout |
|
2779 |
#label: 'setFullFrame' |
|
2780 |
#itemValue: #setFullFrame |
|
2781 |
#nameKey: #setFullFrame |
|
2782 |
#translateLabel: true |
|
2783 |
#isButton: true |
|
2784 |
#labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setFullIcon) |
|
2785 |
) |
|
2786 |
#(#MenuItem |
|
2787 |
#label: '' |
|
2788 |
) |
|
2789 |
#(#MenuItem |
|
2790 |
#activeHelpKey: #topHalfLayout |
|
2791 |
#label: 'setTopHalfFrame' |
|
2792 |
#itemValue: #setTopHalfFrame |
|
2793 |
#nameKey: #setTopHalfFrame |
|
2794 |
#translateLabel: true |
|
2795 |
#isButton: true |
|
2796 |
#labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setTopHalfIcon) |
|
2797 |
) |
|
2798 |
#(#MenuItem |
|
2799 |
#activeHelpKey: #bottomHalfLayout |
|
2800 |
#label: 'setBottomHalfFrame' |
|
2801 |
#itemValue: #setBottomHalfFrame |
|
2802 |
#nameKey: #setBottomHalfFrame |
|
2803 |
#translateLabel: true |
|
2804 |
#isButton: true |
|
2805 |
#labelImage: #(#ResourceRetriever nil #setBottomHalfIcon) |
|
2806 |
) |
|
2807 |
#(#MenuItem |
|
2808 |
#activeHelpKey: #leftHalfLayout |
|
2809 |
#label: 'setLeftHalfFrame' |
|
2810 |
#itemValue: #setLeftHalfFrame |
|
2811 |
#nameKey: #setLeftHalfFrame |
|
2812 |
#translateLabel: true |
|
2813 |
#isButton: true |
|
2814 |
#labelImage: #(#ResourceRetriever nil #setLeftHalfIcon) |
|
2815 |
) |
|
2816 |
#(#MenuItem |
|
2817 |
#activeHelpKey: #rightHalfLayout |
|
2818 |
#label: 'setRightHalfFrame' |
|
2819 |
#itemValue: #setRightHalfFrame |
|
2820 |
#nameKey: #setRightHalfFrame |
|
2821 |
#translateLabel: true |
|
2822 |
#isButton: true |
|
2823 |
#labelImage: #(#ResourceRetriever nil #setRightHalfIcon) |
|
2824 |
) |
|
2825 |
#(#MenuItem |
|
2826 |
#label: '' |
|
2827 |
) |
|
2828 |
#(#MenuItem |
|
2829 |
#activeHelpKey: #topLeftQuarterLayout |
|
2830 |
#label: 'setTopLeftQuarterFrame' |
|
2831 |
#itemValue: #setTopLeftQuarterFrame |
|
2832 |
#nameKey: #setTopLeftQuarterFrame |
|
2833 |
#translateLabel: true |
|
2834 |
#isButton: true |
|
2835 |
#labelImage: #(#ResourceRetriever nil #setTopLeftQuarterIcon) |
|
2836 |
) |
|
2837 |
#(#MenuItem |
|
2838 |
#activeHelpKey: #topRightQuarterLayout |
|
2839 |
#label: 'setTopRightQuarterFrame' |
|
2840 |
#itemValue: #setTopRightQuarterFrame |
|
2841 |
#nameKey: #setTopRightQuarterFrame |
|
2842 |
#translateLabel: true |
|
2843 |
#isButton: true |
|
2844 |
#labelImage: #(#ResourceRetriever nil #setToRightQuarterIcon) |
|
2845 |
) |
|
2846 |
#(#MenuItem |
|
2847 |
#activeHelpKey: #bottomRightQuarterLayout |
|
2848 |
#label: 'setBottomRightQuarterFrame' |
|
2849 |
#itemValue: #setBottomRightQuarterFrame |
|
2850 |
#nameKey: #setBottomRightQuarterFrame |
|
2851 |
#translateLabel: true |
|
2852 |
#isButton: true |
|
2853 |
#labelImage: #(#ResourceRetriever nil #setBottomRightQuarterIcon) |
|
2854 |
) |
|
2855 |
#(#MenuItem |
|
2856 |
#activeHelpKey: #bottomLeftQuarterLayout |
|
2857 |
#label: 'setBottomLeftQuarterFrame' |
|
2858 |
#itemValue: #setBottomLeftQuarterFrame |
|
2859 |
#nameKey: #setBottomLeftQuarterFrame |
|
2860 |
#translateLabel: true |
|
2861 |
#isButton: true |
|
2862 |
#labelImage: #(#ResourceRetriever nil #setBottomLeftQuarterIcon) |
|
2863 |
) |
|
2864 |
) |
|
2865 |
nil |
|
2866 |
nil |
|
2867 |
) |
|
2868 |
! |
|
2869 |
||
2870 |
commonFrameLayoutsMenu2 |
|
2871 |
"This resource specification was automatically generated |
|
2872 |
by the MenuEditor of ST/X." |
|
2873 |
||
2874 |
"Do not manually edit this!! If it is corrupted, |
|
2875 |
the MenuEditor may not be able to read the specification." |
|
2876 |
||
2877 |
" |
|
2878 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu2 |
|
2879 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu2)) startUp |
|
2880 |
" |
|
2881 |
||
2882 |
<resource: #menu> |
|
2883 |
||
2884 |
^ |
|
2885 |
#(#Menu |
|
2886 |
#( |
|
2887 |
#(#MenuItem |
|
2888 |
#activeHelpKey: #topFixPartLayout |
|
2889 |
#label: 'setTopFixPartFrame' |
|
2890 |
#itemValue: #setTopFixPartFrame |
|
2891 |
#nameKey: #setTopFixPartFrame |
|
2892 |
#translateLabel: true |
|
2893 |
#isButton: true |
|
2894 |
#labelImage: #(#ResourceRetriever nil #setTopFixPartIcon) |
|
2895 |
) |
|
2896 |
#(#MenuItem |
|
2897 |
#activeHelpKey: #horizontalFixPartLayout |
|
2898 |
#label: 'setHorizontalFixPartFrame' |
|
2899 |
#itemValue: #setHorizontalFixPartFrame |
|
2900 |
#nameKey: #setHorizontalFixPartFrame |
|
2901 |
#translateLabel: true |
|
2902 |
#isButton: true |
|
2903 |
#labelImage: #(#ResourceRetriever nil #setHorizontalFixPartIcon) |
|
2904 |
) |
|
2905 |
#(#MenuItem |
|
2906 |
#activeHelpKey: #bottomFixPartLayout |
|
2907 |
#label: 'setBottomFixPartFrame' |
|
2908 |
#itemValue: #setBottomFixPartFrame |
|
2909 |
#nameKey: #setBottomFixPartFrame |
|
2910 |
#translateLabel: true |
|
2911 |
#isButton: true |
|
2912 |
#labelImage: #(#ResourceRetriever nil #setBottomFixPartIcon) |
|
2913 |
) |
|
2914 |
#(#MenuItem |
|
2915 |
#label: '' |
|
2916 |
) |
|
2917 |
#(#MenuItem |
|
2918 |
#activeHelpKey: #leftFixPartLayout |
|
2919 |
#label: 'setLeftFixPartFrame' |
|
2920 |
#itemValue: #setLeftFixPartFrame |
|
2921 |
#nameKey: #setLeftFixPartFrame |
|
2922 |
#translateLabel: true |
|
2923 |
#isButton: true |
|
2924 |
#labelImage: #(#ResourceRetriever nil #setLeftFixPartIcon) |
|
2925 |
) |
|
2926 |
#(#MenuItem |
|
2927 |
#activeHelpKey: #verticalFixPartLayout |
|
2928 |
#label: 'setVerticalFixPartFrame' |
|
2929 |
#itemValue: #setVerticalFixPartFrame |
|
2930 |
#nameKey: #setVerticalFixPartFrame |
|
2931 |
#translateLabel: true |
|
2932 |
#isButton: true |
|
2933 |
#labelImage: #(#ResourceRetriever nil #setVerticalFixPartIcon) |
|
2934 |
) |
|
2935 |
#(#MenuItem |
|
2936 |
#activeHelpKey: #rightFixPartLayout |
|
2937 |
#label: 'setRightFixPartFrame' |
|
2938 |
#itemValue: #setRightFixPartFrame |
|
2939 |
#nameKey: #setRightFixPartFrame |
|
2940 |
#translateLabel: true |
|
2941 |
#isButton: true |
|
2942 |
#labelImage: #(#ResourceRetriever nil #setRightFixPartIcon) |
|
2943 |
) |
|
1706 | 2944 |
#(#MenuItem |
2945 |
#label: '' |
|
2946 |
) |
|
2947 |
#(#MenuItem |
|
1709 | 2948 |
#activeHelpKey: #bigTopFixPartLayout |
1706 | 2949 |
#label: 'setBigTopFixPartFrame' |
2950 |
#itemValue: #setBigTopFixPartFrame |
|
2951 |
#nameKey: #setBigTopFixPartFrame |
|
2952 |
#translateLabel: true |
|
2953 |
#isButton: true |
|
2954 |
#labelImage: #(#ResourceRetriever nil #setBigTopFixPartIcon) |
|
2955 |
) |
|
2956 |
#(#MenuItem |
|
1709 | 2957 |
#activeHelpKey: #bigHorizontalFixPartLayout |
1706 | 2958 |
#label: 'setBigHorizontalFixPartFrame' |
2959 |
#itemValue: #setBigHorizontalFixPartFrame |
|
2960 |
#nameKey: #setBigHorizontalFixPartFrame |
|
2961 |
#translateLabel: true |
|
2962 |
#isButton: true |
|
2963 |
#labelImage: #(#ResourceRetriever nil #setBigHorizontalFixPartIcon) |
|
2964 |
) |
|
2965 |
#(#MenuItem |
|
1709 | 2966 |
#activeHelpKey: #bigBottomFixPartLayout |
1706 | 2967 |
#label: 'setBigBottomFixPartFrame' |
2968 |
#itemValue: #setBigBottomFixPartFrame |
|
2969 |
#nameKey: #setBigBottomFixPartFrame |
|
2970 |
#translateLabel: true |
|
2971 |
#isButton: true |
|
2972 |
#labelImage: #(#ResourceRetriever nil #setBigBottomFixPartIcon) |
|
2973 |
) |
|
1680 | 2974 |
) |
2975 |
nil |
|
2976 |
nil |
|
1409 | 2977 |
) |
1826 | 2978 |
! |
2979 |
||
2980 |
commonFrameLayoutsMenu3 |
|
2981 |
"This resource specification was automatically generated |
|
2982 |
by the MenuEditor of ST/X." |
|
2983 |
||
2984 |
"Do not manually edit this!! If it is corrupted, |
|
2985 |
the MenuEditor may not be able to read the specification." |
|
2986 |
||
2987 |
" |
|
1858 | 2988 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu3 |
2989 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu3)) startUp |
|
1826 | 2990 |
" |
2991 |
||
2992 |
<resource: #menu> |
|
2993 |
||
2994 |
^ |
|
1858 | 2995 |
#(Menu |
2996 |
( |
|
2997 |
(MenuItem |
|
2998 |
activeHelpKey: screenFrameLayout |
|
2999 |
label: 'setScreenFrame' |
|
3000 |
itemValue: setScreenFrame |
|
3001 |
nameKey: setScreenFrame |
|
3002 |
translateLabel: true |
|
3003 |
isButton: true |
|
3004 |
isVisible: false |
|
3005 |
labelImage: (ResourceRetriever #'UILayoutTool::LayoutFrame' setScreenIcon) |
|
1826 | 3006 |
) |
3007 |
) |
|
3008 |
nil |
|
3009 |
nil |
|
3010 |
) |
|
1409 | 3011 |
! ! |
3012 |
||
3013 |
!UILayoutTool::LayoutFrame methodsFor:'accessing'! |
|
3014 |
||
3015 |
fetch:aView spec:aSpec |
|
3016 |
|layout| |
|
3017 |
||
1826 | 3018 |
aSpec class == WindowSpec ifTrue:[ |
3019 |
(layout := aSpec layout) isNil ifTrue:[ |
|
3020 |
layout := aSpec bounds asLayout. |
|
3021 |
] |
|
3022 |
] ifFalse: [ |
|
3023 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
3024 |
]. |
|
1409 | 3025 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
3026 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
3027 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
3028 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
3029 |
(self aspectFor:#rightOffset) value:(layout rightOffset value). "take care of blocks" |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
3030 |
(self aspectFor:#bottomOffset) value:(layout bottomOffset value). "take care of blocks" |
1409 | 3031 |
(self aspectFor:#rightFraction) value:(layout rightFraction). |
3032 |
(self aspectFor:#bottomFraction) value:(layout bottomFraction). |
|
3033 |
||
2379 | 3034 |
(self aspectFor:#usePreferredWidth) value:(aSpec usePreferredWidth). |
3035 |
(self aspectFor:#usePreferredHeight) value:(aSpec usePreferredHeight). |
|
3036 |
(self aspectFor:#useDynamicPreferredWidth) value:(aSpec useDynamicPreferredWidth). |
|
3037 |
(self aspectFor:#useDynamicPreferredHeight) value:(aSpec useDynamicPreferredHeight). |
|
2949 | 3038 |
|
2953 | 3039 |
(self aspectFor:#keepSpaceForOSXResizeHandleV) value:(aSpec keepSpaceForOSXResizeHandleV). |
3040 |
(self aspectFor:#keepSpaceForOSXResizeHandleH) value:(aSpec keepSpaceForOSXResizeHandleH). |
|
1409 | 3041 |
! |
3042 |
||
3043 |
layout |
|
2379 | 3044 |
"returns the current layout as layoutFrame |
1409 | 3045 |
" |
3046 |
|layout| |
|
3047 |
||
3048 |
layout := Smalltalk::LayoutFrame new. |
|
3049 |
||
1581 | 3050 |
layout |
3051 |
leftFraction:(((self aspectFor:#leftFraction) value) ? 0) |
|
3052 |
offset:(((self aspectFor:#leftOffset) value) ? 0) |
|
3053 |
rightFraction:(((self aspectFor:#rightFraction) value) ? 0) |
|
3054 |
offset:(((self aspectFor:#rightOffset) value) ? 0) |
|
3055 |
topFraction:(((self aspectFor:#topFraction) value) ? 0) |
|
3056 |
offset:(((self aspectFor:#topOffset) value) ? 0) |
|
3057 |
bottomFraction:(((self aspectFor:#bottomFraction) value) ? 0) |
|
3058 |
offset:(((self aspectFor:#bottomOffset) value) ? 0). |
|
1409 | 3059 |
|
3060 |
^ layout |
|
3061 |
! ! |
|
3062 |
||
3063 |
!UILayoutTool::LayoutFrame methodsFor:'common frames'! |
|
3064 |
||
1706 | 3065 |
setBigBottomFixPartFrame |
3066 |
self |
|
3067 |
setFrameLeft:0 offset:0 |
|
3068 |
right:1 offset:0 |
|
1826 | 3069 |
top:0 offset:(self class defaultFixPartHeight) |
1706 | 3070 |
bottom:1 offset:0 |
3071 |
! |
|
3072 |
||
3073 |
setBigHorizontalFixPartFrame |
|
3074 |
self |
|
3075 |
setFrameLeft:0 offset:0 |
|
3076 |
right:1 offset:0 |
|
1826 | 3077 |
top:0 offset:(self class defaultFixPartHeight) |
3078 |
bottom:1 offset:(self class defaultFixPartHeight negated) |
|
1706 | 3079 |
! |
3080 |
||
3081 |
setBigTopFixPartFrame |
|
3082 |
self |
|
3083 |
setFrameLeft:0 offset:0 |
|
3084 |
right:1 offset:0 |
|
3085 |
top:0 offset:0 |
|
1826 | 3086 |
bottom:1 offset:(self class defaultFixPartHeight negated) |
1706 | 3087 |
! |
3088 |
||
1409 | 3089 |
setBottomFixPartFrame |
3090 |
self |
|
3091 |
setFrameLeft:0 offset:0 |
|
3092 |
right:1 offset:0 |
|
1826 | 3093 |
top:1 offset:(self class defaultFixPartHeight negated) |
1409 | 3094 |
bottom:1 offset:0 |
3095 |
! |
|
3096 |
||
3097 |
setBottomHalfFrame |
|
3098 |
self |
|
3099 |
setFrameLeft:0 offset:0 |
|
3100 |
right:1 offset:0 |
|
3101 |
top:0.5 offset:0 |
|
3102 |
bottom:1 offset:0 |
|
3103 |
! |
|
3104 |
||
3105 |
setBottomLeftQuarterFrame |
|
3106 |
self |
|
3107 |
setFrameLeft:0 offset:0 |
|
3108 |
right:0.5 offset:0 |
|
3109 |
top:0.5 offset:0 |
|
3110 |
bottom:1 offset:0 |
|
3111 |
! |
|
3112 |
||
3113 |
setBottomRightQuarterFrame |
|
3114 |
self |
|
3115 |
setFrameLeft:0.5 offset:0 |
|
3116 |
right:1 offset:0 |
|
3117 |
top:0.5 offset:0 |
|
3118 |
bottom:1 offset:0 |
|
3119 |
! |
|
3120 |
||
3121 |
setFrameLeft:lF offset:lO right:rF offset:rO top:tF offset:tO bottom:bF offset:bO |
|
3122 |
(self aspectFor:#leftOffset) value:lO. |
|
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
3123 |
(self aspectFor:#rightOffset) value:rO value. |
1409 | 3124 |
(self aspectFor:#topOffset) value:tO. |
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
3125 |
(self aspectFor:#bottomOffset) value:bO value. |
1409 | 3126 |
|
3127 |
(self aspectFor:#leftFraction) value:lF. |
|
3128 |
(self aspectFor:#rightFraction) value:rF. |
|
3129 |
(self aspectFor:#topFraction) value:tF. |
|
3130 |
(self aspectFor:#bottomFraction) value:bF. |
|
3131 |
! |
|
3132 |
||
1680 | 3133 |
setFullFrame |
3134 |
self |
|
3135 |
setFrameLeft:0 offset:0 |
|
3136 |
right:1 offset:0 |
|
3137 |
top:0 offset:0 |
|
3138 |
bottom:1 offset:0 |
|
3139 |
! |
|
3140 |
||
1409 | 3141 |
setHorizontalFixPartFrame |
3142 |
self |
|
3143 |
setFrameLeft:0 offset:0 |
|
3144 |
right:1 offset:0 |
|
1826 | 3145 |
top:0.5 offset:(self class defaultFixPartHeight negated // 2) |
3146 |
bottom:0.5 offset:(self class defaultFixPartHeight // 2) |
|
1409 | 3147 |
! |
3148 |
||
3149 |
setLeftFixPartFrame |
|
3150 |
self |
|
3151 |
setFrameLeft:0 offset:0 |
|
1826 | 3152 |
right:0 offset:(self class defaultFixPartHeight) |
1409 | 3153 |
top:0 offset:0 |
3154 |
bottom:1 offset:0 |
|
3155 |
! |
|
3156 |
||
3157 |
setLeftHalfFrame |
|
3158 |
self |
|
3159 |
setFrameLeft:0 offset:0 |
|
3160 |
right:0.5 offset:0 |
|
3161 |
top:0 offset:0 |
|
3162 |
bottom:1 offset:0 |
|
3163 |
! |
|
3164 |
||
3165 |
setRightFixPartFrame |
|
3166 |
self |
|
1826 | 3167 |
setFrameLeft:1 offset:(self class defaultFixPartHeight negated) |
1447 | 3168 |
right:1 offset:0 |
1409 | 3169 |
top:0 offset:0 |
3170 |
bottom:1 offset:0 |
|
3171 |
! |
|
3172 |
||
3173 |
setRightHalfFrame |
|
3174 |
self |
|
3175 |
setFrameLeft:0.5 offset:0 |
|
3176 |
right:1 offset:0 |
|
3177 |
top:0 offset:0 |
|
3178 |
bottom:1 offset:0 |
|
3179 |
! |
|
3180 |
||
3181 |
setTopFixPartFrame |
|
3182 |
self |
|
3183 |
setFrameLeft:0 offset:0 |
|
3184 |
right:1 offset:0 |
|
3185 |
top:0 offset:0 |
|
1826 | 3186 |
bottom:0 offset:(self class defaultFixPartHeight) |
1409 | 3187 |
! |
3188 |
||
3189 |
setTopHalfFrame |
|
3190 |
self |
|
3191 |
setFrameLeft:0 offset:0 |
|
3192 |
right:1 offset:0 |
|
3193 |
top:0 offset:0 |
|
3194 |
bottom:0.5 offset:0 |
|
3195 |
! |
|
3196 |
||
3197 |
setTopLeftQuarterFrame |
|
3198 |
self |
|
3199 |
setFrameLeft:0 offset:0 |
|
3200 |
right:0.5 offset:0 |
|
3201 |
top:0 offset:0 |
|
3202 |
bottom:0.5 offset:0 |
|
3203 |
! |
|
3204 |
||
3205 |
setTopRightQuarterFrame |
|
3206 |
self |
|
3207 |
setFrameLeft:0.5 offset:0 |
|
3208 |
right:1 offset:0 |
|
3209 |
top:0 offset:0 |
|
3210 |
bottom:0.5 offset:0 |
|
3211 |
! |
|
3212 |
||
3213 |
setVerticalFixPartFrame |
|
3214 |
self |
|
1826 | 3215 |
setFrameLeft:0.5 offset:(self class defaultFixPartHeight negated // 2 ) |
3216 |
right:0.5 offset:(self class defaultFixPartHeight // 2 ) |
|
1409 | 3217 |
top:0 offset:0 |
3218 |
bottom:1 offset:0 |
|
3219 |
! ! |
|
3220 |
||
1447 | 3221 |
!UILayoutTool::LayoutOrigin class methodsFor:'interface specs'! |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3222 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3223 |
windowSpec |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3224 |
"This resource specification was automatically generated |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3225 |
by the UIPainter of ST/X." |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3226 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3227 |
"Do not manually edit this!! If it is corrupted, |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3228 |
the UIPainter may not be able to read the specification." |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3229 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3230 |
" |
1447 | 3231 |
UIPainter new openOnClass:UILayoutTool::LayoutOrigin andSelector:#windowSpec |
3232 |
UILayoutTool::LayoutOrigin new openInterface:#windowSpec |
|
3233 |
UILayoutTool::LayoutOrigin open |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3234 |
" |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3235 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3236 |
<resource: #canvas> |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3237 |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3238 |
^ |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3239 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3240 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3241 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3242 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3243 |
label: 'UILayoutTool-LayoutOrigin' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3244 |
name: 'UILayoutTool-LayoutOrigin' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3245 |
min: (Point 10 10) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3246 |
bounds: (Rectangle 14 46 372 192) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3247 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3248 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3249 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3250 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3251 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3252 |
name: 'layoutOriginSpec' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3253 |
layout: (LayoutFrame 1 0.0 6 0 0 1.0 110 0) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3254 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3255 |
minorKey: layoutOriginSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3256 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3257 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3258 |
|
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3259 |
) |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3260 |
) |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3261 |
! ! |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3262 |
|
1447 | 3263 |
!UILayoutTool::LayoutOrigin methodsFor:'accessing'! |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3264 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3265 |
fetch:aView spec:aSpec |
1447 | 3266 |
"fetch layoutOrigin |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3267 |
" |
1447 | 3268 |
|layout| |
3269 |
||
3270 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
3271 |
||
3272 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
|
3273 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
3274 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
3275 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3276 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3277 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3278 |
! |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3279 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3280 |
layout |
1447 | 3281 |
"returns current layout as layoutOrigin |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3282 |
" |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3283 |
|layout| |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3284 |
|
1447 | 3285 |
layout := Smalltalk::LayoutOrigin new. |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3286 |
|
1581 | 3287 |
layout |
3288 |
leftFraction:(((self aspectFor:#leftFraction) value) ? 0) |
|
3289 |
offset:(((self aspectFor:#leftOffset) value) ? 0) |
|
3290 |
topFraction:(((self aspectFor:#topFraction) value) ? 0) |
|
3291 |
offset:(((self aspectFor:#topOffset) value) ? 0). |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3292 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3293 |
^ layout |
1304 | 3294 |
! ! |
3295 |
||
1343 | 3296 |
!UILayoutTool::Point class methodsFor:'interface specs'! |
3297 |
||
3298 |
windowSpec |
|
3299 |
"This resource specification was automatically generated |
|
3300 |
by the UIPainter of ST/X." |
|
3301 |
||
3302 |
"Do not manually edit this!! If it is corrupted, |
|
3303 |
the UIPainter may not be able to read the specification." |
|
3304 |
||
3305 |
" |
|
3306 |
UIPainter new openOnClass:UILayoutTool::Point andSelector:#windowSpec |
|
3307 |
UILayoutTool::Point new openInterface:#windowSpec |
|
3308 |
UILayoutTool::Point open |
|
3309 |
" |
|
3310 |
||
3311 |
<resource: #canvas> |
|
3312 |
||
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3313 |
^ |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3314 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3315 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3316 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3317 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3318 |
label: 'UILayoutTool-Point' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3319 |
name: 'UILayoutTool-Point' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3320 |
min: (Point 10 10) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3321 |
bounds: (Rectangle 14 46 309 184) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3322 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3323 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3324 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3325 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3326 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3327 |
name: 'layoutPointSpec' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3328 |
layout: (LayoutFrame 1 0.0 6 0 0 1.0 100 0) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3329 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3330 |
minorKey: layoutPointSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3331 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3332 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3333 |
|
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3334 |
) |
1343 | 3335 |
) |
3336 |
! ! |
|
3337 |
||
3338 |
!UILayoutTool::Point methodsFor:'accessing'! |
|
3339 |
||
3340 |
fetch:aView spec:aSpec |
|
3341 |
"fetch point |
|
3342 |
" |
|
3343 |
|origin| |
|
3344 |
||
3345 |
origin := aView computeOrigin. |
|
3346 |
||
3347 |
(self aspectFor:#leftOffset) value:(origin x). |
|
3348 |
(self aspectFor:#topOffset) value:(origin y). |
|
3349 |
||
3350 |
||
3351 |
! |
|
3352 |
||
3353 |
layout |
|
3354 |
"returns current layout as point |
|
3355 |
" |
|
3356 |
^ Smalltalk::Point x:(((self aspectFor:#leftOffset) value) ? 0) |
|
3357 |
y:(((self aspectFor:#topOffset) value) ? 0) |
|
3358 |
||
3359 |
! ! |
|
3360 |
||
1409 | 3361 |
!UILayoutTool::Rectangle class methodsFor:'interface specs'! |
3362 |
||
3363 |
windowSpec |
|
3364 |
"This resource specification was automatically generated |
|
3365 |
by the UIPainter of ST/X." |
|
3366 |
||
3367 |
"Do not manually edit this!! If it is corrupted, |
|
3368 |
the UIPainter may not be able to read the specification." |
|
3369 |
||
3370 |
" |
|
3371 |
UIPainter new openOnClass:UILayoutTool::Rectangle andSelector:#windowSpec |
|
3372 |
UILayoutTool::Rectangle new openInterface:#windowSpec |
|
3373 |
UILayoutTool::Rectangle open |
|
3374 |
" |
|
3375 |
||
3376 |
<resource: #canvas> |
|
3377 |
||
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3378 |
^ |
3052 | 3379 |
#(FullSpec |
3380 |
name: windowSpec |
|
3381 |
window: |
|
3382 |
(WindowSpec |
|
3383 |
label: 'UILayoutTool-Rectangle' |
|
3384 |
name: 'UILayoutTool-Rectangle' |
|
3385 |
min: (Point 10 10) |
|
3386 |
bounds: (Rectangle 0 0 342 199) |
|
3387 |
) |
|
3388 |
component: |
|
3389 |
(SpecCollection |
|
3390 |
collection: ( |
|
3391 |
(UISubSpecification |
|
3392 |
name: 'subSpecification' |
|
3393 |
layout: (LayoutFrame 1 0.0 6 0 0 1.0 96 0) |
|
3394 |
majorKey: UILayoutTool |
|
3395 |
minorKey: layoutPointSpec |
|
3396 |
) |
|
3397 |
(FramedBoxSpec |
|
3398 |
label: 'Corner' |
|
3399 |
name: 'FramedBox' |
|
3400 |
layout: (LayoutFrame 1 0.0 99 0 0 1.0 194 0) |
|
3401 |
labelPosition: topLeft |
|
3402 |
translateLabel: true |
|
3403 |
component: |
|
3404 |
(SpecCollection |
|
3405 |
collection: ( |
|
3406 |
(LabelSpec |
|
3407 |
label: 'Right:' |
|
3408 |
name: 'labelCornerY' |
|
3409 |
layout: (AlignmentOrigin 83 0 16 0 1 0) |
|
3410 |
translateLabel: true |
|
3411 |
adjust: left |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3412 |
) |
3052 | 3413 |
(InputFieldSpec |
3414 |
name: 'fieldCornerX' |
|
3415 |
layout: (LayoutFrame 85 0 13 0 135 0 35 0) |
|
3416 |
activeHelpKey: cornerX |
|
3417 |
tabable: true |
|
3418 |
model: rightOffset |
|
3419 |
group: inputGroup |
|
3420 |
type: numberOrNil |
|
3421 |
acceptOnLostFocus: true |
|
3422 |
acceptChannel: acceptChannel |
|
3423 |
modifiedChannel: modifiedChannel |
|
3424 |
acceptOnPointerLeave: true |
|
3425 |
) |
|
3426 |
(LabelSpec |
|
3427 |
label: 'Bottom:' |
|
3428 |
name: 'labelCornerX' |
|
3429 |
layout: (AlignmentOrigin 83 0 41 0 1 0) |
|
3430 |
translateLabel: true |
|
3431 |
adjust: left |
|
3432 |
) |
|
3433 |
(InputFieldSpec |
|
3434 |
name: 'fieldCornerY' |
|
3435 |
layout: (LayoutFrame 85 0 38 0 135 0 60 0) |
|
3436 |
activeHelpKey: cornerY |
|
3437 |
tabable: true |
|
3438 |
model: bottomOffset |
|
3439 |
group: inputGroup |
|
3440 |
type: numberOrNil |
|
3441 |
acceptOnLostFocus: true |
|
3442 |
acceptChannel: acceptChannel |
|
3443 |
modifiedChannel: modifiedChannel |
|
3444 |
acceptOnPointerLeave: true |
|
3445 |
) |
|
3446 |
) |
|
3447 |
||
3448 |
) |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3449 |
) |
3052 | 3450 |
) |
3451 |
||
3452 |
) |
|
3453 |
) |
|
1409 | 3454 |
! ! |
3455 |
||
3456 |
!UILayoutTool::Rectangle methodsFor:'accessing'! |
|
3457 |
||
3458 |
fetch:aView spec:aSpec |
|
3459 |
"fetch rectangle |
|
3460 |
" |
|
3461 |
|origin corner| |
|
3462 |
||
3463 |
origin := aView computeOrigin. |
|
3464 |
corner := aView computeCorner. |
|
3465 |
||
3466 |
(self aspectFor:#leftOffset) value:(origin x). |
|
3467 |
(self aspectFor:#rightOffset) value:(corner x). |
|
3468 |
(self aspectFor:#topOffset) value:(origin y). |
|
3469 |
(self aspectFor:#bottomOffset) value:(corner y). |
|
3470 |
||
3471 |
||
3472 |
! |
|
3473 |
||
3474 |
layout |
|
2022 | 3475 |
"returns current layout as rectangle" |
3476 |
||
3477 |
^ Smalltalk::Rectangle |
|
3478 |
left:(((self aspectFor:#leftOffset) value) ? 0) |
|
3479 |
top:(((self aspectFor:#topOffset) value) ? 0) |
|
3480 |
right:(((self aspectFor:#rightOffset) value) ? 0) |
|
3481 |
bottom:(((self aspectFor:#bottomOffset) value) ? 0) |
|
1409 | 3482 |
! ! |
3483 |
||
163 | 3484 |
!UILayoutTool class methodsFor:'documentation'! |
3485 |
||
3486 |
version |
|
3487 |
^ '$Header$' |
|
2794 | 3488 |
! |
3489 |
||
3490 |
version_CVS |
|
3491 |
^ '$Header$' |
|
163 | 3492 |
! ! |
2949 | 3493 |