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 |
|
110
|
20 |
!ImageInspectorView class methodsFor:'documentation'!
|
|
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 |
"
|
|
69 |
sub := subViews first.
|
|
70 |
self removeSubView:sub.
|
|
71 |
sub origin:0.0@0.0 corner:1.0@0.3.
|
|
72 |
newPanel addSubView:sub.
|
|
73 |
|
|
74 |
v := HVScrollableView for:ImageEditView 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 |
"
|
30
|
82 |
! !
|
516
|
83 |
|
|
84 |
!ImageInspectorView class methodsFor:'documentation'!
|
|
85 |
|
|
86 |
version
|
|
87 |
^ '$Header: /cvs/stx/stx/libtool/ImageInspectorView.st,v 1.9 1996-04-27 17:55:05 cg Exp $'
|
|
88 |
! !
|