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