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