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