author | tz |
Thu, 04 Dec 1997 10:47:38 +0100 | |
changeset 1379 | 9424d8fe85a7 |
parent 1011 | 1022e80a1c60 |
child 1872 | 1c3c80a1973f |
permissions | -rw-r--r-- |
30 | 1 |
" |
2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
45 | 3 |
All Rights Reserved |
30 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
InspectorView subclass:#ImageInspectorView |
|
516 | 14 |
instanceVariableNames:'imageView' |
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'Interface-Inspector' |
|
30 | 18 |
! |
19 |
||
1011
1022e80a1c60
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
647
diff
changeset
|
20 |
!ImageInspectorView class methodsFor:'documentation'! |
110 | 21 |
|
22 |
copyright |
|
23 |
" |
|
24 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
25 |
All Rights Reserved |
|
26 |
||
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
128 | 36 |
documentation |
37 |
" |
|
38 |
this class allows better inspection of images, |
|
39 |
by adding another subView, which displays the image. |
|
40 |
" |
|
110 | 41 |
! ! |
42 |
||
30 | 43 |
!ImageInspectorView methodsFor:'accessing'! |
44 |
||
45 |
inspect:anObject |
|
46 |
super inspect:anObject. |
|
47 |
realized ifFalse:[^ self]. |
|
48 |
imageView image:anObject |
|
49 |
||
45 | 50 |
" |
51 |
ImageInspectorView inspect:(Image fromScreen:(0@0 corner:800@800)) |
|
52 |
" |
|
30 | 53 |
! ! |
54 |
||
55 |
!ImageInspectorView methodsFor:'initialization'! |
|
56 |
||
57 |
initialize |
|
107 | 58 |
|v newPanel sub| |
30 | 59 |
|
60 |
super initialize. |
|
61 |
||
45 | 62 |
newPanel := VariableVerticalPanel in:self. |
63 |
newPanel origin:0.0 @ 0.0 corner:1.0 @ 1.0. |
|
30 | 64 |
|
45 | 65 |
" |
66 |
wrap my existing subview into the new |
|
67 |
variable panel |
|
68 |
" |
|
1011
1022e80a1c60
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
647
diff
changeset
|
69 |
sub := self subViews first. |
45 | 70 |
self removeSubView:sub. |
71 |
sub origin:0.0@0.0 corner:1.0@0.3. |
|
72 |
newPanel addSubView:sub. |
|
73 |
||
1379 | 74 |
v := HVScrollableView for:ImageView in:newPanel. |
30 | 75 |
v origin:(0.0 @ 0.3) corner:(1.0 @ 1.0). |
76 |
imageView := v scrolledView. |
|
77 |
||
45 | 78 |
" |
79 |
ImageInspectorView new realize |
|
80 |
ImageInspectorView inspect:(Image fromFile:'bitmaps/claus.gif') |
|
81 |
" |
|
1011
1022e80a1c60
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
647
diff
changeset
|
82 |
|
1022e80a1c60
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
647
diff
changeset
|
83 |
"Modified: 28.1.1997 / 17:51:08 / cg" |
30 | 84 |
! ! |
516 | 85 |
|
1011
1022e80a1c60
eliminated references to subViews instance variable (will vanish)
Claus Gittinger <cg@exept.de>
parents:
647
diff
changeset
|
86 |
!ImageInspectorView class methodsFor:'documentation'! |
516 | 87 |
|
88 |
version |
|
1379 | 89 |
^ '$Header: /cvs/stx/stx/libtool/ImageInspectorView.st,v 1.12 1997-12-04 09:47:38 tz Exp $' |
516 | 90 |
! ! |