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