author | sr |
Wed, 16 Sep 2009 21:40:10 +0200 | |
changeset 2578 | e515bf4174db |
parent 2533 | 460098ee1f39 |
child 2794 | 56fb74312287 |
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 |
|
1074 |
'Aligns the selected widget bottomCenter to location.' |
|
1075 |
||
1076 |
#alignBottomLeft |
|
1077 |
'Aligns the selected widget bottomLeft to location.' |
|
1078 |
||
1079 |
#alignBottomRight |
|
1080 |
'Aligns the selected widget bottomRight to location.' |
|
1081 |
||
1082 |
#alignCenter |
|
1083 |
'Aligns the selected widget center to location.' |
|
1084 |
||
1085 |
#alignHorizontal |
|
1086 |
'Horizontal inset to the location point of the selected widget.' |
|
1087 |
||
1088 |
#alignLeftCenter |
|
1089 |
'Aligns the selected widget leftCenter to location.' |
|
1090 |
||
1091 |
#alignRightCenter |
|
1092 |
'Aligns the selected widget rightCenter to location.' |
|
1093 |
||
1094 |
#alignTopCenter |
|
1095 |
'Aligns the selected widget topCenter to location.' |
|
1096 |
||
1097 |
#alignTopLeft |
|
1098 |
'Aligns the selected widget topLeft to location.' |
|
1099 |
||
1100 |
#alignTopRight |
|
1101 |
'Aligns the selected widget topRight to location.' |
|
1102 |
||
1103 |
#alignVertical |
|
1104 |
'Vertical inset to the location point of the widget.' |
|
1105 |
||
1106 |
) |
|
1107 |
! ! |
|
1108 |
||
1109 |
!UILayoutTool::AlignmentOrigin class methodsFor:'interface specs'! |
|
1110 |
||
1111 |
windowSpec |
|
1112 |
"This resource specification was automatically generated |
|
1113 |
by the UIPainter of ST/X." |
|
1114 |
||
1115 |
"Do not manually edit this!! If it is corrupted, |
|
1116 |
the UIPainter may not be able to read the specification." |
|
1117 |
||
1118 |
" |
|
1119 |
UIPainter new openOnClass:UILayoutTool::AlignmentOrigin andSelector:#windowSpec |
|
1120 |
UILayoutTool::AlignmentOrigin new openInterface:#windowSpec |
|
1121 |
UILayoutTool::AlignmentOrigin open |
|
1122 |
" |
|
1123 |
||
1124 |
<resource: #canvas> |
|
1125 |
||
1126 |
^ |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1127 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1128 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1129 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1130 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1131 |
label: 'UILayoutTool-AlignmentOrigin' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1132 |
name: 'UILayoutTool-AlignmentOrigin' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1133 |
min: (Point 10 10) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1134 |
bounds: (Rectangle 14 46 419 253) |
1447 | 1135 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1136 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1137 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1138 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1139 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1140 |
name: 'layoutOriginSpec' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1141 |
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
|
1142 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1143 |
minorKey: layoutOriginSpec |
1447 | 1144 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1145 |
(FramedBoxSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1146 |
label: 'Alignment' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1147 |
name: 'FramedBox' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1148 |
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
|
1149 |
labelPosition: topLeft |
1874 | 1150 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1151 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1152 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1153 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1154 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1155 |
label: 'Horizontal:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1156 |
name: 'alignHLabel' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1157 |
layout: (AlignmentOrigin 88 0 17 0 1 0) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1158 |
adjust: right |
1874 | 1159 |
translateLabel: true |
1447 | 1160 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1161 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1162 |
name: 'leftAlignmentFractionField' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1163 |
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
|
1164 |
activeHelpKey: alignHorizontal |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1165 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1166 |
model: leftAlignmentFraction |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1167 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1168 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1169 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1170 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1171 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1172 |
acceptOnPointerLeave: false |
1447 | 1173 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1174 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1175 |
label: 'Vertical:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1176 |
name: 'alignVLabel' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1177 |
layout: (AlignmentOrigin 88 0 43 0 1 0) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1178 |
adjust: right |
1874 | 1179 |
translateLabel: true |
1447 | 1180 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1181 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1182 |
name: 'topAlignmentFractionField' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1183 |
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
|
1184 |
activeHelpKey: alignVertical |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1185 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1186 |
model: topAlignmentFraction |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1187 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1188 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1189 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1190 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1191 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1192 |
acceptOnPointerLeave: false |
1447 | 1193 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1194 |
(DividerSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1195 |
name: 'separator1' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1196 |
layout: (LayoutFrame 204 0 19 0 245 0 22 0) |
1447 | 1197 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1198 |
(DividerSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1199 |
name: 'separator2' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1200 |
layout: (LayoutFrame 204 0 55 0 245 0 58 0) |
1447 | 1201 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1202 |
(DividerSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1203 |
name: 'separator3' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1204 |
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
|
1205 |
orientation: vertical |
1447 | 1206 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1207 |
(DividerSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1208 |
name: 'separator4' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1209 |
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
|
1210 |
orientation: vertical |
1447 | 1211 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1212 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1213 |
name: 'alignTopLeft' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1214 |
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
|
1215 |
activeHelpKey: alignTopLeft |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1216 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1217 |
model: alignTopLeft |
1447 | 1218 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1219 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1220 |
name: 'alignTopCenter' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1221 |
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
|
1222 |
activeHelpKey: alignTopCenter |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1223 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1224 |
model: alignTopCenter |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1225 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1226 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1227 |
name: 'alignTopRight' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1228 |
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
|
1229 |
activeHelpKey: alignTopRight |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1230 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1231 |
model: alignTopRight |
1447 | 1232 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1233 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1234 |
name: 'alignLeftCenter' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1235 |
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
|
1236 |
activeHelpKey: alignLeftCenter |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1237 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1238 |
model: alignLeftCenter |
1447 | 1239 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1240 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1241 |
name: 'alignCenter' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1242 |
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
|
1243 |
activeHelpKey: alignCenter |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1244 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1245 |
model: alignCenter |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1246 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1247 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1248 |
name: 'alignRightCenter' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1249 |
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
|
1250 |
activeHelpKey: alignRightCenter |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1251 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1252 |
model: alignRightCenter |
1447 | 1253 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1254 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1255 |
name: 'alignBottomLeft' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1256 |
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
|
1257 |
activeHelpKey: alignBottomLeft |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1258 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1259 |
model: alignBottomLeft |
1447 | 1260 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1261 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1262 |
name: 'alignBottomCenter' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1263 |
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
|
1264 |
activeHelpKey: alignBottomCenter |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1265 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1266 |
model: alignBottomCenter |
1447 | 1267 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1268 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1269 |
name: 'alignBottomRight' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1270 |
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
|
1271 |
activeHelpKey: alignBottomRight |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1272 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1273 |
model: alignBottomRight |
1447 | 1274 |
) |
1275 |
) |
|
1276 |
||
1277 |
) |
|
1278 |
) |
|
1279 |
) |
|
1280 |
||
1281 |
) |
|
1282 |
) |
|
1283 |
! ! |
|
1284 |
||
1285 |
!UILayoutTool::AlignmentOrigin methodsFor:'accessing'! |
|
1286 |
||
1287 |
fetch:aView spec:aSpec |
|
1288 |
"fetch alignmentOrigin |
|
1289 |
" |
|
1290 |
|layout type |
|
1291 |
leftAlignmentFractionHolder topAlignmentFractionHolder |
|
1292 |
leftOffsetHolder leftFractionHolder topOffsetHolder topFractionHolder| |
|
1293 |
||
1294 |
type := UIPainterView layoutType:aView. |
|
1295 |
layout := aView geometryLayout. |
|
1296 |
||
1297 |
leftOffsetHolder := (self aspectFor:#leftOffset). |
|
1298 |
leftFractionHolder := (self aspectFor:#leftFraction). |
|
1299 |
topOffsetHolder := (self aspectFor:#topOffset). |
|
1300 |
topFractionHolder := (self aspectFor:#topFraction). |
|
1301 |
leftAlignmentFractionHolder := (self aspectFor:#leftAlignmentFraction). |
|
1302 |
topAlignmentFractionHolder := (self aspectFor:#topAlignmentFraction). |
|
1303 |
||
1304 |
layout isLayout ifTrue:[ |
|
1305 |
leftOffsetHolder value:(layout leftOffset). |
|
1306 |
leftFractionHolder value:(layout leftFraction). |
|
1307 |
topOffsetHolder value:(layout topOffset). |
|
1308 |
topFractionHolder value:(layout topFraction). |
|
1309 |
||
1310 |
type == #AlignmentOrigin ifTrue:[ |
|
1311 |
leftAlignmentFractionHolder value:(layout leftAlignmentFraction). |
|
1312 |
topAlignmentFractionHolder value:(layout topAlignmentFraction). |
|
1313 |
^ self |
|
1314 |
] |
|
1315 |
] ifFalse:[ |
|
1316 |
layout := aView computeOrigin. |
|
1317 |
||
1318 |
leftOffsetHolder value:(layout x). |
|
1319 |
leftFractionHolder value:0. |
|
1320 |
topOffsetHolder value:(layout y). |
|
1321 |
topFractionHolder value:0. |
|
1322 |
]. |
|
1323 |
leftAlignmentFractionHolder value:0. |
|
1324 |
topAlignmentFractionHolder value:0. |
|
1325 |
||
1326 |
||
1327 |
! |
|
1328 |
||
1329 |
layout |
|
1330 |
"returns current layout as alignmentOrigin |
|
1331 |
" |
|
1332 |
|layout| |
|
1333 |
||
1334 |
layout := Smalltalk::AlignmentOrigin new. |
|
1335 |
||
1581 | 1336 |
layout |
1337 |
leftFraction:(((self aspectFor:#leftFraction) value) ? 0) |
|
1338 |
offset:(((self aspectFor:#leftOffset) value) ? 0) |
|
1339 |
topFraction:(((self aspectFor:#topFraction) value) ? 0) |
|
1340 |
offset:(((self aspectFor:#topOffset) value) ? 0). |
|
1341 |
||
1342 |
layout |
|
1343 |
leftAlignmentFraction:(((self aspectFor:#leftAlignmentFraction) value) ? 0) |
|
1344 |
topAlignmentFraction:(((self aspectFor:#topAlignmentFraction) value) ? 0). |
|
1447 | 1345 |
|
1346 |
^ layout |
|
1347 |
! ! |
|
1348 |
||
1349 |
!UILayoutTool::AlignmentOrigin methodsFor:'alignment'! |
|
1350 |
||
1351 |
alignBottomCenter |
|
1352 |
self makeAlignLeft:0.5 top:1 |
|
1353 |
||
1354 |
||
1355 |
! |
|
1356 |
||
1357 |
alignBottomLeft |
|
1358 |
self makeAlignLeft:0 top:1 |
|
1359 |
||
1360 |
||
1361 |
! |
|
1362 |
||
1363 |
alignBottomRight |
|
1364 |
self makeAlignLeft:1 top:1 |
|
1365 |
||
1366 |
||
1367 |
! |
|
1368 |
||
1369 |
alignCenter |
|
1370 |
self makeAlignLeft:0.5 top:0.5 |
|
1371 |
||
1372 |
||
1373 |
! |
|
1374 |
||
1375 |
alignLeftCenter |
|
1376 |
self makeAlignLeft:0 top:0.5 |
|
1377 |
||
1378 |
||
1379 |
! |
|
1380 |
||
1381 |
alignRightCenter |
|
1382 |
self makeAlignLeft:1 top:0.5 |
|
1383 |
||
1384 |
||
1385 |
! |
|
1386 |
||
1387 |
alignTopCenter |
|
1388 |
self makeAlignLeft:0.5 top:0 |
|
1389 |
||
1390 |
||
1391 |
! |
|
1392 |
||
1393 |
alignTopLeft |
|
1394 |
self makeAlignLeft:0 top:0 |
|
1395 |
||
1396 |
||
1397 |
! |
|
1398 |
||
1399 |
alignTopRight |
|
1400 |
self makeAlignLeft:1 top:0 |
|
1401 |
||
1402 |
||
1403 |
! |
|
1404 |
||
1405 |
makeAlignLeft:leftAlignmentFraction top:topAlignmentFraction |
|
1406 |
|lAF tAF lO tO ext lAHolder tAHolder lOHolder tOHolder| |
|
1407 |
||
1408 |
lAF := (lAHolder := self aspectFor:#leftAlignmentFraction) value ? 0. |
|
1409 |
tAF := (tAHolder := self aspectFor:#topAlignmentFraction) value ? 0. |
|
1410 |
ext := (self aspectFor:#layoutView) computeExtent. |
|
1411 |
||
1412 |
lAHolder value:leftAlignmentFraction. |
|
1413 |
tAHolder value:topAlignmentFraction. |
|
1414 |
||
1415 |
lO := (lOHolder := self aspectFor:#leftOffset) value ? 0. |
|
1416 |
tO := (tOHolder := self aspectFor:#topOffset) value ? 0. |
|
1417 |
||
1418 |
lO := lO + (ext x * (leftAlignmentFraction - lAF)). |
|
1419 |
tO := tO + (ext y * (topAlignmentFraction - tAF)). |
|
1420 |
||
1421 |
lOHolder value:(lO rounded). |
|
1422 |
tOHolder value:(tO rounded). |
|
1423 |
||
1424 |
! |
|
1425 |
||
1426 |
makeAlignTopRight |
|
1427 |
self makeAlignLeft:1 top:0 |
|
1428 |
||
1429 |
||
1430 |
! ! |
|
1431 |
||
1432 |
!UILayoutTool::Extent class methodsFor:'help specs'! |
|
1433 |
||
1434 |
helpSpec |
|
1435 |
"This resource specification was automatically generated |
|
1436 |
by the UIHelpTool of ST/X." |
|
1437 |
||
1438 |
"Do not manually edit this!! If it is corrupted, |
|
1439 |
the UIHelpTool may not be able to read the specification." |
|
1440 |
||
1441 |
" |
|
1442 |
UIHelpTool openOnClass:UILayoutTool::Extent |
|
1443 |
" |
|
1444 |
||
1445 |
<resource: #help> |
|
1446 |
||
1447 |
^super helpSpec addPairsFrom:#( |
|
1448 |
||
1449 |
#hrzExtent |
|
1450 |
'Horizontal extent of the selected widget.' |
|
1451 |
||
1452 |
#vrtExtent |
|
1453 |
'Vertical extent of the selected widget.' |
|
1454 |
||
1455 |
) |
|
1456 |
! ! |
|
1457 |
||
1458 |
!UILayoutTool::Extent class methodsFor:'interface specs'! |
|
1459 |
||
1460 |
windowSpec |
|
1461 |
"This resource specification was automatically generated |
|
1462 |
by the UIPainter of ST/X." |
|
1463 |
||
1464 |
"Do not manually edit this!! If it is corrupted, |
|
1465 |
the UIPainter may not be able to read the specification." |
|
1466 |
||
1467 |
" |
|
1468 |
UIPainter new openOnClass:UILayoutTool::Extent andSelector:#windowSpec |
|
1469 |
UILayoutTool::Extent new openInterface:#windowSpec |
|
1470 |
UILayoutTool::Extent open |
|
1471 |
" |
|
1472 |
||
1473 |
<resource: #canvas> |
|
1474 |
||
1475 |
^ |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1476 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1477 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1478 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1479 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1480 |
label: 'UILayoutTool-Extent' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1481 |
name: 'UILayoutTool-Extent' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1482 |
min: (Point 10 10) |
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1483 |
bounds: (Rectangle 0 0 505 149) |
1447 | 1484 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1485 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1486 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1487 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1488 |
(FramedBoxSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1489 |
label: 'Extent' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1490 |
name: 'FramedBox' |
1804 | 1491 |
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
|
1492 |
labelPosition: topLeft |
2022 | 1493 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1494 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1495 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1496 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1497 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1498 |
label: 'Width:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1499 |
name: 'labelWidth' |
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1500 |
layout: (AlignmentOrigin 89 0 41 0 1 0.5) |
2022 | 1501 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1502 |
adjust: right |
1447 | 1503 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1504 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1505 |
name: 'fieldLeftOffset' |
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1506 |
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
|
1507 |
activeHelpKey: hrzExtent |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1508 |
enableChannel: notUsingDefaultExtent |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1509 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1510 |
model: leftOffset |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1511 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1512 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1513 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1514 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1515 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1516 |
acceptOnPointerLeave: false |
1447 | 1517 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1518 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1519 |
label: 'Height:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1520 |
name: 'labelHeight' |
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1521 |
layout: (AlignmentOrigin 89 0 66 0 1 0.5) |
2022 | 1522 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1523 |
adjust: right |
1447 | 1524 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1525 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1526 |
name: 'fieldRightOffset' |
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1527 |
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
|
1528 |
activeHelpKey: vrtExtent |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1529 |
enableChannel: notUsingDefaultExtent |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1530 |
tabable: true |
2022 | 1531 |
model: topOffset |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1532 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1533 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1534 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1535 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1536 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1537 |
acceptOnPointerLeave: false |
1447 | 1538 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1539 |
(CheckBoxSpec |
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1540 |
label: 'Use Preferred' |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1541 |
name: 'CheckBox1' |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1542 |
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
|
1543 |
model: usePreferredWidth |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1544 |
translateLabel: true |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1545 |
) |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1546 |
(CheckBoxSpec |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1547 |
label: 'Dynamic' |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1548 |
name: 'CheckBox3' |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1549 |
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
|
1550 |
model: useDynamicPreferredWidth |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1551 |
translateLabel: true |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1552 |
) |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1553 |
(CheckBoxSpec |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1554 |
label: 'Use Preferred' |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1555 |
name: 'CheckBox2' |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1556 |
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
|
1557 |
model: usePreferredHeight |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1558 |
translateLabel: true |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1559 |
) |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1560 |
(CheckBoxSpec |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1561 |
label: 'Dynamic' |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1562 |
name: 'CheckBox4' |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1563 |
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
|
1564 |
model: useDynamicPreferredHeight |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1565 |
translateLabel: true |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1566 |
) |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1567 |
(CheckBoxSpec |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1568 |
label: 'Use Widgets Default Extent' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1569 |
name: 'useDefaultExtentCheckBox' |
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1570 |
layout: (Point 5 84) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1571 |
enableChannel: defaultExtentEnabled |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1572 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1573 |
model: useDefaultExtent |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
1574 |
translateLabel: true |
1447 | 1575 |
) |
1576 |
) |
|
1577 |
||
1578 |
) |
|
1579 |
) |
|
2022 | 1580 |
(PopUpListSpec |
1581 |
label: 'Common Extents' |
|
1582 |
name: 'CommonExtentsPopUpList' |
|
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1583 |
layout: (LayoutFrame 189 0 21 0 314 0 43 0) |
2022 | 1584 |
tabable: true |
1585 |
menu: listOfCommonExtents |
|
1586 |
useIndex: true |
|
1587 |
ignoreReselect: false |
|
1588 |
stateChangeCallBackSelector: commonExtentSelected: |
|
1589 |
) |
|
1447 | 1590 |
) |
1591 |
||
1592 |
) |
|
1593 |
) |
|
1594 |
! ! |
|
1595 |
||
1596 |
!UILayoutTool::Extent methodsFor:'accessing'! |
|
1597 |
||
1598 |
fetch:aView spec:aSpec |
|
2022 | 1599 |
"fetch the extent from aView" |
1600 |
||
1447 | 1601 |
|extent| |
1602 |
||
1603 |
extent := aView computeExtent. |
|
1604 |
||
1605 |
(self aspectFor:#leftOffset) value:(extent x). |
|
2022 | 1606 |
(self aspectFor:#topOffset) value:(extent y). |
1447 | 1607 |
|
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1608 |
(self aspectFor:#usePreferredWidth) value:(aSpec usePreferredWidth). |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1609 |
(self aspectFor:#usePreferredHeight) value:(aSpec usePreferredHeight). |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1610 |
(self aspectFor:#useDynamicPreferredWidth) value:(aSpec useDynamicPreferredWidth). |
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
1611 |
(self aspectFor:#useDynamicPreferredHeight) value:(aSpec useDynamicPreferredHeight). |
1447 | 1612 |
(self aspectFor:#useDefaultExtent) value:aSpec useDefaultExtent |
1613 |
! |
|
1614 |
||
1615 |
layout |
|
2022 | 1616 |
"returns the current extent" |
1617 |
||
1618 |
^ (((self aspectFor:#leftOffset) value) ? 0) @ (((self aspectFor:#topOffset) value) ? 0) |
|
1619 |
! ! |
|
1620 |
||
1621 |
!UILayoutTool::Extent methodsFor:'aspects'! |
|
1622 |
||
1623 |
commonExtentsSpec |
|
1624 |
^ #( |
|
1625 |
('200 x 100' (200 100) ) |
|
1626 |
('300 x 300' (300 300) ) |
|
1627 |
('640 x 400' (640 400) ) |
|
1628 |
('800 x 600' (800 600) ) |
|
2214 | 1629 |
('1024 x 768' (1024 768) ) |
1630 |
('1200 x 800' (1200 800) ) |
|
2022 | 1631 |
) |
1632 |
! |
|
1633 |
||
1634 |
listOfCommonExtents |
|
1635 |
^ self commonExtentsSpec collect:[:eachRow | eachRow first]. |
|
1636 |
! ! |
|
1637 |
||
1638 |
!UILayoutTool::Extent methodsFor:'user actions'! |
|
1639 |
||
1640 |
commonExtentSelected:index |
|
1641 |
|xy x y| |
|
1642 |
||
1643 |
xy := (self commonExtentsSpec at:index) second. |
|
1644 |
x := xy at:1. |
|
1645 |
y := xy at:2. |
|
1646 |
||
1647 |
(self aspectFor:#leftOffset) value:x. |
|
1648 |
(self aspectFor:#topOffset) value:y. |
|
1649 |
||
1650 |
(builder componentAt:#CommonExtentsPopUpList) |
|
1651 |
label:(resources string:'Common Extents'). |
|
1447 | 1652 |
! ! |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
1653 |
|
1826 | 1654 |
!UILayoutTool::LayoutFrame class methodsFor:'defaults'! |
1655 |
||
1656 |
defaultFixPartHeight |
|
1657 |
^ DefaultFixPartHeight ? 30 |
|
1658 |
! ! |
|
1659 |
||
1409 | 1660 |
!UILayoutTool::LayoutFrame class methodsFor:'help specs'! |
1661 |
||
1662 |
helpSpec |
|
1663 |
"This resource specification was automatically generated |
|
1664 |
by the UIHelpTool of ST/X." |
|
1665 |
||
1666 |
"Do not manually edit this!! If it is corrupted, |
|
1667 |
the UIHelpTool may not be able to read the specification." |
|
1668 |
||
1669 |
" |
|
1670 |
UIHelpTool openOnClass:UILayoutTool::LayoutFrame |
|
1671 |
" |
|
1672 |
||
1673 |
<resource: #help> |
|
1674 |
||
1858 | 1675 |
^ super helpSpec addPairsFrom:#( |
1409 | 1676 |
|
1677 |
#bottomAbsolute |
|
1678 |
'Offset of the bottom edge; positive is to the bottom, negative to the top.' |
|
1679 |
||
1858 | 1680 |
#bigBottomFixPartLayout |
1681 |
'Set layout for a big fixed area at the bottom of the widgets container' |
|
1682 |
||
1409 | 1683 |
#bottomFixPartLayout |
1858 | 1684 |
'Set layout for a small fixed area at the bottom of the widgets container' |
1409 | 1685 |
|
1686 |
#bottomHalfLayout |
|
1858 | 1687 |
'Set layout for the bottom half of the widgets container' |
1409 | 1688 |
|
1689 |
#bottomLeftQuarterLayout |
|
1858 | 1690 |
'Set layout for the bottom-left quarter of the widgets container' |
1409 | 1691 |
|
1692 |
#bottomRelative |
|
1693 |
'Relative corner y of the selected widget.' |
|
1694 |
||
1695 |
#bottomRightQuarterLayout |
|
1858 | 1696 |
'Set layout for the bottom-right quarter of the widgets container' |
1697 |
||
1698 |
#fullLayout |
|
1699 |
'Set layout to fill all of the widgets container' |
|
1409 | 1700 |
|
1701 |
#horizontalFixPartLayout |
|
1858 | 1702 |
'Set layout for a small fixed-height area centered vertically in the widgets container' |
1703 |
||
1704 |
#bigHorizontalFixPartLayout |
|
1705 |
'Set layout for a big fixed-height area centered vertically in the widgets container' |
|
1409 | 1706 |
|
1707 |
#leftFixPartLayout |
|
1858 | 1708 |
'Set layout for a small fixed area at the left of the widgets container' |
1409 | 1709 |
|
1710 |
#leftHalfLayout |
|
1858 | 1711 |
'Set layout for the left half of the widgets container' |
1409 | 1712 |
|
1713 |
#makeBottomAbsolute |
|
1714 |
'Compute pure-absolute y.' |
|
1715 |
||
1716 |
#makeBottomRelative |
|
1955 | 1717 |
'Compute pure-fractional y.' |
1409 | 1718 |
|
1719 |
#makeBottomRelativeFromBottom |
|
2022 | 1720 |
'Compute fraction+offset for y relative to containers bottom.' |
1409 | 1721 |
|
1722 |
#makeRightAbsolute |
|
1723 |
'Compute pure-absolute x.' |
|
1724 |
||
1725 |
#makeRightRelative |
|
1955 | 1726 |
'Compute pure-fractional x.' |
1409 | 1727 |
|
1728 |
#makeRightRelativeFromRight |
|
1729 |
'Compute fraction+offset for x relative to containers right.' |
|
1730 |
||
1731 |
#rightAbsolute |
|
1732 |
'Offset of the right edge; positive is to the right, negative to the left.' |
|
1733 |
||
1734 |
#rightFixPartLayout |
|
1858 | 1735 |
'Set layout for a small fixed area at the right of the widgets container' |
1409 | 1736 |
|
1737 |
#rightHalfLayout |
|
1858 | 1738 |
'Set layout for the right half of the widgets container' |
1409 | 1739 |
|
1740 |
#rightRelative |
|
1741 |
'Relative corner x of the selected widget.' |
|
1742 |
||
1858 | 1743 |
#screenFrameLayout |
1744 |
'' |
|
1745 |
||
1409 | 1746 |
#topFixPartLayout |
1858 | 1747 |
'Set layout for a small fixed area at the top of the widgets container' |
1748 |
||
1749 |
#bigTopFixPartLayout |
|
1750 |
'Set layout for a big fixed area at the top of the widgets container' |
|
1409 | 1751 |
|
1752 |
#topHalfLayout |
|
1858 | 1753 |
'Set layout for the top half of the widgets container' |
1409 | 1754 |
|
1755 |
#topLeftQuarterLayout |
|
1858 | 1756 |
'Set layout for the top-left quarter of the widgets container' |
1409 | 1757 |
|
1758 |
#topRightQuarterLayout |
|
1858 | 1759 |
'Set layout for the top-right quarter of the widgets container' |
1409 | 1760 |
|
1761 |
#verticalFixPartLayout |
|
1858 | 1762 |
'Set layout for a small fixed-width area centered horizontally in the widgets container' |
1409 | 1763 |
|
1764 |
) |
|
1765 |
! ! |
|
1766 |
||
1767 |
!UILayoutTool::LayoutFrame class methodsFor:'image specs'! |
|
1768 |
||
1706 | 1769 |
setBigBottomFixPartIcon |
1770 |
"This resource specification was automatically generated |
|
1771 |
by the ImageEditor of ST/X." |
|
1772 |
||
1773 |
"Do not manually edit this!! If it is corrupted, |
|
1774 |
the ImageEditor may not be able to read the specification." |
|
1775 |
||
1776 |
" |
|
1777 |
self setBigBottomFixPartIcon inspect |
|
1778 |
ImageEditor openOnClass:self andSelector:#setBigBottomFixPartIcon |
|
1779 |
Icon flushCachedIcons |
|
1780 |
" |
|
1781 |
||
1782 |
<resource: #image> |
|
1783 |
||
1784 |
^Icon |
|
2269 | 1785 |
constantNamed:'UILayoutTool::LayoutFrame class setBigBottomFixPartIcon' |
2022 | 1786 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
1787 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"H"H"@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQ |
|
1788 |
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 | 1789 |
! |
1790 |
||
1791 |
setBigHorizontalFixPartIcon |
|
1792 |
"This resource specification was automatically generated |
|
1793 |
by the ImageEditor of ST/X." |
|
1794 |
||
1795 |
"Do not manually edit this!! If it is corrupted, |
|
1796 |
the ImageEditor may not be able to read the specification." |
|
1797 |
||
1798 |
" |
|
1799 |
self setBigHorizontalFixPartIcon inspect |
|
1800 |
ImageEditor openOnClass:self andSelector:#setBigHorizontalFixPartIcon |
|
1801 |
Icon flushCachedIcons |
|
1802 |
" |
|
1803 |
||
1804 |
<resource: #image> |
|
1805 |
||
1806 |
^Icon |
|
2269 | 1807 |
constantNamed:'UILayoutTool::LayoutFrame class setBigHorizontalFixPartIcon' |
2022 | 1808 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
1809 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H" |
|
1810 |
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 | 1811 |
! |
1812 |
||
1813 |
setBigTopFixPartIcon |
|
1814 |
"This resource specification was automatically generated |
|
1815 |
by the ImageEditor of ST/X." |
|
1816 |
||
1817 |
"Do not manually edit this!! If it is corrupted, |
|
1818 |
the ImageEditor may not be able to read the specification." |
|
1819 |
||
1820 |
" |
|
1821 |
self setBigTopFixPartIcon inspect |
|
1822 |
ImageEditor openOnClass:self andSelector:#setBigTopFixPartIcon |
|
1823 |
Icon flushCachedIcons |
|
1824 |
" |
|
1825 |
||
1826 |
<resource: #image> |
|
1827 |
||
1828 |
^Icon |
|
2269 | 1829 |
constantNamed:'UILayoutTool::LayoutFrame class setBigTopFixPartIcon' |
2022 | 1830 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
1831 |
@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @"H"H"H"H"@@@@@@@@@@@@@@ |
|
1832 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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 | 1833 |
! |
1834 |
||
1409 | 1835 |
setBottomFixPartIcon |
1836 |
"This resource specification was automatically generated |
|
1837 |
by the ImageEditor of ST/X." |
|
1838 |
||
1839 |
"Do not manually edit this!! If it is corrupted, |
|
1840 |
the ImageEditor may not be able to read the specification." |
|
1841 |
||
1842 |
" |
|
1843 |
self setBottomFixPartIcon inspect |
|
1844 |
ImageEditor openOnClass:self andSelector:#setBottomFixPartIcon |
|
2269 | 1845 |
Icon flushCachedIcons |
1409 | 1846 |
" |
1847 |
||
1848 |
<resource: #image> |
|
1849 |
||
1850 |
^Icon |
|
2269 | 1851 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomFixPartIcon' |
1852 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1853 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H" |
|
1854 |
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 | 1855 |
! |
1409 | 1856 |
|
1857 |
setBottomHalfIcon |
|
1858 |
"This resource specification was automatically generated |
|
1859 |
by the ImageEditor of ST/X." |
|
1860 |
||
1861 |
"Do not manually edit this!! If it is corrupted, |
|
1862 |
the ImageEditor may not be able to read the specification." |
|
1863 |
||
1864 |
" |
|
1865 |
self setBottomHalfIcon inspect |
|
1866 |
ImageEditor openOnClass:self andSelector:#setBottomHalfIcon |
|
2269 | 1867 |
Icon flushCachedIcons |
1409 | 1868 |
" |
1869 |
||
1870 |
<resource: #image> |
|
1871 |
||
1872 |
^Icon |
|
2269 | 1873 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomHalfIcon' |
1874 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1875 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"H"H"@BDQDQDQDQH@HQ |
|
1876 |
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 | 1877 |
! |
1409 | 1878 |
|
1879 |
setBottomLeftQuarterIcon |
|
1880 |
"This resource specification was automatically generated |
|
1881 |
by the ImageEditor of ST/X." |
|
1882 |
||
1883 |
"Do not manually edit this!! If it is corrupted, |
|
1884 |
the ImageEditor may not be able to read the specification." |
|
1885 |
||
1886 |
" |
|
1887 |
self setBottomLeftQuarterIcon inspect |
|
1888 |
ImageEditor openOnClass:self andSelector:#setBottomLeftQuarterIcon |
|
2269 | 1889 |
Icon flushCachedIcons |
1409 | 1890 |
" |
1891 |
||
1892 |
<resource: #image> |
|
1893 |
||
1894 |
^Icon |
|
2269 | 1895 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomLeftQuarterIcon' |
1896 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1897 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H"H"@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQ |
|
1898 |
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 | 1899 |
! |
1409 | 1900 |
|
1901 |
setBottomRightQuarterIcon |
|
1902 |
"This resource specification was automatically generated |
|
1903 |
by the ImageEditor of ST/X." |
|
1904 |
||
1905 |
"Do not manually edit this!! If it is corrupted, |
|
1906 |
the ImageEditor may not be able to read the specification." |
|
1907 |
||
1908 |
" |
|
1909 |
self setBottomRightQuarterIcon inspect |
|
1910 |
ImageEditor openOnClass:self andSelector:#setBottomRightQuarterIcon |
|
2269 | 1911 |
Icon flushCachedIcons |
1409 | 1912 |
" |
1913 |
||
1914 |
<resource: #image> |
|
1915 |
||
1916 |
^Icon |
|
2269 | 1917 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomRightQuarterIcon' |
1918 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1919 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@ |
|
1920 |
@@@!!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 | 1921 |
! |
1409 | 1922 |
|
1680 | 1923 |
setFullIcon |
1924 |
"This resource specification was automatically generated |
|
1925 |
by the ImageEditor of ST/X." |
|
1926 |
||
1927 |
"Do not manually edit this!! If it is corrupted, |
|
1928 |
the ImageEditor may not be able to read the specification." |
|
1929 |
||
1930 |
" |
|
1931 |
self setFullIcon inspect |
|
1932 |
ImageEditor openOnClass:self andSelector:#setFullIcon |
|
1933 |
Icon flushCachedIcons |
|
1934 |
" |
|
1935 |
||
1936 |
<resource: #image> |
|
1937 |
||
1938 |
^Icon |
|
2269 | 1939 |
constantNamed:'UILayoutTool::LayoutFrame class setFullIcon' |
1940 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1680 | 1941 |
@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQ |
2269 | 1942 |
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 | 1943 |
! |
1944 |
||
1409 | 1945 |
setHorizontalFixPartIcon |
1946 |
"This resource specification was automatically generated |
|
1947 |
by the ImageEditor of ST/X." |
|
1948 |
||
1949 |
"Do not manually edit this!! If it is corrupted, |
|
1950 |
the ImageEditor may not be able to read the specification." |
|
1951 |
||
1952 |
" |
|
1953 |
self setHorizontalFixPartIcon inspect |
|
1954 |
ImageEditor openOnClass:self andSelector:#setHorizontalFixPartIcon |
|
2269 | 1955 |
Icon flushCachedIcons |
1409 | 1956 |
" |
1957 |
||
1958 |
<resource: #image> |
|
1959 |
||
1960 |
^Icon |
|
2269 | 1961 |
constantNamed:'UILayoutTool::LayoutFrame class setHorizontalFixPartIcon' |
1962 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1409 | 1963 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H@H"H"@BDQDP@QDQH@HQDQ@ADQD @"H"H@H"H"@@@@@@@@@@@@@@ |
2269 | 1964 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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 | 1965 |
! |
1409 | 1966 |
|
1967 |
setLeftFixPartIcon |
|
1968 |
"This resource specification was automatically generated |
|
1969 |
by the ImageEditor of ST/X." |
|
1970 |
||
1971 |
"Do not manually edit this!! If it is corrupted, |
|
1972 |
the ImageEditor may not be able to read the specification." |
|
1973 |
||
1974 |
" |
|
1975 |
self setLeftFixPartIcon inspect |
|
1976 |
ImageEditor openOnClass:self andSelector:#setLeftFixPartIcon |
|
2269 | 1977 |
Icon flushCachedIcons |
1409 | 1978 |
" |
1979 |
||
1980 |
<resource: #image> |
|
1981 |
||
1982 |
^Icon |
|
2269 | 1983 |
constantNamed:'UILayoutTool::LayoutFrame class setLeftFixPartIcon' |
1984 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1409 | 1985 |
@@@@@@@@@@@BH"@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@@@@@@@@@@@@@@@@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQ |
2269 | 1986 |
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 | 1987 |
! |
1409 | 1988 |
|
1989 |
setLeftHalfIcon |
|
1990 |
"This resource specification was automatically generated |
|
1991 |
by the ImageEditor of ST/X." |
|
1992 |
||
1993 |
"Do not manually edit this!! If it is corrupted, |
|
1994 |
the ImageEditor may not be able to read the specification." |
|
1995 |
||
1996 |
" |
|
1997 |
self setLeftHalfIcon inspect |
|
1998 |
ImageEditor openOnClass:self andSelector:#setLeftHalfIcon |
|
2269 | 1999 |
Icon flushCachedIcons |
1409 | 2000 |
" |
2001 |
||
2002 |
<resource: #image> |
|
2003 |
||
2004 |
^Icon |
|
2269 | 2005 |
constantNamed:'UILayoutTool::LayoutFrame class setLeftHalfIcon' |
2006 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
2007 |
@@@@@@@@@@@BH"H @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQ |
|
2008 |
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 | 2009 |
! |
1409 | 2010 |
|
2011 |
setRightFixPartIcon |
|
2012 |
"This resource specification was automatically generated |
|
2013 |
by the ImageEditor of ST/X." |
|
2014 |
||
2015 |
"Do not manually edit this!! If it is corrupted, |
|
2016 |
the ImageEditor may not be able to read the specification." |
|
2017 |
||
2018 |
" |
|
2019 |
self setRightFixPartIcon inspect |
|
2020 |
ImageEditor openOnClass:self andSelector:#setRightFixPartIcon |
|
2269 | 2021 |
Icon flushCachedIcons |
1409 | 2022 |
" |
2023 |
||
2024 |
<resource: #image> |
|
2025 |
||
2026 |
^Icon |
|
2269 | 2027 |
constantNamed:'UILayoutTool::LayoutFrame class setRightFixPartIcon' |
2028 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1409 | 2029 |
@@@@@@@@@@@@@@@@@@H"H@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BDR@@@@@@@@HQH@@@ |
2269 | 2030 |
@@@@@!!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 | 2031 |
! |
1409 | 2032 |
|
2033 |
setRightHalfIcon |
|
2034 |
"This resource specification was automatically generated |
|
2035 |
by the ImageEditor of ST/X." |
|
2036 |
||
2037 |
"Do not manually edit this!! If it is corrupted, |
|
2038 |
the ImageEditor may not be able to read the specification." |
|
2039 |
||
2040 |
" |
|
2041 |
self setRightHalfIcon inspect |
|
2042 |
ImageEditor openOnClass:self andSelector:#setRightHalfIcon |
|
2269 | 2043 |
Icon flushCachedIcons |
1409 | 2044 |
" |
2045 |
||
2046 |
<resource: #image> |
|
2047 |
||
2048 |
^Icon |
|
2269 | 2049 |
constantNamed:'UILayoutTool::LayoutFrame class setRightHalfIcon' |
2050 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
2051 |
@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@ |
|
2052 |
@@@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 | 2053 |
! |
1409 | 2054 |
|
2055 |
setToRightQuarterIcon |
|
2056 |
"This resource specification was automatically generated |
|
2057 |
by the ImageEditor of ST/X." |
|
2058 |
||
2059 |
"Do not manually edit this!! If it is corrupted, |
|
2060 |
the ImageEditor may not be able to read the specification." |
|
2061 |
||
2062 |
" |
|
2063 |
self setToRightQuarterIcon inspect |
|
2064 |
ImageEditor openOnClass:self andSelector:#setToRightQuarterIcon |
|
2269 | 2065 |
Icon flushCachedIcons |
1409 | 2066 |
" |
2067 |
||
2068 |
<resource: #image> |
|
2069 |
||
2070 |
^Icon |
|
2269 | 2071 |
constantNamed:'UILayoutTool::LayoutFrame class setToRightQuarterIcon' |
2072 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
2073 |
@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
2074 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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 | 2075 |
! |
1409 | 2076 |
|
2077 |
setTopFixPartIcon |
|
2078 |
"This resource specification was automatically generated |
|
2079 |
by the ImageEditor of ST/X." |
|
2080 |
||
2081 |
"Do not manually edit this!! If it is corrupted, |
|
2082 |
the ImageEditor may not be able to read the specification." |
|
2083 |
||
2084 |
" |
|
2085 |
self setTopFixPartIcon inspect |
|
2086 |
ImageEditor openOnClass:self andSelector:#setTopFixPartIcon |
|
2269 | 2087 |
Icon flushCachedIcons |
1409 | 2088 |
" |
2089 |
||
2090 |
<resource: #image> |
|
2091 |
||
2092 |
^Icon |
|
2269 | 2093 |
constantNamed:'UILayoutTool::LayoutFrame class setTopFixPartIcon' |
2094 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
2095 |
@@@@@@@@@@@BH"H @"H"H@HQDQ@ADQD @!!DQD@DQDR@BH"H @"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
2096 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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 | 2097 |
! |
1409 | 2098 |
|
2099 |
setTopHalfIcon |
|
2100 |
"This resource specification was automatically generated |
|
2101 |
by the ImageEditor of ST/X." |
|
2102 |
||
2103 |
"Do not manually edit this!! If it is corrupted, |
|
2104 |
the ImageEditor may not be able to read the specification." |
|
2105 |
||
2106 |
" |
|
2107 |
self setTopHalfIcon inspect |
|
2108 |
ImageEditor openOnClass:self andSelector:#setTopHalfIcon |
|
2269 | 2109 |
Icon flushCachedIcons |
1409 | 2110 |
" |
2111 |
||
2112 |
<resource: #image> |
|
2113 |
||
2114 |
^Icon |
|
2269 | 2115 |
constantNamed:'UILayoutTool::LayoutFrame class setTopHalfIcon' |
2116 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
2117 |
@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @"H"H"H"H"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
2118 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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 | 2119 |
! |
1409 | 2120 |
|
2121 |
setTopLeftQuarterIcon |
|
2122 |
"This resource specification was automatically generated |
|
2123 |
by the ImageEditor of ST/X." |
|
2124 |
||
2125 |
"Do not manually edit this!! If it is corrupted, |
|
2126 |
the ImageEditor may not be able to read the specification." |
|
2127 |
||
2128 |
" |
|
2129 |
self setTopLeftQuarterIcon inspect |
|
2130 |
ImageEditor openOnClass:self andSelector:#setTopLeftQuarterIcon |
|
2269 | 2131 |
Icon flushCachedIcons |
1409 | 2132 |
" |
2133 |
||
2134 |
<resource: #image> |
|
2135 |
||
2136 |
^Icon |
|
2269 | 2137 |
constantNamed:'UILayoutTool::LayoutFrame class setTopLeftQuarterIcon' |
2138 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
2139 |
@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
2140 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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 | 2141 |
! |
1409 | 2142 |
|
2143 |
setVerticalFixPartIcon |
|
2144 |
"This resource specification was automatically generated |
|
2145 |
by the ImageEditor of ST/X." |
|
2146 |
||
2147 |
"Do not manually edit this!! If it is corrupted, |
|
2148 |
the ImageEditor may not be able to read the specification." |
|
2149 |
||
2150 |
" |
|
2151 |
self setVerticalFixPartIcon inspect |
|
2152 |
ImageEditor openOnClass:self andSelector:#setVerticalFixPartIcon |
|
2269 | 2153 |
Icon flushCachedIcons |
1409 | 2154 |
" |
2155 |
||
2156 |
<resource: #image> |
|
2157 |
||
2158 |
^Icon |
|
2269 | 2159 |
constantNamed:'UILayoutTool::LayoutFrame class setVerticalFixPartIcon' |
2160 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1409 | 2161 |
@@@@@@@@@@@@@@@"H @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@HQH@@@@@@@@!!D @@@@@@ |
2269 | 2162 |
@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 | 2163 |
! ! |
1409 | 2164 |
|
2165 |
!UILayoutTool::LayoutFrame class methodsFor:'interface specs'! |
|
2166 |
||
2167 |
windowSpec |
|
2168 |
"This resource specification was automatically generated |
|
2169 |
by the UIPainter of ST/X." |
|
2170 |
||
2171 |
"Do not manually edit this!! If it is corrupted, |
|
2172 |
the UIPainter may not be able to read the specification." |
|
2173 |
||
2174 |
" |
|
2175 |
UIPainter new openOnClass:UILayoutTool::LayoutFrame andSelector:#windowSpec |
|
2176 |
UILayoutTool::LayoutFrame new openInterface:#windowSpec |
|
2177 |
UILayoutTool::LayoutFrame open |
|
2178 |
" |
|
2179 |
||
2180 |
<resource: #canvas> |
|
2181 |
||
2182 |
^ |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2183 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2184 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2185 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2186 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2187 |
label: 'UILayoutTool-LayoutFrame' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2188 |
name: 'UILayoutTool-LayoutFrame' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2189 |
min: (Point 10 10) |
2379 | 2190 |
bounds: (Rectangle 0 0 511 302) |
1409 | 2191 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2192 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2193 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2194 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2195 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2196 |
name: 'layoutOriginSpec' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2197 |
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
|
2198 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2199 |
minorKey: layoutOriginSpec |
1409 | 2200 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2201 |
(FramedBoxSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2202 |
label: 'Corner' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2203 |
name: 'FramedBox' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2204 |
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
|
2205 |
labelPosition: topLeft |
2207 | 2206 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2207 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2208 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2209 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2210 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2211 |
label: 'Right:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2212 |
name: 'labelRight' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2213 |
layout: (AlignmentOrigin 68 0 25 0 1 0.5) |
1874 | 2214 |
translateLabel: true |
1409 | 2215 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2216 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2217 |
label: 'imageFractX' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2218 |
name: 'actionRelativeRight' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2219 |
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
|
2220 |
activeHelpKey: makeRightRelative |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2221 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2222 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2223 |
model: relativeRight |
1409 | 2224 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2225 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2226 |
name: 'fieldRightFraction' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2227 |
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
|
2228 |
activeHelpKey: rightRelative |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2229 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2230 |
model: rightFraction |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2231 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2232 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2233 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2234 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2235 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2236 |
acceptOnPointerLeave: false |
1409 | 2237 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2238 |
(ActionButtonSpec |
2207 | 2239 |
label: 'imageAbsX' |
2240 |
name: 'actionAbsoluteRight' |
|
2241 |
layout: (LayoutFrame 178 0 14 0 200 0 36 0) |
|
2242 |
activeHelpKey: makeRightAbsolute |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2243 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2244 |
tabable: true |
2207 | 2245 |
model: absoluteRight |
1409 | 2246 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2247 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2248 |
name: 'fieldRightOffset' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2249 |
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
|
2250 |
activeHelpKey: rightAbsolute |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2251 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2252 |
model: rightOffset |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2253 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2254 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2255 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2256 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2257 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2258 |
acceptOnPointerLeave: false |
1409 | 2259 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2260 |
(ActionButtonSpec |
2207 | 2261 |
label: 'imageAbsXFromRight' |
2262 |
name: 'actionRightRelativeRight' |
|
2263 |
layout: (LayoutFrame 257 0 14 0 279 0 36 0) |
|
2264 |
activeHelpKey: makeRightRelativeFromRight |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2265 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2266 |
tabable: true |
2207 | 2267 |
model: rightRelativeRight |
1409 | 2268 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2269 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2270 |
label: 'Bottom:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2271 |
name: 'labelBottom' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2272 |
layout: (AlignmentOrigin 68 0 53 0 1 0.5) |
1874 | 2273 |
translateLabel: true |
1409 | 2274 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2275 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2276 |
label: 'imageFractY' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2277 |
name: 'actionRelativeBottom' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2278 |
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
|
2279 |
activeHelpKey: makeBottomRelative |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2280 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2281 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2282 |
model: relativeBottom |
1409 | 2283 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2284 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2285 |
name: 'fieldBottomFraction' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2286 |
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
|
2287 |
activeHelpKey: bottomRelative |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2288 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2289 |
model: bottomFraction |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2290 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2291 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2292 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2293 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2294 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2295 |
acceptOnPointerLeave: false |
1409 | 2296 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2297 |
(ActionButtonSpec |
2207 | 2298 |
label: 'imageAbsY' |
2299 |
name: 'actionAbsoluteBottom' |
|
2300 |
layout: (LayoutFrame 178 0 42 0 200 0 64 0) |
|
2301 |
activeHelpKey: makeBottomAbsolute |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2302 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2303 |
tabable: true |
2207 | 2304 |
model: absoluteBottom |
1409 | 2305 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2306 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2307 |
name: 'fieldBottomOffset' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2308 |
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
|
2309 |
activeHelpKey: bottomAbsolute |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2310 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2311 |
model: bottomOffset |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2312 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2313 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2314 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2315 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2316 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2317 |
acceptOnPointerLeave: false |
1409 | 2318 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2319 |
(ActionButtonSpec |
2207 | 2320 |
label: 'imageAbsYFromBottom' |
2321 |
name: 'actionBottomRelativeBottom' |
|
2322 |
layout: (LayoutFrame 257 0 42 0 279 0 64 0) |
|
2323 |
activeHelpKey: makeBottomRelativeFromBottom |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2324 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2325 |
tabable: true |
2207 | 2326 |
model: bottomRelativeBottom |
1409 | 2327 |
) |
2379 | 2328 |
(CheckBoxSpec |
2329 |
label: 'Use Preferred' |
|
2330 |
name: 'CheckBox1' |
|
2331 |
layout: (LayoutFrame 287 0 14 0 393 0 36 0) |
|
2332 |
model: usePreferredWidth |
|
2333 |
translateLabel: true |
|
2334 |
) |
|
2335 |
(CheckBoxSpec |
|
2336 |
label: 'Use Preferred' |
|
2337 |
name: 'CheckBox2' |
|
2338 |
layout: (LayoutFrame 287 0 42 0 393 0 64 0) |
|
2339 |
model: usePreferredHeight |
|
2340 |
translateLabel: true |
|
2341 |
) |
|
2342 |
(CheckBoxSpec |
|
2343 |
label: 'Dynamic' |
|
2344 |
name: 'CheckBox3' |
|
2345 |
layout: (LayoutFrame 394 0 14 0 471 0 36 0) |
|
2346 |
model: useDynamicPreferredWidth |
|
2347 |
translateLabel: true |
|
2348 |
) |
|
2349 |
(CheckBoxSpec |
|
2350 |
label: 'Dynamic' |
|
2351 |
name: 'CheckBox4' |
|
2352 |
layout: (LayoutFrame 394 0 42 0 471 0 64 0) |
|
2353 |
model: useDynamicPreferredHeight |
|
2354 |
translateLabel: true |
|
2355 |
) |
|
1409 | 2356 |
) |
2357 |
||
2358 |
) |
|
2359 |
) |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2360 |
(MenuPanelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2361 |
name: 'commonLayoutToolBar1' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2362 |
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
|
2363 |
level: 0 |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2364 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2365 |
menu: commonFrameLayoutsMenu1 |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2366 |
textDefault: true |
1680 | 2367 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2368 |
(MenuPanelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2369 |
name: 'commonLayoutToolBar2' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2370 |
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
|
2371 |
level: 0 |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2372 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2373 |
menu: commonFrameLayoutsMenu2 |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2374 |
textDefault: true |
1409 | 2375 |
) |
2207 | 2376 |
(MenuPanelSpec |
2377 |
name: 'commonLayoutToolBar3' |
|
2378 |
layout: (LayoutFrame 6 0.0 295 0 -4 1.0 327 0) |
|
2379 |
level: 0 |
|
2380 |
tabable: true |
|
2381 |
menu: commonFrameLayoutsMenu3 |
|
2382 |
textDefault: true |
|
1826 | 2383 |
) |
1409 | 2384 |
) |
2385 |
||
2386 |
) |
|
2387 |
) |
|
2388 |
! ! |
|
2389 |
||
2390 |
!UILayoutTool::LayoutFrame class methodsFor:'menu specs'! |
|
2391 |
||
1680 | 2392 |
commonFrameLayoutsMenu1 |
1409 | 2393 |
"This resource specification was automatically generated |
2394 |
by the MenuEditor of ST/X." |
|
2395 |
||
2396 |
"Do not manually edit this!! If it is corrupted, |
|
2397 |
the MenuEditor may not be able to read the specification." |
|
2398 |
||
2399 |
" |
|
1680 | 2400 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu1 |
2401 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu1)) startUp |
|
1409 | 2402 |
" |
2403 |
||
2404 |
<resource: #menu> |
|
2405 |
||
1680 | 2406 |
^ |
2407 |
#(#Menu |
|
2408 |
#( |
|
2409 |
#(#MenuItem |
|
2410 |
#activeHelpKey: #fullLayout |
|
2411 |
#label: 'setFullFrame' |
|
2412 |
#itemValue: #setFullFrame |
|
2413 |
#nameKey: #setFullFrame |
|
2414 |
#translateLabel: true |
|
2415 |
#isButton: true |
|
2416 |
#labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setFullIcon) |
|
2417 |
) |
|
2418 |
#(#MenuItem |
|
2419 |
#label: '' |
|
2420 |
) |
|
2421 |
#(#MenuItem |
|
2422 |
#activeHelpKey: #topHalfLayout |
|
2423 |
#label: 'setTopHalfFrame' |
|
2424 |
#itemValue: #setTopHalfFrame |
|
2425 |
#nameKey: #setTopHalfFrame |
|
2426 |
#translateLabel: true |
|
2427 |
#isButton: true |
|
2428 |
#labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setTopHalfIcon) |
|
2429 |
) |
|
2430 |
#(#MenuItem |
|
2431 |
#activeHelpKey: #bottomHalfLayout |
|
2432 |
#label: 'setBottomHalfFrame' |
|
2433 |
#itemValue: #setBottomHalfFrame |
|
2434 |
#nameKey: #setBottomHalfFrame |
|
2435 |
#translateLabel: true |
|
2436 |
#isButton: true |
|
2437 |
#labelImage: #(#ResourceRetriever nil #setBottomHalfIcon) |
|
2438 |
) |
|
2439 |
#(#MenuItem |
|
2440 |
#activeHelpKey: #leftHalfLayout |
|
2441 |
#label: 'setLeftHalfFrame' |
|
2442 |
#itemValue: #setLeftHalfFrame |
|
2443 |
#nameKey: #setLeftHalfFrame |
|
2444 |
#translateLabel: true |
|
2445 |
#isButton: true |
|
2446 |
#labelImage: #(#ResourceRetriever nil #setLeftHalfIcon) |
|
2447 |
) |
|
2448 |
#(#MenuItem |
|
2449 |
#activeHelpKey: #rightHalfLayout |
|
2450 |
#label: 'setRightHalfFrame' |
|
2451 |
#itemValue: #setRightHalfFrame |
|
2452 |
#nameKey: #setRightHalfFrame |
|
2453 |
#translateLabel: true |
|
2454 |
#isButton: true |
|
2455 |
#labelImage: #(#ResourceRetriever nil #setRightHalfIcon) |
|
2456 |
) |
|
2457 |
#(#MenuItem |
|
2458 |
#label: '' |
|
2459 |
) |
|
2460 |
#(#MenuItem |
|
2461 |
#activeHelpKey: #topLeftQuarterLayout |
|
2462 |
#label: 'setTopLeftQuarterFrame' |
|
2463 |
#itemValue: #setTopLeftQuarterFrame |
|
2464 |
#nameKey: #setTopLeftQuarterFrame |
|
2465 |
#translateLabel: true |
|
2466 |
#isButton: true |
|
2467 |
#labelImage: #(#ResourceRetriever nil #setTopLeftQuarterIcon) |
|
2468 |
) |
|
2469 |
#(#MenuItem |
|
2470 |
#activeHelpKey: #topRightQuarterLayout |
|
2471 |
#label: 'setTopRightQuarterFrame' |
|
2472 |
#itemValue: #setTopRightQuarterFrame |
|
2473 |
#nameKey: #setTopRightQuarterFrame |
|
2474 |
#translateLabel: true |
|
2475 |
#isButton: true |
|
2476 |
#labelImage: #(#ResourceRetriever nil #setToRightQuarterIcon) |
|
2477 |
) |
|
2478 |
#(#MenuItem |
|
2479 |
#activeHelpKey: #bottomRightQuarterLayout |
|
2480 |
#label: 'setBottomRightQuarterFrame' |
|
2481 |
#itemValue: #setBottomRightQuarterFrame |
|
2482 |
#nameKey: #setBottomRightQuarterFrame |
|
2483 |
#translateLabel: true |
|
2484 |
#isButton: true |
|
2485 |
#labelImage: #(#ResourceRetriever nil #setBottomRightQuarterIcon) |
|
2486 |
) |
|
2487 |
#(#MenuItem |
|
2488 |
#activeHelpKey: #bottomLeftQuarterLayout |
|
2489 |
#label: 'setBottomLeftQuarterFrame' |
|
2490 |
#itemValue: #setBottomLeftQuarterFrame |
|
2491 |
#nameKey: #setBottomLeftQuarterFrame |
|
2492 |
#translateLabel: true |
|
2493 |
#isButton: true |
|
2494 |
#labelImage: #(#ResourceRetriever nil #setBottomLeftQuarterIcon) |
|
2495 |
) |
|
2496 |
) |
|
2497 |
nil |
|
2498 |
nil |
|
2499 |
) |
|
2500 |
! |
|
2501 |
||
2502 |
commonFrameLayoutsMenu2 |
|
2503 |
"This resource specification was automatically generated |
|
2504 |
by the MenuEditor of ST/X." |
|
2505 |
||
2506 |
"Do not manually edit this!! If it is corrupted, |
|
2507 |
the MenuEditor may not be able to read the specification." |
|
2508 |
||
2509 |
" |
|
2510 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu2 |
|
2511 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu2)) startUp |
|
2512 |
" |
|
2513 |
||
2514 |
<resource: #menu> |
|
2515 |
||
2516 |
^ |
|
2517 |
#(#Menu |
|
2518 |
#( |
|
2519 |
#(#MenuItem |
|
2520 |
#activeHelpKey: #topFixPartLayout |
|
2521 |
#label: 'setTopFixPartFrame' |
|
2522 |
#itemValue: #setTopFixPartFrame |
|
2523 |
#nameKey: #setTopFixPartFrame |
|
2524 |
#translateLabel: true |
|
2525 |
#isButton: true |
|
2526 |
#labelImage: #(#ResourceRetriever nil #setTopFixPartIcon) |
|
2527 |
) |
|
2528 |
#(#MenuItem |
|
2529 |
#activeHelpKey: #horizontalFixPartLayout |
|
2530 |
#label: 'setHorizontalFixPartFrame' |
|
2531 |
#itemValue: #setHorizontalFixPartFrame |
|
2532 |
#nameKey: #setHorizontalFixPartFrame |
|
2533 |
#translateLabel: true |
|
2534 |
#isButton: true |
|
2535 |
#labelImage: #(#ResourceRetriever nil #setHorizontalFixPartIcon) |
|
2536 |
) |
|
2537 |
#(#MenuItem |
|
2538 |
#activeHelpKey: #bottomFixPartLayout |
|
2539 |
#label: 'setBottomFixPartFrame' |
|
2540 |
#itemValue: #setBottomFixPartFrame |
|
2541 |
#nameKey: #setBottomFixPartFrame |
|
2542 |
#translateLabel: true |
|
2543 |
#isButton: true |
|
2544 |
#labelImage: #(#ResourceRetriever nil #setBottomFixPartIcon) |
|
2545 |
) |
|
2546 |
#(#MenuItem |
|
2547 |
#label: '' |
|
2548 |
) |
|
2549 |
#(#MenuItem |
|
2550 |
#activeHelpKey: #leftFixPartLayout |
|
2551 |
#label: 'setLeftFixPartFrame' |
|
2552 |
#itemValue: #setLeftFixPartFrame |
|
2553 |
#nameKey: #setLeftFixPartFrame |
|
2554 |
#translateLabel: true |
|
2555 |
#isButton: true |
|
2556 |
#labelImage: #(#ResourceRetriever nil #setLeftFixPartIcon) |
|
2557 |
) |
|
2558 |
#(#MenuItem |
|
2559 |
#activeHelpKey: #verticalFixPartLayout |
|
2560 |
#label: 'setVerticalFixPartFrame' |
|
2561 |
#itemValue: #setVerticalFixPartFrame |
|
2562 |
#nameKey: #setVerticalFixPartFrame |
|
2563 |
#translateLabel: true |
|
2564 |
#isButton: true |
|
2565 |
#labelImage: #(#ResourceRetriever nil #setVerticalFixPartIcon) |
|
2566 |
) |
|
2567 |
#(#MenuItem |
|
2568 |
#activeHelpKey: #rightFixPartLayout |
|
2569 |
#label: 'setRightFixPartFrame' |
|
2570 |
#itemValue: #setRightFixPartFrame |
|
2571 |
#nameKey: #setRightFixPartFrame |
|
2572 |
#translateLabel: true |
|
2573 |
#isButton: true |
|
2574 |
#labelImage: #(#ResourceRetriever nil #setRightFixPartIcon) |
|
2575 |
) |
|
1706 | 2576 |
#(#MenuItem |
2577 |
#label: '' |
|
2578 |
) |
|
2579 |
#(#MenuItem |
|
1709 | 2580 |
#activeHelpKey: #bigTopFixPartLayout |
1706 | 2581 |
#label: 'setBigTopFixPartFrame' |
2582 |
#itemValue: #setBigTopFixPartFrame |
|
2583 |
#nameKey: #setBigTopFixPartFrame |
|
2584 |
#translateLabel: true |
|
2585 |
#isButton: true |
|
2586 |
#labelImage: #(#ResourceRetriever nil #setBigTopFixPartIcon) |
|
2587 |
) |
|
2588 |
#(#MenuItem |
|
1709 | 2589 |
#activeHelpKey: #bigHorizontalFixPartLayout |
1706 | 2590 |
#label: 'setBigHorizontalFixPartFrame' |
2591 |
#itemValue: #setBigHorizontalFixPartFrame |
|
2592 |
#nameKey: #setBigHorizontalFixPartFrame |
|
2593 |
#translateLabel: true |
|
2594 |
#isButton: true |
|
2595 |
#labelImage: #(#ResourceRetriever nil #setBigHorizontalFixPartIcon) |
|
2596 |
) |
|
2597 |
#(#MenuItem |
|
1709 | 2598 |
#activeHelpKey: #bigBottomFixPartLayout |
1706 | 2599 |
#label: 'setBigBottomFixPartFrame' |
2600 |
#itemValue: #setBigBottomFixPartFrame |
|
2601 |
#nameKey: #setBigBottomFixPartFrame |
|
2602 |
#translateLabel: true |
|
2603 |
#isButton: true |
|
2604 |
#labelImage: #(#ResourceRetriever nil #setBigBottomFixPartIcon) |
|
2605 |
) |
|
1680 | 2606 |
) |
2607 |
nil |
|
2608 |
nil |
|
1409 | 2609 |
) |
1826 | 2610 |
! |
2611 |
||
2612 |
commonFrameLayoutsMenu3 |
|
2613 |
"This resource specification was automatically generated |
|
2614 |
by the MenuEditor of ST/X." |
|
2615 |
||
2616 |
"Do not manually edit this!! If it is corrupted, |
|
2617 |
the MenuEditor may not be able to read the specification." |
|
2618 |
||
2619 |
" |
|
1858 | 2620 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu3 |
2621 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu3)) startUp |
|
1826 | 2622 |
" |
2623 |
||
2624 |
<resource: #menu> |
|
2625 |
||
2626 |
^ |
|
1858 | 2627 |
#(Menu |
2628 |
( |
|
2629 |
(MenuItem |
|
2630 |
activeHelpKey: screenFrameLayout |
|
2631 |
label: 'setScreenFrame' |
|
2632 |
itemValue: setScreenFrame |
|
2633 |
nameKey: setScreenFrame |
|
2634 |
translateLabel: true |
|
2635 |
isButton: true |
|
2636 |
isVisible: false |
|
2637 |
labelImage: (ResourceRetriever #'UILayoutTool::LayoutFrame' setScreenIcon) |
|
1826 | 2638 |
) |
2639 |
) |
|
2640 |
nil |
|
2641 |
nil |
|
2642 |
) |
|
1409 | 2643 |
! ! |
2644 |
||
2645 |
!UILayoutTool::LayoutFrame methodsFor:'accessing'! |
|
2646 |
||
2647 |
fetch:aView spec:aSpec |
|
2648 |
|layout| |
|
2649 |
||
1826 | 2650 |
aSpec class == WindowSpec ifTrue:[ |
2651 |
(layout := aSpec layout) isNil ifTrue:[ |
|
2652 |
layout := aSpec bounds asLayout. |
|
2653 |
] |
|
2654 |
] ifFalse: [ |
|
2655 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
2656 |
]. |
|
1409 | 2657 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
2658 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
2659 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
2660 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
2661 |
(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
|
2662 |
(self aspectFor:#bottomOffset) value:(layout bottomOffset value). "take care of blocks" |
1409 | 2663 |
(self aspectFor:#rightFraction) value:(layout rightFraction). |
2664 |
(self aspectFor:#bottomFraction) value:(layout bottomFraction). |
|
2665 |
||
2379 | 2666 |
(self aspectFor:#usePreferredWidth) value:(aSpec usePreferredWidth). |
2667 |
(self aspectFor:#usePreferredHeight) value:(aSpec usePreferredHeight). |
|
2668 |
(self aspectFor:#useDynamicPreferredWidth) value:(aSpec useDynamicPreferredWidth). |
|
2669 |
(self aspectFor:#useDynamicPreferredHeight) value:(aSpec useDynamicPreferredHeight). |
|
1409 | 2670 |
! |
2671 |
||
2672 |
layout |
|
2379 | 2673 |
"returns the current layout as layoutFrame |
1409 | 2674 |
" |
2675 |
|layout| |
|
2676 |
||
2677 |
layout := Smalltalk::LayoutFrame new. |
|
2678 |
||
1581 | 2679 |
layout |
2680 |
leftFraction:(((self aspectFor:#leftFraction) value) ? 0) |
|
2681 |
offset:(((self aspectFor:#leftOffset) value) ? 0) |
|
2682 |
rightFraction:(((self aspectFor:#rightFraction) value) ? 0) |
|
2683 |
offset:(((self aspectFor:#rightOffset) value) ? 0) |
|
2684 |
topFraction:(((self aspectFor:#topFraction) value) ? 0) |
|
2685 |
offset:(((self aspectFor:#topOffset) value) ? 0) |
|
2686 |
bottomFraction:(((self aspectFor:#bottomFraction) value) ? 0) |
|
2687 |
offset:(((self aspectFor:#bottomOffset) value) ? 0). |
|
1409 | 2688 |
|
2689 |
^ layout |
|
2690 |
! ! |
|
2691 |
||
2692 |
!UILayoutTool::LayoutFrame methodsFor:'common frames'! |
|
2693 |
||
1706 | 2694 |
setBigBottomFixPartFrame |
2695 |
self |
|
2696 |
setFrameLeft:0 offset:0 |
|
2697 |
right:1 offset:0 |
|
1826 | 2698 |
top:0 offset:(self class defaultFixPartHeight) |
1706 | 2699 |
bottom:1 offset:0 |
2700 |
! |
|
2701 |
||
2702 |
setBigHorizontalFixPartFrame |
|
2703 |
self |
|
2704 |
setFrameLeft:0 offset:0 |
|
2705 |
right:1 offset:0 |
|
1826 | 2706 |
top:0 offset:(self class defaultFixPartHeight) |
2707 |
bottom:1 offset:(self class defaultFixPartHeight negated) |
|
1706 | 2708 |
! |
2709 |
||
2710 |
setBigTopFixPartFrame |
|
2711 |
self |
|
2712 |
setFrameLeft:0 offset:0 |
|
2713 |
right:1 offset:0 |
|
2714 |
top:0 offset:0 |
|
1826 | 2715 |
bottom:1 offset:(self class defaultFixPartHeight negated) |
1706 | 2716 |
! |
2717 |
||
1409 | 2718 |
setBottomFixPartFrame |
2719 |
self |
|
2720 |
setFrameLeft:0 offset:0 |
|
2721 |
right:1 offset:0 |
|
1826 | 2722 |
top:1 offset:(self class defaultFixPartHeight negated) |
1409 | 2723 |
bottom:1 offset:0 |
2724 |
! |
|
2725 |
||
2726 |
setBottomHalfFrame |
|
2727 |
self |
|
2728 |
setFrameLeft:0 offset:0 |
|
2729 |
right:1 offset:0 |
|
2730 |
top:0.5 offset:0 |
|
2731 |
bottom:1 offset:0 |
|
2732 |
! |
|
2733 |
||
2734 |
setBottomLeftQuarterFrame |
|
2735 |
self |
|
2736 |
setFrameLeft:0 offset:0 |
|
2737 |
right:0.5 offset:0 |
|
2738 |
top:0.5 offset:0 |
|
2739 |
bottom:1 offset:0 |
|
2740 |
! |
|
2741 |
||
2742 |
setBottomRightQuarterFrame |
|
2743 |
self |
|
2744 |
setFrameLeft:0.5 offset:0 |
|
2745 |
right:1 offset:0 |
|
2746 |
top:0.5 offset:0 |
|
2747 |
bottom:1 offset:0 |
|
2748 |
! |
|
2749 |
||
2750 |
setFrameLeft:lF offset:lO right:rF offset:rO top:tF offset:tO bottom:bF offset:bO |
|
2751 |
(self aspectFor:#leftOffset) value:lO. |
|
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
2752 |
(self aspectFor:#rightOffset) value:rO value. |
1409 | 2753 |
(self aspectFor:#topOffset) value:tO. |
2478
d0ea9b4d0955
Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents:
2379
diff
changeset
|
2754 |
(self aspectFor:#bottomOffset) value:bO value. |
1409 | 2755 |
|
2756 |
(self aspectFor:#leftFraction) value:lF. |
|
2757 |
(self aspectFor:#rightFraction) value:rF. |
|
2758 |
(self aspectFor:#topFraction) value:tF. |
|
2759 |
(self aspectFor:#bottomFraction) value:bF. |
|
2760 |
! |
|
2761 |
||
1680 | 2762 |
setFullFrame |
2763 |
self |
|
2764 |
setFrameLeft:0 offset:0 |
|
2765 |
right:1 offset:0 |
|
2766 |
top:0 offset:0 |
|
2767 |
bottom:1 offset:0 |
|
2768 |
! |
|
2769 |
||
1409 | 2770 |
setHorizontalFixPartFrame |
2771 |
self |
|
2772 |
setFrameLeft:0 offset:0 |
|
2773 |
right:1 offset:0 |
|
1826 | 2774 |
top:0.5 offset:(self class defaultFixPartHeight negated // 2) |
2775 |
bottom:0.5 offset:(self class defaultFixPartHeight // 2) |
|
1409 | 2776 |
! |
2777 |
||
2778 |
setLeftFixPartFrame |
|
2779 |
self |
|
2780 |
setFrameLeft:0 offset:0 |
|
1826 | 2781 |
right:0 offset:(self class defaultFixPartHeight) |
1409 | 2782 |
top:0 offset:0 |
2783 |
bottom:1 offset:0 |
|
2784 |
! |
|
2785 |
||
2786 |
setLeftHalfFrame |
|
2787 |
self |
|
2788 |
setFrameLeft:0 offset:0 |
|
2789 |
right:0.5 offset:0 |
|
2790 |
top:0 offset:0 |
|
2791 |
bottom:1 offset:0 |
|
2792 |
! |
|
2793 |
||
2794 |
setRightFixPartFrame |
|
2795 |
self |
|
1826 | 2796 |
setFrameLeft:1 offset:(self class defaultFixPartHeight negated) |
1447 | 2797 |
right:1 offset:0 |
1409 | 2798 |
top:0 offset:0 |
2799 |
bottom:1 offset:0 |
|
2800 |
! |
|
2801 |
||
2802 |
setRightHalfFrame |
|
2803 |
self |
|
2804 |
setFrameLeft:0.5 offset:0 |
|
2805 |
right:1 offset:0 |
|
2806 |
top:0 offset:0 |
|
2807 |
bottom:1 offset:0 |
|
2808 |
! |
|
2809 |
||
2810 |
setTopFixPartFrame |
|
2811 |
self |
|
2812 |
setFrameLeft:0 offset:0 |
|
2813 |
right:1 offset:0 |
|
2814 |
top:0 offset:0 |
|
1826 | 2815 |
bottom:0 offset:(self class defaultFixPartHeight) |
1409 | 2816 |
! |
2817 |
||
2818 |
setTopHalfFrame |
|
2819 |
self |
|
2820 |
setFrameLeft:0 offset:0 |
|
2821 |
right:1 offset:0 |
|
2822 |
top:0 offset:0 |
|
2823 |
bottom:0.5 offset:0 |
|
2824 |
! |
|
2825 |
||
2826 |
setTopLeftQuarterFrame |
|
2827 |
self |
|
2828 |
setFrameLeft:0 offset:0 |
|
2829 |
right:0.5 offset:0 |
|
2830 |
top:0 offset:0 |
|
2831 |
bottom:0.5 offset:0 |
|
2832 |
! |
|
2833 |
||
2834 |
setTopRightQuarterFrame |
|
2835 |
self |
|
2836 |
setFrameLeft:0.5 offset:0 |
|
2837 |
right:1 offset:0 |
|
2838 |
top:0 offset:0 |
|
2839 |
bottom:0.5 offset:0 |
|
2840 |
! |
|
2841 |
||
2842 |
setVerticalFixPartFrame |
|
2843 |
self |
|
1826 | 2844 |
setFrameLeft:0.5 offset:(self class defaultFixPartHeight negated // 2 ) |
2845 |
right:0.5 offset:(self class defaultFixPartHeight // 2 ) |
|
1409 | 2846 |
top:0 offset:0 |
2847 |
bottom:1 offset:0 |
|
2848 |
! ! |
|
2849 |
||
1447 | 2850 |
!UILayoutTool::LayoutOrigin class methodsFor:'interface specs'! |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2851 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2852 |
windowSpec |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2853 |
"This resource specification was automatically generated |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2854 |
by the UIPainter of ST/X." |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2855 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2856 |
"Do not manually edit this!! If it is corrupted, |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2857 |
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
|
2858 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2859 |
" |
1447 | 2860 |
UIPainter new openOnClass:UILayoutTool::LayoutOrigin andSelector:#windowSpec |
2861 |
UILayoutTool::LayoutOrigin new openInterface:#windowSpec |
|
2862 |
UILayoutTool::LayoutOrigin open |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2863 |
" |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2864 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2865 |
<resource: #canvas> |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2866 |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2867 |
^ |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2868 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2869 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2870 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2871 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2872 |
label: 'UILayoutTool-LayoutOrigin' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2873 |
name: 'UILayoutTool-LayoutOrigin' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2874 |
min: (Point 10 10) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2875 |
bounds: (Rectangle 14 46 372 192) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2876 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2877 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2878 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2879 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2880 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2881 |
name: 'layoutOriginSpec' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2882 |
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
|
2883 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2884 |
minorKey: layoutOriginSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2885 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2886 |
) |
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 |
) |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2889 |
) |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2890 |
! ! |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2891 |
|
1447 | 2892 |
!UILayoutTool::LayoutOrigin methodsFor:'accessing'! |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2893 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2894 |
fetch:aView spec:aSpec |
1447 | 2895 |
"fetch layoutOrigin |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2896 |
" |
1447 | 2897 |
|layout| |
2898 |
||
2899 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
2900 |
||
2901 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
|
2902 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
2903 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
2904 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2905 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2906 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2907 |
! |
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 |
layout |
1447 | 2910 |
"returns current layout as layoutOrigin |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2911 |
" |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2912 |
|layout| |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2913 |
|
1447 | 2914 |
layout := Smalltalk::LayoutOrigin new. |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2915 |
|
1581 | 2916 |
layout |
2917 |
leftFraction:(((self aspectFor:#leftFraction) value) ? 0) |
|
2918 |
offset:(((self aspectFor:#leftOffset) value) ? 0) |
|
2919 |
topFraction:(((self aspectFor:#topFraction) value) ? 0) |
|
2920 |
offset:(((self aspectFor:#topOffset) value) ? 0). |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2921 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2922 |
^ layout |
1304 | 2923 |
! ! |
2924 |
||
1343 | 2925 |
!UILayoutTool::Point class methodsFor:'interface specs'! |
2926 |
||
2927 |
windowSpec |
|
2928 |
"This resource specification was automatically generated |
|
2929 |
by the UIPainter of ST/X." |
|
2930 |
||
2931 |
"Do not manually edit this!! If it is corrupted, |
|
2932 |
the UIPainter may not be able to read the specification." |
|
2933 |
||
2934 |
" |
|
2935 |
UIPainter new openOnClass:UILayoutTool::Point andSelector:#windowSpec |
|
2936 |
UILayoutTool::Point new openInterface:#windowSpec |
|
2937 |
UILayoutTool::Point open |
|
2938 |
" |
|
2939 |
||
2940 |
<resource: #canvas> |
|
2941 |
||
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2942 |
^ |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2943 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2944 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2945 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2946 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2947 |
label: 'UILayoutTool-Point' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2948 |
name: 'UILayoutTool-Point' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2949 |
min: (Point 10 10) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2950 |
bounds: (Rectangle 14 46 309 184) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2951 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2952 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2953 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2954 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2955 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2956 |
name: 'layoutPointSpec' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2957 |
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
|
2958 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2959 |
minorKey: layoutPointSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2960 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2961 |
) |
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 |
) |
1343 | 2964 |
) |
2965 |
! ! |
|
2966 |
||
2967 |
!UILayoutTool::Point methodsFor:'accessing'! |
|
2968 |
||
2969 |
fetch:aView spec:aSpec |
|
2970 |
"fetch point |
|
2971 |
" |
|
2972 |
|origin| |
|
2973 |
||
2974 |
origin := aView computeOrigin. |
|
2975 |
||
2976 |
(self aspectFor:#leftOffset) value:(origin x). |
|
2977 |
(self aspectFor:#topOffset) value:(origin y). |
|
2978 |
||
2979 |
||
2980 |
! |
|
2981 |
||
2982 |
layout |
|
2983 |
"returns current layout as point |
|
2984 |
" |
|
2985 |
^ Smalltalk::Point x:(((self aspectFor:#leftOffset) value) ? 0) |
|
2986 |
y:(((self aspectFor:#topOffset) value) ? 0) |
|
2987 |
||
2988 |
! ! |
|
2989 |
||
1409 | 2990 |
!UILayoutTool::Rectangle class methodsFor:'interface specs'! |
2991 |
||
2992 |
windowSpec |
|
2993 |
"This resource specification was automatically generated |
|
2994 |
by the UIPainter of ST/X." |
|
2995 |
||
2996 |
"Do not manually edit this!! If it is corrupted, |
|
2997 |
the UIPainter may not be able to read the specification." |
|
2998 |
||
2999 |
" |
|
3000 |
UIPainter new openOnClass:UILayoutTool::Rectangle andSelector:#windowSpec |
|
3001 |
UILayoutTool::Rectangle new openInterface:#windowSpec |
|
3002 |
UILayoutTool::Rectangle open |
|
3003 |
" |
|
3004 |
||
3005 |
<resource: #canvas> |
|
3006 |
||
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3007 |
^ |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3008 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3009 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3010 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3011 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3012 |
label: 'UILayoutTool-Rectangle' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3013 |
name: 'UILayoutTool-Rectangle' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3014 |
min: (Point 10 10) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3015 |
bounds: (Rectangle 14 46 356 245) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3016 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3017 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3018 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3019 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3020 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3021 |
name: 'subSpecification' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3022 |
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
|
3023 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3024 |
minorKey: layoutPointSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3025 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3026 |
(FramedBoxSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3027 |
label: 'Corner' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3028 |
name: 'FramedBox' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3029 |
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
|
3030 |
labelPosition: topLeft |
1874 | 3031 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3032 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3033 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3034 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3035 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3036 |
label: 'Right:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3037 |
name: 'labelCornerY' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3038 |
layout: (AlignmentOrigin 83 0 16 0 1 0) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3039 |
adjust: left |
1874 | 3040 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3041 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3042 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3043 |
name: 'fieldCornerX' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3044 |
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
|
3045 |
activeHelpKey: cornerX |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3046 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3047 |
model: rightOffset |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3048 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3049 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3050 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3051 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3052 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3053 |
acceptOnPointerLeave: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3054 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3055 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3056 |
label: 'Bottom:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3057 |
name: 'labelCornerX' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3058 |
layout: (AlignmentOrigin 83 0 41 0 1 0) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3059 |
adjust: left |
1874 | 3060 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3061 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3062 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3063 |
name: 'fieldCornerY' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3064 |
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
|
3065 |
activeHelpKey: cornerY |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3066 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3067 |
model: bottomOffset |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3068 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3069 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3070 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3071 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3072 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3073 |
acceptOnPointerLeave: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3074 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3075 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3076 |
|
1409 | 3077 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3078 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3079 |
) |
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 |
) |
1409 | 3082 |
) |
3083 |
! ! |
|
3084 |
||
3085 |
!UILayoutTool::Rectangle methodsFor:'accessing'! |
|
3086 |
||
3087 |
fetch:aView spec:aSpec |
|
3088 |
"fetch rectangle |
|
3089 |
" |
|
3090 |
|origin corner| |
|
3091 |
||
3092 |
origin := aView computeOrigin. |
|
3093 |
corner := aView computeCorner. |
|
3094 |
||
3095 |
(self aspectFor:#leftOffset) value:(origin x). |
|
3096 |
(self aspectFor:#rightOffset) value:(corner x). |
|
3097 |
(self aspectFor:#topOffset) value:(origin y). |
|
3098 |
(self aspectFor:#bottomOffset) value:(corner y). |
|
3099 |
||
3100 |
||
3101 |
! |
|
3102 |
||
3103 |
layout |
|
2022 | 3104 |
"returns current layout as rectangle" |
3105 |
||
3106 |
^ Smalltalk::Rectangle |
|
3107 |
left:(((self aspectFor:#leftOffset) value) ? 0) |
|
3108 |
top:(((self aspectFor:#topOffset) value) ? 0) |
|
3109 |
right:(((self aspectFor:#rightOffset) value) ? 0) |
|
3110 |
bottom:(((self aspectFor:#bottomOffset) value) ? 0) |
|
1409 | 3111 |
! ! |
3112 |
||
163 | 3113 |
!UILayoutTool class methodsFor:'documentation'! |
3114 |
||
3115 |
version |
|
3116 |
^ '$Header$' |
|
3117 |
! ! |