author | Claus Gittinger <cg@exept.de> |
Sat, 11 Nov 1995 16:41:09 +0100 | |
changeset 165 | df29ee4514c1 |
parent 111 | b4ef3e799345 |
child 2236 | 257f587ad7dc |
permissions | -rw-r--r-- |
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 |
|
165
df29ee4514c1
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
111
diff
changeset
|
27 |
^ '$Header: /cvs/stx/stx/libtool/ColorInspectorView.st,v 1.5 1995-11-11 15:39:26 cg Exp $' |
87 | 28 |
! ! |
29 |
||
44 | 30 |
!ColorInspectorView methodsFor:'accessing'! |
31 |
||
32 |
inspect:anObject |
|
33 |
super inspect:anObject. |
|
34 |
realized ifFalse:[^ self]. |
|
35 |
colorView viewBackground:anObject. |
|
36 |
colorView clear |
|
37 |
! ! |
|
38 |
||
39 |
!ColorInspectorView methodsFor:'initialization'! |
|
40 |
||
41 |
initialize |
|
42 |
|newPanel sub| |
|
43 |
||
44 |
super initialize. |
|
45 |
||
46 |
newPanel := VariableVerticalPanel in:self. |
|
47 |
newPanel origin:0.0 @ 0.0 corner:1.0 @ 1.0. |
|
48 |
||
49 |
sub := subViews first. |
|
50 |
self removeSubView:sub. |
|
51 |
sub origin:0.0@0.0 corner:1.0@0.8. |
|
52 |
newPanel addSubView:sub. |
|
53 |
||
54 |
colorView := View in:newPanel. |
|
55 |
colorView origin:(0.0 @ 0.8) corner:(1.0 @ 1.0). |
|
56 |
||
57 |
" |
|
58 |
ColorInspectorView inspect:(Color yellow) |
|
59 |
ColorInspectorView inspect:(Color name:'brown') lightened) |
|
60 |
" |
|
61 |
! ! |