author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sat, 30 Sep 2017 22:41:09 +0100 | |
branch | jv |
changeset 4020 | d801dbd5cf3b |
parent 3855 | 1db7742d33ad |
permissions | -rw-r--r-- |
3855
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
1 |
" |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
2 |
COPYRIGHT (c) Claus Gittinger / 2006 by eXept Software AG |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
3 |
All Rights Reserved |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
4 |
|
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
5 |
This software is furnished under a license and may be used |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
6 |
only in accordance with the terms of that license and with the |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
7 |
inclusion of the above copyright notice. This software may not |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
8 |
be provided or otherwise made available to, or used by, any |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
9 |
other person. No title to or ownership of the software is |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
10 |
hereby transferred. |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
11 |
" |
1789 | 12 |
"{ Package: 'stx:libview2' }" |
13 |
||
3855
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
14 |
"{ NameSpace: Smalltalk }" |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
15 |
|
364 | 16 |
VisualPart subclass:#CompositePart |
17 |
instanceVariableNames:'components preferredBounds' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
1789 | 20 |
category:'Compatibility-ST80-Graphics-Display Objects' |
364 | 21 |
! |
22 |
||
23 |
!CompositePart class methodsFor:'documentation'! |
|
24 |
||
3855
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
25 |
copyright |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
26 |
" |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
27 |
COPYRIGHT (c) Claus Gittinger / 2006 by eXept Software AG |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
28 |
All Rights Reserved |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
29 |
|
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
30 |
This software is furnished under a license and may be used |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
31 |
only in accordance with the terms of that license and with the |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
32 |
inclusion of the above copyright notice. This software may not |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
33 |
be provided or otherwise made available to, or used by, any |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
34 |
other person. No title to or ownership of the software is |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
35 |
hereby transferred. |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
36 |
" |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
37 |
! |
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
38 |
|
364 | 39 |
documentation |
40 |
" |
|
41 |
a dummy class - only existing to provide a compatible home |
|
42 |
for fileIn of ST-80 classes. |
|
43 |
||
44 |
Notice: |
|
45 |
this class was implemented using protocol information |
|
46 |
from alpha testers, from reading PD programs and |
|
47 |
from the Hopkins/Horan book. |
|
48 |
- it may not be complete or compatible to the corresponding ST-80 class. |
|
49 |
If you encounter any incompatibilities, please forward a note |
|
50 |
describing the incompatibility verbal (i.e. no code) to the ST/X team. |
|
51 |
||
52 |
[author:] |
|
53 |
Claus Gittinger |
|
54 |
" |
|
55 |
||
56 |
||
57 |
||
58 |
||
59 |
! ! |
|
60 |
||
61 |
!CompositePart methodsFor:'accessing'! |
|
62 |
||
63 |
components |
|
64 |
"return the components" |
|
65 |
||
66 |
^ components |
|
67 |
||
68 |
"Created: 14.2.1997 / 17:57:23 / cg" |
|
69 |
"Modified: 14.2.1997 / 17:57:32 / cg" |
|
70 |
! ! |
|
71 |
||
72 |
!CompositePart methodsFor:'adding-removing'! |
|
73 |
||
74 |
add:aComponent |
|
993 | 75 |
components isNil ifTrue:[ |
76 |
components := OrderedCollection new |
|
77 |
]. |
|
999 | 78 |
components add:aComponent. |
79 |
aComponent container:self. |
|
80 |
self changed:#sizeOfContents |
|
364 | 81 |
|
993 | 82 |
"Created: / 14.2.1997 / 17:57:59 / cg" |
999 | 83 |
"Modified: / 6.7.1998 / 18:50:40 / cg" |
364 | 84 |
! |
85 |
||
86 |
add:aComponent at:aPoint |
|
87 |
aComponent origin:aPoint. |
|
993 | 88 |
self add:aComponent |
89 |
||
90 |
"Created: / 14.2.1997 / 17:58:19 / cg" |
|
91 |
"Modified: / 6.7.1998 / 13:44:01 / cg" |
|
92 |
! ! |
|
93 |
||
94 |
!CompositePart methodsFor:'displaying'! |
|
364 | 95 |
|
993 | 96 |
displayOn:aGC |
97 |
"display the receiver on some graphicsContext. |
|
98 |
The sender is repsonsible for restoring the GC's state |
|
99 |
(i.e. it may be left in any undefined state)" |
|
100 |
||
999 | 101 |
components notNil ifTrue:[ |
102 |
components do:[:aComponent | |
|
103 |
aComponent displayOn:aGC |
|
104 |
] |
|
993 | 105 |
]. |
106 |
||
107 |
"Created: / 6.7.1998 / 13:59:33 / cg" |
|
999 | 108 |
"Modified: / 6.7.1998 / 17:55:40 / cg" |
109 |
! ! |
|
110 |
||
111 |
!CompositePart methodsFor:'view protocol mimicri'! |
|
112 |
||
113 |
realizeAllSubViews |
|
114 |
"realize all my subviews - but not myself." |
|
115 |
||
116 |
components notNil ifTrue:[ |
|
117 |
components do:[:component | |
|
118 |
component realize |
|
119 |
] |
|
120 |
]. |
|
121 |
||
122 |
"Modified: / 5.9.1995 / 23:30:47 / claus" |
|
123 |
"Modified: / 13.1.1997 / 21:25:49 / cg" |
|
124 |
"Created: / 6.7.1998 / 18:37:39 / cg" |
|
1220
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
999
diff
changeset
|
125 |
! |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
999
diff
changeset
|
126 |
|
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
999
diff
changeset
|
127 |
withAllSubViewsDo:aBlock |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
999
diff
changeset
|
128 |
aBlock value:self. |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
999
diff
changeset
|
129 |
components notNil ifTrue:[ |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
999
diff
changeset
|
130 |
components do:[:aComponent | |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
999
diff
changeset
|
131 |
aComponent withAllSubViewsDo:aBlock |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
999
diff
changeset
|
132 |
] |
39e5e28042da
protocol fixes to make examples work again
Claus Gittinger <cg@exept.de>
parents:
999
diff
changeset
|
133 |
] |
364 | 134 |
! ! |
135 |
||
136 |
!CompositePart class methodsFor:'documentation'! |
|
137 |
||
138 |
version |
|
1789 | 139 |
^ '$Header: /cvs/stx/stx/libview2/CompositePart.st,v 1.5 2003-08-18 12:13:47 cg Exp $' |
364 | 140 |
! ! |
3855
1db7742d33ad
Win32: Build libjpeg in its own directory, out-of-source-tree.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1789
diff
changeset
|
141 |