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