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