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