44
|
1 |
'From Smalltalk/X, Version:2.10.3 on 24-sep-1994 at 20:04:48'!
|
|
2 |
|
|
3 |
InspectorView subclass:#ColorInspectorView
|
|
4 |
instanceVariableNames:'colorView'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Interface-Inspector'
|
|
8 |
!
|
|
9 |
|
87
|
10 |
!ColorInspectorView class methodsFor:'documentation'!
|
|
11 |
|
|
12 |
copyright
|
|
13 |
"
|
|
14 |
COPYRIGHT (c) 1994 by Claus Gittinger
|
|
15 |
All Rights Reserved
|
|
16 |
|
|
17 |
This software is furnished under a license and may be used
|
|
18 |
only in accordance with the terms of that license and with the
|
|
19 |
inclusion of the above copyright notice. This software may not
|
|
20 |
be provided or otherwise made available to, or used by, any
|
|
21 |
other person. No title to or ownership of the software is
|
|
22 |
hereby transferred.
|
|
23 |
"
|
|
24 |
!
|
|
25 |
|
|
26 |
version
|
|
27 |
"
|
110
|
28 |
$Header: /cvs/stx/stx/libtool/ColorInspectorView.st,v 1.3 1995-08-10 13:13:45 claus Exp $
|
|
29 |
$Revision: 1.3 $
|
87
|
30 |
"
|
|
31 |
! !
|
|
32 |
|
44
|
33 |
!ColorInspectorView methodsFor:'accessing'!
|
|
34 |
|
|
35 |
inspect:anObject
|
|
36 |
super inspect:anObject.
|
|
37 |
realized ifFalse:[^ self].
|
|
38 |
colorView viewBackground:anObject.
|
|
39 |
colorView clear
|
|
40 |
! !
|
|
41 |
|
|
42 |
!ColorInspectorView methodsFor:'initialization'!
|
|
43 |
|
|
44 |
initialize
|
|
45 |
|newPanel sub|
|
|
46 |
|
|
47 |
super initialize.
|
|
48 |
|
|
49 |
newPanel := VariableVerticalPanel in:self.
|
|
50 |
newPanel origin:0.0 @ 0.0 corner:1.0 @ 1.0.
|
|
51 |
|
|
52 |
sub := subViews first.
|
|
53 |
self removeSubView:sub.
|
|
54 |
sub origin:0.0@0.0 corner:1.0@0.8.
|
|
55 |
newPanel addSubView:sub.
|
|
56 |
|
|
57 |
colorView := View in:newPanel.
|
|
58 |
colorView origin:(0.0 @ 0.8) corner:(1.0 @ 1.0).
|
|
59 |
|
|
60 |
"
|
|
61 |
ColorInspectorView inspect:(Color yellow)
|
|
62 |
ColorInspectorView inspect:(Color name:'brown') lightened)
|
|
63 |
"
|
|
64 |
! !
|