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