VisualComponent.st
author Claus Gittinger <cg@exept.de>
Mon, 06 Jul 1998 17:53:43 +0200
changeset 994 1b606988c010
parent 962 e6ccfc7fb22e
child 1220 39e5e28042da
permissions -rw-r--r--
more ST80/STX compatibility
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 1996 by Claus Gittinger
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
Object subclass:#VisualComponent
406
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    16
	instanceVariableNames:'bounds'
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	classVariableNames:''
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	poolDictionaries:''
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	category:'Graphics-Display Objects'
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
365
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    22
!VisualComponent class methodsFor:'documentation'!
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
copyright
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
"
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
 COPYRIGHT (c) 1996 by Claus Gittinger
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
              All Rights Reserved
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 This software is furnished under a license and may be used
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 only in accordance with the terms of that license and with the
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 be provided or otherwise made available to, or used by, any
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 other person.  No title to or ownership of the software is
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 hereby transferred.
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
"
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
documentation
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
"
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
    42
    abstract superclass for all kinds of visual components.
265
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    43
    This class and its subclasses (currently) exist mostly for
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    44
    ST-80 compatibility - to provide a home for ported PD classes,
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    45
    which depend on the VisualComponent hierarchy.
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    46
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    47
    Notice: 
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    48
        this class was implemented using protocol information
365
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    49
        from alpha testers, from reading PD programs and 
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    50
        from the Hopkins/Horan book.
265
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    51
        - it may not be complete or compatible to the corresponding ST-80 class. 
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    52
        If you encounter any incompatibilities, please forward a note 
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    53
        describing the incompatibility verbal (i.e. no code) to the ST/X team.
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    54
        This is still being constructed - not yet finished.
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
    [author:]
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
        Claus Gittinger
265
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    58
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    59
    [see also:]
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
    60
        GeometricWrapper
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
"
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
! !
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
365
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
    65
!VisualComponent class methodsFor:'instance creation'!
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
new
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
    ^ self basicNew initialize
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
! !
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
962
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    71
!VisualComponent class methodsFor:'queries'!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    72
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    73
defaultFont
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    74
    ^ SimpleView defaultFont
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    75
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    76
    "Created: / 18.6.1998 / 16:14:22 / cg"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    77
!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    78
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    79
defaultViewBackgroundColor
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    80
    ^ SimpleView defaultViewBackgroundColor
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    81
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    82
    "Created: / 18.6.1998 / 16:15:17 / cg"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    83
! !
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    84
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
!VisualComponent methodsFor:'accessing'!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
962
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    87
backgroundColor
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    88
    ^ Color white
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    89
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    90
    "Created: / 18.6.1998 / 16:01:00 / cg"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    91
!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    92
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    93
backgroundColor:aColor
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    94
    "ignored here"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    95
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    96
    "Created: / 18.6.1998 / 16:15:28 / cg"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    97
!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
    98
274
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
    99
container:someContainer
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   100
    "ignored here"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   101
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   102
    "Created: 9.5.1996 / 00:48:54 / cg"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   103
!
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   104
962
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   105
defaultFont
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   106
    ^ SimpleView defaultFont
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   107
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   108
    "Created: / 18.6.1998 / 16:13:56 / cg"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   109
!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   110
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   111
font:aFont
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   112
    "ignored here"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   113
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   114
    "Created: / 18.6.1998 / 16:14:39 / cg"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   115
!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   116
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   117
foregroundColor
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   118
    ^ Color black
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   119
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   120
    "Created: / 18.6.1998 / 16:01:07 / cg"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   121
!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   122
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   123
foregroundColor:aColor
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   124
    "ignored here"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   125
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   126
    "Created: / 18.6.1998 / 16:14:53 / cg"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   127
!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   128
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   129
geometryLayout:aLayout
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   130
    "ignored here"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   131
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   132
    "Created: / 18.6.1998 / 16:15:39 / cg"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   133
!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   134
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   135
hiddenOnRealize:aBoolean
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   136
    "ignored here"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   137
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   138
    "Created: / 18.6.1998 / 16:13:19 / cg"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   139
!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   140
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   141
id
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   142
    "ignored here"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   143
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   144
    ^ nil
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   145
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   146
    "Created: / 18.6.1998 / 16:13:34 / cg"
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   147
!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   148
274
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   149
setParentViewIn:aView
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   150
    "ignored here - for now"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   151
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   152
    "Created: 9.5.1996 / 00:19:39 / cg"
962
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   153
!
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   154
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   155
superView
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   156
    ^ self container
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   157
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   158
    "Created: / 18.6.1998 / 16:16:07 / cg"
274
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   159
! !
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   160
994
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   161
!VisualComponent methodsFor:'accessing-STX-attributes'!
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   162
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   163
borderWidth
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   164
    ^ 0
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   165
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   166
    "Modified: / 6.7.1998 / 13:47:28 / cg"
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   167
!
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   168
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   169
layout:newLayout
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   170
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   171
    "Modified: / 6.7.1998 / 13:46:17 / cg"
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   172
    "Created: / 6.7.1998 / 13:48:35 / cg"
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   173
!
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   174
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   175
level
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   176
    ^ 0
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   177
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   178
    "Modified: / 6.7.1998 / 13:46:17 / cg"
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   179
    "Created: / 6.7.1998 / 13:46:50 / cg"
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   180
!
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   181
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   182
level:newLevel
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   183
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   184
    "Modified: / 6.7.1998 / 13:46:17 / cg"
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   185
    "Created: / 6.7.1998 / 13:47:43 / cg"
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   186
! !
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   187
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   188
!VisualComponent methodsFor:'accessing-dimensions'!
274
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   189
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   190
bottom
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   191
    "return my bottom y coordinate"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   192
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   193
    ^ self bounds bottom
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   194
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   195
    "Modified: 9.5.1996 / 00:13:12 / cg"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   196
    "Created: 26.5.1996 / 12:56:12 / cg"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   197
!
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   198
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
bounds
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   200
    "return my bounds"
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   201
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
    ^ bounds
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
    "Created: 8.5.1996 / 23:35:19 / cg"
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   205
    "Modified: 9.5.1996 / 00:12:00 / cg"
962
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   206
!
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   208
bounds:aRectangle
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   209
    "set my bounds"
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   210
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   211
    bounds := aRectangle
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
    "Created: 8.5.1996 / 23:36:07 / cg"
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   214
    "Modified: 9.5.1996 / 00:13:12 / cg"
962
e6ccfc7fb22e added more dummy methods to allow visualComponents to be
Claus Gittinger <cg@exept.de>
parents: 406
diff changeset
   215
!
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
274
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   217
left
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   218
    "return my left x coordinate"
250
40acd5bd28ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   219
274
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   220
    ^ self bounds left
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   221
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   222
    "Created: 8.5.1996 / 23:36:07 / cg"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   223
    "Modified: 26.5.1996 / 12:56:22 / cg"
250
40acd5bd28ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   224
!
40acd5bd28ef checkin from browser
Claus Gittinger <cg@exept.de>
parents: 247
diff changeset
   225
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
preferredBounds
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   227
    "return my preferredBounds"
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   228
323
ee2f4da361a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 321
diff changeset
   229
    ^ 0@0 extent:100@100
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
    "Created: 8.5.1996 / 23:36:29 / cg"
323
ee2f4da361a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 321
diff changeset
   232
    "Modified: 19.7.1996 / 20:06:28 / cg"
ee2f4da361a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 321
diff changeset
   233
!
ee2f4da361a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 321
diff changeset
   234
ee2f4da361a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 321
diff changeset
   235
preferredExtent
ee2f4da361a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 321
diff changeset
   236
    ^ self preferredBounds extent
ee2f4da361a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 321
diff changeset
   237
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   238
    "Modified: 9.5.1996 / 00:13:22 / cg"
323
ee2f4da361a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 321
diff changeset
   239
    "Created: 19.7.1996 / 20:06:19 / cg"
247
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   240
!
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   241
274
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   242
right
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   243
    "return my right x coordinate"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   244
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   245
    ^ self bounds right
247
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   246
274
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   247
    "Modified: 9.5.1996 / 00:13:12 / cg"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   248
    "Created: 26.5.1996 / 12:56:25 / cg"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   249
!
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   250
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   251
top
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   252
    "return my top y coordinate"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   253
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   254
    ^ self bounds top
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   255
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   256
    "Modified: 9.5.1996 / 00:13:12 / cg"
434f1bc78362 category changes
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
   257
    "Created: 26.5.1996 / 12:56:15 / cg"
321
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   258
!
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   259
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   260
viewRectangle
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   261
    ^ self bounds
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   262
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   263
    "Created: 19.7.1996 / 17:24:58 / cg"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
! !
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
293
d10ad10d23fa prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   266
!VisualComponent methodsFor:'accessing-mvc'!
d10ad10d23fa prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   267
d10ad10d23fa prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   268
model
d10ad10d23fa prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   269
    "return nil - generic components have no model"
d10ad10d23fa prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   270
d10ad10d23fa prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   271
    ^ nil
d10ad10d23fa prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   272
d10ad10d23fa prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   273
    "Created: 5.6.1996 / 14:18:16 / cg"
d10ad10d23fa prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   274
! !
d10ad10d23fa prepare for view-component integration
Claus Gittinger <cg@exept.de>
parents: 291
diff changeset
   275
265
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   276
!VisualComponent methodsFor:'displaying'!
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   277
406
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   278
displayOn:aGC
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   279
    "display the receiver on some graphicsContext. 
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   280
     The sender is repsonsible for restoring the GC's state
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   281
     (i.e. it may be left in any undefined state)"
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   282
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   283
    self subclassResponsibility
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   284
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   285
    "Modified: 10.2.1997 / 13:53:03 / cg"
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   286
!
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   287
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   288
displayOn:aGC at:aPoint
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   289
    "display the receiver translated by some amount on some graphicsContext"
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   290
265
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   291
    |oldTranslation|
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   292
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   293
    oldTranslation := aGC translation.
406
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   294
    aGC translateBy:aPoint.
265
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   295
    self displayOn:aGC.
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   296
    aGC translation:oldTranslation
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   297
406
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   298
    "Created: 10.2.1997 / 13:47:18 / cg"
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   299
    "Modified: 10.2.1997 / 13:52:53 / cg"
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   300
!
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   301
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   302
displayOn:aGC x:x y:y
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   303
    "display the receiver translated by some amount on some graphicsContext"
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   304
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   305
    ^ self displayOn:aGC at:(x @ y).
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   306
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   307
    "Modified: 10.2.1997 / 13:52:57 / cg"
265
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   308
! !
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   309
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
!VisualComponent methodsFor:'event handling'!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
buttonPress:button x:x y:y
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   313
    "button was pressed over me - ignored here"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   315
    "Modified: 9.5.1996 / 00:14:08 / cg"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
buttonRelease:button x:x y:y
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   319
    "button was released over me - ignored here"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
    "Created: 8.5.1996 / 23:38:30 / cg"
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   322
    "Modified: 9.5.1996 / 00:14:04 / cg"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
321
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   325
containerChangedSize
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   326
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   327
    "Created: 19.7.1996 / 17:32:19 / cg"
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   328
!
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   329
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   330
containerMapped
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   331
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   332
    "Created: 19.7.1996 / 17:39:27 / cg"
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   333
!
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   334
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   335
containerUnmapped
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   336
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   337
    "Created: 19.7.1996 / 17:44:52 / cg"
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   338
!
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   339
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   340
destroy
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   341
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   342
    "Created: 19.7.1996 / 17:25:46 / cg"
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   343
!
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   344
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
keyPress:key x:x y:y
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   346
    "key was pressed over me - ignored here"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   348
    "Created: 8.5.1996 / 23:46:03 / cg"
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   349
    "Modified: 9.5.1996 / 00:14:14 / cg"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   350
!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   351
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   352
keyRelease:key x:x y:y
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   353
    "key was released over me - ignored here"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   354
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   355
    "Created: 8.5.1996 / 23:46:07 / cg"
246
9f80dbcbcd34 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 245
diff changeset
   356
    "Modified: 9.5.1996 / 00:14:19 / cg"
994
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   357
!
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   358
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   359
mapped
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   360
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   361
    "Created: / 6.7.1998 / 13:48:46 / cg"
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   362
!
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   363
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   364
showFocus:explicit
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   365
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   366
    "Created: / 6.7.1998 / 13:49:05 / cg"
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   367
!
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   368
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   369
showNoFocus:explicit
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   370
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   371
    "Created: / 6.7.1998 / 13:49:12 / cg"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   372
! !
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   374
!VisualComponent methodsFor:'initialization'!
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
initialize
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
406
16d990bcde6e removed fg/bgColor
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   378
    "Modified: 10.2.1997 / 19:28:11 / cg"
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   379
! !
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   380
265
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   381
!VisualComponent methodsFor:'queries'!
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   382
994
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   383
delegate
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   384
    ^ nil
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   385
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   386
    "Created: / 6.7.1998 / 13:50:10 / cg"
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   387
!
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   388
265
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   389
heightOn:aGC
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   390
    "return my height, if displayed on aGC;
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   391
     I assume that my height is independent of the device, and return
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   392
     the bounds height"
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   393
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   394
    ^ self bounds height
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   395
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   396
    "Modified: 13.5.1996 / 10:15:13 / cg"
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   397
!
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   398
290
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   399
isBorderedWrapper
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   400
     ^ false
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   401
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   402
    "Created: 5.6.1996 / 14:11:18 / cg"
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   403
!
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   404
321
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   405
isLayoutWrapper
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   406
     ^ false
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   407
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   408
    "Created: 19.7.1996 / 17:50:59 / cg"
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   409
!
6421da8810e2 more view mimicri;
Claus Gittinger <cg@exept.de>
parents: 293
diff changeset
   410
994
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   411
isRootView
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   412
    ^ false
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   413
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   414
    "Created: / 6.7.1998 / 13:50:01 / cg"
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   415
!
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   416
290
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   417
isWrapper
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   418
     ^ false
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   419
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   420
    "Created: 5.6.1996 / 01:04:40 / cg"
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   421
!
d26dc55ac7e4 prepare for components & non-view as superView
Claus Gittinger <cg@exept.de>
parents: 274
diff changeset
   422
265
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   423
widthOn:aGC
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   424
    "return my width, if displayed on aGC;
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   425
     I assume that my width is independent of the device, and return
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   426
     the bounds width"
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   427
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   428
    ^ self bounds width
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   429
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   430
    "Created: 13.5.1996 / 10:14:44 / cg"
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   431
    "Modified: 13.5.1996 / 10:15:17 / cg"
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   432
! !
45c83acd7562 comments
Claus Gittinger <cg@exept.de>
parents: 250
diff changeset
   433
247
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   434
!VisualComponent methodsFor:'testing'!
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   435
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   436
containsPoint:aPoint
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   437
    "return true, if the receiver contains aPoint"
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   438
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   439
    ^ self bounds containsPoint:aPoint
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   440
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   441
    "Created: 9.5.1996 / 00:21:44 / cg"
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   442
    "Modified: 9.5.1996 / 00:22:00 / cg"
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   443
!
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   444
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   445
hasBorder
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   446
    "return true, if the receiver shows a border"
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   447
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   448
    ^ false
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   449
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   450
    "Modified: 9.5.1996 / 00:21:29 / cg"
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   451
!
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   452
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   453
intersects:aRectangle
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   454
    "return true, if the receivers bounds intersects aRectangle"
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   455
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   456
    ^ self bounds intersects:aRectangle
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   457
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   458
    "Created: 9.5.1996 / 00:21:18 / cg"
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   459
    "Modified: 9.5.1996 / 00:22:04 / cg"
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   460
! !
7b29d5a02e68 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
   461
365
47e0d48fd769 commentary
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
   462
!VisualComponent class methodsFor:'documentation'!
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   463
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   464
version
994
1b606988c010 more ST80/STX compatibility
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
   465
    ^ '$Header: /cvs/stx/stx/libview2/VisualComponent.st,v 1.16 1998-07-06 15:53:43 cg Exp $'
245
8d7f9a8d2c78 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   466
! !