author | Claus Gittinger <cg@exept.de> |
Fri, 13 Jun 2008 10:22:29 +0200 | |
changeset 2356 | bb961692c387 |
parent 2322 | 14839acab637 |
child 2365 | b63bf46bc18a |
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 |
2322 | 628 |
"holds the list of tab labels" |
629 |
||
630 |
^ builder valueAspectFor:#noteBookList initialValue:nil |
|
163 | 631 |
! |
632 |
||
633 |
noteBookModel |
|
634 |
"automatically generated by UIPainter ..." |
|
635 |
||
636 |
|holder| |
|
637 |
||
638 |
(holder := builder bindingAt:#noteBookModel) isNil ifTrue:[ |
|
639 |
holder := AspectAdaptor new subject:self; forAspect:#selection. |
|
640 |
builder aspectAt:#noteBookModel put:holder. |
|
641 |
]. |
|
642 |
^ holder |
|
643 |
! ! |
|
644 |
||
645 |
!UILayoutTool methodsFor:'change & update'! |
|
646 |
||
647 |
update:something with:aParameter from:changedObject |
|
648 |
"one of my models changed its value |
|
649 |
" |
|
650 |
changedObject ~~ modifiedHolder ifTrue:[ |
|
651 |
modifiedHolder value ~~ true ifTrue:[ |
|
652 |
modifiedHolder isNil ifFalse:[ |
|
653 |
modifiedHolder value:true |
|
654 |
] |
|
655 |
] |
|
656 |
] |
|
657 |
||
658 |
! ! |
|
659 |
||
660 |
!UILayoutTool methodsFor:'converting absolute'! |
|
661 |
||
662 |
absolute:what xOrY:xOrY |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
663 |
"compute what as absolute (i.e. fraction=0, offset >= 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
664 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
665 |
|extent fraction offset fractSymb offsetSymb |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
666 |
newOffset newFraction fractHolder offsetHolder| |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
667 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
668 |
extent := (self layoutView superView computeExtent) perform:xOrY. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
669 |
fractSymb := (what, 'Fraction') asSymbol. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
670 |
offsetSymb := (what, 'Offset') asSymbol. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
671 |
fractHolder := (self aspectFor:fractSymb). |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
672 |
offsetHolder := (self aspectFor:offsetSymb). |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
673 |
fraction := fractHolder value. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
674 |
offset := offsetHolder value. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
675 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
676 |
newOffset := offset + ((fraction * extent) asInteger). |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
677 |
newFraction := 0. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
678 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
679 |
fractHolder value:newFraction. |
1343 | 680 |
offsetHolder value:newOffset. |
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
681 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
682 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
683 |
absoluteBottom |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
684 |
"compute bottom as absolute (i.e. fraction=0, offset >= 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
685 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
686 |
self absolute:'bottom' xOrY:#y |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
687 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
688 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
689 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
690 |
absoluteLeft |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
691 |
"compute left as absolute (i.e. fraction=0, offset >= 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
692 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
693 |
self absolute:'left' xOrY:#x |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
694 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
695 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
696 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
697 |
absoluteRight |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
698 |
"compute right as absolute (i.e. fraction=0, offset >= 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
699 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
700 |
self absolute:'right' xOrY:#x |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
701 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
702 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
703 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
704 |
absoluteTop |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
705 |
"compute top as absolute (i.e. fraction=0, offset >= 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
706 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
707 |
self absolute:'top' xOrY:#y |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
708 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
709 |
! ! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
710 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
711 |
!UILayoutTool methodsFor:'converting absolute from corner'! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
712 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
713 |
bottomRelativeBottom |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
714 |
"compute bottom relative to containers bottom (fraction=1, offset negative)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
715 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
716 |
self cornerRelative:'bottom' xOrY:#y |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
717 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
718 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
719 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
720 |
bottomRelativeTop |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
721 |
"compute top relative to containers bottom (fraction=1, offset negative)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
722 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
723 |
self cornerRelative:'top' xOrY:#y |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
724 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
725 |
! |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
726 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
727 |
cornerRelative:what xOrY:xOrY |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
728 |
"compute what relative to the corner (i.e. fraction=1, offset negative)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
729 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
730 |
|extent fraction offset fractSymb offsetSymb |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
731 |
newFraction newOffset fractHolder offsetHolder| |
163 | 732 |
|
733 |
extent := (self layoutView superView computeExtent) perform:xOrY. |
|
734 |
fractSymb := (what, 'Fraction') asSymbol. |
|
735 |
offsetSymb := (what, 'Offset') asSymbol. |
|
1198 | 736 |
fractHolder := (self aspectFor:fractSymb). |
737 |
offsetHolder := (self aspectFor:offsetSymb). |
|
738 |
fraction := fractHolder value. |
|
739 |
offset := offsetHolder value. |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
740 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
741 |
newOffset := offset + ((fraction * extent) asInteger). |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
742 |
newOffset := newOffset - extent. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
743 |
newFraction := 1. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
744 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
745 |
fractHolder value:newFraction. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
746 |
offsetHolder value:newOffset. |
163 | 747 |
|
748 |
||
749 |
||
750 |
! |
|
751 |
||
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
752 |
rightRelativeLeft |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
753 |
"compute left relative to containers right (fraction=1, offset negative)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
754 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
755 |
self cornerRelative:'left' xOrY:#x |
163 | 756 |
|
757 |
! |
|
758 |
||
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
759 |
rightRelativeRight |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
760 |
"compute right relative to containers right (fraction=1, offset negative)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
761 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
762 |
self cornerRelative:'right' xOrY:#x |
163 | 763 |
|
764 |
! ! |
|
765 |
||
766 |
!UILayoutTool methodsFor:'converting relative'! |
|
767 |
||
768 |
relative:what xOrY:xOrY |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
769 |
"compute what relative to the origin (i.e. fraction=0..1, offset 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
770 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
771 |
|extent fraction offset fractSymb offsetSymb |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
772 |
newFraction newOffset |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
773 |
fractHolder offsetHolder| |
163 | 774 |
|
775 |
extent := (self layoutView superView computeExtent) perform:xOrY. |
|
776 |
fractSymb := (what, 'Fraction') asSymbol. |
|
777 |
offsetSymb := (what, 'Offset') asSymbol. |
|
1198 | 778 |
fractHolder := (self aspectFor:fractSymb). |
779 |
offsetHolder := (self aspectFor:offsetSymb). |
|
780 |
fraction := fractHolder value. |
|
781 |
offset := offsetHolder value. |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
782 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
783 |
newFraction := (fraction + (offset / extent)) asFloat. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
784 |
newOffset := 0. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
785 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
786 |
(newFraction > 1.0) ifTrue:[newFraction := 1.0]. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
787 |
(newFraction < 0.0) ifTrue:[newFraction := 0]. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
788 |
|
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
789 |
offsetHolder value:newOffset. |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
790 |
fractHolder value:newFraction. |
163 | 791 |
|
792 |
||
793 |
||
794 |
! |
|
795 |
||
796 |
relativeBottom |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
797 |
"compute bottom relative to the origin (i.e. fraction=0..1, offset 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
798 |
|
163 | 799 |
self relative:'bottom' xOrY:#y |
800 |
||
801 |
||
802 |
! |
|
803 |
||
804 |
relativeLeft |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
805 |
"compute left relative to the origin (i.e. fraction=0..1, offset 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
806 |
|
163 | 807 |
self relative:'left' xOrY:#x |
808 |
||
809 |
! |
|
810 |
||
811 |
relativeRight |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
812 |
"compute right relative to the origin (i.e. fraction=0..1, offset 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
813 |
|
163 | 814 |
self relative:'right' xOrY:#x |
815 |
||
816 |
! |
|
817 |
||
818 |
relativeTop |
|
1339
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
819 |
"compute top relative to the origin (i.e. fraction=0..1, offset 0)" |
b989732e3610
added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents:
1334
diff
changeset
|
820 |
|
163 | 821 |
self relative:'top' xOrY:#y |
822 |
||
823 |
! ! |
|
824 |
||
825 |
!UILayoutTool methodsFor:'initialization'! |
|
826 |
||
827 |
initialize |
|
828 |
"initialize channels |
|
829 |
" |
|
221 | 830 |
|slices size| |
831 |
||
163 | 832 |
super initialize. |
833 |
||
834 |
aspects := IdentityDictionary new. |
|
1305 | 835 |
toolsDictionary := IdentityDictionary new. |
163 | 836 |
|
837 |
#( bottomFraction bottomOffset |
|
838 |
leftFraction leftOffset |
|
839 |
topFraction topOffset |
|
840 |
rightFraction rightOffset |
|
841 |
leftAlignmentFraction topAlignmentFraction |
|
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
842 |
(useDefaultExtent false) |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
843 |
(defaultExtentEnabled false) |
163 | 844 |
) |
845 |
||
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
846 |
do:[:aKeyOrPair| |holder key val| |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
847 |
(key := aKeyOrPair) isSymbol ifFalse:[ |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
848 |
key := aKeyOrPair first. |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
849 |
val := aKeyOrPair second |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
850 |
]. |
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
851 |
holder := val asValue. |
163 | 852 |
holder addDependent:self. |
1268
1bc516d840bf
must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents:
1198
diff
changeset
|
853 |
aspects at:key put:holder. |
163 | 854 |
]. |
855 |
||
221 | 856 |
slices := self class slices. |
857 |
size := slices size - 1. |
|
858 |
tabList := Array new:size. |
|
163 | 859 |
|
221 | 860 |
1 to:size do:[:i| tabList at:i put:((slices at:i) first) ]. |
163 | 861 |
|
862 |
||
863 |
! ! |
|
864 |
||
865 |
!UILayoutTool methodsFor:'selection'! |
|
866 |
||
867 |
selectedSlice |
|
2022 | 868 |
"returns the slice assigned to the selection or nil" |
869 |
||
870 |
selection isNil ifTrue:[^ nil]. |
|
871 |
^ self class slices detect:[:aSlice | aSlice first = selection] ifNone:nil |
|
872 |
||
873 |
"/ selection notNil ifTrue:[ |
|
874 |
"/ self class slices do:[:aSlice| |
|
875 |
"/ aSlice first = selection ifTrue:[ |
|
876 |
"/ ^ aSlice |
|
877 |
"/ ] |
|
878 |
"/ ] |
|
879 |
"/ ]. |
|
880 |
"/ ^ nil |
|
163 | 881 |
! |
882 |
||
883 |
selection |
|
884 |
^ selection |
|
885 |
! |
|
886 |
||
887 |
selection:aSelection |
|
1726 | 888 |
|appl slice sel key view| |
163 | 889 |
|
293 | 890 |
aSelection isNumber ifTrue:[ |
891 |
aSelection ~~ 0 ifTrue:[sel := tabList at:aSelection] |
|
892 |
] ifFalse:[ |
|
893 |
sel := aSelection |
|
894 |
]. |
|
1305 | 895 |
|
293 | 896 |
selection = sel ifFalse:[ |
897 |
(selection := sel) notNil ifTrue:[ |
|
1305 | 898 |
key := selection asSymbol. |
899 |
appl := toolsDictionary at:key ifAbsent:nil. |
|
900 |
||
901 |
appl isNil ifTrue:[ |
|
1334 | 902 |
view := ApplicationSubView new. |
1305 | 903 |
slice := self selectedSlice. |
904 |
appl := slice last asString. |
|
905 |
appl := Smalltalk classNamed:(self class name asString, '::', appl). |
|
906 |
appl := appl new. |
|
907 |
appl masterApplication:self. |
|
908 |
appl createBuilder. |
|
909 |
view client:appl. |
|
910 |
appl window:view. |
|
911 |
toolsDictionary at:key put:appl. |
|
912 |
] ifFalse:[ |
|
913 |
view := appl window |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
914 |
]. |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
915 |
modifiedHolder value:true. |
163 | 916 |
]. |
1305 | 917 |
currentTool := appl. |
918 |
self layoutCanvasHolder value:view. |
|
163 | 919 |
]. |
920 |
self update |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
921 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
922 |
"Modified: / 4.2.2000 / 22:31:41 / cg" |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
923 |
! ! |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
924 |
|
1343 | 925 |
!UILayoutTool::AnyLayout class methodsFor:'image specs'! |
926 |
||
927 |
imageAbsX |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
928 |
"This resource specification was automatically generated |
1343 | 929 |
by the ImageEditor of ST/X." |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
930 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
931 |
"Do not manually edit this!! If it is corrupted, |
1343 | 932 |
the ImageEditor may not be able to read the specification." |
933 |
||
934 |
" |
|
935 |
self imageAbsX inspect |
|
936 |
ImageEditor openOnClass:self andSelector:#imageAbsX |
|
2269 | 937 |
Icon flushCachedIcons |
1343 | 938 |
" |
939 |
||
940 |
<resource: #image> |
|
941 |
||
942 |
^Icon |
|
2269 | 943 |
constantNamed:'UILayoutTool::AnyLayout class imageAbsX' |
944 |
ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1343 | 945 |
<@BP@I@N$L*P*)BZ''8*@@(@B''8*P&)B*$L*PC)@@<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
946 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
2269 | 947 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'<@C0@O@N<L;0;/C>??;??/?>??;0?/C.<L;0C/@@<@@b') ; yourself); yourself] |
1447 | 948 |
! |
1343 | 949 |
|
950 |
imageAbsXFromRight |
|
951 |
"This resource specification was automatically generated |
|
952 |
by the ImageEditor of ST/X." |
|
953 |
||
954 |
"Do not manually edit this!! If it is corrupted, |
|
955 |
the ImageEditor may not be able to read the specification." |
|
956 |
||
957 |
" |
|
958 |
self imageAbsXFromRight inspect |
|
959 |
ImageEditor openOnClass:self andSelector:#imageAbsXFromRight |
|
2269 | 960 |
Icon flushCachedIcons |
1343 | 961 |
" |
962 |
||
963 |
<resource: #image> |
|
964 |
||
965 |
^Icon |
|
2269 | 966 |
constantNamed:'UILayoutTool::AnyLayout class imageAbsXFromRight' |
967 |
ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@<@BW@IT0%UBU$IT_%@@T@AT_%YBUTIT0%0BP@I@@<b') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@<@C7@O\0=7C7<O_?=??7??_?=?C7\O\0=0C0@O@@<b') ; yourself); yourself] |
|
1447 | 968 |
! |
1343 | 969 |
|
970 |
imageAbsY |
|
971 |
"This resource specification was automatically generated |
|
972 |
by the ImageEditor of ST/X." |
|
973 |
||
974 |
"Do not manually edit this!! If it is corrupted, |
|
975 |
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
|
976 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
977 |
" |
1343 | 978 |
self imageAbsY inspect |
979 |
ImageEditor openOnClass:self andSelector:#imageAbsY |
|
2269 | 980 |
Icon flushCachedIcons |
1343 | 981 |
" |
982 |
||
983 |
<resource: #image> |
|
984 |
||
985 |
^Icon |
|
2269 | 986 |
constantNamed:'UILayoutTool::AnyLayout class imageAbsY' |
987 |
ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A?''<BP@I@@$@BPA98D@ HD@P O''0 AC?<@@@b') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??????????<C0@O@@<@C0A?8G? O<@_ O?0??C?<@@@b') ; yourself); yourself] |
|
1447 | 988 |
! |
1343 | 989 |
|
990 |
imageAbsYFromBottom |
|
991 |
"This resource specification was automatically generated |
|
992 |
by the ImageEditor of ST/X." |
|
993 |
||
994 |
"Do not manually edit this!! If it is corrupted, |
|
995 |
the ImageEditor may not be able to read the specification." |
|
996 |
||
997 |
" |
|
998 |
self imageAbsYFromBottom inspect |
|
999 |
ImageEditor openOnClass:self andSelector:#imageAbsYFromBottom |
|
2269 | 1000 |
Icon flushCachedIcons |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
1001 |
" |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
1002 |
|
1343 | 1003 |
<resource: #image> |
1004 |
||
1005 |
^Icon |
|
2269 | 1006 |
constantNamed:'UILayoutTool::AnyLayout class imageAbsYFromBottom' |
1007 |
ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@??B@DO''0DH@ PD@ ^^@I@@$@BP@I@?''>@@X@A??<b') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@??C?<O?0G8@?0G? _>@O@@<@C0@O@??????????<b') ; yourself); yourself] |
|
1447 | 1008 |
! |
1343 | 1009 |
|
1010 |
imageFractX |
|
1011 |
"This resource specification was automatically generated |
|
1012 |
by the ImageEditor of ST/X." |
|
1013 |
||
1014 |
"Do not manually edit this!! If it is corrupted, |
|
1015 |
the ImageEditor may not be able to read the specification." |
|
1016 |
||
1017 |
" |
|
1018 |
self imageFractX inspect |
|
1019 |
ImageEditor openOnClass:self andSelector:#imageFractX |
|
2269 | 1020 |
Icon flushCachedIcons |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
1021 |
" |
1343 | 1022 |
|
1023 |
<resource: #image> |
|
1024 |
||
1025 |
^Icon |
|
2269 | 1026 |
constantNamed:'UILayoutTool::AnyLayout class imageFractX' |
1027 |
ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1343 | 1028 |
<@>PBY@I&A&TJYII$X&@@X@A$X&RRYP)&A&PBY@I<@<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
1029 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
2269 | 1030 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'<@?0C?@O>A?<O?9????????????>_?0?>A?0C?@O<@<b') ; yourself); yourself] |
1447 | 1031 |
! |
1343 | 1032 |
|
1033 |
imageFractY |
|
1034 |
"This resource specification was automatically generated |
|
1035 |
by the ImageEditor of ST/X." |
|
1036 |
||
1037 |
"Do not manually edit this!! If it is corrupted, |
|
1038 |
the ImageEditor may not be able to read the specification." |
|
1039 |
||
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
1040 |
" |
1343 | 1041 |
self imageFractY inspect |
1042 |
ImageEditor openOnClass:self andSelector:#imageFractY |
|
2269 | 1043 |
Icon flushCachedIcons |
1343 | 1044 |
" |
1045 |
||
1046 |
<resource: #image> |
|
1047 |
||
1048 |
^Icon |
|
2269 | 1049 |
constantNamed:'UILayoutTool::AnyLayout class imageFractY' |
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] |
|
1447 | 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 |
|
2269 | 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 |
|
2269 | 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 |
|
2269 | 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 |
|
2269 | 1810 |
Icon flushCachedIcons |
1409 | 1811 |
" |
1812 |
||
1813 |
<resource: #image> |
|
1814 |
||
1815 |
^Icon |
|
2269 | 1816 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomFixPartIcon' |
1817 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1818 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H" |
|
1819 |
H"@BH"H @!!DQD@DQDR@BDQDP@QDQH@H"H"@BH"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@X@A @G???????????????<b') ; yourself); yourself] |
|
1447 | 1820 |
! |
1409 | 1821 |
|
1822 |
setBottomHalfIcon |
|
1823 |
"This resource specification was automatically generated |
|
1824 |
by the ImageEditor of ST/X." |
|
1825 |
||
1826 |
"Do not manually edit this!! If it is corrupted, |
|
1827 |
the ImageEditor may not be able to read the specification." |
|
1828 |
||
1829 |
" |
|
1830 |
self setBottomHalfIcon inspect |
|
1831 |
ImageEditor openOnClass:self andSelector:#setBottomHalfIcon |
|
2269 | 1832 |
Icon flushCachedIcons |
1409 | 1833 |
" |
1834 |
||
1835 |
<resource: #image> |
|
1836 |
||
1837 |
^Icon |
|
2269 | 1838 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomHalfIcon' |
1839 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1840 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"H"H"@BDQDQDQDQH@HQ |
|
1841 |
DQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H"H"H"H"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@_????????????????????<b') ; yourself); yourself] |
|
1447 | 1842 |
! |
1409 | 1843 |
|
1844 |
setBottomLeftQuarterIcon |
|
1845 |
"This resource specification was automatically generated |
|
1846 |
by the ImageEditor of ST/X." |
|
1847 |
||
1848 |
"Do not manually edit this!! If it is corrupted, |
|
1849 |
the ImageEditor may not be able to read the specification." |
|
1850 |
||
1851 |
" |
|
1852 |
self setBottomLeftQuarterIcon inspect |
|
1853 |
ImageEditor openOnClass:self andSelector:#setBottomLeftQuarterIcon |
|
2269 | 1854 |
Icon flushCachedIcons |
1409 | 1855 |
" |
1856 |
||
1857 |
<resource: #image> |
|
1858 |
||
1859 |
^Icon |
|
2269 | 1860 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomLeftQuarterIcon' |
1861 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1862 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H"H"@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQ |
|
1863 |
DR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @G?@_<A?0G?@_<A?0G?@_<A??<b') ; yourself); yourself] |
|
1447 | 1864 |
! |
1409 | 1865 |
|
1866 |
setBottomRightQuarterIcon |
|
1867 |
"This resource specification was automatically generated |
|
1868 |
by the ImageEditor of ST/X." |
|
1869 |
||
1870 |
"Do not manually edit this!! If it is corrupted, |
|
1871 |
the ImageEditor may not be able to read the specification." |
|
1872 |
||
1873 |
" |
|
1874 |
self setBottomRightQuarterIcon inspect |
|
1875 |
ImageEditor openOnClass:self andSelector:#setBottomRightQuarterIcon |
|
2269 | 1876 |
Icon flushCachedIcons |
1409 | 1877 |
" |
1878 |
||
1879 |
<resource: #image> |
|
1880 |
||
1881 |
^Icon |
|
2269 | 1882 |
constantNamed:'UILayoutTool::LayoutFrame class setBottomRightQuarterIcon' |
1883 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1884 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@ |
|
1885 |
@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@XG? _>A?8G? _>A?8G???<b') ; yourself); yourself] |
|
1447 | 1886 |
! |
1409 | 1887 |
|
1680 | 1888 |
setFullIcon |
1889 |
"This resource specification was automatically generated |
|
1890 |
by the ImageEditor of ST/X." |
|
1891 |
||
1892 |
"Do not manually edit this!! If it is corrupted, |
|
1893 |
the ImageEditor may not be able to read the specification." |
|
1894 |
||
1895 |
" |
|
1896 |
self setFullIcon inspect |
|
1897 |
ImageEditor openOnClass:self andSelector:#setFullIcon |
|
1898 |
Icon flushCachedIcons |
|
1899 |
" |
|
1900 |
||
1901 |
<resource: #image> |
|
1902 |
||
1903 |
^Icon |
|
2269 | 1904 |
constantNamed:'UILayoutTool::LayoutFrame class setFullIcon' |
1905 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1680 | 1906 |
@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQ |
2269 | 1907 |
DQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H"H"H"H"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??????????????????????????????????????????<b') ; yourself); yourself] |
1680 | 1908 |
! |
1909 |
||
1409 | 1910 |
setHorizontalFixPartIcon |
1911 |
"This resource specification was automatically generated |
|
1912 |
by the ImageEditor of ST/X." |
|
1913 |
||
1914 |
"Do not manually edit this!! If it is corrupted, |
|
1915 |
the ImageEditor may not be able to read the specification." |
|
1916 |
||
1917 |
" |
|
1918 |
self setHorizontalFixPartIcon inspect |
|
1919 |
ImageEditor openOnClass:self andSelector:#setHorizontalFixPartIcon |
|
2269 | 1920 |
Icon flushCachedIcons |
1409 | 1921 |
" |
1922 |
||
1923 |
<resource: #image> |
|
1924 |
||
1925 |
^Icon |
|
2269 | 1926 |
constantNamed:'UILayoutTool::LayoutFrame class setHorizontalFixPartIcon' |
1927 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1409 | 1928 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H@H"H"@BDQDP@QDQH@HQDQ@ADQD @"H"H@H"H"@@@@@@@@@@@@@@ |
2269 | 1929 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@_???????????????8@A @F@@X@A??<b') ; yourself); yourself] |
1447 | 1930 |
! |
1409 | 1931 |
|
1932 |
setLeftFixPartIcon |
|
1933 |
"This resource specification was automatically generated |
|
1934 |
by the ImageEditor of ST/X." |
|
1935 |
||
1936 |
"Do not manually edit this!! If it is corrupted, |
|
1937 |
the ImageEditor may not be able to read the specification." |
|
1938 |
||
1939 |
" |
|
1940 |
self setLeftFixPartIcon inspect |
|
1941 |
ImageEditor openOnClass:self andSelector:#setLeftFixPartIcon |
|
2269 | 1942 |
Icon flushCachedIcons |
1409 | 1943 |
" |
1944 |
||
1945 |
<resource: #image> |
|
1946 |
||
1947 |
^Icon |
|
2269 | 1948 |
constantNamed:'UILayoutTool::LayoutFrame class setLeftFixPartIcon' |
1949 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1409 | 1950 |
@@@@@@@@@@@BH"@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@@@@@@@@@@@@@@@@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQ |
2269 | 1951 |
H@@@@@@@@!!D @@@@@@@BDR@@@@@@@@H"H@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???<@_0A?@G<@_0A?@G<@_0A?@G<@_0A?@G<@_0A??<b') ; yourself); yourself] |
1447 | 1952 |
! |
1409 | 1953 |
|
1954 |
setLeftHalfIcon |
|
1955 |
"This resource specification was automatically generated |
|
1956 |
by the ImageEditor of ST/X." |
|
1957 |
||
1958 |
"Do not manually edit this!! If it is corrupted, |
|
1959 |
the ImageEditor may not be able to read the specification." |
|
1960 |
||
1961 |
" |
|
1962 |
self setLeftHalfIcon inspect |
|
1963 |
ImageEditor openOnClass:self andSelector:#setLeftHalfIcon |
|
2269 | 1964 |
Icon flushCachedIcons |
1409 | 1965 |
" |
1966 |
||
1967 |
<resource: #image> |
|
1968 |
||
1969 |
^Icon |
|
2269 | 1970 |
constantNamed:'UILayoutTool::LayoutFrame class setLeftHalfIcon' |
1971 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1972 |
@@@@@@@@@@@BH"H @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQ |
|
1973 |
DR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'????@_<A?0G?@_<A?0G?@_<A?0G?@_<A?0G?@_<A??<b') ; yourself); yourself] |
|
1447 | 1974 |
! |
1409 | 1975 |
|
1976 |
setRightFixPartIcon |
|
1977 |
"This resource specification was automatically generated |
|
1978 |
by the ImageEditor of ST/X." |
|
1979 |
||
1980 |
"Do not manually edit this!! If it is corrupted, |
|
1981 |
the ImageEditor may not be able to read the specification." |
|
1982 |
||
1983 |
" |
|
1984 |
self setRightFixPartIcon inspect |
|
1985 |
ImageEditor openOnClass:self andSelector:#setRightFixPartIcon |
|
2269 | 1986 |
Icon flushCachedIcons |
1409 | 1987 |
" |
1988 |
||
1989 |
<resource: #image> |
|
1990 |
||
1991 |
^Icon |
|
2269 | 1992 |
constantNamed:'UILayoutTool::LayoutFrame class setRightFixPartIcon' |
1993 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1409 | 1994 |
@@@@@@@@@@@@@@@@@@H"H@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BDR@@@@@@@@HQH@@@ |
2269 | 1995 |
@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@O8@? C>@O8@? C>@O8@? C>@O8@? C>@O8@???<b') ; yourself); yourself] |
1447 | 1996 |
! |
1409 | 1997 |
|
1998 |
setRightHalfIcon |
|
1999 |
"This resource specification was automatically generated |
|
2000 |
by the ImageEditor of ST/X." |
|
2001 |
||
2002 |
"Do not manually edit this!! If it is corrupted, |
|
2003 |
the ImageEditor may not be able to read the specification." |
|
2004 |
||
2005 |
" |
|
2006 |
self setRightHalfIcon inspect |
|
2007 |
ImageEditor openOnClass:self andSelector:#setRightHalfIcon |
|
2269 | 2008 |
Icon flushCachedIcons |
1409 | 2009 |
" |
2010 |
||
2011 |
<resource: #image> |
|
2012 |
||
2013 |
^Icon |
|
2269 | 2014 |
constantNamed:'UILayoutTool::LayoutFrame class setRightHalfIcon' |
2015 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
2016 |
@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@ |
|
2017 |
@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BH"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@?8C? O>@?8C? O>@?8C? O>@?8C? O>@?8C???<b') ; yourself); yourself] |
|
1447 | 2018 |
! |
1409 | 2019 |
|
2020 |
setToRightQuarterIcon |
|
2021 |
"This resource specification was automatically generated |
|
2022 |
by the ImageEditor of ST/X." |
|
2023 |
||
2024 |
"Do not manually edit this!! If it is corrupted, |
|
2025 |
the ImageEditor may not be able to read the specification." |
|
2026 |
||
2027 |
" |
|
2028 |
self setToRightQuarterIcon inspect |
|
2029 |
ImageEditor openOnClass:self andSelector:#setToRightQuarterIcon |
|
2269 | 2030 |
Icon flushCachedIcons |
1409 | 2031 |
" |
2032 |
||
2033 |
<resource: #image> |
|
2034 |
||
2035 |
^Icon |
|
2269 | 2036 |
constantNamed:'UILayoutTool::LayoutFrame class setToRightQuarterIcon' |
2037 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
2038 |
@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
2039 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@?8C? O>@?8C? O>@?8C? @F@@X@A @F@@X@A??<b') ; yourself); yourself] |
|
1447 | 2040 |
! |
1409 | 2041 |
|
2042 |
setTopFixPartIcon |
|
2043 |
"This resource specification was automatically generated |
|
2044 |
by the ImageEditor of ST/X." |
|
2045 |
||
2046 |
"Do not manually edit this!! If it is corrupted, |
|
2047 |
the ImageEditor may not be able to read the specification." |
|
2048 |
||
2049 |
" |
|
2050 |
self setTopFixPartIcon inspect |
|
2051 |
ImageEditor openOnClass:self andSelector:#setTopFixPartIcon |
|
2269 | 2052 |
Icon flushCachedIcons |
1409 | 2053 |
" |
2054 |
||
2055 |
<resource: #image> |
|
2056 |
||
2057 |
^Icon |
|
2269 | 2058 |
constantNamed:'UILayoutTool::LayoutFrame class setTopFixPartIcon' |
2059 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
2060 |
@@@@@@@@@@@BH"H @"H"H@HQDQ@ADQD @!!DQD@DQDR@BH"H @"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
2061 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???????????????? @F@@X@A @F@@X@A @F@@X@A??<b') ; yourself); yourself] |
|
1447 | 2062 |
! |
1409 | 2063 |
|
2064 |
setTopHalfIcon |
|
2065 |
"This resource specification was automatically generated |
|
2066 |
by the ImageEditor of ST/X." |
|
2067 |
||
2068 |
"Do not manually edit this!! If it is corrupted, |
|
2069 |
the ImageEditor may not be able to read the specification." |
|
2070 |
||
2071 |
" |
|
2072 |
self setTopHalfIcon inspect |
|
2073 |
ImageEditor openOnClass:self andSelector:#setTopHalfIcon |
|
2269 | 2074 |
Icon flushCachedIcons |
1409 | 2075 |
" |
2076 |
||
2077 |
<resource: #image> |
|
2078 |
||
2079 |
^Icon |
|
2269 | 2080 |
constantNamed:'UILayoutTool::LayoutFrame class setTopHalfIcon' |
2081 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
2082 |
@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @"H"H"H"H"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
2083 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?????????????????????8@A @F@@X@A @F@@X@A??<b') ; yourself); yourself] |
|
1447 | 2084 |
! |
1409 | 2085 |
|
2086 |
setTopLeftQuarterIcon |
|
2087 |
"This resource specification was automatically generated |
|
2088 |
by the ImageEditor of ST/X." |
|
2089 |
||
2090 |
"Do not manually edit this!! If it is corrupted, |
|
2091 |
the ImageEditor may not be able to read the specification." |
|
2092 |
||
2093 |
" |
|
2094 |
self setTopLeftQuarterIcon inspect |
|
2095 |
ImageEditor openOnClass:self andSelector:#setTopLeftQuarterIcon |
|
2269 | 2096 |
Icon flushCachedIcons |
1409 | 2097 |
" |
2098 |
||
2099 |
<resource: #image> |
|
2100 |
||
2101 |
^Icon |
|
2269 | 2102 |
constantNamed:'UILayoutTool::LayoutFrame class setTopLeftQuarterIcon' |
2103 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
2104 |
@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
2105 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???? _>A?8G? _>A?8G? X@A @F@@X@A @F@@X@A??<b') ; yourself); yourself] |
|
1447 | 2106 |
! |
1409 | 2107 |
|
2108 |
setVerticalFixPartIcon |
|
2109 |
"This resource specification was automatically generated |
|
2110 |
by the ImageEditor of ST/X." |
|
2111 |
||
2112 |
"Do not manually edit this!! If it is corrupted, |
|
2113 |
the ImageEditor may not be able to read the specification." |
|
2114 |
||
2115 |
" |
|
2116 |
self setVerticalFixPartIcon inspect |
|
2117 |
ImageEditor openOnClass:self andSelector:#setVerticalFixPartIcon |
|
2269 | 2118 |
Icon flushCachedIcons |
1409 | 2119 |
" |
2120 |
||
2121 |
<resource: #image> |
|
2122 |
||
2123 |
^Icon |
|
2269 | 2124 |
constantNamed:'UILayoutTool::LayoutFrame class setVerticalFixPartIcon' |
2125 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1409 | 2126 |
@@@@@@@@@@@@@@@"H @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@HQH@@@@@@@@!!D @@@@@@ |
2269 | 2127 |
@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BH"@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>G8X_!!!!>FG8X_!!!!>FG8X_!!!!>FG8X_!!!!>FG8X_!!??<b') ; yourself); yourself] |
1447 | 2128 |
! ! |
1409 | 2129 |
|
2130 |
!UILayoutTool::LayoutFrame class methodsFor:'interface specs'! |
|
2131 |
||
2132 |
windowSpec |
|
2133 |
"This resource specification was automatically generated |
|
2134 |
by the UIPainter of ST/X." |
|
2135 |
||
2136 |
"Do not manually edit this!! If it is corrupted, |
|
2137 |
the UIPainter may not be able to read the specification." |
|
2138 |
||
2139 |
" |
|
2140 |
UIPainter new openOnClass:UILayoutTool::LayoutFrame andSelector:#windowSpec |
|
2141 |
UILayoutTool::LayoutFrame new openInterface:#windowSpec |
|
2142 |
UILayoutTool::LayoutFrame open |
|
2143 |
" |
|
2144 |
||
2145 |
<resource: #canvas> |
|
2146 |
||
2147 |
^ |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2148 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2149 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2150 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2151 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2152 |
label: 'UILayoutTool-LayoutFrame' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2153 |
name: 'UILayoutTool-LayoutFrame' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2154 |
min: (Point 10 10) |
2207 | 2155 |
bounds: (Rectangle 0 0 399 303) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2156 |
forceRecursiveBackground: false |
1409 | 2157 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2158 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2159 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2160 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2161 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2162 |
name: 'layoutOriginSpec' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2163 |
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
|
2164 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2165 |
minorKey: layoutOriginSpec |
1409 | 2166 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2167 |
(FramedBoxSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2168 |
label: 'Corner' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2169 |
name: 'FramedBox' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2170 |
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
|
2171 |
labelPosition: topLeft |
2207 | 2172 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2173 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2174 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2175 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2176 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2177 |
label: 'Right:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2178 |
name: 'labelRight' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2179 |
layout: (AlignmentOrigin 68 0 25 0 1 0.5) |
1874 | 2180 |
translateLabel: true |
1409 | 2181 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2182 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2183 |
label: 'imageFractX' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2184 |
name: 'actionRelativeRight' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2185 |
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
|
2186 |
activeHelpKey: makeRightRelative |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2187 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2188 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2189 |
model: relativeRight |
1409 | 2190 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2191 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2192 |
name: 'fieldRightFraction' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2193 |
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
|
2194 |
activeHelpKey: rightRelative |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2195 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2196 |
model: rightFraction |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2197 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2198 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2199 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2200 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2201 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2202 |
acceptOnPointerLeave: false |
1409 | 2203 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2204 |
(ActionButtonSpec |
2207 | 2205 |
label: 'imageAbsX' |
2206 |
name: 'actionAbsoluteRight' |
|
2207 |
layout: (LayoutFrame 178 0 14 0 200 0 36 0) |
|
2208 |
activeHelpKey: makeRightAbsolute |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2209 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2210 |
tabable: true |
2207 | 2211 |
model: absoluteRight |
1409 | 2212 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2213 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2214 |
name: 'fieldRightOffset' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2215 |
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
|
2216 |
activeHelpKey: rightAbsolute |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2217 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2218 |
model: rightOffset |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2219 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2220 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2221 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2222 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2223 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2224 |
acceptOnPointerLeave: false |
1409 | 2225 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2226 |
(ActionButtonSpec |
2207 | 2227 |
label: 'imageAbsXFromRight' |
2228 |
name: 'actionRightRelativeRight' |
|
2229 |
layout: (LayoutFrame 257 0 14 0 279 0 36 0) |
|
2230 |
activeHelpKey: makeRightRelativeFromRight |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2231 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2232 |
tabable: true |
2207 | 2233 |
model: rightRelativeRight |
1409 | 2234 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2235 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2236 |
label: 'Bottom:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2237 |
name: 'labelBottom' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2238 |
layout: (AlignmentOrigin 68 0 53 0 1 0.5) |
1874 | 2239 |
translateLabel: true |
1409 | 2240 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2241 |
(ActionButtonSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2242 |
label: 'imageFractY' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2243 |
name: 'actionRelativeBottom' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2244 |
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
|
2245 |
activeHelpKey: makeBottomRelative |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2246 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2247 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2248 |
model: relativeBottom |
1409 | 2249 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2250 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2251 |
name: 'fieldBottomFraction' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2252 |
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
|
2253 |
activeHelpKey: bottomRelative |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2254 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2255 |
model: bottomFraction |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2256 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2257 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2258 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2259 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2260 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2261 |
acceptOnPointerLeave: false |
1409 | 2262 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2263 |
(ActionButtonSpec |
2207 | 2264 |
label: 'imageAbsY' |
2265 |
name: 'actionAbsoluteBottom' |
|
2266 |
layout: (LayoutFrame 178 0 42 0 200 0 64 0) |
|
2267 |
activeHelpKey: makeBottomAbsolute |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2268 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2269 |
tabable: true |
2207 | 2270 |
model: absoluteBottom |
1409 | 2271 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2272 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2273 |
name: 'fieldBottomOffset' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2274 |
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
|
2275 |
activeHelpKey: bottomAbsolute |
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 |
model: bottomOffset |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2278 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2279 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2280 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2281 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2282 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2283 |
acceptOnPointerLeave: false |
1409 | 2284 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2285 |
(ActionButtonSpec |
2207 | 2286 |
label: 'imageAbsYFromBottom' |
2287 |
name: 'actionBottomRelativeBottom' |
|
2288 |
layout: (LayoutFrame 257 0 42 0 279 0 64 0) |
|
2289 |
activeHelpKey: makeBottomRelativeFromBottom |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2290 |
hasCharacterOrientedLabel: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2291 |
tabable: true |
2207 | 2292 |
model: bottomRelativeBottom |
1409 | 2293 |
) |
2294 |
) |
|
2295 |
||
2296 |
) |
|
2297 |
) |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2298 |
(MenuPanelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2299 |
name: 'commonLayoutToolBar1' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2300 |
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
|
2301 |
level: 0 |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2302 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2303 |
menu: commonFrameLayoutsMenu1 |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2304 |
textDefault: true |
1680 | 2305 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2306 |
(MenuPanelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2307 |
name: 'commonLayoutToolBar2' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2308 |
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
|
2309 |
level: 0 |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2310 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2311 |
menu: commonFrameLayoutsMenu2 |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2312 |
textDefault: true |
1409 | 2313 |
) |
2207 | 2314 |
(MenuPanelSpec |
2315 |
name: 'commonLayoutToolBar3' |
|
2316 |
layout: (LayoutFrame 6 0.0 295 0 -4 1.0 327 0) |
|
2317 |
level: 0 |
|
2318 |
tabable: true |
|
2319 |
menu: commonFrameLayoutsMenu3 |
|
2320 |
textDefault: true |
|
1826 | 2321 |
) |
1409 | 2322 |
) |
2323 |
||
2324 |
) |
|
2325 |
) |
|
2326 |
! ! |
|
2327 |
||
2328 |
!UILayoutTool::LayoutFrame class methodsFor:'menu specs'! |
|
2329 |
||
1680 | 2330 |
commonFrameLayoutsMenu1 |
1409 | 2331 |
"This resource specification was automatically generated |
2332 |
by the MenuEditor of ST/X." |
|
2333 |
||
2334 |
"Do not manually edit this!! If it is corrupted, |
|
2335 |
the MenuEditor may not be able to read the specification." |
|
2336 |
||
2337 |
" |
|
1680 | 2338 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu1 |
2339 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu1)) startUp |
|
1409 | 2340 |
" |
2341 |
||
2342 |
<resource: #menu> |
|
2343 |
||
1680 | 2344 |
^ |
2345 |
#(#Menu |
|
2346 |
#( |
|
2347 |
#(#MenuItem |
|
2348 |
#activeHelpKey: #fullLayout |
|
2349 |
#label: 'setFullFrame' |
|
2350 |
#itemValue: #setFullFrame |
|
2351 |
#nameKey: #setFullFrame |
|
2352 |
#translateLabel: true |
|
2353 |
#isButton: true |
|
2354 |
#labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setFullIcon) |
|
2355 |
) |
|
2356 |
#(#MenuItem |
|
2357 |
#label: '' |
|
2358 |
) |
|
2359 |
#(#MenuItem |
|
2360 |
#activeHelpKey: #topHalfLayout |
|
2361 |
#label: 'setTopHalfFrame' |
|
2362 |
#itemValue: #setTopHalfFrame |
|
2363 |
#nameKey: #setTopHalfFrame |
|
2364 |
#translateLabel: true |
|
2365 |
#isButton: true |
|
2366 |
#labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setTopHalfIcon) |
|
2367 |
) |
|
2368 |
#(#MenuItem |
|
2369 |
#activeHelpKey: #bottomHalfLayout |
|
2370 |
#label: 'setBottomHalfFrame' |
|
2371 |
#itemValue: #setBottomHalfFrame |
|
2372 |
#nameKey: #setBottomHalfFrame |
|
2373 |
#translateLabel: true |
|
2374 |
#isButton: true |
|
2375 |
#labelImage: #(#ResourceRetriever nil #setBottomHalfIcon) |
|
2376 |
) |
|
2377 |
#(#MenuItem |
|
2378 |
#activeHelpKey: #leftHalfLayout |
|
2379 |
#label: 'setLeftHalfFrame' |
|
2380 |
#itemValue: #setLeftHalfFrame |
|
2381 |
#nameKey: #setLeftHalfFrame |
|
2382 |
#translateLabel: true |
|
2383 |
#isButton: true |
|
2384 |
#labelImage: #(#ResourceRetriever nil #setLeftHalfIcon) |
|
2385 |
) |
|
2386 |
#(#MenuItem |
|
2387 |
#activeHelpKey: #rightHalfLayout |
|
2388 |
#label: 'setRightHalfFrame' |
|
2389 |
#itemValue: #setRightHalfFrame |
|
2390 |
#nameKey: #setRightHalfFrame |
|
2391 |
#translateLabel: true |
|
2392 |
#isButton: true |
|
2393 |
#labelImage: #(#ResourceRetriever nil #setRightHalfIcon) |
|
2394 |
) |
|
2395 |
#(#MenuItem |
|
2396 |
#label: '' |
|
2397 |
) |
|
2398 |
#(#MenuItem |
|
2399 |
#activeHelpKey: #topLeftQuarterLayout |
|
2400 |
#label: 'setTopLeftQuarterFrame' |
|
2401 |
#itemValue: #setTopLeftQuarterFrame |
|
2402 |
#nameKey: #setTopLeftQuarterFrame |
|
2403 |
#translateLabel: true |
|
2404 |
#isButton: true |
|
2405 |
#labelImage: #(#ResourceRetriever nil #setTopLeftQuarterIcon) |
|
2406 |
) |
|
2407 |
#(#MenuItem |
|
2408 |
#activeHelpKey: #topRightQuarterLayout |
|
2409 |
#label: 'setTopRightQuarterFrame' |
|
2410 |
#itemValue: #setTopRightQuarterFrame |
|
2411 |
#nameKey: #setTopRightQuarterFrame |
|
2412 |
#translateLabel: true |
|
2413 |
#isButton: true |
|
2414 |
#labelImage: #(#ResourceRetriever nil #setToRightQuarterIcon) |
|
2415 |
) |
|
2416 |
#(#MenuItem |
|
2417 |
#activeHelpKey: #bottomRightQuarterLayout |
|
2418 |
#label: 'setBottomRightQuarterFrame' |
|
2419 |
#itemValue: #setBottomRightQuarterFrame |
|
2420 |
#nameKey: #setBottomRightQuarterFrame |
|
2421 |
#translateLabel: true |
|
2422 |
#isButton: true |
|
2423 |
#labelImage: #(#ResourceRetriever nil #setBottomRightQuarterIcon) |
|
2424 |
) |
|
2425 |
#(#MenuItem |
|
2426 |
#activeHelpKey: #bottomLeftQuarterLayout |
|
2427 |
#label: 'setBottomLeftQuarterFrame' |
|
2428 |
#itemValue: #setBottomLeftQuarterFrame |
|
2429 |
#nameKey: #setBottomLeftQuarterFrame |
|
2430 |
#translateLabel: true |
|
2431 |
#isButton: true |
|
2432 |
#labelImage: #(#ResourceRetriever nil #setBottomLeftQuarterIcon) |
|
2433 |
) |
|
2434 |
) |
|
2435 |
nil |
|
2436 |
nil |
|
2437 |
) |
|
2438 |
! |
|
2439 |
||
2440 |
commonFrameLayoutsMenu2 |
|
2441 |
"This resource specification was automatically generated |
|
2442 |
by the MenuEditor of ST/X." |
|
2443 |
||
2444 |
"Do not manually edit this!! If it is corrupted, |
|
2445 |
the MenuEditor may not be able to read the specification." |
|
2446 |
||
2447 |
" |
|
2448 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu2 |
|
2449 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu2)) startUp |
|
2450 |
" |
|
2451 |
||
2452 |
<resource: #menu> |
|
2453 |
||
2454 |
^ |
|
2455 |
#(#Menu |
|
2456 |
#( |
|
2457 |
#(#MenuItem |
|
2458 |
#activeHelpKey: #topFixPartLayout |
|
2459 |
#label: 'setTopFixPartFrame' |
|
2460 |
#itemValue: #setTopFixPartFrame |
|
2461 |
#nameKey: #setTopFixPartFrame |
|
2462 |
#translateLabel: true |
|
2463 |
#isButton: true |
|
2464 |
#labelImage: #(#ResourceRetriever nil #setTopFixPartIcon) |
|
2465 |
) |
|
2466 |
#(#MenuItem |
|
2467 |
#activeHelpKey: #horizontalFixPartLayout |
|
2468 |
#label: 'setHorizontalFixPartFrame' |
|
2469 |
#itemValue: #setHorizontalFixPartFrame |
|
2470 |
#nameKey: #setHorizontalFixPartFrame |
|
2471 |
#translateLabel: true |
|
2472 |
#isButton: true |
|
2473 |
#labelImage: #(#ResourceRetriever nil #setHorizontalFixPartIcon) |
|
2474 |
) |
|
2475 |
#(#MenuItem |
|
2476 |
#activeHelpKey: #bottomFixPartLayout |
|
2477 |
#label: 'setBottomFixPartFrame' |
|
2478 |
#itemValue: #setBottomFixPartFrame |
|
2479 |
#nameKey: #setBottomFixPartFrame |
|
2480 |
#translateLabel: true |
|
2481 |
#isButton: true |
|
2482 |
#labelImage: #(#ResourceRetriever nil #setBottomFixPartIcon) |
|
2483 |
) |
|
2484 |
#(#MenuItem |
|
2485 |
#label: '' |
|
2486 |
) |
|
2487 |
#(#MenuItem |
|
2488 |
#activeHelpKey: #leftFixPartLayout |
|
2489 |
#label: 'setLeftFixPartFrame' |
|
2490 |
#itemValue: #setLeftFixPartFrame |
|
2491 |
#nameKey: #setLeftFixPartFrame |
|
2492 |
#translateLabel: true |
|
2493 |
#isButton: true |
|
2494 |
#labelImage: #(#ResourceRetriever nil #setLeftFixPartIcon) |
|
2495 |
) |
|
2496 |
#(#MenuItem |
|
2497 |
#activeHelpKey: #verticalFixPartLayout |
|
2498 |
#label: 'setVerticalFixPartFrame' |
|
2499 |
#itemValue: #setVerticalFixPartFrame |
|
2500 |
#nameKey: #setVerticalFixPartFrame |
|
2501 |
#translateLabel: true |
|
2502 |
#isButton: true |
|
2503 |
#labelImage: #(#ResourceRetriever nil #setVerticalFixPartIcon) |
|
2504 |
) |
|
2505 |
#(#MenuItem |
|
2506 |
#activeHelpKey: #rightFixPartLayout |
|
2507 |
#label: 'setRightFixPartFrame' |
|
2508 |
#itemValue: #setRightFixPartFrame |
|
2509 |
#nameKey: #setRightFixPartFrame |
|
2510 |
#translateLabel: true |
|
2511 |
#isButton: true |
|
2512 |
#labelImage: #(#ResourceRetriever nil #setRightFixPartIcon) |
|
2513 |
) |
|
1706 | 2514 |
#(#MenuItem |
2515 |
#label: '' |
|
2516 |
) |
|
2517 |
#(#MenuItem |
|
1709 | 2518 |
#activeHelpKey: #bigTopFixPartLayout |
1706 | 2519 |
#label: 'setBigTopFixPartFrame' |
2520 |
#itemValue: #setBigTopFixPartFrame |
|
2521 |
#nameKey: #setBigTopFixPartFrame |
|
2522 |
#translateLabel: true |
|
2523 |
#isButton: true |
|
2524 |
#labelImage: #(#ResourceRetriever nil #setBigTopFixPartIcon) |
|
2525 |
) |
|
2526 |
#(#MenuItem |
|
1709 | 2527 |
#activeHelpKey: #bigHorizontalFixPartLayout |
1706 | 2528 |
#label: 'setBigHorizontalFixPartFrame' |
2529 |
#itemValue: #setBigHorizontalFixPartFrame |
|
2530 |
#nameKey: #setBigHorizontalFixPartFrame |
|
2531 |
#translateLabel: true |
|
2532 |
#isButton: true |
|
2533 |
#labelImage: #(#ResourceRetriever nil #setBigHorizontalFixPartIcon) |
|
2534 |
) |
|
2535 |
#(#MenuItem |
|
1709 | 2536 |
#activeHelpKey: #bigBottomFixPartLayout |
1706 | 2537 |
#label: 'setBigBottomFixPartFrame' |
2538 |
#itemValue: #setBigBottomFixPartFrame |
|
2539 |
#nameKey: #setBigBottomFixPartFrame |
|
2540 |
#translateLabel: true |
|
2541 |
#isButton: true |
|
2542 |
#labelImage: #(#ResourceRetriever nil #setBigBottomFixPartIcon) |
|
2543 |
) |
|
1680 | 2544 |
) |
2545 |
nil |
|
2546 |
nil |
|
1409 | 2547 |
) |
1826 | 2548 |
! |
2549 |
||
2550 |
commonFrameLayoutsMenu3 |
|
2551 |
"This resource specification was automatically generated |
|
2552 |
by the MenuEditor of ST/X." |
|
2553 |
||
2554 |
"Do not manually edit this!! If it is corrupted, |
|
2555 |
the MenuEditor may not be able to read the specification." |
|
2556 |
||
2557 |
" |
|
1858 | 2558 |
MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu3 |
2559 |
(Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu3)) startUp |
|
1826 | 2560 |
" |
2561 |
||
2562 |
<resource: #menu> |
|
2563 |
||
2564 |
^ |
|
1858 | 2565 |
#(Menu |
2566 |
( |
|
2567 |
(MenuItem |
|
2568 |
activeHelpKey: screenFrameLayout |
|
2569 |
label: 'setScreenFrame' |
|
2570 |
itemValue: setScreenFrame |
|
2571 |
nameKey: setScreenFrame |
|
2572 |
translateLabel: true |
|
2573 |
isButton: true |
|
2574 |
isVisible: false |
|
2575 |
labelImage: (ResourceRetriever #'UILayoutTool::LayoutFrame' setScreenIcon) |
|
1826 | 2576 |
) |
2577 |
) |
|
2578 |
nil |
|
2579 |
nil |
|
2580 |
) |
|
1409 | 2581 |
! ! |
2582 |
||
2583 |
!UILayoutTool::LayoutFrame methodsFor:'accessing'! |
|
2584 |
||
2585 |
fetch:aView spec:aSpec |
|
1826 | 2586 |
|
1409 | 2587 |
|layout| |
2588 |
||
1826 | 2589 |
aSpec class == WindowSpec ifTrue:[ |
2590 |
(layout := aSpec layout) isNil ifTrue:[ |
|
2591 |
layout := aSpec bounds asLayout. |
|
2592 |
] |
|
2593 |
] ifFalse: [ |
|
2594 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
2595 |
]. |
|
1409 | 2596 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
2597 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
2598 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
2599 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
2600 |
(self aspectFor:#rightOffset) value:(layout rightOffset). |
|
2601 |
(self aspectFor:#bottomOffset) value:(layout bottomOffset). |
|
2602 |
(self aspectFor:#rightFraction) value:(layout rightFraction). |
|
2603 |
(self aspectFor:#bottomFraction) value:(layout bottomFraction). |
|
2604 |
||
2605 |
! |
|
2606 |
||
2607 |
layout |
|
2608 |
"returns current layout as layoutFrame |
|
2609 |
" |
|
2610 |
|layout| |
|
2611 |
||
2612 |
layout := Smalltalk::LayoutFrame new. |
|
2613 |
||
1581 | 2614 |
layout |
2615 |
leftFraction:(((self aspectFor:#leftFraction) value) ? 0) |
|
2616 |
offset:(((self aspectFor:#leftOffset) value) ? 0) |
|
2617 |
rightFraction:(((self aspectFor:#rightFraction) value) ? 0) |
|
2618 |
offset:(((self aspectFor:#rightOffset) value) ? 0) |
|
2619 |
topFraction:(((self aspectFor:#topFraction) value) ? 0) |
|
2620 |
offset:(((self aspectFor:#topOffset) value) ? 0) |
|
2621 |
bottomFraction:(((self aspectFor:#bottomFraction) value) ? 0) |
|
2622 |
offset:(((self aspectFor:#bottomOffset) value) ? 0). |
|
1409 | 2623 |
|
2624 |
^ layout |
|
2625 |
! ! |
|
2626 |
||
2627 |
!UILayoutTool::LayoutFrame methodsFor:'common frames'! |
|
2628 |
||
1706 | 2629 |
setBigBottomFixPartFrame |
2630 |
self |
|
2631 |
setFrameLeft:0 offset:0 |
|
2632 |
right:1 offset:0 |
|
1826 | 2633 |
top:0 offset:(self class defaultFixPartHeight) |
1706 | 2634 |
bottom:1 offset:0 |
2635 |
! |
|
2636 |
||
2637 |
setBigHorizontalFixPartFrame |
|
2638 |
self |
|
2639 |
setFrameLeft:0 offset:0 |
|
2640 |
right:1 offset:0 |
|
1826 | 2641 |
top:0 offset:(self class defaultFixPartHeight) |
2642 |
bottom:1 offset:(self class defaultFixPartHeight negated) |
|
1706 | 2643 |
! |
2644 |
||
2645 |
setBigTopFixPartFrame |
|
2646 |
self |
|
2647 |
setFrameLeft:0 offset:0 |
|
2648 |
right:1 offset:0 |
|
2649 |
top:0 offset:0 |
|
1826 | 2650 |
bottom:1 offset:(self class defaultFixPartHeight negated) |
1706 | 2651 |
! |
2652 |
||
1409 | 2653 |
setBottomFixPartFrame |
2654 |
self |
|
2655 |
setFrameLeft:0 offset:0 |
|
2656 |
right:1 offset:0 |
|
1826 | 2657 |
top:1 offset:(self class defaultFixPartHeight negated) |
1409 | 2658 |
bottom:1 offset:0 |
2659 |
! |
|
2660 |
||
2661 |
setBottomHalfFrame |
|
2662 |
self |
|
2663 |
setFrameLeft:0 offset:0 |
|
2664 |
right:1 offset:0 |
|
2665 |
top:0.5 offset:0 |
|
2666 |
bottom:1 offset:0 |
|
2667 |
! |
|
2668 |
||
2669 |
setBottomLeftQuarterFrame |
|
2670 |
self |
|
2671 |
setFrameLeft:0 offset:0 |
|
2672 |
right:0.5 offset:0 |
|
2673 |
top:0.5 offset:0 |
|
2674 |
bottom:1 offset:0 |
|
2675 |
! |
|
2676 |
||
2677 |
setBottomRightQuarterFrame |
|
2678 |
self |
|
2679 |
setFrameLeft:0.5 offset:0 |
|
2680 |
right:1 offset:0 |
|
2681 |
top:0.5 offset:0 |
|
2682 |
bottom:1 offset:0 |
|
2683 |
! |
|
2684 |
||
2685 |
setFrameLeft:lF offset:lO right:rF offset:rO top:tF offset:tO bottom:bF offset:bO |
|
2686 |
(self aspectFor:#leftOffset) value:lO. |
|
2687 |
(self aspectFor:#rightOffset) value:rO. |
|
2688 |
(self aspectFor:#topOffset) value:tO. |
|
2689 |
(self aspectFor:#bottomOffset) value:bO. |
|
2690 |
||
2691 |
(self aspectFor:#leftFraction) value:lF. |
|
2692 |
(self aspectFor:#rightFraction) value:rF. |
|
2693 |
(self aspectFor:#topFraction) value:tF. |
|
2694 |
(self aspectFor:#bottomFraction) value:bF. |
|
2695 |
! |
|
2696 |
||
1680 | 2697 |
setFullFrame |
2698 |
self |
|
2699 |
setFrameLeft:0 offset:0 |
|
2700 |
right:1 offset:0 |
|
2701 |
top:0 offset:0 |
|
2702 |
bottom:1 offset:0 |
|
2703 |
! |
|
2704 |
||
1409 | 2705 |
setHorizontalFixPartFrame |
2706 |
self |
|
2707 |
setFrameLeft:0 offset:0 |
|
2708 |
right:1 offset:0 |
|
1826 | 2709 |
top:0.5 offset:(self class defaultFixPartHeight negated // 2) |
2710 |
bottom:0.5 offset:(self class defaultFixPartHeight // 2) |
|
1409 | 2711 |
! |
2712 |
||
2713 |
setLeftFixPartFrame |
|
2714 |
self |
|
2715 |
setFrameLeft:0 offset:0 |
|
1826 | 2716 |
right:0 offset:(self class defaultFixPartHeight) |
1409 | 2717 |
top:0 offset:0 |
2718 |
bottom:1 offset:0 |
|
2719 |
! |
|
2720 |
||
2721 |
setLeftHalfFrame |
|
2722 |
self |
|
2723 |
setFrameLeft:0 offset:0 |
|
2724 |
right:0.5 offset:0 |
|
2725 |
top:0 offset:0 |
|
2726 |
bottom:1 offset:0 |
|
2727 |
! |
|
2728 |
||
2729 |
setRightFixPartFrame |
|
2730 |
self |
|
1826 | 2731 |
setFrameLeft:1 offset:(self class defaultFixPartHeight negated) |
1447 | 2732 |
right:1 offset:0 |
1409 | 2733 |
top:0 offset:0 |
2734 |
bottom:1 offset:0 |
|
2735 |
! |
|
2736 |
||
2737 |
setRightHalfFrame |
|
2738 |
self |
|
2739 |
setFrameLeft:0.5 offset:0 |
|
2740 |
right:1 offset:0 |
|
2741 |
top:0 offset:0 |
|
2742 |
bottom:1 offset:0 |
|
2743 |
! |
|
2744 |
||
2745 |
setTopFixPartFrame |
|
2746 |
self |
|
2747 |
setFrameLeft:0 offset:0 |
|
2748 |
right:1 offset:0 |
|
2749 |
top:0 offset:0 |
|
1826 | 2750 |
bottom:0 offset:(self class defaultFixPartHeight) |
1409 | 2751 |
! |
2752 |
||
2753 |
setTopHalfFrame |
|
2754 |
self |
|
2755 |
setFrameLeft:0 offset:0 |
|
2756 |
right:1 offset:0 |
|
2757 |
top:0 offset:0 |
|
2758 |
bottom:0.5 offset:0 |
|
2759 |
! |
|
2760 |
||
2761 |
setTopLeftQuarterFrame |
|
2762 |
self |
|
2763 |
setFrameLeft:0 offset:0 |
|
2764 |
right:0.5 offset:0 |
|
2765 |
top:0 offset:0 |
|
2766 |
bottom:0.5 offset:0 |
|
2767 |
! |
|
2768 |
||
2769 |
setTopRightQuarterFrame |
|
2770 |
self |
|
2771 |
setFrameLeft:0.5 offset:0 |
|
2772 |
right:1 offset:0 |
|
2773 |
top:0 offset:0 |
|
2774 |
bottom:0.5 offset:0 |
|
2775 |
! |
|
2776 |
||
2777 |
setVerticalFixPartFrame |
|
2778 |
self |
|
1826 | 2779 |
setFrameLeft:0.5 offset:(self class defaultFixPartHeight negated // 2 ) |
2780 |
right:0.5 offset:(self class defaultFixPartHeight // 2 ) |
|
1409 | 2781 |
top:0 offset:0 |
2782 |
bottom:1 offset:0 |
|
2783 |
! ! |
|
2784 |
||
1447 | 2785 |
!UILayoutTool::LayoutOrigin class methodsFor:'interface specs'! |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2786 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2787 |
windowSpec |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2788 |
"This resource specification was automatically generated |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2789 |
by the UIPainter of ST/X." |
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 |
"Do not manually edit this!! If it is corrupted, |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2792 |
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
|
2793 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2794 |
" |
1447 | 2795 |
UIPainter new openOnClass:UILayoutTool::LayoutOrigin andSelector:#windowSpec |
2796 |
UILayoutTool::LayoutOrigin new openInterface:#windowSpec |
|
2797 |
UILayoutTool::LayoutOrigin open |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2798 |
" |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2799 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2800 |
<resource: #canvas> |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2801 |
|
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2802 |
^ |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2803 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2804 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2805 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2806 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2807 |
label: 'UILayoutTool-LayoutOrigin' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2808 |
name: 'UILayoutTool-LayoutOrigin' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2809 |
min: (Point 10 10) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2810 |
bounds: (Rectangle 14 46 372 192) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2811 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2812 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2813 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2814 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2815 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2816 |
name: 'layoutOriginSpec' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2817 |
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
|
2818 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2819 |
minorKey: layoutOriginSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2820 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2821 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2822 |
|
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2823 |
) |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2824 |
) |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2825 |
! ! |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2826 |
|
1447 | 2827 |
!UILayoutTool::LayoutOrigin methodsFor:'accessing'! |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2828 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2829 |
fetch:aView spec:aSpec |
1447 | 2830 |
"fetch layoutOrigin |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2831 |
" |
1447 | 2832 |
|layout| |
2833 |
||
2834 |
layout := UIPainterView asLayoutFrameFromView:aView. |
|
2835 |
||
2836 |
(self aspectFor:#leftOffset) value:(layout leftOffset). |
|
2837 |
(self aspectFor:#leftFraction) value:(layout leftFraction). |
|
2838 |
(self aspectFor:#topOffset) value:(layout topOffset). |
|
2839 |
(self aspectFor:#topFraction) value:(layout topFraction). |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2840 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2841 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2842 |
! |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2843 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2844 |
layout |
1447 | 2845 |
"returns current layout as layoutOrigin |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2846 |
" |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2847 |
|layout| |
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2848 |
|
1447 | 2849 |
layout := Smalltalk::LayoutOrigin new. |
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2850 |
|
1581 | 2851 |
layout |
2852 |
leftFraction:(((self aspectFor:#leftFraction) value) ? 0) |
|
2853 |
offset:(((self aspectFor:#leftOffset) value) ? 0) |
|
2854 |
topFraction:(((self aspectFor:#topFraction) value) ? 0) |
|
2855 |
offset:(((self aspectFor:#topOffset) value) ? 0). |
|
1332
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2856 |
|
ba34b85c14d8
do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents:
1310
diff
changeset
|
2857 |
^ layout |
1304 | 2858 |
! ! |
2859 |
||
1343 | 2860 |
!UILayoutTool::Point class methodsFor:'interface specs'! |
2861 |
||
2862 |
windowSpec |
|
2863 |
"This resource specification was automatically generated |
|
2864 |
by the UIPainter of ST/X." |
|
2865 |
||
2866 |
"Do not manually edit this!! If it is corrupted, |
|
2867 |
the UIPainter may not be able to read the specification." |
|
2868 |
||
2869 |
" |
|
2870 |
UIPainter new openOnClass:UILayoutTool::Point andSelector:#windowSpec |
|
2871 |
UILayoutTool::Point new openInterface:#windowSpec |
|
2872 |
UILayoutTool::Point open |
|
2873 |
" |
|
2874 |
||
2875 |
<resource: #canvas> |
|
2876 |
||
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2877 |
^ |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2878 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2879 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2880 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2881 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2882 |
label: 'UILayoutTool-Point' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2883 |
name: 'UILayoutTool-Point' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2884 |
min: (Point 10 10) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2885 |
bounds: (Rectangle 14 46 309 184) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2886 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2887 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2888 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2889 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2890 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2891 |
name: 'layoutPointSpec' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2892 |
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
|
2893 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2894 |
minorKey: layoutPointSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2895 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2896 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2897 |
|
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2898 |
) |
1343 | 2899 |
) |
2900 |
! ! |
|
2901 |
||
2902 |
!UILayoutTool::Point methodsFor:'accessing'! |
|
2903 |
||
2904 |
fetch:aView spec:aSpec |
|
2905 |
"fetch point |
|
2906 |
" |
|
2907 |
|origin| |
|
2908 |
||
2909 |
origin := aView computeOrigin. |
|
2910 |
||
2911 |
(self aspectFor:#leftOffset) value:(origin x). |
|
2912 |
(self aspectFor:#topOffset) value:(origin y). |
|
2913 |
||
2914 |
||
2915 |
! |
|
2916 |
||
2917 |
layout |
|
2918 |
"returns current layout as point |
|
2919 |
" |
|
2920 |
^ Smalltalk::Point x:(((self aspectFor:#leftOffset) value) ? 0) |
|
2921 |
y:(((self aspectFor:#topOffset) value) ? 0) |
|
2922 |
||
2923 |
! ! |
|
2924 |
||
1409 | 2925 |
!UILayoutTool::Rectangle class methodsFor:'interface specs'! |
2926 |
||
2927 |
windowSpec |
|
2928 |
"This resource specification was automatically generated |
|
2929 |
by the UIPainter of ST/X." |
|
2930 |
||
2931 |
"Do not manually edit this!! If it is corrupted, |
|
2932 |
the UIPainter may not be able to read the specification." |
|
2933 |
||
2934 |
" |
|
2935 |
UIPainter new openOnClass:UILayoutTool::Rectangle andSelector:#windowSpec |
|
2936 |
UILayoutTool::Rectangle new openInterface:#windowSpec |
|
2937 |
UILayoutTool::Rectangle open |
|
2938 |
" |
|
2939 |
||
2940 |
<resource: #canvas> |
|
2941 |
||
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2942 |
^ |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2943 |
#(FullSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2944 |
name: windowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2945 |
window: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2946 |
(WindowSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2947 |
label: 'UILayoutTool-Rectangle' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2948 |
name: 'UILayoutTool-Rectangle' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2949 |
min: (Point 10 10) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2950 |
bounds: (Rectangle 14 46 356 245) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2951 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2952 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2953 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2954 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2955 |
(UISubSpecification |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2956 |
name: 'subSpecification' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2957 |
layout: (LayoutFrame 1 0.0 6 0 0 1.0 96 0) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2958 |
majorKey: UILayoutTool |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2959 |
minorKey: layoutPointSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2960 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2961 |
(FramedBoxSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2962 |
label: 'Corner' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2963 |
name: 'FramedBox' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2964 |
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
|
2965 |
labelPosition: topLeft |
1874 | 2966 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2967 |
component: |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2968 |
(SpecCollection |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2969 |
collection: ( |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2970 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2971 |
label: 'Right:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2972 |
name: 'labelCornerY' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2973 |
layout: (AlignmentOrigin 83 0 16 0 1 0) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2974 |
adjust: left |
1874 | 2975 |
translateLabel: true |
1738
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 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2978 |
name: 'fieldCornerX' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2979 |
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
|
2980 |
activeHelpKey: cornerX |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2981 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2982 |
model: rightOffset |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2983 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2984 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2985 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2986 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2987 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2988 |
acceptOnPointerLeave: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2989 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2990 |
(LabelSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2991 |
label: 'Bottom:' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2992 |
name: 'labelCornerX' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2993 |
layout: (AlignmentOrigin 83 0 41 0 1 0) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2994 |
adjust: left |
1874 | 2995 |
translateLabel: true |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2996 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2997 |
(InputFieldSpec |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2998 |
name: 'fieldCornerY' |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
2999 |
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
|
3000 |
activeHelpKey: cornerY |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3001 |
tabable: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3002 |
model: bottomOffset |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3003 |
group: inputGroup |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3004 |
type: numberOrNil |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3005 |
acceptOnLostFocus: true |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3006 |
acceptChannel: acceptChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3007 |
modifiedChannel: modifiedChannel |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3008 |
acceptOnPointerLeave: false |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3009 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3010 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3011 |
|
1409 | 3012 |
) |
1738
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3013 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3014 |
) |
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3015 |
|
bdb5bedd2b57
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1726
diff
changeset
|
3016 |
) |
1409 | 3017 |
) |
3018 |
! ! |
|
3019 |
||
3020 |
!UILayoutTool::Rectangle methodsFor:'accessing'! |
|
3021 |
||
3022 |
fetch:aView spec:aSpec |
|
3023 |
"fetch rectangle |
|
3024 |
" |
|
3025 |
|origin corner| |
|
3026 |
||
3027 |
origin := aView computeOrigin. |
|
3028 |
corner := aView computeCorner. |
|
3029 |
||
3030 |
(self aspectFor:#leftOffset) value:(origin x). |
|
3031 |
(self aspectFor:#rightOffset) value:(corner x). |
|
3032 |
(self aspectFor:#topOffset) value:(origin y). |
|
3033 |
(self aspectFor:#bottomOffset) value:(corner y). |
|
3034 |
||
3035 |
||
3036 |
! |
|
3037 |
||
3038 |
layout |
|
2022 | 3039 |
"returns current layout as rectangle" |
3040 |
||
3041 |
^ Smalltalk::Rectangle |
|
3042 |
left:(((self aspectFor:#leftOffset) value) ? 0) |
|
3043 |
top:(((self aspectFor:#topOffset) value) ? 0) |
|
3044 |
right:(((self aspectFor:#rightOffset) value) ? 0) |
|
3045 |
bottom:(((self aspectFor:#bottomOffset) value) ? 0) |
|
1409 | 3046 |
! ! |
3047 |
||
163 | 3048 |
!UILayoutTool class methodsFor:'documentation'! |
3049 |
||
3050 |
version |
|
3051 |
^ '$Header$' |
|
3052 |
! ! |