Separator.st
author Claus Gittinger <cg@exept.de>
Fri, 28 Jun 2019 09:21:50 +0200
changeset 6078 08c9e2a47dc5
parent 5947 eb55c8df142a
permissions -rw-r--r--
#OTHER by cg self class name -> self className
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5947
eb55c8df142a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5428
diff changeset
     1
"{ Encoding: utf8 }"
eb55c8df142a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5428
diff changeset
     2
56
claus
parents:
diff changeset
     3
"
claus
parents:
diff changeset
     4
 COPYRIGHT (c) 1995 by Claus Gittinger
62
claus
parents: 56
diff changeset
     5
	      All Rights Reserved
56
claus
parents:
diff changeset
     6
claus
parents:
diff changeset
     7
 This software is furnished under a license and may be used
claus
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
claus
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
claus
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
claus
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
claus
parents:
diff changeset
    12
 hereby transferred.
claus
parents:
diff changeset
    13
"
2659
3af857eb52fb invalidate checks itself for shown-flag
Claus Gittinger <cg@exept.de>
parents: 1280
diff changeset
    14
"{ Package: 'stx:libwidg2' }"
3af857eb52fb invalidate checks itself for shown-flag
Claus Gittinger <cg@exept.de>
parents: 1280
diff changeset
    15
5428
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
    16
"{ NameSpace: Smalltalk }"
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
    17
56
claus
parents:
diff changeset
    18
SimpleView subclass:#Separator
157
086addb968af documentation
Claus Gittinger <cg@exept.de>
parents: 100
diff changeset
    19
	instanceVariableNames:'orientation'
086addb968af documentation
Claus Gittinger <cg@exept.de>
parents: 100
diff changeset
    20
	classVariableNames:''
086addb968af documentation
Claus Gittinger <cg@exept.de>
parents: 100
diff changeset
    21
	poolDictionaries:''
086addb968af documentation
Claus Gittinger <cg@exept.de>
parents: 100
diff changeset
    22
	category:'Views-Layout'
56
claus
parents:
diff changeset
    23
!
claus
parents:
diff changeset
    24
claus
parents:
diff changeset
    25
!Separator class methodsFor:'documentation'!
claus
parents:
diff changeset
    26
71
claus
parents: 68
diff changeset
    27
copyright
claus
parents: 68
diff changeset
    28
"
claus
parents: 68
diff changeset
    29
 COPYRIGHT (c) 1995 by Claus Gittinger
claus
parents: 68
diff changeset
    30
	      All Rights Reserved
claus
parents: 68
diff changeset
    31
claus
parents: 68
diff changeset
    32
 This software is furnished under a license and may be used
claus
parents: 68
diff changeset
    33
 only in accordance with the terms of that license and with the
claus
parents: 68
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
claus
parents: 68
diff changeset
    35
 be provided or otherwise made available to, or used by, any
claus
parents: 68
diff changeset
    36
 other person.  No title to or ownership of the software is
claus
parents: 68
diff changeset
    37
 hereby transferred.
claus
parents: 68
diff changeset
    38
"
claus
parents: 68
diff changeset
    39
claus
parents: 68
diff changeset
    40
!
claus
parents: 68
diff changeset
    41
95
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    42
documentation 
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    43
"
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    44
    a simple widget for a separating line. 
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    45
    To be placed between groups of other widgets.
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    46
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    47
    See examples.
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    48
157
086addb968af documentation
Claus Gittinger <cg@exept.de>
parents: 100
diff changeset
    49
    [See also:] 
086addb968af documentation
Claus Gittinger <cg@exept.de>
parents: 100
diff changeset
    50
        FramedBox VariableVerticalPanel VariableHorizontalPanel
086addb968af documentation
Claus Gittinger <cg@exept.de>
parents: 100
diff changeset
    51
086addb968af documentation
Claus Gittinger <cg@exept.de>
parents: 100
diff changeset
    52
    [author:]
086addb968af documentation
Claus Gittinger <cg@exept.de>
parents: 100
diff changeset
    53
        Claus Gittinger
95
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    54
"
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    55
!
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    56
56
claus
parents:
diff changeset
    57
examples
claus
parents:
diff changeset
    58
"
claus
parents:
diff changeset
    59
  a separator between two button-panels:
160
61d95c5f5102 examples
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
    60
                                                                        [exBegin]
56
claus
parents:
diff changeset
    61
    |top p1 p2 sep|
claus
parents:
diff changeset
    62
claus
parents:
diff changeset
    63
    top := StandardSystemView new.
claus
parents:
diff changeset
    64
    top extent:300@300.
claus
parents:
diff changeset
    65
claus
parents:
diff changeset
    66
    p1 := VerticalPanelView origin:0.0@0.0 corner:1.0@0.5 in:top.
claus
parents:
diff changeset
    67
    p1 bottomInset:5; borderWidth:0.
claus
parents:
diff changeset
    68
    p2 := VerticalPanelView origin:0.0@0.5 corner:1.0@1.0 in:top.
claus
parents:
diff changeset
    69
    p2 topInset:5; borderWidth:0.
claus
parents:
diff changeset
    70
claus
parents:
diff changeset
    71
    (Button label:'one' in:p1) width:0.2.
claus
parents:
diff changeset
    72
    (Button label:'two' in:p1) width:0.2.
claus
parents:
diff changeset
    73
    (Button label:'three' in:p1) width:0.2.
claus
parents:
diff changeset
    74
claus
parents:
diff changeset
    75
    sep := Separator in:top.
claus
parents:
diff changeset
    76
    sep orientation:#horizontal.
claus
parents:
diff changeset
    77
    sep origin:0.0@0.5 extent:1.0@10.
claus
parents:
diff changeset
    78
    sep topInset:-5; bottomInset:-5.
claus
parents:
diff changeset
    79
claus
parents:
diff changeset
    80
    (Button label:'four' in:p2) width:0.2.
claus
parents:
diff changeset
    81
    (Button label:'five' in:p2) width:0.2.
claus
parents:
diff changeset
    82
    (Button label:'six' in:p2) width:0.2.
claus
parents:
diff changeset
    83
claus
parents:
diff changeset
    84
    top open
160
61d95c5f5102 examples
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
    85
                                                                        [exEnd]
56
claus
parents:
diff changeset
    86
claus
parents:
diff changeset
    87
claus
parents:
diff changeset
    88
  vertical:
160
61d95c5f5102 examples
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
    89
                                                                        [exBegin]
56
claus
parents:
diff changeset
    90
    |top p1 p2 sep|
claus
parents:
diff changeset
    91
claus
parents:
diff changeset
    92
    top := StandardSystemView new.
claus
parents:
diff changeset
    93
    top extent:300@300.
claus
parents:
diff changeset
    94
claus
parents:
diff changeset
    95
    p1 := VerticalPanelView origin:0.0@0.0 corner:0.5@1.0 in:top.
claus
parents:
diff changeset
    96
    p1 rightInset:5; borderWidth:0.
claus
parents:
diff changeset
    97
    p2 := VerticalPanelView origin:0.5@0.0 corner:1.0@1.0 in:top.
claus
parents:
diff changeset
    98
    p2 leftInset:5; borderWidth:0.
claus
parents:
diff changeset
    99
claus
parents:
diff changeset
   100
    (Button label:'one' in:p1) width:0.4.
claus
parents:
diff changeset
   101
    (Button label:'two' in:p1) width:0.4.
claus
parents:
diff changeset
   102
    (Button label:'three' in:p1) width:0.4.
claus
parents:
diff changeset
   103
claus
parents:
diff changeset
   104
    sep := Separator in:top.
claus
parents:
diff changeset
   105
    sep orientation:#vertical.
claus
parents:
diff changeset
   106
    sep origin:0.5@0.0 extent:10@1.0.
claus
parents:
diff changeset
   107
    sep leftInset:-5; rightInset:-5.
claus
parents:
diff changeset
   108
claus
parents:
diff changeset
   109
    (Button label:'four' in:p2) width:0.4.
claus
parents:
diff changeset
   110
    (Button label:'five' in:p2) width:0.4.
claus
parents:
diff changeset
   111
    (Button label:'six' in:p2) width:0.4.
claus
parents:
diff changeset
   112
claus
parents:
diff changeset
   113
    top open
160
61d95c5f5102 examples
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   114
                                                                        [exEnd]
56
claus
parents:
diff changeset
   115
claus
parents:
diff changeset
   116
claus
parents:
diff changeset
   117
  with multiple horizontal seps in a panel:
160
61d95c5f5102 examples
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   118
                                                                        [exBegin]
56
claus
parents:
diff changeset
   119
    |top p sep|
claus
parents:
diff changeset
   120
claus
parents:
diff changeset
   121
    top := StandardSystemView new.
claus
parents:
diff changeset
   122
    top extent:300@300.
claus
parents:
diff changeset
   123
claus
parents:
diff changeset
   124
    p := VerticalPanelView origin:0.0@0.0 corner:1.0@1.0 in:top.
claus
parents:
diff changeset
   125
    p verticalLayout:#spreadSpace.
claus
parents:
diff changeset
   126
    p horizontalLayout:#center.
claus
parents:
diff changeset
   127
claus
parents:
diff changeset
   128
    (Button label:'one' in:p).
claus
parents:
diff changeset
   129
    (Button label:'two' in:p).
claus
parents:
diff changeset
   130
    (Button label:'three' in:p).
claus
parents:
diff changeset
   131
claus
parents:
diff changeset
   132
    sep := Separator in:p.
claus
parents:
diff changeset
   133
    sep orientation:#horizontal.
claus
parents:
diff changeset
   134
    sep extent:0.9@10.
claus
parents:
diff changeset
   135
claus
parents:
diff changeset
   136
    (Button label:'four' in:p).
claus
parents:
diff changeset
   137
    (Button label:'five' in:p).
claus
parents:
diff changeset
   138
claus
parents:
diff changeset
   139
    sep := Separator in:p.
claus
parents:
diff changeset
   140
    sep orientation:#horizontal.
claus
parents:
diff changeset
   141
    sep extent:0.9@10.
claus
parents:
diff changeset
   142
claus
parents:
diff changeset
   143
    (Button label:'six' in:p).
claus
parents:
diff changeset
   144
claus
parents:
diff changeset
   145
    top open
160
61d95c5f5102 examples
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   146
                                                                        [exEnd]
56
claus
parents:
diff changeset
   147
"
95
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   148
! !
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   149
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   150
!Separator methodsFor:'accessing'!
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   151
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   152
orientation
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   153
    "return the orientation (one of #horizontal or #vertical)"
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   154
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   155
    ^ orientation
56
claus
parents:
diff changeset
   156
!
claus
parents:
diff changeset
   157
95
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   158
orientation:aSymbol
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   159
    "set the orientation to one of #horizontal or #vertical"
62
claus
parents: 56
diff changeset
   160
316
f6214d6f484d redraw if orientation changes
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
   161
    orientation := aSymbol.
2659
3af857eb52fb invalidate checks itself for shown-flag
Claus Gittinger <cg@exept.de>
parents: 1280
diff changeset
   162
    self invalidate
316
f6214d6f484d redraw if orientation changes
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
   163
f6214d6f484d redraw if orientation changes
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
   164
    "Modified: 28.2.1997 / 21:24:38 / cg"
56
claus
parents:
diff changeset
   165
! !
claus
parents:
diff changeset
   166
claus
parents:
diff changeset
   167
!Separator methodsFor:'drawing'!
claus
parents:
diff changeset
   168
3286
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   169
redrawX:x y:y width:w height:h
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   170
    |vCenter hCenter is3D bgColor|
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   171
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   172
    (shown and:[superView notNil]) ifFalse:[^ self].
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   173
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   174
    bgColor := superView viewBackground.
56
claus
parents:
diff changeset
   175
3286
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   176
    bgColor isColor ifTrue:[
5428
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   177
        gc paint:(superView viewBackground).
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   178
        gc fillRectangleX:x y:y width:w height:h.
3286
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   179
    ] ifFalse:[
5428
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   180
        gc clearRectangleX:x y:y width:w height:h.
3286
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   181
    ].
62
claus
parents: 56
diff changeset
   182
    is3D := styleSheet is3D.
56
claus
parents:
diff changeset
   183
5428
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   184
    gc paint:shadowColor.
56
claus
parents:
diff changeset
   185
    orientation == #vertical ifTrue:[
3286
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   186
        hCenter := self width // 2.
5428
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   187
        gc displayLineFromX:hCenter y:0 toX:hCenter y:height-1.
3286
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   188
        is3D ifTrue:[
5428
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   189
            gc paint:lightColor.
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   190
            gc displayLineFromX:hCenter+1 y:0 toX:hCenter+1 y:height-1.
3286
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   191
        ]
56
claus
parents:
diff changeset
   192
    ] ifFalse:[
3286
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   193
        vCenter := self height // 2.
5428
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   194
        gc displayLineFromX:0 y:vCenter toX:width-1 y:vCenter.
3286
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   195
        is3D ifTrue:[
5428
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   196
            gc paint:lightColor.
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   197
            gc displayLineFromX:0 y:vCenter+1 toX:width-1 y:vCenter+1.
3286
91e2e2399b81 clear background with color from superView
ca
parents: 2659
diff changeset
   198
        ]
56
claus
parents:
diff changeset
   199
    ]
864
d84a7a02f037 sizeChange must clear (try to resize ...)
Claus Gittinger <cg@exept.de>
parents: 602
diff changeset
   200
!
d84a7a02f037 sizeChange must clear (try to resize ...)
Claus Gittinger <cg@exept.de>
parents: 602
diff changeset
   201
d84a7a02f037 sizeChange must clear (try to resize ...)
Claus Gittinger <cg@exept.de>
parents: 602
diff changeset
   202
sizeChanged:how
d84a7a02f037 sizeChange must clear (try to resize ...)
Claus Gittinger <cg@exept.de>
parents: 602
diff changeset
   203
    super sizeChanged:how.
2659
3af857eb52fb invalidate checks itself for shown-flag
Claus Gittinger <cg@exept.de>
parents: 1280
diff changeset
   204
    self invalidate
864
d84a7a02f037 sizeChange must clear (try to resize ...)
Claus Gittinger <cg@exept.de>
parents: 602
diff changeset
   205
d84a7a02f037 sizeChange must clear (try to resize ...)
Claus Gittinger <cg@exept.de>
parents: 602
diff changeset
   206
    "Created: / 18.4.1998 / 02:36:42 / cg"
865
5c15ad847ad2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 864
diff changeset
   207
    "Modified: / 18.4.1998 / 14:10:05 / cg"
56
claus
parents:
diff changeset
   208
! !
claus
parents:
diff changeset
   209
1280
8836fc202970 changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents: 865
diff changeset
   210
!Separator methodsFor:'focus handling'!
8836fc202970 changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents: 865
diff changeset
   211
8836fc202970 changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents: 865
diff changeset
   212
wantsFocusWithButtonPress
8836fc202970 changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents: 865
diff changeset
   213
    "no, do not catch the keyboard focus on button click"
8836fc202970 changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents: 865
diff changeset
   214
8836fc202970 changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents: 865
diff changeset
   215
    ^ false
8836fc202970 changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents: 865
diff changeset
   216
8836fc202970 changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents: 865
diff changeset
   217
8836fc202970 changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents: 865
diff changeset
   218
! !
8836fc202970 changed request-focus-with-Button press
Claus Gittinger <cg@exept.de>
parents: 865
diff changeset
   219
56
claus
parents:
diff changeset
   220
!Separator methodsFor:'initialization'!
claus
parents:
diff changeset
   221
claus
parents:
diff changeset
   222
initialize
claus
parents:
diff changeset
   223
    super initialize.
3821
0770dc05bca4 border handling
Claus Gittinger <cg@exept.de>
parents: 3819
diff changeset
   224
    self borderWidth:0.
315
eab866497e0e orientation instVar was undefined.
Claus Gittinger <cg@exept.de>
parents: 300
diff changeset
   225
    orientation := #horizontal.
eab866497e0e orientation instVar was undefined.
Claus Gittinger <cg@exept.de>
parents: 300
diff changeset
   226
eab866497e0e orientation instVar was undefined.
Claus Gittinger <cg@exept.de>
parents: 300
diff changeset
   227
    "Modified: 28.2.1997 / 21:23:02 / cg"
56
claus
parents:
diff changeset
   228
! !
95
041618c4207f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   229
292
9c3f7022c578 checkin from browser
ca
parents: 160
diff changeset
   230
!Separator methodsFor:'queries'!
9c3f7022c578 checkin from browser
ca
parents: 160
diff changeset
   231
5947
eb55c8df142a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5428
diff changeset
   232
computePreferredExtent
323
61fe6bb4b5ee changed preferredExtent
Claus Gittinger <cg@exept.de>
parents: 316
diff changeset
   233
    |e|
61fe6bb4b5ee changed preferredExtent
Claus Gittinger <cg@exept.de>
parents: 316
diff changeset
   234
5947
eb55c8df142a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5428
diff changeset
   235
    e := super computePreferredExtent.
323
61fe6bb4b5ee changed preferredExtent
Claus Gittinger <cg@exept.de>
parents: 316
diff changeset
   236
    orientation == #horizontal ifTrue:[
61fe6bb4b5ee changed preferredExtent
Claus Gittinger <cg@exept.de>
parents: 316
diff changeset
   237
        ^ e x @ 5
61fe6bb4b5ee changed preferredExtent
Claus Gittinger <cg@exept.de>
parents: 316
diff changeset
   238
    ].
61fe6bb4b5ee changed preferredExtent
Claus Gittinger <cg@exept.de>
parents: 316
diff changeset
   239
    ^ 5 @ e y
61fe6bb4b5ee changed preferredExtent
Claus Gittinger <cg@exept.de>
parents: 316
diff changeset
   240
5947
eb55c8df142a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5428
diff changeset
   241
    "Created: / 09-11-2018 / 20:00:45 / Claus Gittinger"
323
61fe6bb4b5ee changed preferredExtent
Claus Gittinger <cg@exept.de>
parents: 316
diff changeset
   242
!
61fe6bb4b5ee changed preferredExtent
Claus Gittinger <cg@exept.de>
parents: 316
diff changeset
   243
292
9c3f7022c578 checkin from browser
ca
parents: 160
diff changeset
   244
specClass
602
342ca1c098a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
   245
    "redefined, since the name of my specClass is nonStandard (i.e. not SeparatorSpec)"
342ca1c098a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
   246
292
9c3f7022c578 checkin from browser
ca
parents: 160
diff changeset
   247
    self class == Separator ifTrue:[^ DividerSpec].
300
de23beb3af66 specClass query
ca
parents: 292
diff changeset
   248
    ^ super specClass
292
9c3f7022c578 checkin from browser
ca
parents: 160
diff changeset
   249
602
342ca1c098a6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
   250
    "Modified: / 31.10.1997 / 19:48:40 / cg"
292
9c3f7022c578 checkin from browser
ca
parents: 160
diff changeset
   251
! !
9c3f7022c578 checkin from browser
ca
parents: 160
diff changeset
   252
100
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 95
diff changeset
   253
!Separator class methodsFor:'documentation'!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 95
diff changeset
   254
316
f6214d6f484d redraw if orientation changes
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
   255
version
5428
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   256
    ^ '$Header$'
3819
298b060a5257 no more direct accesses to borderWidth and borderColor
Claus Gittinger <cg@exept.de>
parents: 3574
diff changeset
   257
!
298b060a5257 no more direct accesses to borderWidth and borderColor
Claus Gittinger <cg@exept.de>
parents: 3574
diff changeset
   258
298b060a5257 no more direct accesses to borderWidth and borderColor
Claus Gittinger <cg@exept.de>
parents: 3574
diff changeset
   259
version_CVS
5428
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   260
    ^ '$Header$'
100
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 95
diff changeset
   261
! !
5428
31afef66bfb5 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3821
diff changeset
   262