author | Claus Gittinger <cg@exept.de> |
Mon, 15 Feb 1999 18:46:53 +0100 | |
changeset 1098 | bcd7b099bac8 |
parent 1097 | b3ba1a593ce7 |
child 1099 | 7e51aa0a78f3 |
permissions | -rw-r--r-- |
1085 | 1 |
" |
2 |
COPYRIGHT (c) 1999 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 |
" |
|
12 |
||
13 |
||
14 |
TopView subclass:#ExternalTopView |
|
15 |
instanceVariableNames:'' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'Graphics-Support' |
|
19 |
! |
|
20 |
||
21 |
!ExternalTopView class methodsFor:'documentation'! |
|
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1999 by eXept Software AG |
|
26 |
All Rights Reserved |
|
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 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
40 |
Represents a view as created by some other application. |
|
41 |
This is a support-class to allow ST/X views to be created |
|
42 |
inside other applications. |
|
43 |
||
1097 | 44 |
A simple demoApplication is found in goodies/stxInExternalWindow. |
45 |
||
1085 | 46 |
[author:] |
47 |
Claus Gittinger (cg@exept.de) |
|
48 |
||
49 |
[see also:] |
|
50 |
||
51 |
[instance variables:] |
|
52 |
||
53 |
[class variables:] |
|
54 |
" |
|
55 |
! ! |
|
56 |
||
57 |
!ExternalTopView class methodsFor:'instance creation'! |
|
58 |
||
59 |
newWithID:anAlienWindowID |
|
60 |
^ self new setWindowID:anAlienWindowID |
|
61 |
! ! |
|
62 |
||
1087 | 63 |
!ExternalTopView methodsFor:'private'! |
64 |
||
65 |
checkWindowStillAlive |
|
66 |
"/ check for a destroyed topView (since we do not get any events from X) |
|
67 |
||
68 |
Transcript showCR:'check ...'. |
|
69 |
Processor |
|
70 |
addTimedBlock:[self sensor pushUserEvent:#checkWindowStillAlive for:self] |
|
71 |
afterMilliseconds:2000 |
|
72 |
! ! |
|
73 |
||
1085 | 74 |
!ExternalTopView methodsFor:'private accessing'! |
75 |
||
76 |
setWindowID:aWindowID |
|
77 |
drawableId := aWindowID. |
|
1086 | 78 |
realized := shown := true. |
79 |
! ! |
|
80 |
||
1088
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
81 |
!ExternalTopView methodsFor:'queries'! |
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
82 |
|
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
83 |
isExternalTopView |
1098 | 84 |
"return true, if this is an external topView - always true here" |
1088
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
85 |
|
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
86 |
^ true |
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
87 |
! ! |
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
88 |
|
1086 | 89 |
!ExternalTopView methodsFor:'redefined'! |
90 |
||
91 |
destroyView |
|
92 |
"never destroyed by ST/X - instead, the view is under |
|
93 |
control of the host application ..." |
|
94 |
||
95 |
realized := false. |
|
96 |
drawableId := nil. |
|
97 |
! |
|
98 |
||
1087 | 99 |
open |
1098 | 100 |
"redefined to start a watch timeout for closed windows; |
101 |
this is required, since we wont get any closeRequest event for |
|
102 |
external windows (as all of its events are handled by the alien |
|
103 |
application)" |
|
104 |
||
1087 | 105 |
super open. |
106 |
self checkWindowStillAlive |
|
107 |
! |
|
108 |
||
1086 | 109 |
unmap |
1098 | 110 |
"redefined as a noop; |
111 |
ExternalTopViews are never unmapped by ST/X - instead, the view is under |
|
1086 | 112 |
control of the host application ..." |
113 |
||
114 |
||
1085 | 115 |
! ! |
116 |
||
117 |
!ExternalTopView class methodsFor:'documentation'! |
|
118 |
||
119 |
version |
|
1098 | 120 |
^ '$Header: /cvs/stx/stx/libview2/ExternalTopView.st,v 1.6 1999-02-15 17:46:53 cg Exp $' |
1085 | 121 |
! ! |