ApplicationWindow.st
author Claus Gittinger <cg@exept.de>
Wed, 26 Jul 2000 15:13:36 +0200
changeset 1381 1035403e302e
parent 1164 04e9ce703b54
child 1421 840a63b9a8cf
permissions -rw-r--r--
added #accepted
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
964
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 1998 by eXept Software AG
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
StandardSystemView subclass:#ApplicationWindow
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:'keyboardProcessor'
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Interface-Framework'
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!ApplicationWindow class methodsFor:'documentation'!
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 1998 by eXept Software AG
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
              All Rights Reserved
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
!
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
documentation
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
"
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    ApplicationWindow is provided for ST80 compatibility, to
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
    give loaded code a home, in case its subclassed from it.
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
    It does not (yet) provide much of additional functionality.
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    [author:]
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
        Claus Gittinger (cg@data)
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    [see also:]
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
        ApplicationModel UIBuilder
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
"
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
! !
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
!ApplicationWindow methodsFor:'accessing'!
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
keyboardProcessor
968
d75fac2be7a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 966
diff changeset
    55
    "return my keyboard processor"
964
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    ^ keyboardProcessor
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    "Created: / 18.6.1998 / 18:52:42 / cg"
968
d75fac2be7a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 966
diff changeset
    60
    "Modified: / 18.6.1998 / 20:00:18 / cg"
964
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
!
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
keyboardProcessor:something
968
d75fac2be7a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 966
diff changeset
    64
    "set my keyboard processor"
964
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    keyboardProcessor := something.
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
    "Created: / 18.6.1998 / 18:52:42 / cg"
968
d75fac2be7a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 966
diff changeset
    69
    "Modified: / 18.6.1998 / 20:00:30 / cg"
964
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
! !
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
!ApplicationWindow methodsFor:'events'!
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
noticeOfWindowClose
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
    application notNil ifTrue:[
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
        application noticeOfWindowClose:self
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    ].
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    "Created: / 18.6.1998 / 18:56:01 / cg"
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
! !
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
1164
04e9ce703b54 category change
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
    82
!ApplicationWindow methodsFor:'initialize / release'!
04e9ce703b54 category change
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
    83
04e9ce703b54 category change
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
    84
destroy
04e9ce703b54 category change
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
    85
    self noticeOfWindowClose.
04e9ce703b54 category change
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
    86
    self keyboardProcessor release.
04e9ce703b54 category change
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
    87
    super destroy
04e9ce703b54 category change
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
    88
04e9ce703b54 category change
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
    89
    "Created: / 18.6.1998 / 19:15:28 / cg"
04e9ce703b54 category change
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
    90
! !
04e9ce703b54 category change
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
    91
964
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
!ApplicationWindow class methodsFor:'documentation'!
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
version
1164
04e9ce703b54 category change
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
    95
    ^ '$Header: /cvs/stx/stx/libview2/ApplicationWindow.st,v 1.4 1999-04-23 12:27:06 cg Exp $'
964
51114e9392da initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
! !