author | Claus Gittinger <cg@exept.de> |
Thu, 29 Oct 2015 09:31:25 +0100 | |
changeset 3234 | de4008994329 |
parent 3176 | ed6b37bc35b0 |
child 3235 | 62205b199fc6 |
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 |
||
1140 |
!UILayoutTool::AlignmentOrigin class methodsFor:'help specs'! |
|
1141 |
||
1142 |
helpSpec |
|
1143 |
"This resource specification was automatically generated |
|
1144 |
by the UIHelpTool of ST/X." |
|
1145 |
||
1146 |
"Do not manually edit this!! If it is corrupted, |
|
1147 |
the UIHelpTool may not be able to read the specification." |
|
1148 |
||
1149 |
" |
|
1150 |
UIHelpTool openOnClass:UILayoutTool::AlignmentOrigin |
|
1151 |
" |
|
1152 |
||
1153 |
<resource: #help> |
|
1154 |
||
1155 |
^super helpSpec addPairsFrom:#( |
|
1156 |
||
1157 |
#alignBottomCenter |
|
2794 | 1158 |
'Aligns the widget''s bottomCenter to location.' |
1447 | 1159 |
|
1160 |
#alignBottomLeft |
|
2794 | 1161 |
'Aligns the widget''s bottomLeft to location.' |
1447 | 1162 |
|
1163 |
#alignBottomRight |
|
2794 | 1164 |
'Aligns the widget''s bottomRight to location.' |
1447 | 1165 |
|
1166 |
#alignCenter |
|
2794 | 1167 |
'Aligns the widget''s center to location.' |
1447 | 1168 |
|
1169 |
#alignHorizontal |
|
2794 | 1170 |
'Horizontal relative position of the alignment point of the widget (that point is aligned with the above origin).' |
1447 | 1171 |
|
1172 |
#alignLeftCenter |
|
2794 | 1173 |
'Aligns the widget''s leftCenter to location.' |
1447 | 1174 |
|
1175 |
#alignRightCenter |
|
2794 | 1176 |
'Aligns the widget''s rightCenter to location.' |
1447 | 1177 |
|
1178 |
#alignTopCenter |
|
2794 | 1179 |
'Aligns the widget''s topCenter to location.' |
1447 | 1180 |
|
1181 |
#alignTopLeft |
|
2794 | 1182 |
'Aligns the widget''s topLeft to location.' |
1447 | 1183 |
|
1184 |
#alignTopRight |
|
2794 | 1185 |
'Aligns the widget''s topRight to location.' |
1447 | 1186 |
|
1187 |
#alignVertical |
|
2794 | 1188 |
'Vertical relative position of the alignment point of the widget (that point is aligned with the above origin).' |
1447 | 1189 |
|
1190 |
) |
|
2794 | 1191 |
|
1192 |
"Modified: / 28-07-2010 / 10:05:41 / cg" |
|
1447 | 1193 |
! ! |
1194 |
||
1195 |
!UILayoutTool::AlignmentOrigin class methodsFor:'interface specs'! |
|
1196 |
||
1197 |
windowSpec |
|
1198 |
"This resource specification was automatically generated |
|
1199 |
by the UIPainter of ST/X." |
|
1200 |
||
1201 |
"Do not manually edit this!! If it is corrupted, |
|
1202 |
the UIPainter may not be able to read the specification." |
|
1203 |
||
1204 |
" |
|
1205 |
UIPainter new openOnClass:UILayoutTool::AlignmentOrigin andSelector:#windowSpec |
|
1206 |
UILayoutTool::AlignmentOrigin new openInterface:#windowSpec |
|
1207 |
UILayoutTool::AlignmentOrigin open |
|
1208 |
" |
|
1209 |
||
1210 |
<resource: #canvas> |
|
1211 |
||
1212 |
^ |
|
3052 | 1213 |
#(FullSpec |
1214 |
name: windowSpec |
|
1215 |
window: |
|
1216 |
(WindowSpec |
|
1217 |
label: 'UILayoutTool-AlignmentOrigin' |
|
1218 |
name: 'UILayoutTool-AlignmentOrigin' |
|
1219 |
min: (Point 10 10) |
|
1220 |
bounds: (Rectangle 0 0 405 220) |
|
1221 |
) |
|
1222 |
component: |
|
1223 |
(SpecCollection |
|
1224 |
collection: ( |
|
1225 |
(UISubSpecification |
|
1226 |
name: 'layoutOriginSpec' |
|
1227 |
layout: (LayoutFrame 1 0.0 6 0 0 1.0 111 0) |
|
1228 |
majorKey: UILayoutTool |
|
1229 |
minorKey: layoutOriginSpec |
|
1230 |
) |
|
1231 |
(FramedBoxSpec |
|
1232 |
label: 'Alignment' |
|
1233 |
name: 'FramedBox' |
|
1234 |
layout: (LayoutFrame 1 0.0 113 0 0 1.0 215 0) |
|
1235 |
labelPosition: topLeft |
|
1236 |
translateLabel: true |
|
1237 |
component: |
|
1238 |
(SpecCollection |
|
1239 |
collection: ( |
|
1240 |
(LabelSpec |
|
1241 |
label: 'Horizontal:' |
|
1242 |
name: 'alignHLabel' |
|
1243 |
layout: (AlignmentOrigin 88 0 17 0 1 0) |
|
1244 |
translateLabel: true |
|
1245 |
adjust: right |
|
1246 |
) |
|
1247 |
(InputFieldSpec |
|
1248 |
name: 'leftAlignmentFractionField' |
|
1249 |
layout: (LayoutFrame 90 0 14 0 147 0 36 0) |
|
1250 |
activeHelpKey: alignHorizontal |
|
1251 |
tabable: true |
|
1252 |
model: leftAlignmentFraction |
|
1253 |
group: inputGroup |
|
1254 |
type: numberOrNil |
|
1255 |
acceptOnLostFocus: true |
|
1256 |
acceptChannel: acceptChannel |
|
1257 |
modifiedChannel: modifiedChannel |
|
1258 |
acceptOnPointerLeave: true |
|
1259 |
) |
|
1260 |
(LabelSpec |
|
1261 |
label: 'Vertical:' |
|
1262 |
name: 'alignVLabel' |
|
1263 |
layout: (AlignmentOrigin 88 0 43 0 1 0) |
|
1264 |
translateLabel: true |
|
1265 |
adjust: right |
|
1266 |
) |
|
1267 |
(InputFieldSpec |
|
1268 |
name: 'topAlignmentFractionField' |
|
1269 |
layout: (LayoutFrame 90 0 40 0 147 0 62 0) |
|
1270 |
activeHelpKey: alignVertical |
|
1271 |
tabable: true |
|
1272 |
model: topAlignmentFraction |
|
1273 |
group: inputGroup |
|
1274 |
type: numberOrNil |
|
1275 |
acceptOnLostFocus: true |
|
1276 |
acceptChannel: acceptChannel |
|
1277 |
modifiedChannel: modifiedChannel |
|
1278 |
acceptOnPointerLeave: true |
|
1279 |
) |
|
1280 |
(DividerSpec |
|
1281 |
name: 'separator1' |
|
1282 |
layout: (LayoutFrame 204 0 19 0 245 0 22 0) |
|
1283 |
) |
|
1284 |
(DividerSpec |
|
1285 |
name: 'separator2' |
|
1286 |
layout: (LayoutFrame 204 0 55 0 245 0 58 0) |
|
1447 | 1287 |
) |
3052 | 1288 |
(DividerSpec |
1289 |
name: 'separator3' |
|
1290 |
layout: (LayoutFrame 196 0 28 0 199 0 50 0) |
|
1291 |
orientation: vertical |
|
1292 |
) |
|
1293 |
(DividerSpec |
|
1294 |
name: 'separator4' |
|
1295 |
layout: (LayoutFrame 250 0 28 0 253 0 50 0) |
|
1296 |
orientation: vertical |
|
1297 |
) |
|
1298 |
(ActionButtonSpec |
|
1299 |
name: 'alignTopLeft' |
|
1300 |
layout: (LayoutFrame 190 0 14 0 204 0 28 0) |
|
1301 |
activeHelpKey: alignTopLeft |
|
1302 |
tabable: true |
|
1303 |
model: alignTopLeft |
|
1304 |
) |
|
1305 |
(ActionButtonSpec |
|
1306 |
name: 'alignTopCenter' |
|
1307 |
layout: (LayoutFrame 217 0 14 0 231 0 28 0) |
|
1308 |
activeHelpKey: alignTopCenter |
|
1309 |
tabable: true |
|
1310 |
model: alignTopCenter |
|
1311 |
) |
|
1312 |
(ActionButtonSpec |
|
1313 |
name: 'alignTopRight' |
|
1314 |
layout: (LayoutFrame 245 0 14 0 259 0 28 0) |
|
1315 |
activeHelpKey: alignTopRight |
|
1316 |
tabable: true |
|
1317 |
model: alignTopRight |
|
1318 |
) |
|
1319 |
(ActionButtonSpec |
|
1320 |
name: 'alignLeftCenter' |
|
1321 |
layout: (LayoutFrame 190 0 32 0 204 0 46 0) |
|
1322 |
activeHelpKey: alignLeftCenter |
|
1323 |
tabable: true |
|
1324 |
model: alignLeftCenter |
|
1325 |
) |
|
1326 |
(ActionButtonSpec |
|
1327 |
name: 'alignCenter' |
|
1328 |
layout: (LayoutFrame 217 0 32 0 231 0 46 0) |
|
1329 |
activeHelpKey: alignCenter |
|
1330 |
tabable: true |
|
1331 |
model: alignCenter |
|
1332 |
) |
|
1333 |
(ActionButtonSpec |
|
1334 |
name: 'alignRightCenter' |
|
1335 |
layout: (LayoutFrame 245 0 32 0 259 0 46 0) |
|
1336 |
activeHelpKey: alignRightCenter |
|
1337 |
tabable: true |
|
1338 |
model: alignRightCenter |
|
1339 |
) |
|
1340 |
(ActionButtonSpec |
|
1341 |
name: 'alignBottomLeft' |
|
1342 |
layout: (LayoutFrame 190 0 50 0 204 0 64 0) |
|
1343 |
activeHelpKey: alignBottomLeft |
|
1344 |
tabable: true |
|
1345 |
model: alignBottomLeft |
|
1346 |
) |
|
1347 |
(ActionButtonSpec |
|
1348 |
name: 'alignBottomCenter' |
|
1349 |
layout: (LayoutFrame 217 0 50 0 231 0 64 0) |
|
1350 |
activeHelpKey: alignBottomCenter |
|
1351 |
tabable: true |
|
1352 |
model: alignBottomCenter |
|
1353 |
) |
|
1354 |
(ActionButtonSpec |
|
1355 |
name: 'alignBottomRight' |
|
1356 |
layout: (LayoutFrame 245 0 50 0 259 0 64 0) |
|
1357 |
activeHelpKey: alignBottomRight |
|
1358 |
tabable: true |
|
1359 |
model: alignBottomRight |
|
1360 |
) |
|
1361 |
) |
|
1362 |
||
1363 |
) |
|
1447 | 1364 |
) |
3052 | 1365 |
) |
1366 |
||
1367 |
) |
|
1368 |
) |
|
1447 | 1369 |
! ! |
1370 |
||
1371 |
!UILayoutTool::AlignmentOrigin methodsFor:'accessing'! |
|
1372 |
||
1373 |
fetch:aView spec:aSpec |
|
1374 |
"fetch alignmentOrigin |
|
1375 |
" |
|
1376 |
|layout type |
|
1377 |
leftAlignmentFractionHolder topAlignmentFractionHolder |
|
1378 |
leftOffsetHolder leftFractionHolder topOffsetHolder topFractionHolder| |
|
1379 |
||
1380 |
type := UIPainterView layoutType:aView. |
|
1381 |
layout := aView geometryLayout. |
|
1382 |
||
1383 |
leftOffsetHolder := (self aspectFor:#leftOffset). |
|
1384 |
leftFractionHolder := (self aspectFor:#leftFraction). |
|
1385 |
topOffsetHolder := (self aspectFor:#topOffset). |
|
1386 |
topFractionHolder := (self aspectFor:#topFraction). |
|
1387 |
leftAlignmentFractionHolder := (self aspectFor:#leftAlignmentFraction). |
|
1388 |
topAlignmentFractionHolder := (self aspectFor:#topAlignmentFraction). |
|
1389 |
||
1390 |
layout isLayout ifTrue:[ |
|
1391 |
leftOffsetHolder value:(layout leftOffset). |
|
1392 |
leftFractionHolder value:(layout leftFraction). |
|
1393 |
topOffsetHolder value:(layout topOffset). |
|
1394 |
topFractionHolder value:(layout topFraction). |
|
1395 |
||
1396 |
type == #AlignmentOrigin ifTrue:[ |
|
1397 |
leftAlignmentFractionHolder value:(layout leftAlignmentFraction). |
|
1398 |
topAlignmentFractionHolder value:(layout topAlignmentFraction). |
|
1399 |
^ self |
|
1400 |
] |
|
1401 |
] ifFalse:[ |
|
1402 |
layout := aView computeOrigin. |
|
1403 |
||
1404 |
leftOffsetHolder value:(layout x). |
|
1405 |
leftFractionHolder value:0. |
|
1406 |
topOffsetHolder value:(layout y). |
|
1407 |
topFractionHolder value:0. |
|
1408 |
]. |
|
1409 |
leftAlignmentFractionHolder value:0. |
|
1410 |
topAlignmentFractionHolder value:0. |
|
1411 |
||
1412 |
||
1413 |
! |
|
1414 |
||
1415 |
layout |
|
1416 |
"returns current layout as alignmentOrigin |
|
1417 |
" |
|
1418 |
|layout| |
|
1419 |
||
3234 | 1420 |
layout := (Smalltalk at:#AlignmentOrigin) new. |
1447 | 1421 |
|
1581 | 1422 |
layout |
1423 |
leftFraction:(((self aspectFor:#leftFraction) value) ? 0) |
|
1424 |
offset:(((self aspectFor:#leftOffset) value) ? 0) |
|
1425 |
topFraction:(((self aspectFor:#topFraction) value) ? 0) |
|
1426 |
offset:(((self aspectFor:#topOffset) value) ? 0). |
|
1427 |
||
1428 |
layout |
|
1429 |
leftAlignmentFraction:(((self aspectFor:#leftAlignmentFraction) value) ? 0) |
|
1430 |
topAlignmentFraction:(((self aspectFor:#topAlignmentFraction) value) ? 0). |
|
1447 | 1431 |
|
1432 |
^ layout |
|
1433 |
! ! |
|
1434 |
||
1435 |
!UILayoutTool::AlignmentOrigin methodsFor:'alignment'! |
|
1436 |
||
1437 |
alignBottomCenter |
|
1438 |
self makeAlignLeft:0.5 top:1 |
|
1439 |
||
1440 |
||
1441 |
! |
|
1442 |
||
1443 |
alignBottomLeft |
|
1444 |
self makeAlignLeft:0 top:1 |
|
1445 |
||
1446 |
||
1447 |
! |
|
1448 |
||
1449 |
alignBottomRight |
|
1450 |
self makeAlignLeft:1 top:1 |
|
1451 |
||
1452 |
||
1453 |
! |
|
1454 |
||
1455 |
alignCenter |
|
1456 |
self makeAlignLeft:0.5 top:0.5 |
|
1457 |
||
1458 |
||
1459 |
! |
|
1460 |
||
1461 |
alignLeftCenter |
|
1462 |
self makeAlignLeft:0 top:0.5 |
|
1463 |
||
1464 |
||
1465 |
! |
|
1466 |
||
1467 |
alignRightCenter |
|
1468 |
self makeAlignLeft:1 top:0.5 |
|
1469 |
||
1470 |
||
1471 |
! |
|
1472 |
||
1473 |
alignTopCenter |
|
1474 |
self makeAlignLeft:0.5 top:0 |
|
1475 |
||
1476 |
||
1477 |
! |
|
1478 |
||
1479 |
alignTopLeft |
|
1480 |
self makeAlignLeft:0 top:0 |
|
1481 |
||
1482 |
||
1483 |
! |
|
1484 |
||
1485 |
alignTopRight |
|
1486 |
self makeAlignLeft:1 top:0 |
|
1487 |
||
1488 |
||
1489 |
! |
|
1490 |
||
1491 |
makeAlignLeft:leftAlignmentFraction top:topAlignmentFraction |
|
1492 |
|lAF tAF lO tO ext lAHolder tAHolder lOHolder tOHolder| |
|
1493 |
||
1494 |
lAF := (lAHolder := self aspectFor:#leftAlignmentFraction) value ? 0. |
|
1495 |
tAF := (tAHolder := self aspectFor:#topAlignmentFraction) value ? 0. |
|
1496 |
ext := (self aspectFor:#layoutView) computeExtent. |
|
1497 |
||
1498 |
lAHolder value:leftAlignmentFraction. |
|
1499 |
tAHolder value:topAlignmentFraction. |
|
1500 |
||
1501 |
lO := (lOHolder := self aspectFor:#leftOffset) value ? 0. |
|
1502 |
tO := (tOHolder := self aspectFor:#topOffset) value ? 0. |
|
1503 |
||
1504 |
lO := lO + (ext x * (leftAlignmentFraction - lAF)). |
|
1505 |
tO := tO + (ext y * (topAlignmentFraction - tAF)). |
|
1506 |
||
1507 |
lOHolder value:(lO rounded). |
|
1508 |
tOHolder value:(tO rounded). |
|
1509 |
||
1510 |
! |
|
1511 |
||
1512 |
makeAlignTopRight |
|
1513 |
self makeAlignLeft:1 top:0 |
|
1514 |
||
1515 |
||
1516 |
! ! |
|
1517 |
||
1518 |
!UILayoutTool::Extent class methodsFor:'help specs'! |
|
1519 |
||
1520 |
helpSpec |
|
1521 |
"This resource specification was automatically generated |
|
1522 |
by the UIHelpTool of ST/X." |
|
1523 |
||
1524 |
"Do not manually edit this!! If it is corrupted, |
|
1525 |
the UIHelpTool may not be able to read the specification." |
|
1526 |
||
1527 |
" |
|
1528 |
UIHelpTool openOnClass:UILayoutTool::Extent |
|
1529 |
" |
|
1530 |
||
1531 |
<resource: #help> |
|
1532 |
||
2949 | 1533 |
^ super helpSpec addPairsFrom:#( |
1447 | 1534 |
|
1535 |
#hrzExtent |
|
1536 |
'Horizontal extent of the selected widget.' |
|
1537 |
||
2949 | 1538 |
#useDynamicPreferredWidth |
1539 |
'Dynamically adapt to any change of the widget''s preferred width' |
|
1540 |
||
1541 |
#useDynamicPreferredHeight |
|
1542 |
'Dynamically adapt to any change of the widget''s preferred height' |
|
1543 |
||
1544 |
#usePreferredHeight |
|
1545 |
'Use the widget''s preferred height as initial size' |
|
1546 |
||
1547 |
#usePreferredWidth |
|
1548 |
'Use the widget''s preferred width as initial size' |
|
1549 |
||
1550 |
#useDefaultExtent |
|
1551 |
'Use the widget''s default extent as initial size' |
|
1552 |
||
1447 | 1553 |
#vrtExtent |
1554 |
'Vertical extent of the selected widget.' |
|
1555 |
||
1556 |
) |
|
1557 |
! ! |
|
1558 |
||
1559 |
!UILayoutTool::Extent class methodsFor:'interface specs'! |
|
1560 |
||
1561 |
windowSpec |
|
1562 |
"This resource specification was automatically generated |
|
1563 |
by the UIPainter of ST/X." |
|
1564 |
||
1565 |
"Do not manually edit this!! If it is corrupted, |
|
1566 |
the UIPainter may not be able to read the specification." |
|
1567 |
||
1568 |
" |
|
1569 |
UIPainter new openOnClass:UILayoutTool::Extent andSelector:#windowSpec |
|
1570 |
UILayoutTool::Extent new openInterface:#windowSpec |
|
1571 |
UILayoutTool::Extent open |
|
1572 |
" |
|
1573 |
||
1574 |
<resource: #canvas> |
|
1575 |
||
1576 |
^ |
|
3052 | 1577 |
#(FullSpec |
1578 |
name: windowSpec |
|
1579 |
window: |
|
1580 |
(WindowSpec |
|
1581 |
label: 'UILayoutTool-Extent' |
|
1582 |
name: 'UILayoutTool-Extent' |
|
1583 |
min: (Point 10 10) |
|
1584 |
bounds: (Rectangle 0 0 506 169) |
|
1585 |
) |
|
1586 |
component: |
|
1587 |
(SpecCollection |
|
1588 |
collection: ( |
|
1589 |
(FramedBoxSpec |
|
1590 |
label: 'Extent' |
|
1591 |
name: 'FramedBox' |
|
1592 |
layout: (LayoutFrame 0 0.0 6 0.0 0 1.0 158 0) |
|
1593 |
labelPosition: topLeft |
|
1594 |
translateLabel: true |
|
1595 |
component: |
|
1596 |
(SpecCollection |
|
1597 |
collection: ( |
|
1598 |
(LabelSpec |
|
1599 |
label: 'Width:' |
|
1600 |
name: 'labelWidth' |
|
1601 |
layout: (AlignmentOrigin 89 0 41 0 1 0.5) |
|
1602 |
translateLabel: true |
|
1603 |
adjust: right |
|
1604 |
) |
|
1605 |
(InputFieldSpec |
|
1606 |
name: 'fieldLeftOffset' |
|
1607 |
layout: (LayoutFrame 90 0 30 0 140 0 52 0) |
|
1608 |
activeHelpKey: hrzExtent |
|
1609 |
enableChannel: notUsingDefaultExtent |
|
1610 |
tabable: true |
|
1611 |
model: leftOffset |
|
1612 |
group: inputGroup |
|
1613 |
type: numberOrNil |
|
1614 |
acceptOnLostFocus: true |
|
1615 |
acceptChannel: acceptChannel |
|
1616 |
modifiedChannel: modifiedChannel |
|
1617 |
acceptOnPointerLeave: true |
|
1618 |
) |
|
1619 |
(LabelSpec |
|
1620 |
label: 'Height:' |
|
1621 |
name: 'labelHeight' |
|
1622 |
layout: (AlignmentOrigin 89 0 66 0 1 0.5) |
|
1623 |
translateLabel: true |
|
1624 |
adjust: right |
|
1447 | 1625 |
) |
3052 | 1626 |
(InputFieldSpec |
1627 |
name: 'fieldRightOffset' |
|
1628 |
layout: (LayoutFrame 90 0 55 0 140 0 77 0) |
|
1629 |
activeHelpKey: vrtExtent |
|
1630 |
enableChannel: notUsingDefaultExtent |
|
1631 |
tabable: true |
|
1632 |
model: topOffset |
|
1633 |
group: inputGroup |
|
1634 |
type: numberOrNil |
|
1635 |
acceptOnLostFocus: true |
|
1636 |
acceptChannel: acceptChannel |
|
1637 |
modifiedChannel: modifiedChannel |
|
1638 |
acceptOnPointerLeave: true |
|
1639 |
) |
|
1640 |
(CheckBoxSpec |
|
1641 |
label: 'Preferred' |
|
1642 |
name: 'CheckBox1' |
|
1643 |
layout: (LayoutFrame 169 0 30 0 275 0 52 0) |
|
1644 |
activeHelpKey: usePreferredWidth |
|
1645 |
model: usePreferredWidth |
|
1646 |
translateLabel: true |
|
1647 |
) |
|
1648 |
(CheckBoxSpec |
|
1649 |
label: 'Dynamic' |
|
1650 |
name: 'CheckBox3' |
|
1651 |
layout: (LayoutFrame 276 0 30 0 371 0 52 0) |
|
1652 |
activeHelpKey: useDynamicPreferredWidth |
|
1653 |
model: useDynamicPreferredWidth |
|
1654 |
translateLabel: true |
|
1655 |
) |
|
1656 |
(CheckBoxSpec |
|
1657 |
label: 'Preferred' |
|
1658 |
name: 'CheckBox2' |
|
1659 |
layout: (LayoutFrame 169 0 58 0 275 0 80 0) |
|
1660 |
activeHelpKey: usePreferredHeight |
|
1661 |
model: usePreferredHeight |
|
1662 |
translateLabel: true |
|
1663 |
) |
|
1664 |
(CheckBoxSpec |
|
1665 |
label: 'Dynamic' |
|
1666 |
name: 'CheckBox4' |
|
1667 |
layout: (LayoutFrame 276 0 58 0 372 0 80 0) |
|
1668 |
activeHelpKey: useDynamicPreferredHeight |
|
1669 |
model: useDynamicPreferredHeight |
|
1670 |
translateLabel: true |
|
1671 |
) |
|
1672 |
(CheckBoxSpec |
|
1673 |
label: 'Use Widget''s Default Extent' |
|
1674 |
name: 'useDefaultExtentCheckBox' |
|
1675 |
layout: (Point 5 84) |
|
1676 |
activeHelpKey: useDefaultExtent |
|
1677 |
enableChannel: defaultExtentEnabled |
|
1678 |
tabable: true |
|
1679 |
model: useDefaultExtent |
|
1680 |
translateLabel: true |
|
1681 |
) |
|
1682 |
) |
|
1683 |
||
1684 |
) |
|
1447 | 1685 |
) |
3052 | 1686 |
(PopUpListSpec |
1687 |
label: 'Common Extents' |
|
1688 |
name: 'CommonExtentsPopUpList' |
|
1689 |
layout: (LayoutFrame 189 0 21 0 314 0 43 0) |
|
1690 |
tabable: true |
|
1691 |
menu: listOfCommonExtents |
|
1692 |
useIndex: true |
|
1693 |
ignoreReselect: false |
|
1694 |
stateChangeCallBackSelector: commonExtentSelected: |
|
1695 |
) |
|
1696 |
) |
|
1697 |
||
1698 |
) |
|
1699 |
) |
|
1447 | 1700 |
! ! |
1701 |
||
1702 |
!UILayoutTool::Extent methodsFor:'accessing'! |
|
1703 |
||
1704 |
fetch:aView spec:aSpec |
|
2022 | 1705 |
"fetch the extent from aView" |
1706 |
||
1447 | 1707 |
|extent| |
1708 |
||
1709 |
extent := aView computeExtent. |
|
1710 |
||
1711 |
(self aspectFor:#leftOffset) value:(extent x). |
|
2022 | 1712 |
(self aspectFor:#topOffset) value:(extent y). |
3176 | 1713 |
aSpec notNil ifTrue:[ |
1714 |
(self aspectFor:#usePreferredWidth) value:(aSpec usePreferredWidth). |
|
1715 |
(self aspectFor:#usePreferredHeight) value:(aSpec usePreferredHeight). |
|
1716 |
(self aspectFor:#useDynamicPreferredWidth) value:(aSpec useDynamicPreferredWidth). |
|
1717 |
(self aspectFor:#useDynamicPreferredHeight) value:(aSpec useDynamicPreferredHeight). |
|
1718 |
(self aspectFor:#useDefaultExtent) value:aSpec useDefaultExtent |
|
1719 |
]. |
|
1447 | 1720 |
! |
1721 |
||
1722 |
layout |
|
2022 | 1723 |
"returns the current extent" |
1724 |
||
1725 |
^ (((self aspectFor:#leftOffset) value) ? 0) @ (((self aspectFor:#topOffset) value) ? 0) |
|
1726 |
! ! |
|
1727 |
||
1728 |
!UILayoutTool::Extent methodsFor:'aspects'! |
|
1729 |
||
1730 |
commonExtentsSpec |
|
1731 |
^ #( |
|
1732 |
('200 x 100' (200 100) ) |
|
1733 |
('300 x 300' (300 300) ) |
|
1734 |
('640 x 400' (640 400) ) |
|
1735 |
('800 x 600' (800 600) ) |
|
2214 | 1736 |
('1024 x 768' (1024 768) ) |
1737 |
('1200 x 800' (1200 800) ) |
|
2022 | 1738 |
) |
1739 |
! |
|
1740 |
||
1741 |
listOfCommonExtents |
|
1742 |
^ self commonExtentsSpec collect:[:eachRow | eachRow first]. |
|
1743 |
! ! |
|
1744 |
||
1745 |
!UILayoutTool::Extent methodsFor:'user actions'! |
|
1746 |
||
1747 |
commonExtentSelected:index |
|
1748 |
|xy x y| |
|
1749 |
||
1750 |
xy := (self commonExtentsSpec at:index) second. |
|
1751 |
x := xy at:1. |
|
1752 |
y := xy at:2. |
|
1753 |
||
1754 |
(self aspectFor:#leftOffset) value:x. |
|
1755 |
(self aspectFor:#topOffset) value:y. |
|
1756 |
||
1757 |
(builder componentAt:#CommonExtentsPopUpList) |
|
1758 |
label:(resources string:'Common Extents'). |
|
1447 | 1759 |
! ! |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
1760 |
|
1826 | 1761 |
!UILayoutTool::LayoutFrame class methodsFor:'defaults'! |
1762 |
||
1763 |
defaultFixPartHeight |
|
1764 |
^ DefaultFixPartHeight ? 30 |
|
1765 |
! ! |
|
1766 |
||
1409 | 1767 |
!UILayoutTool::LayoutFrame class methodsFor:'help specs'! |
1768 |
||
1769 |
helpSpec |
|
1770 |
"This resource specification was automatically generated |
|
1771 |
by the UIHelpTool of ST/X." |
|
1772 |
||
1773 |
"Do not manually edit this!! If it is corrupted, |
|
1774 |
the UIHelpTool may not be able to read the specification." |
|
1775 |
||
1776 |
" |
|
1777 |
UIHelpTool openOnClass:UILayoutTool::LayoutFrame |
|
1778 |
" |
|
1779 |
||
1780 |
<resource: #help> |
|
1781 |
||
1858 | 1782 |
^ super helpSpec addPairsFrom:#( |
1409 | 1783 |
|
2949 | 1784 |
#bigBottomFixPartLayout |
1785 |
'Set layout for a big fixed area at the bottom of the widgets container' |
|
1786 |
||
1787 |
#bigHorizontalFixPartLayout |
|
1788 |
'Set layout for a big fixed-height area centered vertically in the widgets container' |
|
1789 |
||
1790 |
#bigTopFixPartLayout |
|
1791 |
'Set layout for a big fixed area at the top of the widgets container' |
|
1792 |
||
1409 | 1793 |
#bottomAbsolute |
1794 |
'Offset of the bottom edge; positive is to the bottom, negative to the top.' |
|
1795 |
||
1796 |
#bottomFixPartLayout |
|
1858 | 1797 |
'Set layout for a small fixed area at the bottom of the widgets container' |
1409 | 1798 |
|
1799 |
#bottomHalfLayout |
|
1858 | 1800 |
'Set layout for the bottom half of the widgets container' |
1409 | 1801 |
|
1802 |
#bottomLeftQuarterLayout |
|
1858 | 1803 |
'Set layout for the bottom-left quarter of the widgets container' |
1409 | 1804 |
|
1805 |
#bottomRelative |
|
1806 |
'Relative corner y of the selected widget.' |
|
1807 |
||
1808 |
#bottomRightQuarterLayout |
|
1858 | 1809 |
'Set layout for the bottom-right quarter of the widgets container' |
1810 |
||
1811 |
#fullLayout |
|
1812 |
'Set layout to fill all of the widgets container' |
|
1409 | 1813 |
|
1814 |
#horizontalFixPartLayout |
|
1858 | 1815 |
'Set layout for a small fixed-height area centered vertically in the widgets container' |
1816 |
||
2953 | 1817 |
#keepSpaceForOSXResizeHandleH |
2949 | 1818 |
'Keep space at the right for the window resize handle under MAXOS-X; ignored when running on other systems' |
1409 | 1819 |
|
2953 | 1820 |
#keepSpaceForOSXResizeHandleV |
1821 |
'Keep space at the bottom for the window resize handle under MAXOS-X; ignored when running on other systems' |
|
1822 |
||
1409 | 1823 |
#leftFixPartLayout |
1858 | 1824 |
'Set layout for a small fixed area at the left of the widgets container' |
1409 | 1825 |
|
1826 |
#leftHalfLayout |
|
1858 | 1827 |
'Set layout for the left half of the widgets container' |
1409 | 1828 |
|
1829 |
#makeBottomAbsolute |
|
1830 |
'Compute pure-absolute y.' |
|
1831 |
||
1832 |
#makeBottomRelative |
|
1955 | 1833 |
'Compute pure-fractional y.' |
1409 | 1834 |
|
1835 |
#makeBottomRelativeFromBottom |
|
2022 | 1836 |
'Compute fraction+offset for y relative to containers bottom.' |
1409 | 1837 |
|
1838 |
#makeRightAbsolute |
|
1839 |
'Compute pure-absolute x.' |
|
1840 |
||
1841 |
#makeRightRelative |
|
1955 | 1842 |
'Compute pure-fractional x.' |
1409 | 1843 |
|
1844 |
#makeRightRelativeFromRight |
|
1845 |
'Compute fraction+offset for x relative to containers right.' |
|
1846 |
||
1847 |
#rightAbsolute |
|
1848 |
'Offset of the right edge; positive is to the right, negative to the left.' |
|
1849 |
||
1850 |
#rightFixPartLayout |
|
1858 | 1851 |
'Set layout for a small fixed area at the right of the widgets container' |
1409 | 1852 |
|
1853 |
#rightHalfLayout |
|
1858 | 1854 |
'Set layout for the right half of the widgets container' |
1409 | 1855 |
|
1856 |
#rightRelative |
|
1857 |
'Relative corner x of the selected widget.' |
|
1858 |
||
1858 | 1859 |
#screenFrameLayout |
1860 |
'' |
|
1861 |
||
2949 | 1862 |
#useDynamicPreferredWidth |
1863 |
'Dynamically adapt to any change of the widget''s preferred width' |
|
1864 |
||
1865 |
#useDynamicPreferredHeight |
|
1866 |
'Dynamically adapt to any change of the widget''s preferred height' |
|
1867 |
||
1868 |
#usePreferredHeight |
|
1869 |
'Use the widget''s preferred height as initial size' |
|
1870 |
||
1871 |
#usePreferredWidth |
|
1872 |
'Use the widget''s preferred width as initial size' |
|
1873 |
||
1874 |
||
1409 | 1875 |
#topFixPartLayout |
1858 | 1876 |
'Set layout for a small fixed area at the top of the widgets container' |
1877 |
||
1409 | 1878 |
#topHalfLayout |
1858 | 1879 |
'Set layout for the top half of the widgets container' |
1409 | 1880 |
|
1881 |
#topLeftQuarterLayout |
|
1858 | 1882 |
'Set layout for the top-left quarter of the widgets container' |
1409 | 1883 |
|
1884 |
#topRightQuarterLayout |
|
1858 | 1885 |
'Set layout for the top-right quarter of the widgets container' |
1409 | 1886 |
|
1887 |
#verticalFixPartLayout |
|
1858 | 1888 |
'Set layout for a small fixed-width area centered horizontally in the widgets container' |
1409 | 1889 |
|
1890 |
) |
|
1891 |
! ! |
|
1892 |
||
1893 |
!UILayoutTool::LayoutFrame class methodsFor:'image specs'! |
|
1894 |
||
1706 | 1895 |
setBigBottomFixPartIcon |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1896 |
<resource: #image> |
1706 | 1897 |
"This resource specification was automatically generated |
1898 |
by the ImageEditor of ST/X." |
|
1899 |
"Do not manually edit this!! If it is corrupted, |
|
1900 |
the ImageEditor may not be able to read the specification." |
|
1901 |
" |
|
1902 |
self setBigBottomFixPartIcon inspect |
|
1903 |
ImageEditor openOnClass:self andSelector:#setBigBottomFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1904 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1905 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1906 |
^ Icon |
2269 | 1907 |
constantNamed:'UILayoutTool::LayoutFrame class setBigBottomFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1908 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1909 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1910 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1911 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1912 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1913 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1914 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1915 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1916 |
fromPackedString:' |
2022 | 1917 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"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
|
1918 |
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
|
1919 |
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
|
1920 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1921 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1922 |
height:16; |
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:'??>A XFA XFA _????????????????????????????<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1925 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1926 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1927 |
] |
1706 | 1928 |
! |
1929 |
||
1930 |
setBigHorizontalFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1931 |
<resource: #image> |
1706 | 1932 |
"This resource specification was automatically generated |
1933 |
by the ImageEditor of ST/X." |
|
1934 |
"Do not manually edit this!! If it is corrupted, |
|
1935 |
the ImageEditor may not be able to read the specification." |
|
1936 |
" |
|
1937 |
self setBigHorizontalFixPartIcon inspect |
|
1938 |
ImageEditor openOnClass:self andSelector:#setBigHorizontalFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1939 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1940 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1941 |
^ Icon |
2269 | 1942 |
constantNamed:'UILayoutTool::LayoutFrame class setBigHorizontalFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1943 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1944 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1945 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1946 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1947 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1948 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1949 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1950 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1951 |
fromPackedString:' |
2022 | 1952 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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
|
1953 |
H"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1954 |
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
|
1955 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1956 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1957 |
height:16; |
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:'??>A XFA??????????????????????????>A XFA??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1960 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1961 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1962 |
] |
1706 | 1963 |
! |
1964 |
||
1965 |
setBigTopFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1966 |
<resource: #image> |
1706 | 1967 |
"This resource specification was automatically generated |
1968 |
by the ImageEditor of ST/X." |
|
1969 |
"Do not manually edit this!! If it is corrupted, |
|
1970 |
the ImageEditor may not be able to read the specification." |
|
1971 |
" |
|
1972 |
self setBigTopFixPartIcon inspect |
|
1973 |
ImageEditor openOnClass:self andSelector:#setBigTopFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1974 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1975 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1976 |
^ Icon |
2269 | 1977 |
constantNamed:'UILayoutTool::LayoutFrame class setBigTopFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1978 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1979 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1980 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1981 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1982 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1983 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1984 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1985 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1986 |
fromPackedString:' |
2022 | 1987 |
@@@@@@@@@@@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
|
1988 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1989 |
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
|
1990 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1991 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1992 |
height:16; |
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:'?????????????????????????????8FA XFA XFA??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1995 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1996 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
1997 |
] |
1706 | 1998 |
! |
1999 |
||
1409 | 2000 |
setBottomFixPartIcon |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2001 |
<resource: #image> |
1409 | 2002 |
"This resource specification was automatically generated |
2003 |
by the ImageEditor of ST/X." |
|
2004 |
"Do not manually edit this!! If it is corrupted, |
|
2005 |
the ImageEditor may not be able to read the specification." |
|
2006 |
" |
|
2007 |
self setBottomFixPartIcon inspect |
|
2008 |
ImageEditor openOnClass:self andSelector:#setBottomFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2009 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2010 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2011 |
^ Icon |
2269 | 2012 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2013 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2014 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2015 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2016 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2017 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2018 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2019 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2020 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2021 |
fromPackedString:' |
2269 | 2022 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H" |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2023 |
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
|
2024 |
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
|
2025 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2026 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2027 |
height:16; |
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:'??>@@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
|
2030 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2031 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2032 |
] |
1447 | 2033 |
! |
1409 | 2034 |
|
2035 |
setBottomHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2036 |
<resource: #image> |
1409 | 2037 |
"This resource specification was automatically generated |
2038 |
by the ImageEditor of ST/X." |
|
2039 |
"Do not manually edit this!! If it is corrupted, |
|
2040 |
the ImageEditor may not be able to read the specification." |
|
2041 |
" |
|
2042 |
self setBottomHalfIcon inspect |
|
2043 |
ImageEditor openOnClass:self andSelector:#setBottomHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2044 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2045 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2046 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setBottomHalfIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2047 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2048 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2049 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2050 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2051 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2052 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2053 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2054 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2055 |
fromPackedString:' |
2269 | 2056 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"H"H"@BDQDQDQDQH@HQ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2057 |
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
|
2058 |
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
|
2059 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2060 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2061 |
height:16; |
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:'??>@@X@A @F@@X@A @F@@_????????????????????<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2064 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2065 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2066 |
] |
1447 | 2067 |
! |
1409 | 2068 |
|
2069 |
setBottomLeftQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2070 |
<resource: #image> |
1409 | 2071 |
"This resource specification was automatically generated |
2072 |
by the ImageEditor of ST/X." |
|
2073 |
"Do not manually edit this!! If it is corrupted, |
|
2074 |
the ImageEditor may not be able to read the specification." |
|
2075 |
" |
|
2076 |
self setBottomLeftQuarterIcon inspect |
|
2077 |
ImageEditor openOnClass:self andSelector:#setBottomLeftQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2078 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2079 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2080 |
^ Icon |
2269 | 2081 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomLeftQuarterIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2082 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2083 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2084 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2085 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2086 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2087 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2088 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2089 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2090 |
fromPackedString:' |
2269 | 2091 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H"H"@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2092 |
DR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2093 |
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
|
2094 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2095 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2096 |
height:16; |
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:'??>@@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
|
2099 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2100 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2101 |
] |
1447 | 2102 |
! |
1409 | 2103 |
|
2104 |
setBottomRightQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2105 |
<resource: #image> |
1409 | 2106 |
"This resource specification was automatically generated |
2107 |
by the ImageEditor of ST/X." |
|
2108 |
"Do not manually edit this!! If it is corrupted, |
|
2109 |
the ImageEditor may not be able to read the specification." |
|
2110 |
" |
|
2111 |
self setBottomRightQuarterIcon inspect |
|
2112 |
ImageEditor openOnClass:self andSelector:#setBottomRightQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2113 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2114 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2115 |
^ Icon |
2269 | 2116 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomRightQuarterIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2117 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2118 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2119 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2120 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2121 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2122 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2123 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2124 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2125 |
fromPackedString:' |
2269 | 2126 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@ |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2127 |
@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2128 |
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
|
2129 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2130 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2131 |
height:16; |
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:'??>@@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
|
2134 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2135 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2136 |
] |
1447 | 2137 |
! |
1409 | 2138 |
|
1680 | 2139 |
setFullIcon |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2140 |
<resource: #image> |
1680 | 2141 |
"This resource specification was automatically generated |
2142 |
by the ImageEditor of ST/X." |
|
2143 |
"Do not manually edit this!! If it is corrupted, |
|
2144 |
the ImageEditor may not be able to read the specification." |
|
2145 |
" |
|
2146 |
self setFullIcon inspect |
|
2147 |
ImageEditor openOnClass:self andSelector:#setFullIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2148 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2149 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2150 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setFullIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2151 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2152 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2153 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2154 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2155 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2156 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2157 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2158 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2159 |
fromPackedString:' |
1680 | 2160 |
@@@@@@@@@@@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
|
2161 |
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
|
2162 |
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
|
2163 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2164 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2165 |
height:16; |
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:'??????????????????????????????????????????<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2168 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2169 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2170 |
] |
1680 | 2171 |
! |
2172 |
||
1409 | 2173 |
setHorizontalFixPartIcon |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2174 |
<resource: #image> |
1409 | 2175 |
"This resource specification was automatically generated |
2176 |
by the ImageEditor of ST/X." |
|
2177 |
"Do not manually edit this!! If it is corrupted, |
|
2178 |
the ImageEditor may not be able to read the specification." |
|
2179 |
" |
|
2180 |
self setHorizontalFixPartIcon inspect |
|
2181 |
ImageEditor openOnClass:self andSelector:#setHorizontalFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2182 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2183 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2184 |
^ Icon |
2269 | 2185 |
constantNamed:'UILayoutTool::LayoutFrame class setHorizontalFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2186 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2187 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2188 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2189 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2190 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2191 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2192 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2193 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2194 |
fromPackedString:' |
1409 | 2195 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"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
|
2196 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2197 |
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
|
2198 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2199 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2200 |
height:16; |
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:'??>@@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
|
2203 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2204 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2205 |
] |
1447 | 2206 |
! |
1409 | 2207 |
|
2208 |
setLeftFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2209 |
<resource: #image> |
1409 | 2210 |
"This resource specification was automatically generated |
2211 |
by the ImageEditor of ST/X." |
|
2212 |
"Do not manually edit this!! If it is corrupted, |
|
2213 |
the ImageEditor may not be able to read the specification." |
|
2214 |
" |
|
2215 |
self setLeftFixPartIcon inspect |
|
2216 |
ImageEditor openOnClass:self andSelector:#setLeftFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2217 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2218 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2219 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setLeftFixPartIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2220 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2221 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2222 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2223 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2224 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2225 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2226 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2227 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2228 |
fromPackedString:' |
1409 | 2229 |
@@@@@@@@@@@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
|
2230 |
H@@@@@@@@!!D @@@@@@@BDR@@@@@@@@H"H@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2231 |
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
|
2232 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2233 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2234 |
height:16; |
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:'???<@_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
|
2237 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2238 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2239 |
] |
1447 | 2240 |
! |
1409 | 2241 |
|
2242 |
setLeftHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2243 |
<resource: #image> |
1409 | 2244 |
"This resource specification was automatically generated |
2245 |
by the ImageEditor of ST/X." |
|
2246 |
"Do not manually edit this!! If it is corrupted, |
|
2247 |
the ImageEditor may not be able to read the specification." |
|
2248 |
" |
|
2249 |
self setLeftHalfIcon inspect |
|
2250 |
ImageEditor openOnClass:self andSelector:#setLeftHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2251 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2252 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2253 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setLeftHalfIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2254 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2255 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2256 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2257 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2258 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2259 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2260 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2261 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2262 |
fromPackedString:' |
2269 | 2263 |
@@@@@@@@@@@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
|
2264 |
DR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2265 |
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
|
2266 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2267 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2268 |
height:16; |
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:'????@_<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
|
2271 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2272 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2273 |
] |
1447 | 2274 |
! |
1409 | 2275 |
|
2276 |
setRightFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2277 |
<resource: #image> |
1409 | 2278 |
"This resource specification was automatically generated |
2279 |
by the ImageEditor of ST/X." |
|
2280 |
"Do not manually edit this!! If it is corrupted, |
|
2281 |
the ImageEditor may not be able to read the specification." |
|
2282 |
" |
|
2283 |
self setRightFixPartIcon inspect |
|
2284 |
ImageEditor openOnClass:self andSelector:#setRightFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2285 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2286 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2287 |
^ Icon |
2269 | 2288 |
constantNamed:'UILayoutTool::LayoutFrame class setRightFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2289 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2290 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2291 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2292 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2293 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2294 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2295 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2296 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2297 |
fromPackedString:' |
1409 | 2298 |
@@@@@@@@@@@@@@@@@@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
|
2299 |
@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@"H @@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2300 |
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
|
2301 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2302 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2303 |
height:16; |
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:'??>@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
|
2306 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2307 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2308 |
] |
1447 | 2309 |
! |
1409 | 2310 |
|
2311 |
setRightHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2312 |
<resource: #image> |
1409 | 2313 |
"This resource specification was automatically generated |
2314 |
by the ImageEditor of ST/X." |
|
2315 |
"Do not manually edit this!! If it is corrupted, |
|
2316 |
the ImageEditor may not be able to read the specification." |
|
2317 |
" |
|
2318 |
self setRightHalfIcon inspect |
|
2319 |
ImageEditor openOnClass:self andSelector:#setRightHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2320 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2321 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2322 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setRightHalfIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2323 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2324 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2325 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2326 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2327 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2328 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2329 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2330 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2331 |
fromPackedString:' |
2269 | 2332 |
@@@@@@@@@@@@@@@@@"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
|
2333 |
@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BH"H @@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2334 |
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
|
2335 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2336 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2337 |
height:16; |
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:'??>@?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
|
2340 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2341 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2342 |
] |
1447 | 2343 |
! |
1409 | 2344 |
|
2345 |
setToRightQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2346 |
<resource: #image> |
1409 | 2347 |
"This resource specification was automatically generated |
2348 |
by the ImageEditor of ST/X." |
|
2349 |
"Do not manually edit this!! If it is corrupted, |
|
2350 |
the ImageEditor may not be able to read the specification." |
|
2351 |
" |
|
2352 |
self setToRightQuarterIcon inspect |
|
2353 |
ImageEditor openOnClass:self andSelector:#setToRightQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2354 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2355 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2356 |
^ Icon |
2269 | 2357 |
constantNamed:'UILayoutTool::LayoutFrame class setToRightQuarterIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2358 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2359 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2360 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2361 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2362 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2363 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2364 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2365 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2366 |
fromPackedString:' |
2269 | 2367 |
@@@@@@@@@@@@@@@@@"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
|
2368 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2369 |
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
|
2370 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2371 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2372 |
height:16; |
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:'??>@?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
|
2375 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2376 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2377 |
] |
1447 | 2378 |
! |
1409 | 2379 |
|
2380 |
setTopFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2381 |
<resource: #image> |
1409 | 2382 |
"This resource specification was automatically generated |
2383 |
by the ImageEditor of ST/X." |
|
2384 |
"Do not manually edit this!! If it is corrupted, |
|
2385 |
the ImageEditor may not be able to read the specification." |
|
2386 |
" |
|
2387 |
self setTopFixPartIcon inspect |
|
2388 |
ImageEditor openOnClass:self andSelector:#setTopFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2389 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2390 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2391 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setTopFixPartIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2392 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2393 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2394 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2395 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2396 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2397 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2398 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2399 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2400 |
fromPackedString:' |
2269 | 2401 |
@@@@@@@@@@@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
|
2402 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2403 |
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
|
2404 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2405 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2406 |
height:16; |
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:'???????????????? @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
|
2409 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2410 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2411 |
] |
1447 | 2412 |
! |
1409 | 2413 |
|
2414 |
setTopHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2415 |
<resource: #image> |
1409 | 2416 |
"This resource specification was automatically generated |
2417 |
by the ImageEditor of ST/X." |
|
2418 |
"Do not manually edit this!! If it is corrupted, |
|
2419 |
the ImageEditor may not be able to read the specification." |
|
2420 |
" |
|
2421 |
self setTopHalfIcon inspect |
|
2422 |
ImageEditor openOnClass:self andSelector:#setTopHalfIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2423 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2424 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2425 |
^ Icon constantNamed:'UILayoutTool::LayoutFrame class setTopHalfIcon' |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2426 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2427 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2428 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2429 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2430 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2431 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2432 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2433 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2434 |
fromPackedString:' |
2269 | 2435 |
@@@@@@@@@@@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
|
2436 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2437 |
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
|
2438 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2439 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2440 |
height:16; |
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:'?????????????????????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
|
2443 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2444 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2445 |
] |
1447 | 2446 |
! |
1409 | 2447 |
|
2448 |
setTopLeftQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2449 |
<resource: #image> |
1409 | 2450 |
"This resource specification was automatically generated |
2451 |
by the ImageEditor of ST/X." |
|
2452 |
"Do not manually edit this!! If it is corrupted, |
|
2453 |
the ImageEditor may not be able to read the specification." |
|
2454 |
" |
|
2455 |
self setTopLeftQuarterIcon inspect |
|
2456 |
ImageEditor openOnClass:self andSelector:#setTopLeftQuarterIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2457 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2458 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2459 |
^ Icon |
2269 | 2460 |
constantNamed:'UILayoutTool::LayoutFrame class setTopLeftQuarterIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2461 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2462 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2463 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2464 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2465 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2466 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2467 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2468 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2469 |
fromPackedString:' |
2269 | 2470 |
@@@@@@@@@@@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
|
2471 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2472 |
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
|
2473 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2474 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2475 |
height:16; |
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:'???? _>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
|
2478 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2479 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2480 |
] |
1447 | 2481 |
! |
1409 | 2482 |
|
2483 |
setVerticalFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2484 |
<resource: #image> |
1409 | 2485 |
"This resource specification was automatically generated |
2486 |
by the ImageEditor of ST/X." |
|
2487 |
"Do not manually edit this!! If it is corrupted, |
|
2488 |
the ImageEditor may not be able to read the specification." |
|
2489 |
" |
|
2490 |
self setVerticalFixPartIcon inspect |
|
2491 |
ImageEditor openOnClass:self andSelector:#setVerticalFixPartIcon |
|
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2492 |
Icon flushCachedIcons" |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2493 |
|
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2494 |
^ Icon |
2269 | 2495 |
constantNamed:'UILayoutTool::LayoutFrame class setVerticalFixPartIcon' |
3116
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2496 |
ifAbsentPut:[ |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2497 |
(Depth4Image new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2498 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2499 |
height:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2500 |
photometric:(#palette); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2501 |
bitsPerSample:(#( 4 )); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2502 |
samplesPerPixel:(1); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2503 |
bits:(ByteArray |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2504 |
fromPackedString:' |
1409 | 2505 |
@@@@@@@@@@@@@@@"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
|
2506 |
@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BH"@@@@@@@@@@@@@@@b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2507 |
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
|
2508 |
mask:((ImageMask new) |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2509 |
width:16; |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2510 |
height:16; |
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:'??>G8X_!!!!>FG8X_!!!!>FG8X_!!!!>FG8X_!!!!>FG8X_!!??<b'); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2513 |
yourself); |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2514 |
yourself |
21e748176901
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3052
diff
changeset
|
2515 |
] |
1447 | 2516 |
! ! |
1409 | 2517 |
|
2518 |
!UILayoutTool::LayoutFrame class methodsFor:'interface specs'! |
|
2519 |
||
2520 |
windowSpec |
|
2521 |
"This resource specification was automatically generated |
|
2522 |
by the UIPainter of ST/X." |
|
2523 |
||
2524 |
"Do not manually edit this!! If it is corrupted, |
|
2525 |
the UIPainter may not be able to read the specification." |
|
2526 |
||
2527 |
" |
|
2528 |
UIPainter new openOnClass:UILayoutTool::LayoutFrame andSelector:#windowSpec |
|
2529 |
UILayoutTool::LayoutFrame new openInterface:#windowSpec |
|
2530 |
UILayoutTool::LayoutFrame open |
|
2531 |
" |
|
2532 |
||
2533 |
<resource: #canvas> |
|
2534 |
||
2535 |
^ |
|
3052 | 2536 |
#(FullSpec |
2537 |
name: windowSpec |
|
2538 |
window: |
|
2539 |
(WindowSpec |
|
2540 |
label: 'UILayoutTool-LayoutFrame' |
|
2541 |
name: 'UILayoutTool-LayoutFrame' |
|
2542 |
min: (Point 10 10) |
|
2543 |
bounds: (Rectangle 0 0 527 393) |
|
2544 |
) |
|
2545 |
component: |
|
2546 |
(SpecCollection |
|
2547 |
collection: ( |
|
2548 |
(UISubSpecification |
|
2549 |
name: 'layoutOriginSpec' |
|
2550 |
layout: (LayoutFrame 1 0.0 6 0 0 1.0 110 0) |
|
2551 |
majorKey: UILayoutTool |
|
2552 |
minorKey: layoutOriginSpec |
|
2553 |
) |
|
2554 |
(FramedBoxSpec |
|
2555 |
label: 'Corner' |
|
2556 |
name: 'FramedBox' |
|
2557 |
layout: (LayoutFrame 1 0.0 113 0 0 1.0 266 0) |
|
2558 |
labelPosition: topLeft |
|
2559 |
translateLabel: true |
|
2560 |
component: |
|
2561 |
(SpecCollection |
|
2562 |
collection: ( |
|
2563 |
(LabelSpec |
|
2564 |
label: 'Right:' |
|
2565 |
name: 'labelRight' |
|
2566 |
layout: (AlignmentOrigin 68 0 16 0 1 0) |
|
2567 |
translateLabel: true |
|
2568 |
) |
|
2569 |
(ActionButtonSpec |
|
2570 |
label: 'imageFractX' |
|
2571 |
name: 'actionRelativeRight' |
|
2572 |
layout: (LayoutFrame 78 0 14 0 100 0 36 0) |
|
2573 |
activeHelpKey: makeRightRelative |
|
2574 |
hasCharacterOrientedLabel: false |
|
2575 |
tabable: true |
|
2576 |
model: relativeRight |
|
2577 |
) |
|
2578 |
(InputFieldSpec |
|
2579 |
name: 'fieldRightFraction' |
|
2580 |
layout: (LayoutFrame 103 0 14 0 153 0 36 0) |
|
2581 |
activeHelpKey: rightRelative |
|
2582 |
tabable: true |
|
2583 |
model: rightFraction |
|
2584 |
group: inputGroup |
|
2585 |
type: numberOrNil |
|
2586 |
acceptOnLostFocus: true |
|
2587 |
acceptChannel: acceptChannel |
|
2588 |
modifiedChannel: modifiedChannel |
|
2589 |
acceptOnPointerLeave: true |
|
2590 |
) |
|
2591 |
(ActionButtonSpec |
|
2592 |
label: 'imageAbsX' |
|
2593 |
name: 'actionAbsoluteRight' |
|
2594 |
layout: (LayoutFrame 178 0 14 0 200 0 36 0) |
|
2595 |
activeHelpKey: makeRightAbsolute |
|
2596 |
hasCharacterOrientedLabel: false |
|
2597 |
tabable: true |
|
2598 |
model: absoluteRight |
|
2599 |
) |
|
2600 |
(InputFieldSpec |
|
2601 |
name: 'fieldRightOffset' |
|
2602 |
layout: (LayoutFrame 203 0 14 0 253 0 36 0) |
|
2603 |
activeHelpKey: rightAbsolute |
|
2604 |
tabable: true |
|
2605 |
model: rightOffset |
|
2606 |
group: inputGroup |
|
2607 |
type: numberOrNil |
|
2608 |
acceptOnLostFocus: true |
|
2609 |
acceptChannel: acceptChannel |
|
2610 |
modifiedChannel: modifiedChannel |
|
2611 |
acceptOnPointerLeave: true |
|
2612 |
) |
|
2613 |
(ActionButtonSpec |
|
2614 |
label: 'imageAbsXFromRight' |
|
2615 |
name: 'actionRightRelativeRight' |
|
2616 |
layout: (LayoutFrame 257 0 14 0 279 0 36 0) |
|
2617 |
activeHelpKey: makeRightRelativeFromRight |
|
2618 |
hasCharacterOrientedLabel: false |
|
2619 |
tabable: true |
|
2620 |
model: rightRelativeRight |
|
2621 |
) |
|
2622 |
(LabelSpec |
|
2623 |
label: 'Bottom:' |
|
2624 |
name: 'labelBottom' |
|
2625 |
layout: (AlignmentOrigin 68 0 44 0 1 0) |
|
2626 |
translateLabel: true |
|
2627 |
) |
|
2628 |
(ActionButtonSpec |
|
2629 |
label: 'imageFractY' |
|
2630 |
name: 'actionRelativeBottom' |
|
2631 |
layout: (LayoutFrame 78 0 42 0 100 0 64 0) |
|
2632 |
activeHelpKey: makeBottomRelative |
|
2633 |
hasCharacterOrientedLabel: false |
|
2634 |
tabable: true |
|
2635 |
model: relativeBottom |
|
1409 | 2636 |
) |
3052 | 2637 |
(InputFieldSpec |
2638 |
name: 'fieldBottomFraction' |
|
2639 |
layout: (LayoutFrame 103 0 42 0 153 0 64 0) |
|
2640 |
activeHelpKey: bottomRelative |
|
2641 |
tabable: true |
|
2642 |
model: bottomFraction |
|
2643 |
group: inputGroup |
|
2644 |
type: numberOrNil |
|
2645 |
acceptOnLostFocus: true |
|
2646 |
acceptChannel: acceptChannel |
|
2647 |
modifiedChannel: modifiedChannel |
|
2648 |
acceptOnPointerLeave: true |
|
2649 |
) |
|
2650 |
(ActionButtonSpec |
|
2651 |
label: 'imageAbsY' |
|
2652 |
name: 'actionAbsoluteBottom' |
|
2653 |
layout: (LayoutFrame 178 0 42 0 200 0 64 0) |
|
2654 |
activeHelpKey: makeBottomAbsolute |
|
2655 |
hasCharacterOrientedLabel: false |
|
2656 |
tabable: true |
|
2657 |
model: absoluteBottom |
|
2658 |
) |
|
2659 |
(InputFieldSpec |
|
2660 |
name: 'fieldBottomOffset' |
|
2661 |
layout: (LayoutFrame 203 0 42 0 253 0 64 0) |
|
2662 |
activeHelpKey: bottomAbsolute |
|
2663 |
tabable: true |
|
2664 |
model: bottomOffset |
|
2665 |
group: inputGroup |
|
2666 |
type: numberOrNil |
|
2667 |
acceptOnLostFocus: true |
|
2668 |
acceptChannel: acceptChannel |
|
2669 |
modifiedChannel: modifiedChannel |
|
2670 |
acceptOnPointerLeave: true |
|
2671 |
) |
|
2672 |
(ActionButtonSpec |
|
2673 |
label: 'imageAbsYFromBottom' |
|
2674 |
name: 'actionBottomRelativeBottom' |
|
2675 |
layout: (LayoutFrame 257 0 42 0 279 0 64 0) |
|
2676 |
activeHelpKey: makeBottomRelativeFromBottom |
|
2677 |
hasCharacterOrientedLabel: false |
|
2678 |
tabable: true |
|
2679 |
model: bottomRelativeBottom |
|
2680 |
) |
|
2681 |
(CheckBoxSpec |
|
2682 |
label: 'Preferred' |
|
2683 |
name: 'CheckBox1' |
|
2684 |
layout: (LayoutFrame 287 0 14 0 393 0 36 0) |
|
2685 |
activeHelpKey: usePreferredWidth |
|
2686 |
model: usePreferredWidth |
|
2687 |
translateLabel: true |
|
2688 |
) |
|
2689 |
(CheckBoxSpec |
|
2690 |
label: 'Preferred' |
|
2691 |
name: 'CheckBox2' |
|
2692 |
layout: (LayoutFrame 287 0 42 0 393 0 64 0) |
|
2693 |
activeHelpKey: usePreferredHeight |
|
2694 |
model: usePreferredHeight |
|
2695 |
translateLabel: true |
|
2696 |
) |
|
2697 |
(CheckBoxSpec |
|
2698 |
label: 'Dynamic' |
|
2699 |
name: 'CheckBox3' |
|
2700 |
layout: (LayoutFrame 394 0 14 0 481 0 36 0) |
|
2701 |
activeHelpKey: useDynamicPreferredWidth |
|
2702 |
model: useDynamicPreferredWidth |
|
2703 |
translateLabel: true |
|
2704 |
) |
|
2705 |
(CheckBoxSpec |
|
2706 |
label: 'Dynamic' |
|
2707 |
name: 'CheckBox4' |
|
2708 |
layout: (LayoutFrame 394 0 42 0 481 0 64 0) |
|
2709 |
activeHelpKey: useDynamicPreferredWidth |
|
2710 |
model: useDynamicPreferredHeight |
|
2711 |
translateLabel: true |
|
2712 |
) |
|
2713 |
(CheckBoxSpec |
|
2714 |
label: 'OSX-ResizeH' |
|
2715 |
name: 'OSXResizeH Checkbox' |
|
2716 |
layout: (LayoutFrame 287 0 70 0 480 0 92 0) |
|
2717 |
activeHelpKey: keepSpaceForOSXResizeHandleH |
|
2718 |
model: keepSpaceForOSXResizeHandleH |
|
2719 |
translateLabel: true |
|
2720 |
) |
|
2721 |
(CheckBoxSpec |
|
2722 |
label: 'OSX-ResizeV' |
|
2723 |
name: 'OSXResizeV Checkbox' |
|
2724 |
layout: (LayoutFrame 287 0 98 0 480 0 120 0) |
|
2725 |
activeHelpKey: keepSpaceForOSXResizeHandleV |
|
2726 |
model: keepSpaceForOSXResizeHandleV |
|
2727 |
translateLabel: true |
|
2728 |
) |
|
2729 |
) |
|
2730 |
||
2731 |
) |
|
1409 | 2732 |
) |
3052 | 2733 |
(MenuPanelSpec |
2734 |
name: 'commonLayoutToolBar1' |
|
2735 |
layout: (LayoutFrame 6 0.0 267 0 -4 1.0 299 0) |
|
2736 |
level: 0 |
|
2737 |
tabable: true |
|
2738 |
menu: commonFrameLayoutsMenu1 |
|
2739 |
textDefault: true |
|
2740 |
) |
|
2741 |
(MenuPanelSpec |
|
2742 |
name: 'commonLayoutToolBar2' |
|
2743 |
layout: (LayoutFrame 6 0.0 299 0 -4 1.0 331 0) |
|
2744 |
level: 0 |
|
2745 |
tabable: true |
|
2746 |
menu: commonFrameLayoutsMenu2 |
|
2747 |
textDefault: true |
|
2748 |
) |
|
2749 |
(MenuPanelSpec |
|
2750 |
name: 'commonLayoutToolBar3' |
|
2751 |
layout: (LayoutFrame 6 0.0 323 0 -4 1.0 355 0) |
|
2752 |
level: 0 |
|
2753 |
tabable: true |
|
2754 |
menu: commonFrameLayoutsMenu3 |
|
2755 |
textDefault: true |
|
2756 |
) |
|
2757 |
) |
|
2758 |
||
2759 |
) |
|
2760 |
) |
|
1409 | 2761 |
! ! |
2762 |
||
2763 |
!UILayoutTool::LayoutFrame class methodsFor:'menu specs'! |
|
2764 |
||
1680 | 2765 |
commonFrameLayoutsMenu1 |
1409 | 2766 |
"This resource specification was automatically generated |
2767 |
by the MenuEditor of ST/X." |
|
2768 |
||
2769 |
"Do not manually edit this!! If it is corrupted, |
|
2770 |
the MenuEditor may not be able to read the specification." |
|
2771 |
||
2772 |
" |
|
1680 | 2773 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu1 |
2774 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu1)) startUp |
|
1409 | 2775 |
" |
2776 |
||
2777 |
<resource: #menu> |
|
2778 |
||
1680 | 2779 |
^ |
2780 |
#(#Menu |
|
2781 |
#( |
|
2782 |
#(#MenuItem |
|
2783 |
#activeHelpKey: #fullLayout |
|
2784 |
#label: 'setFullFrame' |
|
2785 |
#itemValue: #setFullFrame |
|
2786 |
#nameKey: #setFullFrame |
|
2787 |
#translateLabel: true |
|
2788 |
#isButton: true |
|
2789 |
#labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setFullIcon) |
|
2790 |
) |
|
2791 |
#(#MenuItem |
|
2792 |
#label: '' |
|
2793 |
) |
|
2794 |
#(#MenuItem |
|
2795 |
#activeHelpKey: #topHalfLayout |
|
2796 |
#label: 'setTopHalfFrame' |
|
2797 |
#itemValue: #setTopHalfFrame |
|
2798 |
#nameKey: #setTopHalfFrame |
|
2799 |
#translateLabel: true |
|
2800 |
#isButton: true |
|
2801 |
#labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setTopHalfIcon) |
|
2802 |
) |
|
2803 |
#(#MenuItem |
|
2804 |
#activeHelpKey: #bottomHalfLayout |
|
2805 |
#label: 'setBottomHalfFrame' |
|
2806 |
#itemValue: #setBottomHalfFrame |
|
2807 |
#nameKey: #setBottomHalfFrame |
|
2808 |
#translateLabel: true |
|
2809 |
#isButton: true |
|
2810 |
#labelImage: #(#ResourceRetriever nil #setBottomHalfIcon) |
|
2811 |
) |
|
2812 |
#(#MenuItem |
|
2813 |
#activeHelpKey: #leftHalfLayout |
|
2814 |
#label: 'setLeftHalfFrame' |
|
2815 |
#itemValue: #setLeftHalfFrame |
|
2816 |
#nameKey: #setLeftHalfFrame |
|
2817 |
#translateLabel: true |
|
2818 |
#isButton: true |
|
2819 |
#labelImage: #(#ResourceRetriever nil #setLeftHalfIcon) |
|
2820 |
) |
|
2821 |
#(#MenuItem |
|
2822 |
#activeHelpKey: #rightHalfLayout |
|
2823 |
#label: 'setRightHalfFrame' |
|
2824 |
#itemValue: #setRightHalfFrame |
|
2825 |
#nameKey: #setRightHalfFrame |
|
2826 |
#translateLabel: true |
|
2827 |
#isButton: true |
|
2828 |
#labelImage: #(#ResourceRetriever nil #setRightHalfIcon) |
|
2829 |
) |
|
2830 |
#(#MenuItem |
|
2831 |
#label: '' |
|
2832 |
) |
|
2833 |
#(#MenuItem |
|
2834 |
#activeHelpKey: #topLeftQuarterLayout |
|
2835 |
#label: 'setTopLeftQuarterFrame' |
|
2836 |
#itemValue: #setTopLeftQuarterFrame |
|
2837 |
#nameKey: #setTopLeftQuarterFrame |
|
2838 |
#translateLabel: true |
|
2839 |
#isButton: true |
|
2840 |
#labelImage: #(#ResourceRetriever nil #setTopLeftQuarterIcon) |
|
2841 |
) |
|
2842 |
#(#MenuItem |
|
2843 |
#activeHelpKey: #topRightQuarterLayout |
|
2844 |
#label: 'setTopRightQuarterFrame' |
|
2845 |
#itemValue: #setTopRightQuarterFrame |
|
2846 |
#nameKey: #setTopRightQuarterFrame |
|
2847 |
#translateLabel: true |
|
2848 |
#isButton: true |
|
2849 |
#labelImage: #(#ResourceRetriever nil #setToRightQuarterIcon) |
|
2850 |
) |
|
2851 |
#(#MenuItem |
|
2852 |
#activeHelpKey: #bottomRightQuarterLayout |
|
2853 |
#label: 'setBottomRightQuarterFrame' |
|
2854 |
#itemValue: #setBottomRightQuarterFrame |
|
2855 |
#nameKey: #setBottomRightQuarterFrame |
|
2856 |
#translateLabel: true |
|
2857 |
#isButton: true |
|
2858 |
#labelImage: #(#ResourceRetriever nil #setBottomRightQuarterIcon) |
|
2859 |
) |
|
2860 |
#(#MenuItem |
|
2861 |
#activeHelpKey: #bottomLeftQuarterLayout |
|
2862 |
#label: 'setBottomLeftQuarterFrame' |
|
2863 |
#itemValue: #setBottomLeftQuarterFrame |
|
2864 |
#nameKey: #setBottomLeftQuarterFrame |
|
2865 |
#translateLabel: true |
|
2866 |
#isButton: true |
|
2867 |
#labelImage: #(#ResourceRetriever nil #setBottomLeftQuarterIcon) |
|
2868 |
) |
|
2869 |
) |
|
2870 |
nil |
|
2871 |
nil |
|
2872 |
) |
|
2873 |
! |
|
2874 |
||
2875 |
commonFrameLayoutsMenu2 |
|
2876 |
"This resource specification was automatically generated |
|
2877 |
by the MenuEditor of ST/X." |
|
2878 |
||
2879 |
"Do not manually edit this!! If it is corrupted, |
|
2880 |
the MenuEditor may not be able to read the specification." |
|
2881 |
||
2882 |
" |
|
2883 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu2 |
|
2884 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu2)) startUp |
|
2885 |
" |
|
2886 |
||
2887 |
<resource: #menu> |
|
2888 |
||
2889 |
^ |
|
2890 |
#(#Menu |
|
2891 |
#( |
|
2892 |
#(#MenuItem |
|
2893 |
#activeHelpKey: #topFixPartLayout |
|
2894 |
#label: 'setTopFixPartFrame' |
|
2895 |
#itemValue: #setTopFixPartFrame |
|
2896 |
#nameKey: #setTopFixPartFrame |
|
2897 |
#translateLabel: true |
|
2898 |
#isButton: true |
|
2899 |
#labelImage: #(#ResourceRetriever nil #setTopFixPartIcon) |
|
2900 |
) |
|
2901 |
#(#MenuItem |
|
2902 |
#activeHelpKey: #horizontalFixPartLayout |
|
2903 |
#label: 'setHorizontalFixPartFrame' |
|
2904 |
#itemValue: #setHorizontalFixPartFrame |
|
2905 |
#nameKey: #setHorizontalFixPartFrame |
|
2906 |
#translateLabel: true |
|
2907 |
#isButton: true |
|
2908 |
#labelImage: #(#ResourceRetriever nil #setHorizontalFixPartIcon) |
|
2909 |
) |
|
2910 |
#(#MenuItem |
|
2911 |
#activeHelpKey: #bottomFixPartLayout |
|
2912 |
#label: 'setBottomFixPartFrame' |
|
2913 |
#itemValue: #setBottomFixPartFrame |
|
2914 |
#nameKey: #setBottomFixPartFrame |
|
2915 |
#translateLabel: true |
|
2916 |
#isButton: true |
|
2917 |
#labelImage: #(#ResourceRetriever nil #setBottomFixPartIcon) |
|
2918 |
) |
|
2919 |
#(#MenuItem |
|
2920 |
#label: '' |
|
2921 |
) |
|
2922 |
#(#MenuItem |
|
2923 |
#activeHelpKey: #leftFixPartLayout |
|
2924 |
#label: 'setLeftFixPartFrame' |
|
2925 |
#itemValue: #setLeftFixPartFrame |
|
2926 |
#nameKey: #setLeftFixPartFrame |
|
2927 |
#translateLabel: true |
|
2928 |
#isButton: true |
|
2929 |
#labelImage: #(#ResourceRetriever nil #setLeftFixPartIcon) |
|
2930 |
) |
|
2931 |
#(#MenuItem |
|
2932 |
#activeHelpKey: #verticalFixPartLayout |
|
2933 |
#label: 'setVerticalFixPartFrame' |
|
2934 |
#itemValue: #setVerticalFixPartFrame |
|
2935 |
#nameKey: #setVerticalFixPartFrame |
|
2936 |
#translateLabel: true |
|
2937 |
#isButton: true |
|
2938 |
#labelImage: #(#ResourceRetriever nil #setVerticalFixPartIcon) |
|
2939 |
) |
|
2940 |
#(#MenuItem |
|
2941 |
#activeHelpKey: #rightFixPartLayout |
|
2942 |
#label: 'setRightFixPartFrame' |
|
2943 |
#itemValue: #setRightFixPartFrame |
|
2944 |
#nameKey: #setRightFixPartFrame |
|
2945 |
#translateLabel: true |
|
2946 |
#isButton: true |
|
2947 |
#labelImage: #(#ResourceRetriever nil #setRightFixPartIcon) |
|
2948 |
) |
|
1706 | 2949 |
#(#MenuItem |
2950 |
#label: '' |
|
2951 |
) |
|
2952 |
#(#MenuItem |
|
1709 | 2953 |
#activeHelpKey: #bigTopFixPartLayout |
1706 | 2954 |
#label: 'setBigTopFixPartFrame' |
2955 |
#itemValue: #setBigTopFixPartFrame |
|
2956 |
#nameKey: #setBigTopFixPartFrame |
|
2957 |
#translateLabel: true |
|
2958 |
#isButton: true |
|
2959 |
#labelImage: #(#ResourceRetriever nil #setBigTopFixPartIcon) |
|
2960 |
) |
|
2961 |
#(#MenuItem |
|
1709 | 2962 |
#activeHelpKey: #bigHorizontalFixPartLayout |
1706 | 2963 |
#label: 'setBigHorizontalFixPartFrame' |
2964 |
#itemValue: #setBigHorizontalFixPartFrame |
|
2965 |
#nameKey: #setBigHorizontalFixPartFrame |
|
2966 |
#translateLabel: true |
|
2967 |
#isButton: true |
|
2968 |
#labelImage: #(#ResourceRetriever nil #setBigHorizontalFixPartIcon) |
|
2969 |
) |
|
2970 |
#(#MenuItem |
|
1709 | 2971 |
#activeHelpKey: #bigBottomFixPartLayout |
1706 | 2972 |
#label: 'setBigBottomFixPartFrame' |
2973 |
#itemValue: #setBigBottomFixPartFrame |
|
2974 |
#nameKey: #setBigBottomFixPartFrame |
|
2975 |
#translateLabel: true |
|
2976 |
#isButton: true |
|
2977 |
#labelImage: #(#ResourceRetriever nil #setBigBottomFixPartIcon) |
|
2978 |
) |
|
1680 | 2979 |
) |
2980 |
nil |
|
2981 |
nil |
|
1409 | 2982 |
) |
1826 | 2983 |
! |
2984 |
||
2985 |
commonFrameLayoutsMenu3 |
|
2986 |
"This resource specification was automatically generated |
|
2987 |
by the MenuEditor of ST/X." |
|
2988 |
||
2989 |
"Do not manually edit this!! If it is corrupted, |
|
2990 |
the MenuEditor may not be able to read the specification." |
|
2991 |
||
2992 |
" |
|
1858 | 2993 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu3 |
2994 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu3)) startUp |
|
1826 | 2995 |
" |
2996 |
||
2997 |
<resource: #menu> |
|
2998 |
||
2999 |
^ |
|
1858 | 3000 |
#(Menu |
3001 |
( |
|
3002 |
(MenuItem |
|
3003 |
activeHelpKey: screenFrameLayout |
|
3004 |
label: 'setScreenFrame' |
|
3005 |
itemValue: setScreenFrame |
|
3006 |
nameKey: setScreenFrame |
|
3007 |
translateLabel: true |
|
3008 |
isButton: true |
|
3009 |
isVisible: false |
|
3010 |
labelImage: (ResourceRetriever #'UILayoutTool::LayoutFrame' setScreenIcon) |
|
1826 | 3011 |
) |
3012 |
) |
|
3013 |
nil |
|
3014 |
nil |
|
3015 |
) |
|
1409 | 3016 |
! ! |
3017 |
||
3018 |
!UILayoutTool::LayoutFrame methodsFor:'accessing'! |
|
3019 |
||
3020 |
fetch:aView spec:aSpec |
|
3021 |
|layout| |
|
3022 |
||
1826 | 3023 |
aSpec class == WindowSpec ifTrue:[ |
3024 |
(layout := aSpec layout) isNil ifTrue:[ |
|
3025 |
layout := aSpec bounds asLayout. |
|
3026 |
] |
|
3027 |
] ifFalse: [ |
|
3028 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
3029 |
]. |
|
1409 | 3030 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
3031 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
3032 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
3033 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
3034 |
(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
|
3035 |
(self aspectFor:#bottomOffset) value:(layout bottomOffset value). "take care of blocks" |
1409 | 3036 |
(self aspectFor:#rightFraction) value:(layout rightFraction). |
3037 |
(self aspectFor:#bottomFraction) value:(layout bottomFraction). |
|
3038 |
||
2379 | 3039 |
(self aspectFor:#usePreferredWidth) value:(aSpec usePreferredWidth). |
3040 |
(self aspectFor:#usePreferredHeight) value:(aSpec usePreferredHeight). |
|
3041 |
(self aspectFor:#useDynamicPreferredWidth) value:(aSpec useDynamicPreferredWidth). |
|
3042 |
(self aspectFor:#useDynamicPreferredHeight) value:(aSpec useDynamicPreferredHeight). |
|
2949 | 3043 |
|
2953 | 3044 |
(self aspectFor:#keepSpaceForOSXResizeHandleV) value:(aSpec keepSpaceForOSXResizeHandleV). |
3045 |
(self aspectFor:#keepSpaceForOSXResizeHandleH) value:(aSpec keepSpaceForOSXResizeHandleH). |
|
1409 | 3046 |
! |
3047 |
||
3048 |
layout |
|
2379 | 3049 |
"returns the current layout as layoutFrame |
1409 | 3050 |
" |
3051 |
|layout| |
|
3052 |
||
3234 | 3053 |
layout := (Smalltalk at:LayoutFrame) new. |
1409 | 3054 |
|
1581 | 3055 |
layout |
3056 |
leftFraction:(((self aspectFor:#leftFraction) value) ? 0) |
|
3057 |
offset:(((self aspectFor:#leftOffset) value) ? 0) |
|
3058 |
rightFraction:(((self aspectFor:#rightFraction) value) ? 0) |
|
3059 |
offset:(((self aspectFor:#rightOffset) value) ? 0) |
|
3060 |
topFraction:(((self aspectFor:#topFraction) value) ? 0) |
|
3061 |
offset:(((self aspectFor:#topOffset) value) ? 0) |
|
3062 |
bottomFraction:(((self aspectFor:#bottomFraction) value) ? 0) |
|
3063 |
offset:(((self aspectFor:#bottomOffset) value) ? 0). |
|
1409 | 3064 |
|
3065 |
^ layout |
|
3066 |
! ! |
|
3067 |
||
3068 |
!UILayoutTool::LayoutFrame methodsFor:'common frames'! |
|
3069 |
||
1706 | 3070 |
setBigBottomFixPartFrame |
3071 |
self |
|
3072 |
setFrameLeft:0 offset:0 |
|
3073 |
right:1 offset:0 |
|
1826 | 3074 |
top:0 offset:(self class defaultFixPartHeight) |
1706 | 3075 |
bottom:1 offset:0 |
3076 |
! |
|
3077 |
||
3078 |
setBigHorizontalFixPartFrame |
|
3079 |
self |
|
3080 |
setFrameLeft:0 offset:0 |
|
3081 |
right:1 offset:0 |
|
1826 | 3082 |
top:0 offset:(self class defaultFixPartHeight) |
3083 |
bottom:1 offset:(self class defaultFixPartHeight negated) |
|
1706 | 3084 |
! |
3085 |
||
3086 |
setBigTopFixPartFrame |
|
3087 |
self |
|
3088 |
setFrameLeft:0 offset:0 |
|
3089 |
right:1 offset:0 |
|
3090 |
top:0 offset:0 |
|
1826 | 3091 |
bottom:1 offset:(self class defaultFixPartHeight negated) |
1706 | 3092 |
! |
3093 |
||
1409 | 3094 |
setBottomFixPartFrame |
3095 |
self |
|
3096 |
setFrameLeft:0 offset:0 |
|
3097 |
right:1 offset:0 |
|
1826 | 3098 |
top:1 offset:(self class defaultFixPartHeight negated) |
1409 | 3099 |
bottom:1 offset:0 |
3100 |
! |
|
3101 |
||
3102 |
setBottomHalfFrame |
|
3103 |
self |
|
3104 |
setFrameLeft:0 offset:0 |
|
3105 |
right:1 offset:0 |
|
3106 |
top:0.5 offset:0 |
|
3107 |
bottom:1 offset:0 |
|
3108 |
! |
|
3109 |
||
3110 |
setBottomLeftQuarterFrame |
|
3111 |
self |
|
3112 |
setFrameLeft:0 offset:0 |
|
3113 |
right:0.5 offset:0 |
|
3114 |
top:0.5 offset:0 |
|
3115 |
bottom:1 offset:0 |
|
3116 |
! |
|
3117 |
||
3118 |
setBottomRightQuarterFrame |
|
3119 |
self |
|
3120 |
setFrameLeft:0.5 offset:0 |
|
3121 |
right:1 offset:0 |
|
3122 |
top:0.5 offset:0 |
|
3123 |
bottom:1 offset:0 |
|
3124 |
! |
|
3125 |
||
3126 |
setFrameLeft:lF offset:lO right:rF offset:rO top:tF offset:tO bottom:bF offset:bO |
|
3127 |
(self aspectFor:#leftOffset) value:lO. |
|
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
3128 |
(self aspectFor:#rightOffset) value:rO value. |
1409 | 3129 |
(self aspectFor:#topOffset) value:tO. |
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
3130 |
(self aspectFor:#bottomOffset) value:bO value. |
1409 | 3131 |
|
3132 |
(self aspectFor:#leftFraction) value:lF. |
|
3133 |
(self aspectFor:#rightFraction) value:rF. |
|
3134 |
(self aspectFor:#topFraction) value:tF. |
|
3135 |
(self aspectFor:#bottomFraction) value:bF. |
|
3136 |
! |
|
3137 |
||
1680 | 3138 |
setFullFrame |
3139 |
self |
|
3140 |
setFrameLeft:0 offset:0 |
|
3141 |
right:1 offset:0 |
|
3142 |
top:0 offset:0 |
|
3143 |
bottom:1 offset:0 |
|
3144 |
! |
|
3145 |
||
1409 | 3146 |
setHorizontalFixPartFrame |
3147 |
self |
|
3148 |
setFrameLeft:0 offset:0 |
|
3149 |
right:1 offset:0 |
|
1826 | 3150 |
top:0.5 offset:(self class defaultFixPartHeight negated // 2) |
3151 |
bottom:0.5 offset:(self class defaultFixPartHeight // 2) |
|
1409 | 3152 |
! |
3153 |
||
3154 |
setLeftFixPartFrame |
|
3155 |
self |
|
3156 |
setFrameLeft:0 offset:0 |
|
1826 | 3157 |
right:0 offset:(self class defaultFixPartHeight) |
1409 | 3158 |
top:0 offset:0 |
3159 |
bottom:1 offset:0 |
|
3160 |
! |
|
3161 |
||
3162 |
setLeftHalfFrame |
|
3163 |
self |
|
3164 |
setFrameLeft:0 offset:0 |
|
3165 |
right:0.5 offset:0 |
|
3166 |
top:0 offset:0 |
|
3167 |
bottom:1 offset:0 |
|
3168 |
! |
|
3169 |
||
3170 |
setRightFixPartFrame |
|
3171 |
self |
|
1826 | 3172 |
setFrameLeft:1 offset:(self class defaultFixPartHeight negated) |
1447 | 3173 |
right:1 offset:0 |
1409 | 3174 |
top:0 offset:0 |
3175 |
bottom:1 offset:0 |
|
3176 |
! |
|
3177 |
||
3178 |
setRightHalfFrame |
|
3179 |
self |
|
3180 |
setFrameLeft:0.5 offset:0 |
|
3181 |
right:1 offset:0 |
|
3182 |
top:0 offset:0 |
|
3183 |
bottom:1 offset:0 |
|
3184 |
! |
|
3185 |
||
3186 |
setTopFixPartFrame |
|
3187 |
self |
|
3188 |
setFrameLeft:0 offset:0 |
|
3189 |
right:1 offset:0 |
|
3190 |
top:0 offset:0 |
|
1826 | 3191 |
bottom:0 offset:(self class defaultFixPartHeight) |
1409 | 3192 |
! |
3193 |
||
3194 |
setTopHalfFrame |
|
3195 |
self |
|
3196 |
setFrameLeft:0 offset:0 |
|
3197 |
right:1 offset:0 |
|
3198 |
top:0 offset:0 |
|
3199 |
bottom:0.5 offset:0 |
|
3200 |
! |
|
3201 |
||
3202 |
setTopLeftQuarterFrame |
|
3203 |
self |
|
3204 |
setFrameLeft:0 offset:0 |
|
3205 |
right:0.5 offset:0 |
|
3206 |
top:0 offset:0 |
|
3207 |
bottom:0.5 offset:0 |
|
3208 |
! |
|
3209 |
||
3210 |
setTopRightQuarterFrame |
|
3211 |
self |
|
3212 |
setFrameLeft:0.5 offset:0 |
|
3213 |
right:1 offset:0 |
|
3214 |
top:0 offset:0 |
|
3215 |
bottom:0.5 offset:0 |
|
3216 |
! |
|
3217 |
||
3218 |
setVerticalFixPartFrame |
|
3219 |
self |
|
1826 | 3220 |
setFrameLeft:0.5 offset:(self class defaultFixPartHeight negated // 2 ) |
3221 |
right:0.5 offset:(self class defaultFixPartHeight // 2 ) |
|
1409 | 3222 |
top:0 offset:0 |
3223 |
bottom:1 offset:0 |
|
3224 |
! ! |
|
3225 |
||
1447 | 3226 |
!UILayoutTool::LayoutOrigin class methodsFor:'interface specs'! |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3227 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3228 |
windowSpec |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3229 |
"This resource specification was automatically generated |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3230 |
by the UIPainter of ST/X." |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3231 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3232 |
"Do not manually edit this!! If it is corrupted, |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3233 |
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
|
3234 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3235 |
" |
1447 | 3236 |
UIPainter new openOnClass:UILayoutTool::LayoutOrigin andSelector:#windowSpec |
3237 |
UILayoutTool::LayoutOrigin new openInterface:#windowSpec |
|
3238 |
UILayoutTool::LayoutOrigin open |
|
1332
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 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3241 |
<resource: #canvas> |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3242 |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3243 |
^ |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3244 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3245 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3246 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3247 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3248 |
label: 'UILayoutTool-LayoutOrigin' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3249 |
name: 'UILayoutTool-LayoutOrigin' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3250 |
min: (Point 10 10) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3251 |
bounds: (Rectangle 14 46 372 192) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3252 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3253 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3254 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3255 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3256 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3257 |
name: 'layoutOriginSpec' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3258 |
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
|
3259 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3260 |
minorKey: layoutOriginSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3261 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3262 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3263 |
|
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3264 |
) |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3265 |
) |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3266 |
! ! |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3267 |
|
1447 | 3268 |
!UILayoutTool::LayoutOrigin methodsFor:'accessing'! |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3269 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3270 |
fetch:aView spec:aSpec |
1447 | 3271 |
"fetch layoutOrigin |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3272 |
" |
1447 | 3273 |
|layout| |
3274 |
||
3275 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
3276 |
||
3277 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
|
3278 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
3279 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
3280 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3281 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3282 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3283 |
! |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3284 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3285 |
layout |
1447 | 3286 |
"returns current layout as layoutOrigin |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3287 |
" |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3288 |
|layout| |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3289 |
|
3234 | 3290 |
layout := (Smalltalk at:#LayoutOrigin) new. |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3291 |
|
1581 | 3292 |
layout |
3293 |
leftFraction:(((self aspectFor:#leftFraction) value) ? 0) |
|
3294 |
offset:(((self aspectFor:#leftOffset) value) ? 0) |
|
3295 |
topFraction:(((self aspectFor:#topFraction) value) ? 0) |
|
3296 |
offset:(((self aspectFor:#topOffset) value) ? 0). |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3297 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
3298 |
^ layout |
1304 | 3299 |
! ! |
3300 |
||
1343 | 3301 |
!UILayoutTool::Point class methodsFor:'interface specs'! |
3302 |
||
3303 |
windowSpec |
|
3304 |
"This resource specification was automatically generated |
|
3305 |
by the UIPainter of ST/X." |
|
3306 |
||
3307 |
"Do not manually edit this!! If it is corrupted, |
|
3308 |
the UIPainter may not be able to read the specification." |
|
3309 |
||
3310 |
" |
|
3311 |
UIPainter new openOnClass:UILayoutTool::Point andSelector:#windowSpec |
|
3312 |
UILayoutTool::Point new openInterface:#windowSpec |
|
3313 |
UILayoutTool::Point open |
|
3314 |
" |
|
3315 |
||
3316 |
<resource: #canvas> |
|
3317 |
||
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3318 |
^ |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3319 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3320 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3321 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3322 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3323 |
label: 'UILayoutTool-Point' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3324 |
name: 'UILayoutTool-Point' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3325 |
min: (Point 10 10) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3326 |
bounds: (Rectangle 14 46 309 184) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3327 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3328 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3329 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3330 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3331 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3332 |
name: 'layoutPointSpec' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3333 |
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
|
3334 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3335 |
minorKey: layoutPointSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3336 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3337 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3338 |
|
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3339 |
) |
1343 | 3340 |
) |
3341 |
! ! |
|
3342 |
||
3343 |
!UILayoutTool::Point methodsFor:'accessing'! |
|
3344 |
||
3345 |
fetch:aView spec:aSpec |
|
3346 |
"fetch point |
|
3347 |
" |
|
3348 |
|origin| |
|
3349 |
||
3350 |
origin := aView computeOrigin. |
|
3351 |
||
3352 |
(self aspectFor:#leftOffset) value:(origin x). |
|
3353 |
(self aspectFor:#topOffset) value:(origin y). |
|
3354 |
||
3355 |
||
3356 |
! |
|
3357 |
||
3358 |
layout |
|
3359 |
"returns current layout as point |
|
3360 |
" |
|
3234 | 3361 |
^ (((self aspectFor:#leftOffset) value) ? 0) |
3362 |
@ |
|
3363 |
(((self aspectFor:#topOffset) value) ? 0) |
|
1343 | 3364 |
! ! |
3365 |
||
1409 | 3366 |
!UILayoutTool::Rectangle class methodsFor:'interface specs'! |
3367 |
||
3368 |
windowSpec |
|
3369 |
"This resource specification was automatically generated |
|
3370 |
by the UIPainter of ST/X." |
|
3371 |
||
3372 |
"Do not manually edit this!! If it is corrupted, |
|
3373 |
the UIPainter may not be able to read the specification." |
|
3374 |
||
3375 |
" |
|
3376 |
UIPainter new openOnClass:UILayoutTool::Rectangle andSelector:#windowSpec |
|
3377 |
UILayoutTool::Rectangle new openInterface:#windowSpec |
|
3378 |
UILayoutTool::Rectangle open |
|
3379 |
" |
|
3380 |
||
3381 |
<resource: #canvas> |
|
3382 |
||
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3383 |
^ |
3052 | 3384 |
#(FullSpec |
3385 |
name: windowSpec |
|
3386 |
window: |
|
3387 |
(WindowSpec |
|
3388 |
label: 'UILayoutTool-Rectangle' |
|
3389 |
name: 'UILayoutTool-Rectangle' |
|
3390 |
min: (Point 10 10) |
|
3391 |
bounds: (Rectangle 0 0 342 199) |
|
3392 |
) |
|
3393 |
component: |
|
3394 |
(SpecCollection |
|
3395 |
collection: ( |
|
3396 |
(UISubSpecification |
|
3397 |
name: 'subSpecification' |
|
3398 |
layout: (LayoutFrame 1 0.0 6 0 0 1.0 96 0) |
|
3399 |
majorKey: UILayoutTool |
|
3400 |
minorKey: layoutPointSpec |
|
3401 |
) |
|
3402 |
(FramedBoxSpec |
|
3403 |
label: 'Corner' |
|
3404 |
name: 'FramedBox' |
|
3405 |
layout: (LayoutFrame 1 0.0 99 0 0 1.0 194 0) |
|
3406 |
labelPosition: topLeft |
|
3407 |
translateLabel: true |
|
3408 |
component: |
|
3409 |
(SpecCollection |
|
3410 |
collection: ( |
|
3411 |
(LabelSpec |
|
3412 |
label: 'Right:' |
|
3413 |
name: 'labelCornerY' |
|
3414 |
layout: (AlignmentOrigin 83 0 16 0 1 0) |
|
3415 |
translateLabel: true |
|
3416 |
adjust: left |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3417 |
) |
3052 | 3418 |
(InputFieldSpec |
3419 |
name: 'fieldCornerX' |
|
3420 |
layout: (LayoutFrame 85 0 13 0 135 0 35 0) |
|
3421 |
activeHelpKey: cornerX |
|
3422 |
tabable: true |
|
3423 |
model: rightOffset |
|
3424 |
group: inputGroup |
|
3425 |
type: numberOrNil |
|
3426 |
acceptOnLostFocus: true |
|
3427 |
acceptChannel: acceptChannel |
|
3428 |
modifiedChannel: modifiedChannel |
|
3429 |
acceptOnPointerLeave: true |
|
3430 |
) |
|
3431 |
(LabelSpec |
|
3432 |
label: 'Bottom:' |
|
3433 |
name: 'labelCornerX' |
|
3434 |
layout: (AlignmentOrigin 83 0 41 0 1 0) |
|
3435 |
translateLabel: true |
|
3436 |
adjust: left |
|
3437 |
) |
|
3438 |
(InputFieldSpec |
|
3439 |
name: 'fieldCornerY' |
|
3440 |
layout: (LayoutFrame 85 0 38 0 135 0 60 0) |
|
3441 |
activeHelpKey: cornerY |
|
3442 |
tabable: true |
|
3443 |
model: bottomOffset |
|
3444 |
group: inputGroup |
|
3445 |
type: numberOrNil |
|
3446 |
acceptOnLostFocus: true |
|
3447 |
acceptChannel: acceptChannel |
|
3448 |
modifiedChannel: modifiedChannel |
|
3449 |
acceptOnPointerLeave: true |
|
3450 |
) |
|
3451 |
) |
|
3452 |
||
3453 |
) |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3454 |
) |
3052 | 3455 |
) |
3456 |
||
3457 |
) |
|
3458 |
) |
|
1409 | 3459 |
! ! |
3460 |
||
3461 |
!UILayoutTool::Rectangle methodsFor:'accessing'! |
|
3462 |
||
3463 |
fetch:aView spec:aSpec |
|
3464 |
"fetch rectangle |
|
3465 |
" |
|
3466 |
|origin corner| |
|
3467 |
||
3468 |
origin := aView computeOrigin. |
|
3469 |
corner := aView computeCorner. |
|
3470 |
||
3471 |
(self aspectFor:#leftOffset) value:(origin x). |
|
3472 |
(self aspectFor:#rightOffset) value:(corner x). |
|
3473 |
(self aspectFor:#topOffset) value:(origin y). |
|
3474 |
(self aspectFor:#bottomOffset) value:(corner y). |
|
3475 |
||
3476 |
||
3477 |
! |
|
3478 |
||
3479 |
layout |
|
2022 | 3480 |
"returns current layout as rectangle" |
3481 |
||
3234 | 3482 |
^ (Smalltalk at:#Rectangle) |
2022 | 3483 |
left:(((self aspectFor:#leftOffset) value) ? 0) |
3484 |
top:(((self aspectFor:#topOffset) value) ? 0) |
|
3485 |
right:(((self aspectFor:#rightOffset) value) ? 0) |
|
3486 |
bottom:(((self aspectFor:#bottomOffset) value) ? 0) |
|
1409 | 3487 |
! ! |
3488 |
||
163 | 3489 |
!UILayoutTool class methodsFor:'documentation'! |
3490 |
||
3491 |
version |
|
3492 |
^ '$Header$' |
|
2794 | 3493 |
! |
3494 |
||
3495 |
version_CVS |
|
3496 |
^ '$Header$' |
|
163 | 3497 |
! ! |
2949 | 3498 |