author | ca |
Tue, 18 Feb 1997 11:09:36 +0100 | |
changeset 436 | b5e56e1f367f |
parent 434 | eeb7ba6aede3 |
child 450 | 2a6e2eb653f0 |
permissions | -rw-r--r-- |
89 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
434 | 3 |
All Rights Reserved |
89 | 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 |
" |
|
12 |
||
100 | 13 |
Object subclass:#WindowBuilder |
436 | 14 |
instanceVariableNames:'window application bindings focusSequence namedComponents |
15 |
componentCreationHook applicationClass' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'Interface-Support-UI' |
|
66 | 19 |
! |
20 |
||
21 |
!WindowBuilder class methodsFor:'documentation'! |
|
22 |
||
89 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
434 | 26 |
All Rights Reserved |
89 | 27 |
|
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
66 | 37 |
documentation |
38 |
" |
|
69 | 39 |
a no-op class, for systems which do not use the UIBuilder. |
66 | 40 |
Concrete subclasses know how to create a view (with components) from |
41 |
some interface spec. Currently, an experimantal version of UIBuilder exists, |
|
42 |
and more may be added in the future (for example, to parse different UI |
|
43 |
specs - thinking of motifs UIL specs etc). |
|
223 | 44 |
|
45 |
[author:] |
|
46 |
Claus Gittinger |
|
66 | 47 |
" |
48 |
! ! |
|
49 |
||
50 |
!WindowBuilder methodsFor:'accessing'! |
|
51 |
||
100 | 52 |
application |
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
53 |
"return the application (an ApplicationModel), |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
54 |
for which the view is built. |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
55 |
This one is supposed to provide the aspects, menus etc." |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
56 |
|
100 | 57 |
^ application |
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
58 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
59 |
"Modified: 17.1.1997 / 19:04:40 / cg" |
66 | 60 |
! |
61 |
||
125 | 62 |
application:anApplicationModel |
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
63 |
"set the application (an ApplicationModel), |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
64 |
for which the view is built. |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
65 |
This one is supposed to provide the aspects, menus etc." |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
66 |
|
125 | 67 |
application := anApplicationModel |
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
68 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
69 |
"Modified: 17.1.1997 / 19:04:47 / cg" |
66 | 70 |
! |
71 |
||
422 | 72 |
applicationClass:something |
73 |
"set the value of the instance variable 'applicationClass' (automatically generated)" |
|
74 |
||
75 |
applicationClass := something.! |
|
76 |
||
66 | 77 |
aspectAt:aSymbol |
433 | 78 |
|b| |
79 |
||
434 | 80 |
bindings notNil ifTrue:[ |
81 |
b := bindings at:aSymbol ifAbsent:nil. |
|
82 |
b notNil ifTrue:[^ b]. |
|
83 |
]. |
|
84 |
||
433 | 85 |
application notNil ifTrue:[ |
86 |
^ application aspectFor:aSymbol |
|
87 |
]. |
|
88 |
^ nil |
|
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
89 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
90 |
"Modified: 17.1.1997 / 19:28:32 / cg" |
66 | 91 |
! |
92 |
||
125 | 93 |
aspectAt:aSymbol put:aModel |
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
94 |
bindings isNil ifTrue:[ |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
95 |
bindings := IdentityDictionary new |
125 | 96 |
]. |
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
97 |
^ bindings at:aSymbol put:aModel |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
98 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
99 |
"Modified: 17.1.1997 / 19:28:37 / cg" |
100 | 100 |
! |
101 |
||
102 |
bindings |
|
103 |
^ bindings |
|
104 |
! |
|
105 |
||
106 |
bindings:aDictionary |
|
107 |
bindings := aDictionary |
|
108 |
! |
|
109 |
||
125 | 110 |
componentAt:name |
111 |
bindings isNil ifTrue:[^ nil]. |
|
112 |
^ bindings at:name ifAbsent:nil |
|
113 |
! |
|
114 |
||
100 | 115 |
componentAt:name put:aComponent |
116 |
bindings isNil ifTrue:[ |
|
434 | 117 |
bindings := IdentityDictionary new. |
100 | 118 |
]. |
119 |
bindings at:name put:aComponent |
|
120 |
! |
|
121 |
||
410 | 122 |
componentCreationHook:something |
123 |
"set the value of the instance variable 'componentCreationHook' (automatically generated)" |
|
124 |
||
125 |
componentCreationHook := something.! |
|
126 |
||
125 | 127 |
focusSequence |
128 |
^ focusSequence |
|
66 | 129 |
! |
130 |
||
86 | 131 |
namedComponents |
132 |
^ bindings |
|
133 |
! |
|
134 |
||
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
135 |
source |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
136 |
"same as #application, for ST-80 compatibility" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
137 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
138 |
^ application |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
139 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
140 |
"Created: 17.1.1997 / 19:03:51 / cg" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
141 |
! |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
142 |
|
125 | 143 |
source:anApplicationModel |
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
144 |
"same as #application:, for ST-80 compatibility" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
145 |
|
125 | 146 |
application := anApplicationModel |
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
147 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
148 |
"Modified: 17.1.1997 / 19:03:57 / cg" |
125 | 149 |
! |
150 |
||
151 |
window |
|
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
152 |
"return the top window (view), for which an interface |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
153 |
is (being) built" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
154 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
155 |
^ window |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
156 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
157 |
"Modified: 17.1.1997 / 19:30:00 / cg" |
125 | 158 |
! |
159 |
||
160 |
window:aView |
|
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
161 |
"set the top window (view), for which an interface |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
162 |
is (being) built" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
163 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
164 |
window := aView |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
165 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
166 |
"Modified: 17.1.1997 / 19:30:22 / cg" |
66 | 167 |
! |
168 |
||
169 |
windowGroup |
|
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
170 |
self halt. |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
171 |
^ window windowGroup |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
172 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
173 |
"Modified: 17.1.1997 / 19:30:26 / cg" |
66 | 174 |
! ! |
175 |
||
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
176 |
!WindowBuilder methodsFor:'building'! |
66 | 177 |
|
125 | 178 |
buildFromSpec:aSpec |
176 | 179 |
^ self subclassResponsibility |
408 | 180 |
! |
181 |
||
182 |
makeTabable:aComponent |
|
183 |
focusSequence isNil ifTrue:[ |
|
184 |
focusSequence := OrderedCollection new. |
|
185 |
]. |
|
186 |
focusSequence add:aComponent |
|
66 | 187 |
! ! |
100 | 188 |
|
422 | 189 |
!WindowBuilder methodsFor:'spec creation aspect fetch'! |
100 | 190 |
|
374 | 191 |
actionFor:aKey |
434 | 192 |
|b| |
193 |
||
194 |
bindings notNil ifTrue:[ |
|
195 |
b := bindings at:aKey ifAbsent:nil. |
|
196 |
b notNil ifTrue:[^ b]. |
|
197 |
]. |
|
198 |
||
374 | 199 |
application notNil ifTrue:[ |
200 |
^ application actionFor:aKey |
|
201 |
]. |
|
422 | 202 |
applicationClass notNil ifTrue:[ |
424 | 203 |
(applicationClass respondsTo:#actionFor:) ifTrue:[ |
204 |
^ applicationClass actionFor:aKey |
|
205 |
] |
|
422 | 206 |
]. |
207 |
^ [] |
|
374 | 208 |
|
209 |
"Created: 17.1.1997 / 21:08:22 / cg" |
|
210 |
! |
|
211 |
||
212 |
aspectFor:aKey |
|
434 | 213 |
|b| |
214 |
||
215 |
bindings notNil ifTrue:[ |
|
216 |
b := bindings at:aKey ifAbsent:nil. |
|
217 |
b notNil ifTrue:[^ b]. |
|
218 |
]. |
|
219 |
||
374 | 220 |
application notNil ifTrue:[ |
221 |
^ application aspectFor:aKey |
|
222 |
]. |
|
422 | 223 |
applicationClass notNil ifTrue:[ |
424 | 224 |
(applicationClass respondsTo:#aspectFor:) ifTrue:[ |
225 |
^ applicationClass aspectFor:aKey |
|
226 |
] |
|
422 | 227 |
]. |
374 | 228 |
^ self aspectAt:aKey |
229 |
||
230 |
"Created: 17.1.1997 / 21:06:16 / cg" |
|
231 |
! |
|
232 |
||
423 | 233 |
componentFor:aKey |
234 |
|cls| |
|
235 |
||
236 |
application notNil ifTrue:[ |
|
237 |
^ application componentFor:aKey |
|
238 |
]. |
|
239 |
applicationClass notNil ifTrue:[ |
|
424 | 240 |
(applicationClass respondsTo:#componentFor:) ifTrue:[ |
241 |
^ applicationClass componentFor:aKey |
|
242 |
] |
|
423 | 243 |
]. |
244 |
^ self aspectAt:aKey |
|
245 |
||
246 |
! |
|
247 |
||
422 | 248 |
labelFor:aKey |
249 |
|cls| |
|
250 |
||
251 |
application notNil ifTrue:[ |
|
252 |
^ application labelFor:aKey |
|
253 |
]. |
|
254 |
applicationClass notNil ifTrue:[ |
|
424 | 255 |
(applicationClass respondsTo:#labelFor:) ifTrue:[ |
256 |
^ applicationClass labelFor:aKey |
|
257 |
] |
|
422 | 258 |
]. |
259 |
^ self aspectAt:aKey |
|
260 |
||
261 |
! |
|
262 |
||
263 |
listFor:aKey |
|
264 |
application notNil ifTrue:[ |
|
265 |
^ application listFor:aKey |
|
266 |
]. |
|
267 |
applicationClass notNil ifTrue:[ |
|
424 | 268 |
(applicationClass respondsTo:#listFor:) ifTrue:[ |
269 |
^ applicationClass listFor:aKey |
|
270 |
] |
|
422 | 271 |
]. |
272 |
^ self aspectAt:aKey |
|
273 |
||
274 |
"Created: 17.1.1997 / 21:08:45 / cg" |
|
275 |
! ! |
|
276 |
||
277 |
!WindowBuilder methodsFor:'spec creation callbacks'! |
|
278 |
||
100 | 279 |
createdComponent:aView forSpec:spec |
410 | 280 |
componentCreationHook notNil ifTrue:[ |
281 |
componentCreationHook value:aView value:spec value:self |
|
282 |
] |
|
100 | 283 |
|
284 |
"Modified: 5.9.1995 / 21:42:54 / claus" |
|
285 |
! ! |
|
286 |
||
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
287 |
!WindowBuilder methodsFor:'startup'! |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
288 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
289 |
closeRequest |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
290 |
window destroy |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
291 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
292 |
"Modified: 17.1.1997 / 19:30:32 / cg" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
293 |
! |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
294 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
295 |
open |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
296 |
"open my topView, as previously created" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
297 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
298 |
self |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
299 |
openWithExtent:nil |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
300 |
andType:(application defaultWindowType) |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
301 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
302 |
"Modified: 17.1.1997 / 19:59:22 / cg" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
303 |
! |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
304 |
|
428 | 305 |
openAt:aPoint |
306 |
"open my topView at some location" |
|
307 |
||
308 |
self |
|
309 |
openAt:aPoint withExtent:nil |
|
310 |
andType:(application defaultWindowType) |
|
311 |
||
312 |
"Created: 14.2.1997 / 20:21:57 / cg" |
|
313 |
"Modified: 14.2.1997 / 20:23:23 / cg" |
|
314 |
! |
|
315 |
||
436 | 316 |
openAt:origin withExtent:ext andType:type |
428 | 317 |
"open my window, as previously created, optionally defining the |
318 |
windows origin and/or extent. |
|
319 |
The type argument may be #dialog or #normal, and specifies if the view |
|
320 |
should be opened as a modal view, blocking interaction to the currently |
|
321 |
active view, or as a normal view." |
|
322 |
||
323 |
origin notNil ifTrue:[ |
|
324 |
window origin:origin |
|
325 |
]. |
|
326 |
ext notNil ifTrue:[ |
|
327 |
window extent:ext |
|
328 |
]. |
|
329 |
||
330 |
type == #dialog ifTrue:[ |
|
331 |
window openModal. |
|
332 |
^ self |
|
333 |
]. |
|
334 |
||
335 |
type == #normal ifTrue:[ |
|
336 |
window open. |
|
337 |
^ self |
|
338 |
]. |
|
339 |
||
340 |
type == #popUp ifTrue:[ |
|
341 |
"/ window openAsPopUp. "/ not yet implemented |
|
342 |
window openModal. |
|
343 |
^ self |
|
344 |
]. |
|
345 |
||
346 |
" |
|
347 |
if ST-80 supports more types - these may be added later |
|
348 |
" |
|
349 |
self halt:'unimplemented' |
|
350 |
||
351 |
"Created: 14.2.1997 / 20:22:24 / cg" |
|
352 |
"Modified: 14.2.1997 / 20:23:56 / cg" |
|
353 |
! |
|
354 |
||
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
355 |
openDialog |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
356 |
"open my topView, as previously created as a modal view, |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
357 |
blocking interaction to the currently active view." |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
358 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
359 |
self |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
360 |
openWithExtent:nil |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
361 |
andType:#dialog |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
362 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
363 |
"Modified: 17.1.1997 / 19:59:29 / cg" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
364 |
! |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
365 |
|
428 | 366 |
openDialogAt:aPoint withExtent:ext |
367 |
"open my topView, as previously created as a modal view, |
|
368 |
blocking interaction to the currently active view." |
|
369 |
||
370 |
self |
|
371 |
openAt:aPoint withExtent:ext |
|
372 |
andType:#dialog |
|
373 |
||
374 |
"Modified: 17.1.1997 / 19:59:36 / cg" |
|
375 |
"Created: 14.2.1997 / 20:24:19 / cg" |
|
376 |
! |
|
377 |
||
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
378 |
openDialogWithExtent:ext |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
379 |
"open my topView, as previously created as a modal view, |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
380 |
blocking interaction to the currently active view." |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
381 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
382 |
self |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
383 |
openWithExtent:ext |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
384 |
andType:#dialog |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
385 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
386 |
"Modified: 17.1.1997 / 19:59:36 / cg" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
387 |
! |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
388 |
|
428 | 389 |
openPopUpAt:aPoint |
390 |
"open my topView, as previously created as a popUp view, |
|
391 |
blocking interaction to the currently active view." |
|
392 |
||
393 |
self |
|
394 |
openAt:aPoint withExtent:nil |
|
395 |
andType:#popUp |
|
396 |
||
397 |
"Modified: 17.1.1997 / 19:59:29 / cg" |
|
398 |
"Created: 14.2.1997 / 20:24:38 / cg" |
|
399 |
! |
|
400 |
||
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
401 |
openPopUpIn:aRectangle |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
402 |
"open my topView, as previously created as a popUp view, |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
403 |
blocking interaction to the currently active view." |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
404 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
405 |
self |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
406 |
openWithExtent:nil |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
407 |
andType:#popUp |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
408 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
409 |
"Modified: 17.1.1997 / 19:59:29 / cg" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
410 |
"Created: 17.1.1997 / 20:01:24 / cg" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
411 |
! |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
412 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
413 |
openWithExtent:aPoint |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
414 |
"open my topView, as previously created, but override |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
415 |
the extent." |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
416 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
417 |
self |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
418 |
openWithExtent:aPoint |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
419 |
andType:(application defaultWindowType) |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
420 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
421 |
"Modified: 17.1.1997 / 19:58:48 / cg" |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
422 |
! |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
423 |
|
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
424 |
openWithExtent:ext andType:type |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
425 |
"open my window, as previously created. The type argument |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
426 |
may be #dialog or #normal, and specifies if the view should |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
427 |
be opened as a modal view, blocking interaction to the currently |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
428 |
active view, or as a normal view." |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
429 |
|
428 | 430 |
^ self openAt:nil withExtent:ext andType:type |
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
431 |
|
428 | 432 |
"Modified: 14.2.1997 / 20:22:47 / cg" |
372
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
433 |
! ! |
6d7718f3d298
more ST-80 compatibility stuff
Claus Gittinger <cg@exept.de>
parents:
223
diff
changeset
|
434 |
|
132 | 435 |
!WindowBuilder class methodsFor:'documentation'! |
436 |
||
437 |
version |
|
436 | 438 |
^ '$Header: /cvs/stx/stx/libview2/Attic/WinBuilder.st,v 1.25 1997-02-18 10:09:36 ca Exp $' |
132 | 439 |
! ! |