author | Stefan Vogel <sv@exept.de> |
Tue, 18 Feb 2014 18:12:37 +0100 | |
changeset 6275 | 69088e349c8f |
parent 6135 | e304eed84588 |
child 6368 | 0482fa46f211 |
permissions | -rw-r--r-- |
135 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
5721 | 3 |
All Rights Reserved |
135 | 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 |
" |
|
3347 | 12 |
"{ Package: 'stx:libview' }" |
13 |
||
135 | 14 |
View subclass:#TopView |
5721 | 15 |
instanceVariableNames:'type iconified keyboardProcessor' |
16 |
classVariableNames:'TakeFocusWhenMapped ForceModalBoxesToOpenAtCenter |
|
17 |
ForceModalBoxesToOpenAtPointer MasterSlaveMask WindowTypeMask |
|
18 |
TypeMaster TypeSlave TypePartner TypeDialog TypePopUp |
|
19 |
TypeUndecorated TypeToolWindow TypeToolDialog MDIClientMask |
|
20 |
MDIClient TypeScreenDialog CurrentWindowMoveStart |
|
21 |
CurrentWindowMoveState CurrentWindowBeingMoved' |
|
22 |
poolDictionaries:'' |
|
23 |
category:'Views-Basic' |
|
135 | 24 |
! |
25 |
||
1160 | 26 |
!TopView class methodsFor:'documentation'! |
135 | 27 |
|
28 |
copyright |
|
29 |
" |
|
30 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
5721 | 31 |
All Rights Reserved |
135 | 32 |
|
33 |
This software is furnished under a license and may be used |
|
34 |
only in accordance with the terms of that license and with the |
|
35 |
inclusion of the above copyright notice. This software may not |
|
36 |
be provided or otherwise made available to, or used by, any |
|
37 |
other person. No title to or ownership of the software is |
|
38 |
hereby transferred. |
|
39 |
" |
|
40 |
! |
|
41 |
||
42 |
documentation |
|
43 |
" |
|
44 |
I am an abstract superclass of StandardSystemView and PopUpView; |
|
45 |
i.e. views which have no superview. |
|
616 | 46 |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
47 |
Do not get confused by the name TopView - your applications |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
48 |
topViews are typically instances of StandardSystemView. |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
49 |
|
1396 | 50 |
[instance variables:] |
5721 | 51 |
type <Integer> encodes master/slave relationship: |
52 |
#normal, #master, #slave or #partner |
|
53 |
for modeless views |
|
54 |
(the #master-, #slave- or #partner-type links multiple views |
|
55 |
into a windowManagers windowGroup -> for de-iconification) |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
56 |
|
5721 | 57 |
encodes window type: |
58 |
#normal, #dialog, #popup, #undecorated |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
59 |
|
616 | 60 |
[see also:] |
5721 | 61 |
StandardSystemView PopUpView DialogBox |
62 |
( introduction to view programming :html: programming/viewintro.html ) |
|
616 | 63 |
|
64 |
[author:] |
|
5721 | 65 |
Claus Gittinger |
135 | 66 |
" |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
67 |
! |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
68 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
69 |
examples |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
70 |
" |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
71 |
Notice, the following examples only demonstrate the windos style (not its modal behavior). |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
72 |
the style is controlled by the systems windowManager, and might even be ignored by some. |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
73 |
(for example, the dialog- and normal styles often look the same). |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
74 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
75 |
The bahavior is controlled by ST/X, and controlled by the open vs. openModeless vs. openModal message. |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
76 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
77 |
Modeless: |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
78 |
regular style: |
5721 | 79 |
[exBegin] |
80 |
|v| |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
81 |
|
5721 | 82 |
v := TopView new. |
83 |
v extent:200@200. |
|
84 |
v open |
|
85 |
[exEnd] |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
86 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
87 |
dialog: |
5721 | 88 |
[exBegin] |
89 |
|v| |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
90 |
|
5721 | 91 |
v := TopView new. |
92 |
v beDialogView. |
|
93 |
v extent:200@200. |
|
94 |
v open |
|
95 |
Delay waitForSeconds:10. v destroy. |
|
96 |
[exEnd] |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
97 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
98 |
popUp (always on top): |
5721 | 99 |
[exBegin] |
100 |
|v| |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
101 |
|
5721 | 102 |
v := TopView new. |
103 |
v bePopUpView. |
|
104 |
v extent:200@200. |
|
105 |
v open. |
|
106 |
Delay waitForSeconds:10. v destroy. |
|
107 |
[exEnd] |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
108 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
109 |
undecorated (looks loke popUp, but is not always on top): |
5721 | 110 |
[exBegin] |
111 |
|v| |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
112 |
|
5721 | 113 |
v := TopView new. |
114 |
v beUndecorated. |
|
115 |
v extent:200@200. |
|
116 |
v open. |
|
117 |
Delay waitForSeconds:10. v destroy. |
|
118 |
[exEnd] |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
119 |
|
4254 | 120 |
toolwindow (looks loke normal, but has smaller windowTitle-area on win32): |
5721 | 121 |
[exBegin] |
122 |
|v| |
|
4254 | 123 |
|
5721 | 124 |
v := TopView new. |
125 |
v beToolWindow. |
|
126 |
v extent:200@200. |
|
127 |
v open. |
|
128 |
Delay waitForSeconds:10. v destroy. |
|
129 |
[exEnd] |
|
4254 | 130 |
|
4256 | 131 |
toolwindow dialog (looks loke normal, but has smaller windowTitle-area on win32): |
5721 | 132 |
[exBegin] |
133 |
|v| |
|
4256 | 134 |
|
5721 | 135 |
v := TopView new. |
136 |
v beToolDialog. |
|
137 |
v extent:200@200. |
|
138 |
v open. |
|
139 |
Delay waitForSeconds:10. v destroy. |
|
140 |
[exEnd] |
|
4256 | 141 |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
142 |
Modal: |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
143 |
regular style: |
5721 | 144 |
[exBegin] |
145 |
|v| |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
146 |
|
5721 | 147 |
v := TopView new. |
148 |
v extent:200@200. |
|
149 |
v openModal |
|
150 |
[exEnd] |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
151 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
152 |
dialog: |
5721 | 153 |
[exBegin] |
154 |
|v| |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
155 |
|
5721 | 156 |
v := TopView new. |
157 |
v beDialogView. |
|
158 |
v extent:200@200. |
|
159 |
v openModal |
|
160 |
[exEnd] |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
161 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
162 |
popUp (always on top): |
5721 | 163 |
[exBegin] |
164 |
|v| |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
165 |
|
5721 | 166 |
v := TopView new. |
167 |
v bePopUpView. |
|
168 |
v extent:200@200. |
|
169 |
v openModal |
|
170 |
[exEnd] |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
171 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
172 |
undecorated (looks loke popUp, but is not always on top): |
5721 | 173 |
[exBegin] |
174 |
|v| |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
175 |
|
5721 | 176 |
v := TopView new. |
177 |
v beUndecorated. |
|
178 |
v extent:200@200. |
|
179 |
v openModal |
|
180 |
[exEnd] |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
181 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
182 |
" |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
183 |
! ! |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
184 |
|
5720 | 185 |
!TopView class methodsFor:'accessing'! |
186 |
||
187 |
currentWindowBeingMoved |
|
188 |
"the current window move operation |
|
189 |
(only used with modeless popup windows; i.e. windows without decoration, |
|
190 |
which want to be moved by click-motion on the background)" |
|
191 |
||
192 |
^ CurrentWindowBeingMoved |
|
193 |
||
194 |
"Created: / 03-03-2011 / 19:20:34 / cg" |
|
195 |
! ! |
|
196 |
||
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
197 |
!TopView class methodsFor:'class initialization'! |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
198 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
199 |
initialize |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
200 |
MasterSlaveMask := 16r0F. |
4498 | 201 |
TypeMaster := 16r01. |
202 |
TypeSlave := 16r02. |
|
203 |
TypePartner := 16r03. |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
204 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
205 |
WindowTypeMask := 16rF0. |
4498 | 206 |
TypeDialog := 16r10. |
207 |
TypePopUp := 16r20. |
|
208 |
TypeUndecorated := 16r30. |
|
209 |
TypeToolWindow := 16r40. |
|
210 |
TypeToolDialog := 16r50. |
|
4798 | 211 |
TypeScreenDialog:= 16r60. |
4498 | 212 |
|
213 |
MDIClientMask := 16r100. |
|
214 |
MDIClient := 16r100. |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
215 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
216 |
" |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
217 |
self initialize |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
218 |
" |
135 | 219 |
! ! |
220 |
||
1160 | 221 |
!TopView class methodsFor:'defaults'! |
135 | 222 |
|
223 |
defaultExtent |
|
586 | 224 |
"return the default extent of my instances. |
225 |
Topviews extents is 2/3 of screen by default" |
|
135 | 226 |
|
153 | 227 |
|display| |
228 |
||
229 |
display := Screen current. |
|
3072 | 230 |
display isNil ifTrue:[ |
5721 | 231 |
^ 600 @ 400 |
3072 | 232 |
]. |
3446 | 233 |
^ display defaultExtentForTopViews |
3519
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
234 |
! |
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
235 |
|
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
236 |
forceModalBoxesToOpenAtCenter |
5614 | 237 |
"return the flag which forces all modal views to be opened |
3519
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
238 |
at the screens center" |
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
239 |
|
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
240 |
^ ForceModalBoxesToOpenAtCenter ? false |
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
241 |
! |
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
242 |
|
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
243 |
forceModalBoxesToOpenAtCenter:aBoolean |
3768 | 244 |
"set/clear a flag which forces all modal views to be opened |
3519
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
245 |
at the screens center" |
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
246 |
|
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
247 |
ForceModalBoxesToOpenAtCenter := aBoolean |
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
248 |
|
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
249 |
" |
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
250 |
TopView forceModalBoxesToOpenAtCenter:true |
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
251 |
TopView forceModalBoxesToOpenAtCenter:false |
ab3bf0ab96d0
added forceModalBoxesToOpenAtCenter: flag
Claus Gittinger <cg@exept.de>
parents:
3446
diff
changeset
|
252 |
" |
3768 | 253 |
! |
254 |
||
255 |
forceModalBoxesToOpenAtPointer |
|
5614 | 256 |
"return the flag which forces all modal views to be opened |
3768 | 257 |
at the current pointer position" |
258 |
||
259 |
^ ForceModalBoxesToOpenAtPointer ? false |
|
260 |
! |
|
261 |
||
262 |
forceModalBoxesToOpenAtPointer:aBoolean |
|
5614 | 263 |
"set/clear the flag which forces all modal views to be opened |
3768 | 264 |
at the current pointer position" |
265 |
||
266 |
ForceModalBoxesToOpenAtPointer := aBoolean |
|
3978 | 267 |
! |
268 |
||
269 |
takeFocusWhenMapped:aBoolean |
|
270 |
"if turned on, topViews will grab the keyboard when mapped. |
|
271 |
This is useful on systems like openView or Win32, where a view needs a click |
|
272 |
otherwise" |
|
273 |
||
274 |
TakeFocusWhenMapped := aBoolean |
|
275 |
||
276 |
" |
|
277 |
StandardSystemView takeFocusWhenMapped:true |
|
278 |
" |
|
135 | 279 |
! ! |
280 |
||
3880 | 281 |
!TopView methodsFor:'Compatibility-ST80'! |
1410
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
282 |
|
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
283 |
displayBox |
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
284 |
^ self bounds |
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
285 |
|
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
286 |
"Created: 3.3.1997 / 16:31:33 / cg" |
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
287 |
! |
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
288 |
|
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
289 |
displayBox:aRectangle |
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
290 |
self origin:aRectangle origin corner:aRectangle corner |
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
291 |
|
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
292 |
"Created: 3.3.1997 / 16:34:38 / cg" |
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
293 |
! ! |
ee1f7f3b2dfd
added #displayBox for ST-80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1401
diff
changeset
|
294 |
|
3370 | 295 |
!TopView methodsFor:'accessing'! |
296 |
||
297 |
keyboardProcessor |
|
298 |
"return my keyboard processor" |
|
299 |
||
300 |
^ keyboardProcessor |
|
301 |
||
302 |
"Created: / 18.6.1998 / 18:52:42 / cg" |
|
303 |
"Modified: / 18.6.1998 / 20:00:18 / cg" |
|
304 |
! |
|
305 |
||
306 |
keyboardProcessor:something |
|
307 |
"set my keyboard processor" |
|
308 |
||
309 |
keyboardProcessor := something. |
|
310 |
||
311 |
"Created: / 18.6.1998 / 18:52:42 / cg" |
|
312 |
"Modified: / 18.6.1998 / 20:00:30 / cg" |
|
4138 | 313 |
! |
314 |
||
315 |
label:labelString iconLabel:iconLabelString |
|
316 |
"/ ignored here - for compat. with StdSysViews |
|
3370 | 317 |
! ! |
318 |
||
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
319 |
!TopView methodsFor:'accessing-behavior'! |
269 | 320 |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
321 |
beDialogView |
4798 | 322 |
"make me a Dialog Window; that is one which raises above all other ST/X views" |
323 |
||
4256 | 324 |
"/ the nonInteger handling code is for backward compatibility only. |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
325 |
type isInteger ifTrue:[ |
5721 | 326 |
type := (type bitClear:WindowTypeMask) bitOr:TypeDialog. |
327 |
^ self. |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
328 |
]. |
5614 | 329 |
type := #dialog |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
330 |
! |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
331 |
|
1765 | 332 |
beIndependent |
333 |
"make this an independent view; i.e. remove any master/slave or partner |
|
334 |
attribute (this is the default). |
|
335 |
However, the view remains in the current windowGroup" |
|
336 |
||
4256 | 337 |
"/ the nonInteger handling code is for backward compatibility only. |
4081 | 338 |
type isInteger ifTrue:[ |
5721 | 339 |
type := type bitClear:MasterSlaveMask. |
340 |
^ self. |
|
4081 | 341 |
]. |
1765 | 342 |
type := nil |
343 |
! |
|
344 |
||
4500 | 345 |
beMDIClientView |
4498 | 346 |
type := (type bitClear:MDIClientMask) bitOr:MDIClient. |
347 |
! |
|
348 |
||
269 | 349 |
beMaster |
5614 | 350 |
"make this a master-view. |
4032 | 351 |
All slave views within the same windowGroup will be closed if any master is closed |
352 |
and also de/iconify together with their master(s). |
|
353 |
(i.e. they follow their master(s))." |
|
269 | 354 |
|
4256 | 355 |
"/ the nonInteger handling code is for backward compatibility only. |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
356 |
type isInteger ifTrue:[ |
5721 | 357 |
type := (type bitClear:MasterSlaveMask) bitOr:TypeMaster. |
358 |
^ self. |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
359 |
]. |
269 | 360 |
type := #master |
298 | 361 |
|
362 |
" |
|
363 |
see example in TopView>>beSlave |
|
364 |
" |
|
365 |
||
366 |
"Created: 10.12.1995 / 13:30:50 / cg" |
|
269 | 367 |
! |
368 |
||
369 |
bePartner |
|
5614 | 370 |
"make this a partner-view. Each partner-view will automatically |
712 | 371 |
close other partner views (within the same windowGroup) when closed." |
269 | 372 |
|
4256 | 373 |
"/ the nonInteger handling code is for backward compatibility only. |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
374 |
type isInteger ifTrue:[ |
5721 | 375 |
type := (type bitClear:MasterSlaveMask) bitOr:TypePartner. |
376 |
^ self. |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
377 |
]. |
5614 | 378 |
type := #partner |
298 | 379 |
|
380 |
" |
|
381 |
create two topViews within the same group: |
|
382 |
if any of them is iconified/deiconified/closed, the other one is also |
|
383 |
||
384 |
|top1 top2| |
|
385 |
||
712 | 386 |
top1 := StandardSystemView new label:'partner'; extent:300@300. |
387 |
top2 := StandardSystemView new label:'partner'; extent:200@200. |
|
298 | 388 |
top1 bePartner. |
389 |
top2 bePartner. |
|
390 |
||
391 |
top1 open. |
|
392 |
top2 openInGroup:(top1 windowGroup) |
|
393 |
" |
|
394 |
||
395 |
"Created: 10.12.1995 / 13:29:59 / cg" |
|
712 | 396 |
"Modified: 25.5.1996 / 11:44:48 / cg" |
269 | 397 |
! |
398 |
||
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
399 |
bePopUpView |
4256 | 400 |
"/ the nonInteger handling code is for backward compatibility only. |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
401 |
type isInteger ifTrue:[ |
5721 | 402 |
type := (type bitClear:WindowTypeMask) bitOr:TypePopUp. |
403 |
^ self. |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
404 |
]. |
5614 | 405 |
type := #popup |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
406 |
! |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
407 |
|
5719 | 408 |
bePopUpViewNotModal |
409 |
"/ the nonInteger handling code is for backward compatibility only. |
|
410 |
"/ type isInteger ifTrue:[ |
|
411 |
"/ type := (type bitClear:WindowTypeMask) bitOr:TypePopUp. |
|
412 |
"/ ^ self. |
|
413 |
"/ ]. |
|
414 |
type := #popUpNotModal |
|
415 |
||
416 |
"Created: / 03-03-2011 / 19:04:40 / cg" |
|
417 |
! |
|
418 |
||
4798 | 419 |
beScreenDialog |
420 |
"make me a Screen-Dialog Window; that is one which raises above ALL other windows |
|
421 |
(not only st/x ones)" |
|
422 |
||
423 |
"/ the nonInteger handling code is for backward compatibility only. |
|
424 |
type isInteger ifTrue:[ |
|
5721 | 425 |
type := (type bitClear:WindowTypeMask) bitOr:TypeScreenDialog. |
426 |
^ self. |
|
4798 | 427 |
]. |
5614 | 428 |
type := #dialog |
4798 | 429 |
! |
430 |
||
269 | 431 |
beSlave |
432 |
"make this a slave-view. It will be closed automatically, |
|
712 | 433 |
whenever any master of the windowgroup is closed. |
434 |
See also: #bePartner" |
|
269 | 435 |
|
4256 | 436 |
"/ the nonInteger handling code is for backward compatibility only. |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
437 |
type isInteger ifTrue:[ |
5721 | 438 |
type := (type bitClear:MasterSlaveMask) bitOr:TypeSlave. |
439 |
^ self. |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
440 |
]. |
5614 | 441 |
type := #slave |
298 | 442 |
|
443 |
" |
|
444 |
create two topViews within the same group: |
|
445 |
the slave is allowed to be iconified/close independ of the master; |
|
446 |
but if the master is iconified, the slave is also. |
|
447 |
||
448 |
|top1 top2| |
|
449 |
||
712 | 450 |
top1 := StandardSystemView new label:'master'; extent:300@300. |
451 |
top2 := StandardSystemView new label:'slave'; extent:200@200. |
|
298 | 452 |
top1 beMaster. |
453 |
top2 beSlave. |
|
454 |
||
455 |
top1 open. |
|
456 |
top2 openInGroup:(top1 windowGroup) |
|
457 |
" |
|
458 |
||
459 |
"Created: 10.12.1995 / 13:29:10 / cg" |
|
712 | 460 |
"Modified: 25.5.1996 / 11:45:30 / cg" |
269 | 461 |
! |
462 |
||
4256 | 463 |
beToolDialog |
464 |
"/ the nonInteger handling code is for backward compatibility only. |
|
4254 | 465 |
type isInteger ifTrue:[ |
5721 | 466 |
type := (type bitClear:WindowTypeMask) bitOr:TypeToolDialog. |
467 |
^ self. |
|
4254 | 468 |
]. |
5614 | 469 |
type := #dialog |
4254 | 470 |
! |
471 |
||
4256 | 472 |
beToolWindow |
473 |
"/ the nonInteger handling code is for backward compatibility only. |
|
474 |
type isInteger ifTrue:[ |
|
5721 | 475 |
type := (type bitClear:WindowTypeMask) bitOr:TypeToolWindow. |
476 |
^ self. |
|
4256 | 477 |
]. |
5614 | 478 |
type := nil |
4256 | 479 |
! |
480 |
||
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
481 |
beUndecorated |
4798 | 482 |
"make me an undecorated Window" |
483 |
||
4256 | 484 |
"/ the nonInteger handling code is for backward compatibility only. |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
485 |
type isInteger ifTrue:[ |
5721 | 486 |
type := (type bitClear:WindowTypeMask) bitOr:TypeUndecorated. |
487 |
^ self. |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
488 |
]. |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
489 |
type := nil |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
490 |
! |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
491 |
|
5724 | 492 |
beUndecoratedResizable |
493 |
"make me an undecorated Window" |
|
494 |
"experimental - do not use" |
|
5725
68cc101589a5
changed: #beUndecoratedResizable
Claus Gittinger <cg@exept.de>
parents:
5724
diff
changeset
|
495 |
"/ type := #popUpWithFrame |
5724 | 496 |
type := #undecoratedResizable |
497 |
||
498 |
"Created: / 03-03-2011 / 20:22:14 / cg" |
|
499 |
! |
|
500 |
||
501
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
501 |
focusSequence:aCollectionOfSubcomponents |
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
502 |
"define the sequence for stepping through my components." |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
503 |
|
501
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
504 |
windowGroup isNil ifTrue:[ |
5721 | 505 |
windowGroup := self windowGroupClass new. |
501
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
506 |
]. |
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
507 |
windowGroup focusSequence:aCollectionOfSubcomponents. |
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
508 |
|
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
509 |
"Created: 6.3.1996 / 15:37:11 / cg" |
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
510 |
"Modified: 30.4.1996 / 15:41:40 / cg" |
4569 | 511 |
! |
512 |
||
5724 | 513 |
windowType:aTypeSymbol |
514 |
"experimental - do not use" |
|
515 |
||
516 |
type := aTypeSymbol |
|
517 |
||
518 |
"Created: / 03-03-2011 / 20:12:40 / cg" |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
519 |
! ! |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
520 |
|
4836 | 521 |
!TopView methodsFor:'accessing-look'! |
522 |
||
523 |
addTrayIcon:anImageOrForm toolTipMessage:toolTipMessage |
|
524 |
"WIN32 only: add a tray icon for myself; |
|
525 |
may then receive tray*-events in the future." |
|
526 |
||
527 |
self device |
|
5721 | 528 |
addTrayIconFor:self |
529 |
icon:anImageOrForm iconMask:nil |
|
530 |
toolTipMessage:toolTipMessage |
|
4836 | 531 |
|
532 |
" |
|
533 |
|v icon| |
|
534 |
||
535 |
v := StandardSystemView new. |
|
536 |
v openAndWait. |
|
537 |
||
538 |
icon := Icon stxIcon. |
|
539 |
v addTrayIcon:icon toolTipMessage:'Hi There' |
|
540 |
" |
|
541 |
||
542 |
"Modified: / 05-11-2007 / 12:10:48 / cg" |
|
543 |
! ! |
|
544 |
||
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
545 |
!TopView methodsFor:'event handling'! |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
546 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
547 |
keyPress:key x:x y:y |
5614 | 548 |
"notice: this ought to be moved into the upcoming |
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
549 |
StandardSystemViewController." |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
550 |
|
5614 | 551 |
<resource: #keyboard ( #Tab |
5721 | 552 |
#FocusNext #FocusPrevious |
553 |
#CursorDown #CursorUp ) > |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
554 |
|
932 | 555 |
windowGroup notNil ifTrue:[ |
5721 | 556 |
key == #Tab ifTrue:[ |
557 |
self sensor shiftDown ifTrue:[ |
|
558 |
windowGroup focusPrevious |
|
559 |
] ifFalse:[ |
|
560 |
windowGroup focusNext |
|
561 |
]. |
|
562 |
^ self. |
|
563 |
]. |
|
564 |
(key == #FocusNext or:[key == #CursorDown]) ifTrue:[ |
|
565 |
windowGroup focusNext. |
|
566 |
^ self. |
|
567 |
]. |
|
568 |
(key == #FocusPrevious or:[key == #CursorUp]) ifTrue:[ |
|
569 |
windowGroup focusPrevious. |
|
570 |
^ self. |
|
571 |
]. |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
572 |
]. |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
573 |
|
932 | 574 |
super keyPress:key x:x y:y |
575 |
||
4823
3a4246ca2a32
tray stuff only sent to a topView
Claus Gittinger <cg@exept.de>
parents:
4799
diff
changeset
|
576 |
"Created: / 01-02-1996 / 22:08:30 / cg" |
3a4246ca2a32
tray stuff only sent to a topView
Claus Gittinger <cg@exept.de>
parents:
4799
diff
changeset
|
577 |
"Modified: / 31-10-2007 / 01:48:50 / cg" |
501
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
578 |
! |
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
579 |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
580 |
showActivity:someMessage |
5614 | 581 |
"some activityNotification shalt be communicated to the user. |
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
582 |
Default for activity notifications here: ignore them" |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
583 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
584 |
^ self |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
585 |
|
4823
3a4246ca2a32
tray stuff only sent to a topView
Claus Gittinger <cg@exept.de>
parents:
4799
diff
changeset
|
586 |
"Created: / 16-12-1995 / 18:40:13 / cg" |
3a4246ca2a32
tray stuff only sent to a topView
Claus Gittinger <cg@exept.de>
parents:
4799
diff
changeset
|
587 |
"Modified: / 31-10-2007 / 01:48:33 / cg" |
4836 | 588 |
! |
589 |
||
590 |
trayButtonDoubleClick:buttonNr |
|
591 |
"WIN32 only: double-click in the tray. |
|
592 |
Nothing done here - must be redefined in a subclass" |
|
593 |
||
594 |
^ self |
|
595 |
||
596 |
"Created: / 31-10-2007 / 01:46:27 / cg" |
|
597 |
"Modified: / 05-11-2007 / 12:11:24 / cg" |
|
598 |
! |
|
599 |
||
600 |
trayButtonPress:buttonNr |
|
601 |
"WIN32 only: button-press in the tray. |
|
602 |
Nothing done here - must be redefined in a subclass" |
|
603 |
||
604 |
^ self |
|
605 |
||
606 |
"Created: / 31-10-2007 / 01:25:52 / cg" |
|
607 |
"Modified: / 05-11-2007 / 12:11:21 / cg" |
|
608 |
! |
|
609 |
||
610 |
trayButtonRelease:buttonNr |
|
611 |
"WIN32 only: button-release in the tray. |
|
612 |
Nothing done here - must be redefined in a subclass" |
|
613 |
||
614 |
^ self |
|
615 |
||
616 |
"Created: / 31-10-2007 / 01:25:55 / cg" |
|
617 |
"Modified: / 05-11-2007 / 12:11:19 / cg" |
|
618 |
! |
|
619 |
||
620 |
trayMouseMotion |
|
621 |
"WIN32 only: mouse-motion in the tray. |
|
622 |
Nothing done here - must be redefined in a subclass" |
|
623 |
||
624 |
^ self |
|
625 |
||
626 |
"Created: / 31-10-2007 / 01:25:33 / cg" |
|
627 |
"Modified: / 05-11-2007 / 12:11:17 / cg" |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
628 |
! ! |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
629 |
|
5720 | 630 |
!TopView methodsFor:'event handling-window move'! |
631 |
||
632 |
doWindowMove |
|
633 |
"a window move operation |
|
634 |
(only used with modeless popup windows; i.e. windows without decoration, |
|
635 |
which want to be moved by click-motion on the background)" |
|
636 |
||
637 |
|delta| |
|
638 |
||
639 |
CurrentWindowBeingMoved == self ifTrue:[ |
|
6275 | 640 |
delta := self graphicsDevice pointerPosition - CurrentWindowMoveStart. |
5720 | 641 |
(CurrentWindowMoveState notNil |
642 |
or:[ delta r > 5 ]) ifTrue:[ |
|
643 |
CurrentWindowMoveState := #inMove. |
|
6275 | 644 |
CurrentWindowMoveStart := self graphicsDevice pointerPosition. |
5720 | 645 |
self origin:(self origin + delta). |
646 |
]. |
|
647 |
]. |
|
648 |
||
649 |
"Created: / 03-03-2011 / 19:13:08 / cg" |
|
650 |
! |
|
651 |
||
652 |
endWindowMove |
|
653 |
"a window move operation |
|
654 |
(only used with modeless popup windows; i.e. windows without decoration, |
|
655 |
which want to be moved by click-motion on the background)" |
|
656 |
||
657 |
CurrentWindowBeingMoved := nil. |
|
658 |
||
659 |
"Created: / 03-03-2011 / 19:17:24 / cg" |
|
660 |
! |
|
661 |
||
662 |
startWindowMove |
|
663 |
"a window move operation |
|
664 |
(only used with modeless popup windows; i.e. windows without decoration, |
|
665 |
which want to be moved by click-motion on the background)" |
|
666 |
||
667 |
CurrentWindowBeingMoved := self. |
|
6275 | 668 |
CurrentWindowMoveStart := self graphicsDevice pointerPosition. |
5720 | 669 |
CurrentWindowMoveState := nil. |
670 |
||
671 |
"Created: / 03-03-2011 / 19:09:39 / cg" |
|
5723
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
672 |
! |
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
673 |
|
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
674 |
startWindowMoveOnButtonPress |
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
675 |
"this allows undecorated windows (i.e. modeless popups) to be moved by |
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
676 |
drag-moving in their window area |
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
677 |
(similar to how mac windows and realplayer are moved). |
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
678 |
Return true here, if a window move should be initiated" |
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
679 |
|
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
680 |
^ self windowGroup isModal not |
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
681 |
and:[ self topView isPopUpView ] |
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
682 |
|
d75bdd85df13
added: #startWindowMoveOnButtonPress
Claus Gittinger <cg@exept.de>
parents:
5721
diff
changeset
|
683 |
"Created: / 03-03-2011 / 19:30:59 / cg" |
5720 | 684 |
! ! |
685 |
||
4992
f5ad380a9967
+ flyByHelpDependsOnPositionIn:
Claus Gittinger <cg@exept.de>
parents:
4982
diff
changeset
|
686 |
!TopView methodsFor:'help'! |
f5ad380a9967
+ flyByHelpDependsOnPositionIn:
Claus Gittinger <cg@exept.de>
parents:
4982
diff
changeset
|
687 |
|
f5ad380a9967
+ flyByHelpDependsOnPositionIn:
Claus Gittinger <cg@exept.de>
parents:
4982
diff
changeset
|
688 |
flyByHelpDependsOnPositionIn:aView |
f5ad380a9967
+ flyByHelpDependsOnPositionIn:
Claus Gittinger <cg@exept.de>
parents:
4982
diff
changeset
|
689 |
"subclasses where the help-text depends upon the pointer position might |
f5ad380a9967
+ flyByHelpDependsOnPositionIn:
Claus Gittinger <cg@exept.de>
parents:
4982
diff
changeset
|
690 |
want to redefine this" |
f5ad380a9967
+ flyByHelpDependsOnPositionIn:
Claus Gittinger <cg@exept.de>
parents:
4982
diff
changeset
|
691 |
|
f5ad380a9967
+ flyByHelpDependsOnPositionIn:
Claus Gittinger <cg@exept.de>
parents:
4982
diff
changeset
|
692 |
^ false |
f5ad380a9967
+ flyByHelpDependsOnPositionIn:
Claus Gittinger <cg@exept.de>
parents:
4982
diff
changeset
|
693 |
! ! |
f5ad380a9967
+ flyByHelpDependsOnPositionIn:
Claus Gittinger <cg@exept.de>
parents:
4982
diff
changeset
|
694 |
|
2466 | 695 |
!TopView methodsFor:'help stubs'! |
696 |
||
3697 | 697 |
flyByHelpTextFor:aSubView |
698 |
"this will vanish - its temporarily here to allow for stdSysViews to be |
|
699 |
used as a masterApp for dialogs" |
|
700 |
||
701 |
^ nil |
|
702 |
! |
|
703 |
||
704 |
helpTextFor:aSubView |
|
705 |
"this will vanish - its temporarily here to allow for stdSysViews to be |
|
706 |
used as a masterApp for dialogs" |
|
707 |
||
708 |
^ nil |
|
709 |
! |
|
710 |
||
2466 | 711 |
showHelp:aHelpText for:aView |
712 |
"dummy - added in case a regular topView is installed |
|
713 |
as a dialogs masterApplication. |
|
714 |
Concrete application subclasses may redefine this to |
|
715 |
display a help text in one of its message areas" |
|
716 |
! ! |
|
717 |
||
3884 | 718 |
!TopView methodsFor:'initialization & release'! |
2573 | 719 |
|
4438 | 720 |
addToCurrentProject |
721 |
"for compatibility with views which can" |
|
722 |
! |
|
723 |
||
4178
e176977f5f2c
initial focus - allow explicit setup via InputFieldSpec
Claus Gittinger <cg@exept.de>
parents:
4140
diff
changeset
|
724 |
assignInitialKeyboardFocus |
e176977f5f2c
initial focus - allow explicit setup via InputFieldSpec
Claus Gittinger <cg@exept.de>
parents:
4140
diff
changeset
|
725 |
"assign the initial keyboard focus to a 'useful' component." |
e176977f5f2c
initial focus - allow explicit setup via InputFieldSpec
Claus Gittinger <cg@exept.de>
parents:
4140
diff
changeset
|
726 |
|
4180 | 727 |
|componentWithInitialFocus| |
4178
e176977f5f2c
initial focus - allow explicit setup via InputFieldSpec
Claus Gittinger <cg@exept.de>
parents:
4140
diff
changeset
|
728 |
|
4180 | 729 |
"/ |keyboardProcessor componentWithInitialFocus| |
730 |
"/ |
|
731 |
"/ keyboardProcessor := self keyboardProcessor. |
|
732 |
"/ keyboardProcessor notNil ifTrue:[ |
|
733 |
"/ componentWithInitialFocus := keyboardProcessor componentWithInitialFocus. |
|
734 |
"/ componentWithInitialFocus notNil ifTrue:[ |
|
735 |
"/ self windowGroup focusView:componentWithInitialFocus byTab:true. |
|
5614 | 736 |
"/ "/ componentWithInitialFocus requestFocus. |
4180 | 737 |
"/ ^ self. |
738 |
"/ ] |
|
739 |
"/ ]. |
|
740 |
||
5614 | 741 |
(windowGroup notNil |
4180 | 742 |
and:[(componentWithInitialFocus := windowGroup defaultKeyboardConsumer) notNil]) ifTrue:[ |
5721 | 743 |
windowGroup focusView:componentWithInitialFocus byTab:true "false". |
4180 | 744 |
] ifFalse:[ |
5721 | 745 |
self assignKeyboardFocusToFirstInputField. |
4178
e176977f5f2c
initial focus - allow explicit setup via InputFieldSpec
Claus Gittinger <cg@exept.de>
parents:
4140
diff
changeset
|
746 |
]. |
e176977f5f2c
initial focus - allow explicit setup via InputFieldSpec
Claus Gittinger <cg@exept.de>
parents:
4140
diff
changeset
|
747 |
! |
e176977f5f2c
initial focus - allow explicit setup via InputFieldSpec
Claus Gittinger <cg@exept.de>
parents:
4140
diff
changeset
|
748 |
|
2573 | 749 |
destroy |
750 |
"the receiver is to be destroyed - look for partners and slaves" |
|
751 |
||
752 |
|wg dev| |
|
753 |
||
754 |
wg := windowGroup. "/ have to fetch windowGroup before; |
|
6275 | 755 |
dev := self graphicsDevice. "/ and device ... |
2573 | 756 |
super destroy. "/ ... since destroy nils em |
757 |
||
758 |
"/ dev notNil ifTrue:[ |
|
759 |
"/ dev flush |
|
760 |
"/ ]. |
|
761 |
||
762 |
"/ |
|
763 |
"/ destroy slaves and partners |
|
764 |
"/ |
|
765 |
self masterSlaveMessage:#destroy inGroup:wg |
|
766 |
||
3446 | 767 |
"Modified: 20.3.1997 / 22:14:16 / cg" |
768 |
! |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
769 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
770 |
initialize |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
771 |
"initialize the topViews position for the screens center" |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
772 |
|
5971 | 773 |
|screenCenter| |
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
774 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
775 |
super initialize. |
6275 | 776 |
self graphicsDevice initializeTopViewHookFor:self. |
2874
213e4f118402
postRealize and initializeHooks added.
Claus Gittinger <cg@exept.de>
parents:
2808
diff
changeset
|
777 |
|
5625
09972b8ce40a
comment/format in: #initialize
Claus Gittinger <cg@exept.de>
parents:
5620
diff
changeset
|
778 |
"/ MULTI SCREEN |
6275 | 779 |
screenCenter := self graphicsDevice centerOfMonitorHavingPointer rounded. |
5614 | 780 |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
781 |
left := screenCenter x - (width // 2). |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
782 |
top := screenCenter y - (height // 2). |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
783 |
type := 0 |
5625
09972b8ce40a
comment/format in: #initialize
Claus Gittinger <cg@exept.de>
parents:
5620
diff
changeset
|
784 |
|
09972b8ce40a
comment/format in: #initialize
Claus Gittinger <cg@exept.de>
parents:
5620
diff
changeset
|
785 |
"Modified: / 22-10-2010 / 11:03:00 / cg" |
2874
213e4f118402
postRealize and initializeHooks added.
Claus Gittinger <cg@exept.de>
parents:
2808
diff
changeset
|
786 |
! |
213e4f118402
postRealize and initializeHooks added.
Claus Gittinger <cg@exept.de>
parents:
2808
diff
changeset
|
787 |
|
213e4f118402
postRealize and initializeHooks added.
Claus Gittinger <cg@exept.de>
parents:
2808
diff
changeset
|
788 |
postRealize |
213e4f118402
postRealize and initializeHooks added.
Claus Gittinger <cg@exept.de>
parents:
2808
diff
changeset
|
789 |
super postRealize. |
3370 | 790 |
|
791 |
keyboardProcessor isNil ifTrue:[ |
|
6275 | 792 |
keyboardProcessor := KeyboardProcessor new. |
3370 | 793 |
]. |
794 |
||
6275 | 795 |
self graphicsDevice realizedTopViewHookFor:self |
3706 | 796 |
! |
797 |
||
4407 | 798 |
realize |
799 |
self isMarkedAsUnmappedModalBox ifTrue:[ |
|
5721 | 800 |
"/ must clear this flag |
801 |
"/ - otherwise realize thinks it is already realized. |
|
802 |
realized := false. |
|
803 |
self unmarkAsUnmappedModalBox. |
|
4407 | 804 |
]. |
805 |
super realize. |
|
6275 | 806 |
! |
807 |
||
808 |
release |
|
809 |
keyboardProcessor notNil ifTrue:[ |
|
810 |
keyboardProcessor release. |
|
811 |
keyboardProcessor := nil. |
|
812 |
]. |
|
813 |
super release |
|
3446 | 814 |
! ! |
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
815 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
816 |
!TopView methodsFor:'misc'! |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
817 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
818 |
raiseDeiconified |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
819 |
"deiconify & bring to front" |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
820 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
821 |
self isCollapsed ifTrue:[ |
3818
6a5b62a616a7
do not unmap in order to raiseDeiconified
Claus Gittinger <cg@exept.de>
parents:
3768
diff
changeset
|
822 |
"/ self unmap. |
5721 | 823 |
self realize. |
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
824 |
]. |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
825 |
self raise |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
826 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
827 |
" |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
828 |
Transcript topView raiseDeiconified |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
829 |
" |
645 | 830 |
|
831 |
"Modified: 3.5.1996 / 23:49:36 / stefan" |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
832 |
! |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
833 |
|
2124
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
834 |
waitUntilClosed |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
835 |
"wait until the receiver has been closed. |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
836 |
Can be used to synchronize multiple-window applications, |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
837 |
and (especially) to wait until an application session is finished |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
838 |
when invoking commands with the rDoit mechanism" |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
839 |
|
6275 | 840 |
[self drawableId isNil] whileFalse:[ |
841 |
Delay waitForSeconds:0.1. |
|
2124
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
842 |
]. |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
843 |
|
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
844 |
"asynchronous: |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
845 |
|
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
846 |
EditTextView open |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
847 |
" |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
848 |
|
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
849 |
"synchronous: |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
850 |
|
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
851 |
EditTextView open topView waitUntilClosed |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
852 |
" |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
853 |
|
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
854 |
"Modified: / 20.5.1998 / 18:03:37 / cg" |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
855 |
! |
750a1fc2a510
added #waitUntilClosed (mostly for rdoit)
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
856 |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
857 |
withCursor:aCursor do:aBlock |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
858 |
"evaluate aBlock while showing aCursor in all my views. |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
859 |
Return the value as returned by aBlock." |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
860 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
861 |
windowGroup notNil ifTrue:[ |
5721 | 862 |
^ windowGroup withCursor:aCursor do:aBlock |
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
863 |
]. |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
864 |
^ super withCursor:aCursor do:aBlock |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
865 |
! ! |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
866 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
867 |
!TopView methodsFor:'queries'! |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
868 |
|
4338 | 869 |
beepWhenOpening |
5620 | 870 |
"can be redefined by error and warnBoxes" |
871 |
||
4338 | 872 |
^ false |
5620 | 873 |
|
874 |
"Modified: / 21-10-2010 / 17:05:08 / cg" |
|
4338 | 875 |
! |
876 |
||
269 | 877 |
heightIncludingBorder |
878 |
"return the views overall-height" |
|
879 |
||
880 |
^ height |
|
881 |
! |
|
882 |
||
883 |
isCollapsed |
|
884 |
"ST80 compatibility: return true if the view is not shown (i.e. iconified)" |
|
885 |
||
1536 | 886 |
"/ ^ device windowIsIconified:drawableId |
269 | 887 |
^ shown not |
1536 | 888 |
|
889 |
"Modified: 4.4.1997 / 14:44:39 / cg" |
|
269 | 890 |
! |
891 |
||
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
892 |
isDialogView |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
893 |
"return true if this is a dialog view" |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
894 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
895 |
type isInteger ifTrue:[ |
5721 | 896 |
^ (type bitAnd:WindowTypeMask) == TypeDialog |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
897 |
]. |
4256 | 898 |
"/ the nonInteger handling code is for backward compatibility only. |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
899 |
^ type == #dialog |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
900 |
! |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
901 |
|
4500 | 902 |
isMDIClientView |
5724 | 903 |
type isInteger ifFalse:[^ false]. |
904 |
||
4498 | 905 |
^ (type bitAnd:MDIClientMask) == MDIClient. |
5724 | 906 |
|
907 |
"Modified: / 03-03-2011 / 20:14:09 / cg" |
|
4498 | 908 |
! |
909 |
||
3620 | 910 |
isMaster |
911 |
"return true, if this is a masterView" |
|
912 |
||
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
913 |
type isInteger ifTrue:[ |
5721 | 914 |
^ (type bitAnd:MasterSlaveMask) == TypeMaster |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
915 |
]. |
4256 | 916 |
"/ the nonInteger handling code is for backward compatibility only. |
3620 | 917 |
^ type == #master |
918 |
! |
|
919 |
||
3347 | 920 |
isModal |
921 |
"return true, if the receiver has been opened modal" |
|
922 |
||
923 |
windowGroup isNil ifTrue:[^ false]. |
|
3446 | 924 |
^ windowGroup isModal |
925 |
! |
|
3347 | 926 |
|
3621 | 927 |
isPartner |
928 |
"return true, if this is a partnerView" |
|
929 |
||
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
930 |
type isInteger ifTrue:[ |
5721 | 931 |
^ (type bitAnd:MasterSlaveMask) == TypePartner |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
932 |
]. |
4256 | 933 |
"/ the nonInteger handling code is for backward compatibility only. |
3621 | 934 |
^ type == #partner |
935 |
! |
|
936 |
||
1398 | 937 |
isPopUpView |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
938 |
"return true if I am a popup view. |
5718 | 939 |
(i.e. I want to come up without any decoration and popUp to top immediately)" |
1398 | 940 |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
941 |
type isInteger ifTrue:[ |
5718 | 942 |
^ (type bitAnd:WindowTypeMask) == TypePopUp |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
943 |
]. |
4256 | 944 |
"/ the nonInteger handling code is for backward compatibility only. |
1398 | 945 |
^ type == #popup |
946 |
||
5718 | 947 |
"Created: / 28-02-1997 / 22:12:30 / cg" |
948 |
"Modified: / 03-03-2011 / 15:00:35 / cg" |
|
1398 | 949 |
! |
950 |
||
4798 | 951 |
isScreenDialog |
952 |
"return true if I am a screen dialog view. |
|
5656 | 953 |
(i.e. I want to come up above all other windows)" |
4798 | 954 |
|
955 |
type isInteger ifTrue:[ |
|
5656 | 956 |
^ (type bitAnd:WindowTypeMask) == TypeScreenDialog |
4798 | 957 |
]. |
958 |
"/ the nonInteger handling code is for backward compatibility only. |
|
959 |
^ false |
|
5656 | 960 |
|
961 |
"Modified: / 01-12-2010 / 12:15:59 / cg" |
|
4798 | 962 |
! |
963 |
||
3620 | 964 |
isSlave |
965 |
"return true, if this is a slaveView" |
|
966 |
||
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
967 |
type isInteger ifTrue:[ |
5721 | 968 |
^ (type bitAnd:MasterSlaveMask) == TypeSlave |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
969 |
]. |
4256 | 970 |
"/ the nonInteger handling code is for backward compatibility only. |
3620 | 971 |
^ type == #slave |
972 |
! |
|
973 |
||
4256 | 974 |
isToolDialog |
975 |
"return true if I am a toolWindow dialog view. |
|
5717 | 976 |
(i.e. I want to come up with a smaller window-title area, without minimize and maximize buttons)" |
4256 | 977 |
|
978 |
type isInteger ifTrue:[ |
|
5717 | 979 |
^ (type bitAnd:WindowTypeMask) == TypeToolDialog |
4256 | 980 |
]. |
981 |
"/ the nonInteger handling code is for backward compatibility only. |
|
982 |
^ false |
|
5717 | 983 |
|
984 |
"Modified: / 03-03-2011 / 14:59:42 / cg" |
|
4256 | 985 |
! |
986 |
||
4254 | 987 |
isToolWindow |
988 |
"return true if I am a toolWindow view. |
|
5717 | 989 |
(i.e. I want to come up with a smaller window-title area, without minimize and maximize buttons)" |
4254 | 990 |
|
991 |
type isInteger ifTrue:[ |
|
5717 | 992 |
^ (type bitAnd:WindowTypeMask) == TypeToolWindow |
4254 | 993 |
]. |
4256 | 994 |
"/ the nonInteger handling code is for backward compatibility only. |
995 |
^ false |
|
5717 | 996 |
|
997 |
"Modified: / 03-03-2011 / 14:59:38 / cg" |
|
4254 | 998 |
! |
999 |
||
1481 | 1000 |
isTopView |
1001 |
"return true, since I am a topView" |
|
1002 |
||
1003 |
^ true |
|
1004 |
||
1005 |
"Created: 22.3.1997 / 14:45:55 / cg" |
|
1006 |
! |
|
1007 |
||
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1008 |
isUndecoratedView |
5717 | 1009 |
"return true if I am an undecorated view (no minimize, maximize and close buttons)." |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1010 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1011 |
type isInteger ifTrue:[ |
5717 | 1012 |
^ (type bitAnd:WindowTypeMask) == TypeUndecorated |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1013 |
]. |
4256 | 1014 |
"/ the nonInteger handling code is for backward compatibility only. |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1015 |
^ false |
5717 | 1016 |
|
1017 |
"Modified: / 03-03-2011 / 15:00:22 / cg" |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1018 |
! |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1019 |
|
269 | 1020 |
preferredExtent |
1021 |
"return my preferred extent - this is the minimum size I would like to have. |
|
1022 |
The default here is the classes default extent, |
|
1023 |
however many subclasses redefine this to compute the actual value |
|
1024 |
depending on the sizes of the contents or subcomponents." |
|
1025 |
||
5059
0b3c75d7dbad
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
4992
diff
changeset
|
1026 |
"/ If I have an explicit preferredExtent.. |
0b3c75d7dbad
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
4992
diff
changeset
|
1027 |
explicitExtent notNil ifTrue:[ |
5721 | 1028 |
^ explicitExtent |
5059
0b3c75d7dbad
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
4992
diff
changeset
|
1029 |
]. |
966
8e202c385338
handle Text items in xOfCol...
Claus Gittinger <cg@exept.de>
parents:
960
diff
changeset
|
1030 |
|
5059
0b3c75d7dbad
changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents:
4992
diff
changeset
|
1031 |
"/ If I have a cached preferredExtent value.. |
761
34d17118452a
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
712
diff
changeset
|
1032 |
preferredExtent notNil ifTrue:[ |
5721 | 1033 |
^ preferredExtent |
761
34d17118452a
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
712
diff
changeset
|
1034 |
]. |
269 | 1035 |
^ self class defaultExtent |
761
34d17118452a
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
712
diff
changeset
|
1036 |
|
966
8e202c385338
handle Text items in xOfCol...
Claus Gittinger <cg@exept.de>
parents:
960
diff
changeset
|
1037 |
"Modified: 19.7.1996 / 20:45:41 / cg" |
269 | 1038 |
! |
1039 |
||
1040 |
widthIncludingBorder |
|
1041 |
"return the views overall-width" |
|
1042 |
||
1043 |
^ width |
|
2808
627ce4f2a090
respond to #window - for compatibility with appModel
Claus Gittinger <cg@exept.de>
parents:
2799
diff
changeset
|
1044 |
! |
627ce4f2a090
respond to #window - for compatibility with appModel
Claus Gittinger <cg@exept.de>
parents:
2799
diff
changeset
|
1045 |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1046 |
windowStyle |
4254 | 1047 |
"return a symbol describing my style which should be one of |
1048 |
#dialog, #popUp, #undecorated, #normal or #toolWindow. |
|
1049 |
This is used by the device as a decoration hint." |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1050 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1051 |
|t| |
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1052 |
|
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1053 |
type isInteger ifTrue:[ |
5721 | 1054 |
t := type bitAnd:WindowTypeMask. |
1055 |
t == TypeUndecorated ifTrue:[^ #undecorated]. |
|
1056 |
t == TypeDialog ifTrue:[^ #dialog]. |
|
1057 |
t == TypePopUp ifTrue:[^ #popUp]. |
|
1058 |
t == TypeToolWindow ifTrue:[^ #toolWindow]. |
|
1059 |
t == TypeToolDialog ifTrue:[^ #toolDialog]. |
|
1060 |
^ #normal |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1061 |
]. |
4256 | 1062 |
"/ the nonInteger handling code is for backward compatibility only. |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1063 |
^ super windowStyle |
269 | 1064 |
! ! |
1065 |
||
4338 | 1066 |
!TopView methodsFor:'realization'! |
1067 |
||
1068 |
openModal |
|
1069 |
"added bell to wake up user" |
|
1070 |
||
1071 |
(self beepWhenOpening) ifTrue:[ |
|
5721 | 1072 |
self beep. |
4338 | 1073 |
]. |
1074 |
super openModal |
|
1075 |
||
1076 |
" |
|
1077 |
self warn:'hello' |
|
1078 |
self information:'hello' |
|
1079 |
ModalBox new openModal |
|
1080 |
WarningBox new openModal |
|
1081 |
InfoBox new openModal |
|
1082 |
" |
|
1083 |
||
1084 |
"Modified: 28.5.1996 / 16:59:01 / cg" |
|
1085 |
! ! |
|
1086 |
||
3881 | 1087 |
!TopView methodsFor:'show & hide'! |
1399
a10829e54d2c
fixPosition moved from ModalBox
Claus Gittinger <cg@exept.de>
parents:
1398
diff
changeset
|
1088 |
|
4353 | 1089 |
activate |
1090 |
"added for MS-windows - much like raise. |
|
1091 |
Raise/Activate seem to work only within my own (ST/X)-windows; |
|
1092 |
they do not raise one of my views above another (for example: command.com)-window. |
|
5614 | 1093 |
Can anyone tell me what the difference between raise, activate and setForeground |
4353 | 1094 |
really is (I mean really - not what is written in the crappy documentation)" |
1095 |
||
6275 | 1096 |
self drawableId isNil ifTrue:[self create]. |
1097 |
self graphicsDevice activateWindow:self drawableId |
|
4353 | 1098 |
|
1099 |
" |
|
1100 |
Transcript topView activate |
|
1101 |
" |
|
1102 |
! |
|
1103 |
||
1399
a10829e54d2c
fixPosition moved from ModalBox
Claus Gittinger <cg@exept.de>
parents:
1398
diff
changeset
|
1104 |
fixPosition:aPoint |
5614 | 1105 |
"set origin to aPoint, but make sure, that the box is fully visible |
1399
a10829e54d2c
fixPosition moved from ModalBox
Claus Gittinger <cg@exept.de>
parents:
1398
diff
changeset
|
1106 |
by shifting it into the visible screen area if nescessary. |
a10829e54d2c
fixPosition moved from ModalBox
Claus Gittinger <cg@exept.de>
parents:
1398
diff
changeset
|
1107 |
This prevents invisible modalBoxes (which you could never close)." |
a10829e54d2c
fixPosition moved from ModalBox
Claus Gittinger <cg@exept.de>
parents:
1398
diff
changeset
|
1108 |
|
a10829e54d2c
fixPosition moved from ModalBox
Claus Gittinger <cg@exept.de>
parents:
1398
diff
changeset
|
1109 |
self origin:aPoint. |
a10829e54d2c
fixPosition moved from ModalBox
Claus Gittinger <cg@exept.de>
parents:
1398
diff
changeset
|
1110 |
self makeFullyVisible |
a10829e54d2c
fixPosition moved from ModalBox
Claus Gittinger <cg@exept.de>
parents:
1398
diff
changeset
|
1111 |
|
a10829e54d2c
fixPosition moved from ModalBox
Claus Gittinger <cg@exept.de>
parents:
1398
diff
changeset
|
1112 |
"Created: 28.2.1997 / 16:39:31 / cg" |
1401
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1113 |
! |
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1114 |
|
5272
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1115 |
hide |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1116 |
|masterGroup myApplication| |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1117 |
|
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1118 |
realized ifFalse:[^ self]. |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1119 |
|
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1120 |
"/ if I am a modal-opened application's view |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1121 |
"/ (for example, an UIPainter) give it a chance |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1122 |
"/ to intercept the hide. |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1123 |
"/ Q: shouln't this be done in the windowGroup, |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1124 |
"/ by sending a closerequest always and letting popUps |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1125 |
"/ respond by hiding ??? |
5287 | 1126 |
|
5272
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1127 |
(windowGroup notNil |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1128 |
and:[ windowGroup isModal ]) ifTrue:[ |
5721 | 1129 |
masterGroup := windowGroup previousGroup. |
1130 |
myApplication := self application. |
|
5272
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1131 |
|
5721 | 1132 |
(myApplication notNil |
1133 |
and:[ masterGroup isNil or:[myApplication ~= masterGroup application]]) ifTrue:[ |
|
1134 |
AbortOperationRequest handle:[:ex | |
|
1135 |
"/ in case the close is cought by the application |
|
1136 |
^ self. |
|
1137 |
] do:[ |
|
1138 |
myApplication closeRequest. |
|
5287 | 1139 |
|
5721 | 1140 |
"/ if myApp called closeDownViews, it wants me to hide. |
1141 |
"/ otherwise, it has redefined closeRequest to return without closeDownViews. |
|
1142 |
realized ifTrue:[ |
|
1143 |
"/ closeDownViews was not called - app wants me to remain open |
|
1144 |
^ self |
|
1145 |
]. |
|
1146 |
]. |
|
1147 |
]. |
|
5272
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1148 |
]. |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1149 |
super hide. |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1150 |
! |
2e4ccb226a3f
hide redefined to allow abort in close.
Claus Gittinger <cg@exept.de>
parents:
5261
diff
changeset
|
1151 |
|
3916 | 1152 |
map |
1153 |
"make the view visible on the screen. |
|
1154 |
For topViews, the windowManager will choose (or ask for) the |
|
1155 |
views position on the screen. |
|
1156 |
Notice: |
|
5721 | 1157 |
Actually, this method is only valid for topViews; |
1158 |
however, it is defined here to allow things like 'Button new realize'" |
|
3916 | 1159 |
|
1160 |
self mapAt:(self origin) iconified:false |
|
1161 |
! |
|
1162 |
||
1821
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1163 |
mapIconified |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1164 |
"make the view visible but iconified. |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1165 |
In contrast to map, which does it non-iconified" |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1166 |
|
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1167 |
realized ifFalse:[ |
6275 | 1168 |
" |
1169 |
now, make the view visible |
|
1170 |
" |
|
1171 |
realized := true. |
|
1172 |
self graphicsDevice |
|
1173 |
mapView:self id:self drawableId iconified:true |
|
1174 |
atX:left y:top width:width height:height |
|
1175 |
minExtent:(self minExtent) maxExtent:(self maxExtent) |
|
1821
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1176 |
] |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1177 |
|
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1178 |
"Modified: 25.2.1997 / 22:44:33 / cg" |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1179 |
"Created: 24.7.1997 / 12:48:21 / cg" |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1180 |
! |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1181 |
|
1401
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1182 |
positionOffset |
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1183 |
"return the delta, by which the box should be |
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1184 |
displaced from the mouse pointer. |
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1185 |
Here, the boxes center is returned as a default. |
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1186 |
Usually redefined in subclasses to have the most convenient |
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1187 |
ok-button appear under the pointer." |
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1188 |
|
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1189 |
^ self extent // 2 |
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1190 |
|
fca5f070bc0b
positionOffset also defined here
Claus Gittinger <cg@exept.de>
parents:
1399
diff
changeset
|
1191 |
"Created: 28.2.1997 / 22:56:34 / cg" |
4353 | 1192 |
! |
1193 |
||
1194 |
setForegroundWindow |
|
4522 | 1195 |
"make a window the foreground window (so raise and activate it). |
1196 |
Under Win 98/Me/XP/2000 the window is not raised/activated, if a window from |
|
1197 |
a different process is currently active - in this case the title bar/icon is flashed. |
|
4974
bd8ff34bd381
Comment in #raise/#setForegroundWindow
Stefan Vogel <sv@exept.de>
parents:
4961
diff
changeset
|
1198 |
this also raises the priority of the sending thread slightly. |
bd8ff34bd381
Comment in #raise/#setForegroundWindow
Stefan Vogel <sv@exept.de>
parents:
4961
diff
changeset
|
1199 |
|
5614 | 1200 |
Mark a TopView as #beScreenDialog, to send this on open." |
4353 | 1201 |
|
6275 | 1202 |
self drawableId isNil ifTrue:[self create]. |
1203 |
self graphicsDevice setForegroundWindow:self drawableId |
|
4353 | 1204 |
|
1205 |
" |
|
4974
bd8ff34bd381
Comment in #raise/#setForegroundWindow
Stefan Vogel <sv@exept.de>
parents:
4961
diff
changeset
|
1206 |
Transcript topView raise |
4353 | 1207 |
Transcript topView setForegroundWindow |
1208 |
" |
|
1399
a10829e54d2c
fixPosition moved from ModalBox
Claus Gittinger <cg@exept.de>
parents:
1398
diff
changeset
|
1209 |
! ! |
a10829e54d2c
fixPosition moved from ModalBox
Claus Gittinger <cg@exept.de>
parents:
1398
diff
changeset
|
1210 |
|
269 | 1211 |
!TopView methodsFor:'startup'! |
1212 |
||
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1213 |
openAt:aPosition transientFor:anotherView |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1214 |
"force the view to be opened at some position on the screen |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1215 |
AND tell the windowManager to NOT let the user choose a position |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1216 |
(i.e. suppress any ghostframe). |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1217 |
The view is marked as being a transient (i.e. pop-up) view for |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1218 |
anotherView - it will deiconify with it and (on some windowManagers) |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1219 |
have no iconify button of its own. |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1220 |
Notice, that its up to the windowManager to care for any borders - |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1221 |
it seems not deterministic, where the view actually ends up being positioned. |
909
d2d624d57f61
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
908
diff
changeset
|
1222 |
Not all windowManagers (olwm) honor this - some insist on it ..." |
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1223 |
|
5887 | 1224 |
<resource: #obsolete> |
1225 |
||
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1226 |
|otherId| |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1227 |
|
5887 | 1228 |
self obsoleteMethodWarning. |
1229 |
||
6275 | 1230 |
self drawableId isNil ifTrue:[self create]. |
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1231 |
anotherView isNil ifTrue:[ |
6275 | 1232 |
otherId := self drawableId. |
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1233 |
] ifFalse:[ |
5887 | 1234 |
anotherView create. |
1235 |
otherId := anotherView id. |
|
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1236 |
]. |
6275 | 1237 |
self graphicsDevice setTransient:self drawableId for:otherId. |
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1238 |
self origin:aPosition. |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1239 |
self open |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1240 |
|
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1241 |
" |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1242 |
|v1 v2| |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1243 |
|
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1244 |
v1 := StandardSystemView extent:300@300. |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1245 |
v2 := StandardSystemView extent:300@300. |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1246 |
v1 open. |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1247 |
v2 openAt:0@0 transientFor:v1. |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1248 |
" |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1249 |
|
960 | 1250 |
" |
1251 |
|v1| |
|
1252 |
||
1253 |
v1 := StandardSystemView extent:300@300. |
|
1254 |
v1 openAt:0@0 transientFor:v1. |
|
1255 |
" |
|
1256 |
||
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1257 |
"Created: 28.6.1996 / 10:51:55 / cg" |
1836 | 1258 |
"Modified: 28.7.1997 / 18:53:16 / cg" |
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1259 |
! |
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1260 |
|
1353 | 1261 |
openDisplayAt:aPoint |
1262 |
"ST-80 compatibility: open the view centered around aPoint" |
|
1263 |
||
1264 |
^ self openModelessAt:(aPoint - (self extent//2)) |
|
1265 |
||
1266 |
" |
|
1267 |
(TopView new extent:200@200) openDisplayAt:300@300 |
|
1268 |
" |
|
1269 |
! |
|
1270 |
||
1821
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1271 |
openIconified |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1272 |
"open the view in iconified state" |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1273 |
|
1829 | 1274 |
self openModelessAt:nil iconified:true |
1821
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1275 |
|
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1276 |
" |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1277 |
FileBrowser new openIconified |
1829 | 1278 |
ChangesBrowser new openIconified |
1821
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1279 |
" |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1280 |
|
1829 | 1281 |
"Modified: 24.7.1997 / 14:54:58 / cg" |
1821
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1282 |
! |
d2b91606dc55
added #mapIconified and #openIconified.
Claus Gittinger <cg@exept.de>
parents:
1765
diff
changeset
|
1283 |
|
1336 | 1284 |
openIn:aBoundaryRectangle |
5614 | 1285 |
"set origin & extent and open. |
1336 | 1286 |
The given extent overrides the receivers preferredExtent. |
1287 |
Added for ST-80 compatibility" |
|
1288 |
||
5614 | 1289 |
self |
5721 | 1290 |
origin:aBoundaryRectangle origin; |
1291 |
extent:aBoundaryRectangle extent; |
|
1292 |
sizeFixed:true. |
|
1336 | 1293 |
self open |
1294 |
||
1295 |
"Modified: 12.2.1997 / 11:58:21 / cg" |
|
1296 |
! |
|
1297 |
||
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1298 |
openTransientAt:aPosition |
907
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1299 |
"force the view to be opened at soem position on the screen |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1300 |
AND tell the windowManager to NOT let the user choose a position |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1301 |
(i.e. suppress any ghostframe). |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1302 |
Notice, that its up to the windowManager to care for any borders - |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1303 |
it seems not deterministic, where the view actually ends up being positioned. |
909
d2d624d57f61
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
908
diff
changeset
|
1304 |
Not all windowManagers (olwm) honor this - some insist on it ..." |
907
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1305 |
|
5887 | 1306 |
<resource: #obsolete> |
1307 |
self obsoleteMethodWarning. |
|
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1308 |
self openAt:aPosition transientFor:nil |
907
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1309 |
|
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1310 |
"normal open: |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1311 |
|
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1312 |
|v| |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1313 |
|
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1314 |
v := StandardSystemView extent:300@300. |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1315 |
v open |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1316 |
" |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1317 |
|
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1318 |
"open at position: |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1319 |
|
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1320 |
|v| |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1321 |
|
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1322 |
v := StandardSystemView extent:300@300. |
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1323 |
v openTransientAt:10@10 |
907
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1324 |
" |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1325 |
|
908
0fbe814e06ee
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
907
diff
changeset
|
1326 |
"Created: 28.6.1996 / 10:52:30 / cg" |
909
d2d624d57f61
renamed #openAt: to #openTransientAt:
Claus Gittinger <cg@exept.de>
parents:
908
diff
changeset
|
1327 |
"Modified: 28.6.1996 / 10:55:15 / cg" |
907
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1328 |
! |
6bc7254cdd6a
added #openAt: - open a view at forced position
Claus Gittinger <cg@exept.de>
parents:
775
diff
changeset
|
1329 |
|
269 | 1330 |
openWithExtent:anExtent |
5614 | 1331 |
"set extent and open. The given extent overrides the |
269 | 1332 |
receivers preferredExtent. |
1333 |
Added for ST-80 compatibility" |
|
1334 |
||
1335 |
self extent:anExtent; sizeFixed:true. |
|
1336 |
self open |
|
625
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
1337 |
! |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
1338 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
1339 |
openWithPriority:aPriority |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
1340 |
"open the view, run the windowgroup process at |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
1341 |
other than UserScehdulingPriority." |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
1342 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
1343 |
self open. |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
1344 |
windowGroup process priority:aPriority. |
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
1345 |
|
4d8f6dc3af75
commentary & category changes
Claus Gittinger <cg@exept.de>
parents:
616
diff
changeset
|
1346 |
"Created: 30.4.1996 / 15:34:44 / cg" |
269 | 1347 |
! ! |
1348 |
||
157 | 1349 |
!TopView methodsFor:'window events'! |
1350 |
||
5614 | 1351 |
mapped |
4355 | 1352 |
"the recevier was mapped (i.e. deiconified); |
2488
cb393b7431f0
oops - (re-)fixed mapped/unmapped with partner/slaves
Claus Gittinger <cg@exept.de>
parents:
2466
diff
changeset
|
1353 |
look for partners and slaves." |
cb393b7431f0
oops - (re-)fixed mapped/unmapped with partner/slaves
Claus Gittinger <cg@exept.de>
parents:
2466
diff
changeset
|
1354 |
|
5614 | 1355 |
realized := true. |
2488
cb393b7431f0
oops - (re-)fixed mapped/unmapped with partner/slaves
Claus Gittinger <cg@exept.de>
parents:
2466
diff
changeset
|
1356 |
super mapped. |
cb393b7431f0
oops - (re-)fixed mapped/unmapped with partner/slaves
Claus Gittinger <cg@exept.de>
parents:
2466
diff
changeset
|
1357 |
|
cb393b7431f0
oops - (re-)fixed mapped/unmapped with partner/slaves
Claus Gittinger <cg@exept.de>
parents:
2466
diff
changeset
|
1358 |
"/ |
cb393b7431f0
oops - (re-)fixed mapped/unmapped with partner/slaves
Claus Gittinger <cg@exept.de>
parents:
2466
diff
changeset
|
1359 |
"/ map slaves and partners |
cb393b7431f0
oops - (re-)fixed mapped/unmapped with partner/slaves
Claus Gittinger <cg@exept.de>
parents:
2466
diff
changeset
|
1360 |
"/ |
2799
e7b1ea0db727
partners must be remapped (at the old position)
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
1361 |
self masterSlaveMessage:#remap inGroup:windowGroup. |
2488
cb393b7431f0
oops - (re-)fixed mapped/unmapped with partner/slaves
Claus Gittinger <cg@exept.de>
parents:
2466
diff
changeset
|
1362 |
|
3347 | 1363 |
self isModal ifTrue:[ |
5657 | 1364 |
"take it away from any popup menu possibly still active" |
3347 | 1365 |
|
5657 | 1366 |
self forceUngrabKeyboard. |
1367 |
self forceUngrabPointer. |
|
1368 |
" |
|
1369 |
get the focus |
|
1370 |
" |
|
1371 |
self getKeyboardFocus. |
|
1372 |
self enableEnterLeaveEvents |
|
3347 | 1373 |
] ifFalse:[ |
5657 | 1374 |
" |
1375 |
ask for the focus - this avoids having to click on the |
|
1376 |
view with WM's which need an explicit click. |
|
1377 |
Q: is this a good idea ? |
|
1378 |
" |
|
1379 |
TakeFocusWhenMapped == true ifTrue:[ |
|
1380 |
self getKeyboardFocus. |
|
1381 |
] |
|
4355 | 1382 |
]. |
6275 | 1383 |
self graphicsDevice platformName = #WIN32 ifTrue:[ |
5657 | 1384 |
self raise |
4355 | 1385 |
]. |
5658 | 1386 |
false "self isScreenDialog" ifTrue:[ |
5657 | 1387 |
self setForegroundWindow. |
1388 |
self activate. |
|
4799
b91607dae5bb
if marked as ScreenDialog, raise above ALL windows.
Michael Beyl <mb@exept.de>
parents:
4798
diff
changeset
|
1389 |
]. |
5666 | 1390 |
subViews notNil ifTrue:[ |
1391 |
subViews do:[:eachSubView | eachSubView topViewWasMapped ]. |
|
1392 |
] |
|
3347 | 1393 |
|
5666 | 1394 |
"Modified: / 09-12-2010 / 18:13:20 / cg" |
3446 | 1395 |
! |
2488
cb393b7431f0
oops - (re-)fixed mapped/unmapped with partner/slaves
Claus Gittinger <cg@exept.de>
parents:
2466
diff
changeset
|
1396 |
|
501
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
1397 |
masterSlaveMessage:aSelector inGroup:aWindowGroup |
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
1398 |
"send aSelector to partners and/or slaves. |
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
1399 |
This is a private helper for destroy / mapped / unmapped" |
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
1400 |
|
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
1401 |
aWindowGroup notNil ifTrue:[ |
5721 | 1402 |
"/ |
1403 |
"/ if I am a master or partner, send to all slaves |
|
1404 |
"/ |
|
1405 |
(self isMaster or:[self isPartner]) ifTrue:[ |
|
1406 |
aWindowGroup slavesDo:[:v | v perform:aSelector]. |
|
1407 |
]. |
|
1408 |
"/ |
|
1409 |
"/ if I am a partner, send to all partners |
|
1410 |
"/ |
|
1411 |
self isPartner ifTrue:[ |
|
1412 |
aWindowGroup partnersDo:[:v | v ~~ self ifTrue:[v perform:aSelector]]. |
|
1413 |
]. |
|
501
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
1414 |
]. |
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
1415 |
! |
0a701f42de02
focusKey handling now done here & in Controller
Claus Gittinger <cg@exept.de>
parents:
419
diff
changeset
|
1416 |
|
5614 | 1417 |
unmapped |
157 | 1418 |
"the recevier was unmapped (i.e. iconified); |
1419 |
look for partners and slaves." |
|
1420 |
||
3035 | 1421 |
|r| |
1422 |
||
1423 |
(windowGroup notNil and:[windowGroup isModal]) ifTrue:[ |
|
5721 | 1424 |
"keep the realized flag true (to avoid exiting the modal event loop). |
1425 |
Consider this a kludge." |
|
1426 |
self markAsUnmappedModalBox. |
|
1427 |
r := realized. |
|
3035 | 1428 |
] ifFalse:[ |
5721 | 1429 |
self unmarkAsUnmappedModalBox. |
1430 |
r := realized := false. |
|
3035 | 1431 |
]. |
4407 | 1432 |
super unmapped. |
1433 |
realized := r. |
|
419
07b575e87a34
openModal moved to SimpleView (can now open subviews modal)
Claus Gittinger <cg@exept.de>
parents:
416
diff
changeset
|
1434 |
|
07b575e87a34
openModal moved to SimpleView (can now open subviews modal)
Claus Gittinger <cg@exept.de>
parents:
416
diff
changeset
|
1435 |
"/ |
775 | 1436 |
"/ unmap slaves and partners |
419
07b575e87a34
openModal moved to SimpleView (can now open subviews modal)
Claus Gittinger <cg@exept.de>
parents:
416
diff
changeset
|
1437 |
"/ |
658 | 1438 |
self masterSlaveMessage:#unmap inGroup:windowGroup |
157 | 1439 |
|
775 | 1440 |
"Modified: 30.5.1996 / 09:37:22 / cg" |
157 | 1441 |
! ! |
1442 |
||
1160 | 1443 |
!TopView class methodsFor:'documentation'! |
135 | 1444 |
|
269 | 1445 |
version |
6275 | 1446 |
^ '$Header: /cvs/stx/stx/libview/TopView.st,v 1.148 2014-02-18 17:12:37 stefan Exp $' |
5614 | 1447 |
! |
1448 |
||
1449 |
version_CVS |
|
6275 | 1450 |
^ '$Header: /cvs/stx/stx/libview/TopView.st,v 1.148 2014-02-18 17:12:37 stefan Exp $' |
135 | 1451 |
! ! |
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1452 |
|
6033
4e9ab193b90f
moved assignKeyboardFocus stuff from topView
Claus Gittinger <cg@exept.de>
parents:
5971
diff
changeset
|
1453 |
|
4079
8a66b0c94337
added new windowStyle: #undecorated.
Claus Gittinger <cg@exept.de>
parents:
4032
diff
changeset
|
1454 |
TopView initialize! |