4582
|
1 |
"{ Package: 'stx:libview' }"
|
|
2 |
|
|
3 |
LibraryDefinition subclass:#stx_libview
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
4746
|
7 |
category:'* Projects & Packages *'
|
4582
|
8 |
!
|
|
9 |
|
|
10 |
|
4775
|
11 |
!stx_libview class methodsFor:'description'!
|
|
12 |
|
|
13 |
excludedFromPreRequisites
|
|
14 |
^ #(
|
|
15 |
#'stx:libcompat' "OrderedDither - referenced by Image>>convertToPalette:renderedBy: "
|
|
16 |
#'stx:libtool' "GenericToolbarIconLibrary - referenced by SimpleView class>>readStyleSheet "
|
|
17 |
#'stx:libtool2' "ImageEditor - referenced by Image>>edit "
|
|
18 |
#'stx:libui' "ViewSpec - referenced by SimpleView>>specClass "
|
|
19 |
#'stx:libview2' "TIFFReader - referenced by Image>>saveOn: "
|
|
20 |
#'stx:libwidg' "Button - referenced by ModalBox>>initialize "
|
|
21 |
#'stx:libwidg2' "ImageView - referenced by Form>>show "
|
|
22 |
)
|
|
23 |
!
|
|
24 |
|
|
25 |
preRequisites
|
|
26 |
^ #(
|
|
27 |
#'stx:libbasic' "Object - superclass of MappedPalette "
|
|
28 |
#'stx:libbasic2' "IntegerArray - referenced by XWorkstation>>supportedTargetAtoms "
|
|
29 |
)
|
|
30 |
! !
|
|
31 |
|
4698
|
32 |
!stx_libview class methodsFor:'description - compilation'!
|
|
33 |
|
|
34 |
additionalDefinitions_bc_dot_mak
|
|
35 |
^ '
|
|
36 |
# see stdHeader_bc for LIBVIEW_BASE
|
|
37 |
LIB_BASE_LD_ARG=-b:$(LIBVIEW_BASE)
|
|
38 |
'
|
|
39 |
!
|
|
40 |
|
|
41 |
additionalRules_make_dot_proto
|
|
42 |
^ '#
|
|
43 |
# XWorkstatation and GLXWorkstatation are separate (shared) Objects - compile without sepInitCode
|
|
44 |
# and without -Zlibview (to speedup ld.so on SGI, by avoiding conflicts)
|
|
45 |
#
|
|
46 |
|
|
47 |
XWorkstation.$(O): XWorkstation.st $(INCLUDE_TOP)/stx/libview/DeviceWorkstation.H $(INCLUDE_TOP)/stx/libview/HostGraphicsDevice.H $(INCLUDE_TOP)/stx/libview/GraphicsDevice.H
|
|
48 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=XWorkstation \
|
|
49 |
CC="$(CC)" OPT="$(OPT)" \
|
|
50 |
CLASSLIB_CC="$(CLASSLIB_CC)" \
|
|
51 |
CLASSLIB_OPT="$(CLASSLIB_OPT) -primitiveStackSize=64000" \
|
|
52 |
SEPINITCODE=-sepInitCode ZFLAG=
|
|
53 |
|
|
54 |
xw:
|
|
55 |
$(MAKE) XWorkstation.c \
|
|
56 |
CC="$(CC)" OPT="$(OPT)" \
|
|
57 |
CLASSLIB_CC="$(CLASSLIB_CC)" \
|
|
58 |
CLASSLIB_OPT="$(CLASSLIB_OPT) -primitiveStackSize: 64000 -V" \
|
|
59 |
SEPINITCODE=-sepInitCode ZFLAG=
|
|
60 |
|
|
61 |
XWorkstation.$(SO): XWorkstation.$(O)
|
|
62 |
$(MAKE) $(SHAREDLIBRULE) LIB=XWorkstation.$(SO) OBJS="XWorkstation.$(O)" LOCAL_SHARED_LIBS="-L$(X_LIB_DIR) $(LIB_XT) $(LIB_X)"
|
|
63 |
|
|
64 |
|
|
65 |
__GLXWorkstation.$(O): GLXWorkstation.st $(INCLUDE_TOP)/stx/libview/XWorkstation.H $(INCLUDE_TOP)/stx/libview/DeviceWorkstation.H $(INCLUDE_TOP)/stx/libview/HostGraphicsDevice.H $(INCLUDE_TOP)/stx/libview/GraphicsDevice.H $(INCLUDE)/stc.h
|
|
66 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=GLXWorkstation \
|
|
67 |
CC="$(CC)" OPT="$(OPT)" \
|
|
68 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" \
|
|
69 |
SEPINITCODE=-sepInitCode ZFLAG=
|
|
70 |
mv GLXWorkstation.$(O) __GLXWorkstation.$(O)
|
|
71 |
|
|
72 |
GLXWorkstation.$(O): glLib __GLXWorkstation.$(O)
|
|
73 |
@if [ "$(NO_PRELINK_LIBGL)" = "" ]; \
|
|
74 |
then\
|
|
75 |
echo $(CLASSLIB_LD) $(LD_REL_FLAG) -o GLXWorkstation.$(O) __GLXWorkstation.$(O) $(LIB_GL); \
|
|
76 |
$(CLASSLIB_LD) $(LD_REL_FLAG) -o GLXWorkstation.$(O) __GLXWorkstation.$(O) $(LIB_GL); \
|
|
77 |
else \
|
|
78 |
echo cp __GLXWorkstation.$(O) GLXWorkstation.$(O); \
|
|
79 |
cp __GLXWorkstation.$(O) GLXWorkstation.$(O); \
|
|
80 |
fi
|
|
81 |
|
|
82 |
glLib:
|
|
83 |
@-if [ -d ../support/VGL ]; then \
|
|
84 |
(cd ../support/VGL ; $(MAKE) ) ; \
|
|
85 |
fi
|
|
86 |
|
|
87 |
DeviceWorkstation.$(O):
|
|
88 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DeviceWorkstation \
|
|
89 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \
|
|
90 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)"
|
|
91 |
|
|
92 |
SimpleView.$(O):
|
|
93 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=SimpleView \
|
|
94 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \
|
|
95 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)"
|
|
96 |
|
|
97 |
Image.$(O):
|
|
98 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Image \
|
|
99 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \
|
|
100 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)"
|
|
101 |
|
|
102 |
#OGLWorkstation.$(O): OGLWorkstation.st
|
|
103 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=OGLWorkstation CC=$(CC) OPT="$(OPT)" \
|
|
104 |
# XDEFS="-DOPENGL -I$(MESA_DIR)/include" SEPINITCODE=-sepInitCode ZFLAG=
|
|
105 |
# $(CLASSLIB_LD) -r -o ttt.$(O) OGLWorkstation.$(O) \
|
|
106 |
# $(MESA_DIR)/lib/libMesaGL.a \
|
|
107 |
# $(MESA_DIR)/lib/libMesaGLU.a \
|
|
108 |
# $(MESA_DIR)/lib/libMesaaux.a
|
|
109 |
# mv ttt.$(O) OGLWorkstation.$(O)
|
|
110 |
|
|
111 |
OGLWorkstation.$(O): GLXWorkstation.st
|
|
112 |
cp GLXWorkstation.st OGLWorkstation.st
|
|
113 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=OGLWorkstation \
|
|
114 |
CC="$(CC)" OPT="$(OPT)" \
|
|
115 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" \
|
|
116 |
CC_VOGL_FLAGS="$(CC_MESA_INCLUDE) -DOPENGL -DMESA -UVGL -UGLX"\
|
|
117 |
SEPINITCODE=-sepInitCode ZFLAG=
|
|
118 |
$(CLASSLIB_LD) -r -o ttt.$(O) OGLWorkstation.$(O) \
|
|
119 |
$(MESA_DIR)/lib/libMesaGL.a \
|
|
120 |
$(MESA_DIR)/lib/libMesaGLU.a \
|
|
121 |
$(MESA_DIR)/lib/libMesaaux.a
|
|
122 |
mv ttt.$(O) OGLWorkstation.$(O)
|
|
123 |
rm -f OGLWorkstation.st
|
|
124 |
|
|
125 |
#ogl:
|
|
126 |
# $(MAKE) OGLWorkstation.o XDEFS="-DOPENGL -I$(VOGL_DIR) -DSHAPE" SEPINITCODE=-sepInitCode ZFLAG=
|
|
127 |
# mv OGLWorkstation.o ttt.o
|
|
128 |
# $(CLASSLIB_LD) -r -o OGLWorkstation.o ttt.o \
|
|
129 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaGL.a \
|
|
130 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaGLU.a \
|
|
131 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaaux.a \
|
|
132 |
# /lib/libc.so.4
|
|
133 |
|
|
134 |
#
|
|
135 |
# on my 320H, do not compile DeviceWorkstation with -O2;
|
|
136 |
# compiler is running out of space ...
|
|
137 |
#
|
|
138 |
#AIX_BIGGIES:
|
|
139 |
# $(MAKE) GraphicsContext.$(O)
|
|
140 |
# $(MAKE) DeviceGraphicsContext.$(O)
|
|
141 |
# $(MAKE) OPT= DeviceWorkstation.$(O)
|
|
142 |
# $(MAKE) OPT= XWorkstation.$(O)
|
|
143 |
# $(MAKE) OPT= Image.$(O)
|
|
144 |
# $(MAKE) OPT= SimpleView.$(O)
|
|
145 |
|
|
146 |
#
|
|
147 |
# prelink those - cannot mix non-shared with shared objects (sigh)
|
|
148 |
#
|
|
149 |
AIX_SHARED_XWORKSTATION:
|
|
150 |
$(MAKE) GraphicsDevice.$(O) HostGraphicsDevice.$(O) DeviceWorkstation.$(O)
|
|
151 |
$(MAKE) aix_exports LIBNAME=XWorkstation ENTRY=XWorkstation
|
|
152 |
@-echo "__XErrorHandler__" >> XWorkstation.exp
|
|
153 |
@-echo "__XIOErrorHandler__" >> XWorkstation.exp
|
|
154 |
$(MAKE) XWorkstation$(O_EXT) \
|
|
155 |
ENTRY_INIT=XWorkstation \
|
|
156 |
AIX_LOCAL_LIBS="$(LIBX)"
|
|
157 |
|
|
158 |
AIX_SHARED_GLXWORKSTATION:
|
|
159 |
$(MAKE) GraphicsDevice.$(O) HostGraphicsDevice.$(O) DeviceWorkstation.$(O)
|
|
160 |
$(MAKE) aix_exports LIBNAME=XWorkstation ENTRY=XWorkstation
|
|
161 |
@-echo "__XErrorHandler__" >> XWorkstation.exp
|
|
162 |
@-echo "__XIOErrorHandler__" >> XWorkstation.exp
|
|
163 |
$(MAKE) GLXWorkstation$(O_EXT) \
|
|
164 |
ENTRY_INIT=GLXWorkstation \
|
|
165 |
AIX_LOCAL_LIBS="-bI:XWorkstation.exp $(LIB_GL) $(LIBX) -lm"
|
|
166 |
rm -f XWorkstation.exp
|
|
167 |
|
|
168 |
#
|
|
169 |
# in (my) aix system, those cannot be compiled with
|
|
170 |
# the optimizer - running out of space ...
|
|
171 |
#
|
|
172 |
AIX:: GraphicsContext.$(O) DeviceGraphicsContext.$(O) GraphicsMedium.$(O) DisplaySurface.$(O)
|
|
173 |
$(MAKE) OPT="" SimpleView.$(O)
|
|
174 |
$(MAKE) OPT="" Image.$(O)
|
|
175 |
$(MAKE) $(AIX_XWORKSTATION_RULE) $(AIX_GLXWORKSTATION_RULE)
|
|
176 |
|
|
177 |
#
|
|
178 |
# on HP, big classes blow the C-preprocessor (stops with "too much defining" error)
|
|
179 |
#
|
|
180 |
#HP::
|
|
181 |
#
|
|
182 |
#HPbigFiles:
|
|
183 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Color CC=$(CC) OPT="$(OPT)"
|
|
184 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DeviceGraphicsContext CC=$(CC) OPT="$(OPT)"
|
|
185 |
'
|
|
186 |
!
|
|
187 |
|
|
188 |
localDefines_unix
|
|
189 |
^ '-I$(XINCLUDE) $(XDEFS) $(CC_3D_FLAGS)'
|
|
190 |
! !
|
|
191 |
|
4582
|
192 |
!stx_libview class methodsFor:'description - contents'!
|
|
193 |
|
|
194 |
classNamesAndAttributes
|
|
195 |
^ #(
|
4775
|
196 |
"<className> or (<className> attributes...) in load order"
|
|
197 |
(AlphaMask autoload)
|
|
198 |
(BitmapFont autoload)
|
4924
|
199 |
Border
|
4775
|
200 |
Color
|
|
201 |
ColorPalette
|
|
202 |
Colormap
|
|
203 |
(CompoundFont autoload)
|
|
204 |
Controller
|
|
205 |
(ControllerWithMenu autoload)
|
|
206 |
Cursor
|
|
207 |
Depth16Image
|
|
208 |
Depth1Image
|
|
209 |
Depth24Image
|
|
210 |
Depth2Image
|
|
211 |
Depth32Image
|
|
212 |
Depth4Image
|
|
213 |
Depth8Image
|
|
214 |
DeviceGraphicsContext
|
|
215 |
DeviceHandle
|
|
216 |
DeviceWorkstation
|
|
217 |
DisplayRootView
|
|
218 |
DisplaySurface
|
|
219 |
(FixedPalette autoload)
|
|
220 |
Font
|
|
221 |
FontDescription
|
|
222 |
Form
|
|
223 |
(GraphicsAttributes autoload)
|
|
224 |
GraphicsContext
|
|
225 |
GraphicsDevice
|
|
226 |
GraphicsMedium
|
|
227 |
HostGraphicsDevice
|
|
228 |
Image
|
|
229 |
ImageMask
|
|
230 |
ImageReader
|
|
231 |
KeyboardForwarder
|
|
232 |
KeyboardMap
|
|
233 |
(MDIChildView autoload)
|
|
234 |
MappedPalette
|
|
235 |
ModalBox
|
|
236 |
MonoMappedPalette
|
|
237 |
(NeXTWorkstation autoload)
|
|
238 |
PopUpView
|
|
239 |
ResourcePack
|
|
240 |
ShadowView
|
|
241 |
SimpleView
|
|
242 |
StandardSystemView
|
|
243 |
SynchronousWindowSensor
|
|
244 |
TopView
|
|
245 |
(TranslucentColor autoload)
|
|
246 |
View
|
|
247 |
ViewStyle
|
|
248 |
(WinWorkstation win32)
|
|
249 |
(WinPrinter win32)
|
|
250 |
WindowEvent
|
|
251 |
WindowGroup
|
|
252 |
WindowSensor
|
|
253 |
WindowingTransformation
|
5096
|
254 |
XWorkstation
|
5094
|
255 |
(GLXWorkstation unix)
|
4775
|
256 |
#'stx_libview'
|
4582
|
257 |
)
|
|
258 |
!
|
|
259 |
|
|
260 |
extensionMethodNames
|
|
261 |
^ #(
|
|
262 |
)
|
|
263 |
! !
|
|
264 |
|
4583
|
265 |
!stx_libview class methodsFor:'description - files'!
|
|
266 |
|
|
267 |
protectedFileNames
|
|
268 |
"do NOT overwrite the hand-written Make.proto"
|
|
269 |
|
4599
|
270 |
^ #( 'Make.proto' )
|
4583
|
271 |
|
|
272 |
"Created: / 14-09-2006 / 14:39:33 / cg"
|
4599
|
273 |
"Modified: / 14-09-2006 / 16:15:22 / cg"
|
4583
|
274 |
! !
|
|
275 |
|
4582
|
276 |
!stx_libview class methodsFor:'description - project information'!
|
|
277 |
|
|
278 |
companyName
|
|
279 |
"Return a companyname which will appear in <lib>.rc"
|
|
280 |
|
|
281 |
^ 'eXept Software AG'
|
|
282 |
!
|
|
283 |
|
|
284 |
description
|
|
285 |
"Return a description string which will appear in nt.def / bc.def"
|
|
286 |
|
|
287 |
^ 'Smalltalk/X Low Level Graphic Interfacing'
|
|
288 |
|
|
289 |
"Modified: / 14-09-2006 / 10:54:54 / cg"
|
|
290 |
!
|
|
291 |
|
|
292 |
legalCopyright
|
|
293 |
"Return a copyright string which will appear in <lib>.rc"
|
|
294 |
|
5016
|
295 |
^ 'Copyright Claus Gittinger 1988-2008\nCopyright eXept Software AG 1998-2008'
|
4841
|
296 |
|
|
297 |
"Modified: / 08-11-2007 / 16:59:07 / cg"
|
4582
|
298 |
! !
|
|
299 |
|
|
300 |
!stx_libview class methodsFor:'documentation'!
|
|
301 |
|
|
302 |
version
|
5101
|
303 |
^ '$Header: /cvs/stx/stx/libview/stx_libview.st,v 1.23 2008-11-24 12:46:20 cg Exp $'
|
4582
|
304 |
! !
|