PopUpView.st
author Claus Gittinger <cg@exept.de>
Fri, 04 Dec 1998 15:11:51 +0100
changeset 2412 3065f9e362dc
parent 2387 cfd8fa32799b
child 2574 ab434bf2439e
permissions -rw-r--r--
checkin from browser
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
48194c26a46c Initial revision
claus
parents:
diff changeset
     1
"
6
7ee0cfde237d *** empty log message ***
claus
parents: 5
diff changeset
     2
 COPYRIGHT (c) 1989 by Claus Gittinger
72
3e84121988c3 *** empty log message ***
claus
parents: 54
diff changeset
     3
	      All Rights Reserved
0
48194c26a46c Initial revision
claus
parents:
diff changeset
     4
48194c26a46c Initial revision
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
48194c26a46c Initial revision
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
48194c26a46c Initial revision
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
48194c26a46c Initial revision
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
48194c26a46c Initial revision
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
48194c26a46c Initial revision
claus
parents:
diff changeset
    10
 hereby transferred.
48194c26a46c Initial revision
claus
parents:
diff changeset
    11
"
48194c26a46c Initial revision
claus
parents:
diff changeset
    12
135
claus
parents: 89
diff changeset
    13
TopView subclass:#PopUpView
506
9c67d5232519 added mapTime instVar
Claus Gittinger <cg@exept.de>
parents: 493
diff changeset
    14
	instanceVariableNames:'shadowView haveControl exclusivePointer mapTime'
485
47c3cfae7ae2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    15
	classVariableNames:'DefaultShadow DefaultLevel DefaultBorderWidth DefaultBorderColor'
47c3cfae7ae2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    16
	poolDictionaries:''
47c3cfae7ae2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    17
	category:'Views-Basic'
0
48194c26a46c Initial revision
claus
parents:
diff changeset
    18
!
48194c26a46c Initial revision
claus
parents:
diff changeset
    19
1174
6889dc61d701 newStyle info & error messages
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
    20
!PopUpView class methodsFor:'documentation'!
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
    21
46
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    22
copyright
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    23
"
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    24
 COPYRIGHT (c) 1989 by Claus Gittinger
72
3e84121988c3 *** empty log message ***
claus
parents: 54
diff changeset
    25
	      All Rights Reserved
46
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    26
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    27
 This software is furnished under a license and may be used
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    28
 only in accordance with the terms of that license and with the
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    29
 inclusion of the above copyright notice.   This software may not
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    30
 be provided or otherwise made available to, or used by, any
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    31
 other person.  No title to or ownership of the software is
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    32
 hereby transferred.
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    33
"
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    34
!
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    35
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
    36
documentation
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
    37
"
46
7b331e9012fd *** empty log message ***
claus
parents: 12
diff changeset
    38
    this class implements an abstract superclass for all views which bypass the 
89
ea2bf46eb669 *** empty log message ***
claus
parents: 81
diff changeset
    39
    window manager and pop up on top of the screen. A typical example is
ea2bf46eb669 *** empty log message ***
claus
parents: 81
diff changeset
    40
    a PopUpMenu. PopUpView itself is abstract, providing basic mechanisms.
ea2bf46eb669 *** empty log message ***
claus
parents: 81
diff changeset
    41
    They are not decorated by window managers.
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
    42
616
56cf67c82664 documentation
Claus Gittinger <cg@exept.de>
parents: 587
diff changeset
    43
    [styleSheet parameters:]
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
    44
616
56cf67c82664 documentation
Claus Gittinger <cg@exept.de>
parents: 587
diff changeset
    45
        popupShadow         <Boolean>           if true, popupViews show a shadow below
56cf67c82664 documentation
Claus Gittinger <cg@exept.de>
parents: 587
diff changeset
    46
        popupLevel          <nil | Integer>     3D level
56cf67c82664 documentation
Claus Gittinger <cg@exept.de>
parents: 587
diff changeset
    47
        popupBorderWidth    <nil | Integer>     borderWidth
56cf67c82664 documentation
Claus Gittinger <cg@exept.de>
parents: 587
diff changeset
    48
56cf67c82664 documentation
Claus Gittinger <cg@exept.de>
parents: 587
diff changeset
    49
    [author:]
56cf67c82664 documentation
Claus Gittinger <cg@exept.de>
parents: 587
diff changeset
    50
        Claus Gittinger
2
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
    51
"
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
    52
! !
b35336ab0de3 *** empty log message ***
claus
parents: 0
diff changeset
    53
1174
6889dc61d701 newStyle info & error messages
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
    54
!PopUpView class methodsFor:'defaults'!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
    55
48194c26a46c Initial revision
claus
parents:
diff changeset
    56
defaultExtent
587
c0fb8bc13596 commentary
Claus Gittinger <cg@exept.de>
parents: 523
diff changeset
    57
    "return the default extent of my instances.
c0fb8bc13596 commentary
Claus Gittinger <cg@exept.de>
parents: 523
diff changeset
    58
     The value returned here is usually ignored, and
c0fb8bc13596 commentary
Claus Gittinger <cg@exept.de>
parents: 523
diff changeset
    59
     the value from preferredExtent taken instead."
c0fb8bc13596 commentary
Claus Gittinger <cg@exept.de>
parents: 523
diff changeset
    60
922
52c1d0d22c0e dont ask Display for defaultExtent - ask current screen
Claus Gittinger <cg@exept.de>
parents: 677
diff changeset
    61
    |screen|
587
c0fb8bc13596 commentary
Claus Gittinger <cg@exept.de>
parents: 523
diff changeset
    62
922
52c1d0d22c0e dont ask Display for defaultExtent - ask current screen
Claus Gittinger <cg@exept.de>
parents: 677
diff changeset
    63
    screen := Screen current.
52c1d0d22c0e dont ask Display for defaultExtent - ask current screen
Claus Gittinger <cg@exept.de>
parents: 677
diff changeset
    64
    ^ (screen width // 3) @ (screen height // 3)
52c1d0d22c0e dont ask Display for defaultExtent - ask current screen
Claus Gittinger <cg@exept.de>
parents: 677
diff changeset
    65
52c1d0d22c0e dont ask Display for defaultExtent - ask current screen
Claus Gittinger <cg@exept.de>
parents: 677
diff changeset
    66
    "Modified: 5.7.1996 / 13:55:08 / cg"
81
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
    67
!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
    68
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    69
shadows
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    70
    "return the shadows-flag. False means: turned off."
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    71
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    72
    ^ DefaultShadow
144
claus
parents: 141
diff changeset
    73
!
claus
parents: 141
diff changeset
    74
claus
parents: 141
diff changeset
    75
shadows:aBoolean
claus
parents: 141
diff changeset
    76
    "turn on/off shadows under popUpViews. 
claus
parents: 141
diff changeset
    77
     On slow displays, turning them off makes menus appear a bit snappier.
claus
parents: 141
diff changeset
    78
     The default is set via the styleSheet and changes when the viewStyle
claus
parents: 141
diff changeset
    79
     is changed."
claus
parents: 141
diff changeset
    80
claus
parents: 141
diff changeset
    81
    DefaultShadow := aBoolean
claus
parents: 141
diff changeset
    82
!
claus
parents: 141
diff changeset
    83
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    84
updateStyleCache
485
47c3cfae7ae2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    85
    "extract values from the styleSheet and cache them in class variables"
47c3cfae7ae2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    86
1930
a46b3cd6a232 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
    87
    <resource: #style (#'popup.shadow' #'popup.level'
a46b3cd6a232 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
    88
                       #'popup.borderWidth'
a46b3cd6a232 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
    89
                       #'popup.borderColor')>
485
47c3cfae7ae2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    90
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    91
    ShadowView isNil ifTrue:[
485
47c3cfae7ae2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    92
        DefaultShadow := false
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    93
    ] ifFalse:[
1930
a46b3cd6a232 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
    94
        DefaultShadow := StyleSheet at:'popup.shadow' default:false.
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
    95
    ].
1930
a46b3cd6a232 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
    96
    DefaultLevel := StyleSheet at:'popup.level'.
a46b3cd6a232 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
    97
    DefaultBorderWidth := StyleSheet at:'popup.borderWidth'.
a46b3cd6a232 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
    98
    DefaultBorderColor := StyleSheet colorAt:'popup.borderColor'.
485
47c3cfae7ae2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    99
1930
a46b3cd6a232 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1732
diff changeset
   100
    "Modified: 20.10.1997 / 15:10:07 / cg"
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   101
! !
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   102
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   103
!PopUpView methodsFor:'accessing'!
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   104
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   105
exclusivePointer:aBoolean
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   106
    "set/clear the exclusive pointer flag;
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   107
     DANGER: if set, no interaction with other views is possible,
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   108
     while the popUp is active"
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   109
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   110
    exclusivePointer := aBoolean
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   111
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   112
    "Modified: 12.5.1996 / 22:02:52 / cg"
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   113
!
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   114
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   115
noShadow
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   116
    "turn off the shadow"
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   117
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   118
    shadowView := nil
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   119
! !
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   120
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   121
!PopUpView methodsFor:'activation'!
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   122
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   123
hide
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   124
    "hide the view, leave its modal event loop"
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   125
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   126
    windowGroup notNil ifTrue:[
643
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   127
        windowGroup removeView:self.
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   128
        windowGroup := nil.
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   129
    ].
643
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   130
    self unmap.
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   131
2335
73978e370059 delay a bit when closing a popupVuew, to allow for expose
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
   132
    "/ allow for redraw events to arrive
73978e370059 delay a bit when closing a popupVuew, to allow for expose
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
   133
    "/ (actually, only req'd for win32 systems,
73978e370059 delay a bit when closing a popupVuew, to allow for expose
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
   134
    "/  but that short delay does not hurt on others)
73978e370059 delay a bit when closing a popupVuew, to allow for expose
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
   135
73978e370059 delay a bit when closing a popupVuew, to allow for expose
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
   136
    Delay waitForSeconds:0.05.
73978e370059 delay a bit when closing a popupVuew, to allow for expose
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
   137
73978e370059 delay a bit when closing a popupVuew, to allow for expose
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
   138
    "Modified: / 3.5.1996 / 23:48:22 / stefan"
73978e370059 delay a bit when closing a popupVuew, to allow for expose
Claus Gittinger <cg@exept.de>
parents: 1930
diff changeset
   139
    "Modified: / 12.9.1998 / 14:58:33 / cg"
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   140
!
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   141
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   142
show
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   143
    "realize the view at its last position"
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   144
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   145
    self fixSize.
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   146
    self openModal:[true] "realize     "
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   147
!
144
claus
parents: 141
diff changeset
   148
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   149
showAt:aPoint
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   150
    "realize the view at aPoint"
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   151
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   152
    self showAt:aPoint resizing:true 
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   153
!
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   154
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   155
showAt:aPoint resizing:aBoolean
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   156
    "realize the view at aPoint"
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   157
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   158
    aBoolean ifTrue:[
1732
e6b92cfc32a7 flush motion and keyboard events
ca
parents: 1263
diff changeset
   159
        self fixSize.
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   160
    ].
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   161
    self origin:aPoint.
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   162
    self makeFullyVisible.
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   163
    self openModal:[true] "realize     "
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   164
!
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   165
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   166
showAtPointer
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   167
    "realize the view at the current pointer position"
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   168
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   169
    self showAt:(device pointerPosition) resizing:true
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   170
!
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   171
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   172
showCenteredIn:aView
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   173
    "make myself visible at the screen center."
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   174
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   175
    |top|
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   176
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   177
    top := aView topView.
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   178
    top raise.
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   179
    self showAt:(top origin 
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   180
		 + (aView originRelativeTo:top) 
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   181
		 + (aView extent // 2)
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   182
		 - (self extent // 2))
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   183
! !
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   184
2412
3065f9e362dc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2387
diff changeset
   185
!PopUpView methodsFor:'defaults'!
3065f9e362dc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2387
diff changeset
   186
3065f9e362dc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2387
diff changeset
   187
defaultShadow
3065f9e362dc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2387
diff changeset
   188
    ^ DefaultShadow
3065f9e362dc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2387
diff changeset
   189
3065f9e362dc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2387
diff changeset
   190
    "Created: / 4.12.1998 / 15:11:20 / cg"
3065f9e362dc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2387
diff changeset
   191
! !
3065f9e362dc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2387
diff changeset
   192
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   193
!PopUpView methodsFor:'dispatching'!
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   194
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   195
modalLoop
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   196
    "obsolete support for small configuration without threads.
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   197
     This is no longer used"
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   198
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   199
    haveControl := true.
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   200
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   201
    "this is a kludge - if we do not have multiple processes, therefore
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   202
     we start another dispatch loop, which exits when control is lost"
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   203
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   204
    device dispatchFor:nil while:[haveControl]
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   205
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   206
    "Modified: 12.5.1996 / 22:03:52 / cg"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   207
! !
48194c26a46c Initial revision
claus
parents:
diff changeset
   208
89
ea2bf46eb669 *** empty log message ***
claus
parents: 81
diff changeset
   209
!PopUpView methodsFor:'initialize / release'!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   210
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   211
create
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   212
    super create.
1732
e6b92cfc32a7 flush motion and keyboard events
ca
parents: 1263
diff changeset
   213
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   214
    shadowView isNil ifTrue:[
1732
e6b92cfc32a7 flush motion and keyboard events
ca
parents: 1263
diff changeset
   215
        self saveUnder:true
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   216
    ]
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   217
!
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   218
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   219
destroy
141
claus
parents: 135
diff changeset
   220
    haveControl := false.
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   221
    super destroy.
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   222
    shadowView notNil ifTrue:[shadowView destroy. shadowView := nil]
81
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   223
!
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   224
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   225
initStyle
1263
f5af4e2abd71 commentary
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
   226
    "setup viewStyle specifics"
f5af4e2abd71 commentary
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
   227
81
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   228
    super initStyle.
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   229
151
claus
parents: 144
diff changeset
   230
    styleSheet is3D == true ifTrue:[
1263
f5af4e2abd71 commentary
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
   231
        borderWidth := 0.
f5af4e2abd71 commentary
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
   232
        level := 2
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   233
    ] ifFalse:[
1263
f5af4e2abd71 commentary
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
   234
        borderWidth := 1.
f5af4e2abd71 commentary
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
   235
        level := 0
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   236
    ].
48194c26a46c Initial revision
claus
parents:
diff changeset
   237
81
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   238
    DefaultBorderColor notNil ifTrue:[
1263
f5af4e2abd71 commentary
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
   239
        self borderColor:(DefaultBorderColor on:device).
81
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   240
    ].
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   241
    DefaultBorderWidth notNil ifTrue:[
1263
f5af4e2abd71 commentary
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
   242
        borderWidth := DefaultBorderWidth.
81
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   243
    ].
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   244
"/    DefaultEdgeStyle notNil ifTrue:[
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   245
"/        edgeStyle := DefaultEdgeStyle.
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   246
"/    ].
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   247
    DefaultLevel notNil ifTrue:[
1263
f5af4e2abd71 commentary
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
   248
        self level:DefaultLevel.
81
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   249
    ].
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   250
2412
3065f9e362dc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2387
diff changeset
   251
    self defaultShadow ifTrue:[
1263
f5af4e2abd71 commentary
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
   252
        shadowView := (ShadowView onDevice:device) for:self.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   253
    ].
1263
f5af4e2abd71 commentary
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
   254
2412
3065f9e362dc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2387
diff changeset
   255
    "Modified: / 4.12.1998 / 15:11:28 / cg"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   256
!
48194c26a46c Initial revision
claus
parents:
diff changeset
   257
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   258
initialize
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   259
    super initialize.
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   260
    exclusivePointer := true.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   261
    haveControl := false.
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   262
    type := #popup 
162
claus
parents: 157
diff changeset
   263
!
claus
parents: 157
diff changeset
   264
claus
parents: 157
diff changeset
   265
releasePointer 
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   266
    "release the mouse pointer"
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   267
162
claus
parents: 157
diff changeset
   268
    device activePointerGrab == self ifTrue:[
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   269
        device ungrabPointer.
162
claus
parents: 157
diff changeset
   270
    ].
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   271
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   272
    "Modified: 12.5.1996 / 22:04:09 / cg"
2387
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   273
!
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   274
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   275
releasePointerAndKeyboard 
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   276
    "release the pointer and keyboard"
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   277
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   278
    device activePointerGrab == self ifTrue:[
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   279
        device ungrabPointer.
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   280
    ].
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   281
    device activeKeyboardGrab == self ifTrue:[
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   282
        device ungrabKeyboard.
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   283
    ].
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   284
! !
48194c26a46c Initial revision
claus
parents:
diff changeset
   285
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   286
!PopUpView methodsFor:'private'!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   287
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   288
regainControl
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   289
    "get exclusive access to pointer and keyboard"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   290
1732
e6b92cfc32a7 flush motion and keyboard events
ca
parents: 1263
diff changeset
   291
    |sensor|
e6b92cfc32a7 flush motion and keyboard events
ca
parents: 1263
diff changeset
   292
648
a913a55fa11b checkin from browser
Stefan Vogel <sv@exept.de>
parents: 643
diff changeset
   293
    shown ifTrue:[
1732
e6b92cfc32a7 flush motion and keyboard events
ca
parents: 1263
diff changeset
   294
        device grabPointerInView:self.
648
a913a55fa11b checkin from browser
Stefan Vogel <sv@exept.de>
parents: 643
diff changeset
   295
        device grabKeyboardInView:self.
1732
e6b92cfc32a7 flush motion and keyboard events
ca
parents: 1263
diff changeset
   296
e6b92cfc32a7 flush motion and keyboard events
ca
parents: 1263
diff changeset
   297
        self sensor flushMotionEventsFor:nil.
e6b92cfc32a7 flush motion and keyboard events
ca
parents: 1263
diff changeset
   298
        self sensor flushKeyboardFor:nil.
648
a913a55fa11b checkin from browser
Stefan Vogel <sv@exept.de>
parents: 643
diff changeset
   299
    ].
493
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   300
648
a913a55fa11b checkin from browser
Stefan Vogel <sv@exept.de>
parents: 643
diff changeset
   301
    "Modified: 6.5.1996 / 22:33:39 / stefan"
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   302
    "Modified: 12.5.1996 / 22:04:42 / cg"
89
ea2bf46eb669 *** empty log message ***
claus
parents: 81
diff changeset
   303
! !
ea2bf46eb669 *** empty log message ***
claus
parents: 81
diff changeset
   304
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   305
!PopUpView methodsFor:'queries'!
89
ea2bf46eb669 *** empty log message ***
claus
parents: 81
diff changeset
   306
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   307
isPopUpView
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   308
    "return true, since I want to come up without decoration 
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   309
     and popUp to top immediately."
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   310
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   311
    ^ true
677
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   312
069dd8cd00d1 removed obsolete stuff & commentary
Claus Gittinger <cg@exept.de>
parents: 648
diff changeset
   313
    "Modified: 12.5.1996 / 21:57:51 / cg"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   314
! !
48194c26a46c Initial revision
claus
parents:
diff changeset
   315
48194c26a46c Initial revision
claus
parents:
diff changeset
   316
!PopUpView methodsFor:'realize / unrealize'!
48194c26a46c Initial revision
claus
parents:
diff changeset
   317
48194c26a46c Initial revision
claus
parents:
diff changeset
   318
mapped
162
claus
parents: 157
diff changeset
   319
    "grab the pointer here, when visible (but not control is already lost). 
643
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   320
     If the grab fails, try again and unmap myself if that fails too."
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   321
523
2de6065d37c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 506
diff changeset
   322
    mapTime := Time millisecondClockValue.
2de6065d37c8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 506
diff changeset
   323
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   324
    super mapped.
162
claus
parents: 157
diff changeset
   325
157
claus
parents: 151
diff changeset
   326
    (haveControl 
162
claus
parents: 157
diff changeset
   327
    and:[true "/ exclusivePointer
157
claus
parents: 151
diff changeset
   328
    and:[realized]]) ifTrue:[
493
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   329
        (device grabPointerInView:self) ifFalse:[
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   330
            "wait a little bit and try again"
157
claus
parents: 151
diff changeset
   331
"/            'grab pointer failed' errorPrintNL.
493
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   332
            Delay waitForSeconds:0.1.
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   333
            (device grabPointerInView:self) ifFalse:[
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   334
                "give up"
1174
6889dc61d701 newStyle info & error messages
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   335
                'PopUpView [warning]: could not grab pointer' errorPrintCR.
643
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   336
                self unmap
493
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   337
            ]
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   338
        ].
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   339
        exclusivePointer ifFalse:[
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   340
            self releasePointer
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   341
        ].
1174
6889dc61d701 newStyle info & error messages
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   342
        device grabKeyboardInView:self.
493
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   343
        self getKeyboardFocus
81
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   344
    ]
493
736384460102 grab keyboard when mapped
Claus Gittinger <cg@exept.de>
parents: 485
diff changeset
   345
643
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   346
    "Modified: 3.5.1996 / 23:48:37 / stefan"
1174
6889dc61d701 newStyle info & error messages
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   347
    "Modified: 10.1.1997 / 18:00:31 / cg"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   348
!
48194c26a46c Initial revision
claus
parents:
diff changeset
   349
48194c26a46c Initial revision
claus
parents:
diff changeset
   350
realize
48194c26a46c Initial revision
claus
parents:
diff changeset
   351
    shadowView notNil ifTrue:[shadowView realize].
48194c26a46c Initial revision
claus
parents:
diff changeset
   352
    self raise.
81
4ba554473294 *** empty log message ***
claus
parents: 72
diff changeset
   353
    haveControl := true.
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   354
    super realize.
48194c26a46c Initial revision
claus
parents:
diff changeset
   355
!
48194c26a46c Initial revision
claus
parents:
diff changeset
   356
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   357
restarted
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   358
    ^ self
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   359
!
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   360
643
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   361
unmap
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   362
    haveControl := false.
1732
e6b92cfc32a7 flush motion and keyboard events
ca
parents: 1263
diff changeset
   363
2387
cfd8fa32799b also release keyboard when unmapped
Claus Gittinger <cg@exept.de>
parents: 2335
diff changeset
   364
    self releasePointerAndKeyboard.
643
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   365
    super unmap.
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   366
    shadowView notNil ifTrue:[shadowView unmap].
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   367
d58256573e17 Rename unrealize-->unmap.
Stefan Vogel <sv@exept.de>
parents: 616
diff changeset
   368
    "Modified: 3.5.1996 / 23:46:06 / stefan"
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   369
! !
48194c26a46c Initial revision
claus
parents:
diff changeset
   370
1174
6889dc61d701 newStyle info & error messages
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   371
!PopUpView class methodsFor:'documentation'!
0
48194c26a46c Initial revision
claus
parents:
diff changeset
   372
269
ea536bb319a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   373
version
2412
3065f9e362dc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2387
diff changeset
   374
    ^ '$Header: /cvs/stx/stx/libview/PopUpView.st,v 1.38 1998-12-04 14:11:51 cg Exp $'
157
claus
parents: 151
diff changeset
   375
! !