author | Claus Gittinger <cg@exept.de> |
Mon, 15 Feb 1999 18:43:27 +0100 | |
changeset 1097 | b3ba1a593ce7 |
parent 1088 | 63cd295128e2 |
child 1098 | bcd7b099bac8 |
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 |
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
84 |
^ true |
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 |
|
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
87 |
isExternalWindow |
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
88 |
^ true |
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
89 |
! ! |
63cd295128e2
added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents:
1087
diff
changeset
|
90 |
|
1086 | 91 |
!ExternalTopView methodsFor:'redefined'! |
92 |
||
93 |
destroyView |
|
94 |
"never destroyed by ST/X - instead, the view is under |
|
95 |
control of the host application ..." |
|
96 |
||
97 |
realized := false. |
|
98 |
drawableId := nil. |
|
99 |
! |
|
100 |
||
1087 | 101 |
open |
102 |
super open. |
|
103 |
self checkWindowStillAlive |
|
104 |
! |
|
105 |
||
1086 | 106 |
unmap |
107 |
"never unmapped by ST/X - instead, the view is under |
|
108 |
control of the host application ..." |
|
109 |
||
110 |
||
1085 | 111 |
! ! |
112 |
||
113 |
!ExternalTopView class methodsFor:'documentation'! |
|
114 |
||
115 |
version |
|
1097 | 116 |
^ '$Header: /cvs/stx/stx/libview2/ExternalTopView.st,v 1.5 1999-02-15 17:43:27 cg Exp $' |
1085 | 117 |
! ! |