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