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