Compare commits
495 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
6bdab4dcd1 | ||
|
dc3d889d0b | ||
|
b18cfdd9bd | ||
|
f8f3e76318 | ||
|
f47cd02d71 | ||
|
05edc41991 | ||
|
6aa929e784 | ||
|
8916026b7e | ||
|
0a0352f2f8 | ||
|
26993c4f64 | ||
|
062a3faae7 | ||
|
09fb214e01 | ||
|
34cb2199dc | ||
|
cca602accb | ||
|
dae167759c | ||
|
8c5907cea3 | ||
|
c2c436609d | ||
|
dbf75be725 | ||
|
ceded8b925 | ||
|
281b0186b8 | ||
|
1f3c610d03 | ||
|
a20b6d3ab3 | ||
|
7ff26ec2ae | ||
|
bae411099c | ||
|
bd3277fec0 | ||
|
15909a16b3 | ||
|
3d6f72618e | ||
|
9c6751aa46 | ||
|
7fee680be8 | ||
|
8e792b5432 | ||
|
3720ab6a98 | ||
|
2633045c32 | ||
|
c837a756e8 | ||
|
a5ea1d7cc8 | ||
|
08c921042e | ||
|
e9f88d0414 | ||
|
af7451accc | ||
|
f7aa71fa81 | ||
|
444cb676b2 | ||
|
6e58645e86 | ||
|
d06b34a73e | ||
|
aaef15bf82 | ||
|
3711412e38 | ||
|
ede8795ff0 | ||
|
e8741ccae8 | ||
|
feea7c52e9 | ||
|
3b415ba4cd | ||
|
b59c98ddb8 | ||
|
999e841c9e | ||
|
7a85f3f97c | ||
|
6040c9de74 | ||
|
468e327aac | ||
|
eb4efbdc86 | ||
|
08abd69b58 | ||
|
c56371028f | ||
|
99ad02720b | ||
|
1bd59dddc3 | ||
|
fac2666314 | ||
|
7c1122c4eb | ||
|
2b33b72819 | ||
|
90cfeaab3f | ||
|
2d027cfa88 | ||
|
d50af7148c | ||
|
2c68bdb64e | ||
|
541418efad | ||
|
741f371c68 | ||
|
6787e41e49 | ||
|
528e0faf1c | ||
|
ee284519e4 | ||
|
bd53731ec3 | ||
|
4107335720 | ||
|
de9d9ed211 | ||
|
89e6035748 | ||
|
2e8a1588f8 | ||
|
c092213d52 | ||
|
1f0500b3ee | ||
|
8759d4d519 | ||
|
aa9fb2be6d | ||
|
6a6d5b4731 | ||
|
a7987cc1a2 | ||
|
b2b3552407 | ||
|
fb04b3438d | ||
|
b2cf617cb8 | ||
|
a37a5a73c5 | ||
|
3bfbab1e83 | ||
|
5d9fe0892b | ||
|
7d9fd00474 | ||
|
e5b502f3a6 | ||
|
bc1dcfc1aa | ||
|
f4bfe7e0c1 | ||
|
a18db02249 | ||
|
2d8a5cb1da | ||
|
7ef53f2dc5 | ||
|
5a074a3c22 | ||
|
780ee02d16 | ||
|
1c85008fcf | ||
|
a78e08d6cb | ||
|
27f37ae504 | ||
|
f6a3517155 | ||
|
ec974d2300 | ||
|
2750885629 | ||
|
6158481fe5 | ||
|
9c824f2977 | ||
|
595b5c4eb6 | ||
|
e2f1cfb2cc | ||
|
6fb8177afd | ||
|
d3f5d09d47 | ||
|
c3cea74805 | ||
|
cc534ff767 | ||
|
5c9eff3055 | ||
|
032d558182 | ||
|
80629c8bf6 | ||
|
609c60af5e | ||
|
8185521695 | ||
|
69d042c37d | ||
|
039bec17f4 | ||
|
3f755e2d96 | ||
|
df991b9dfb | ||
|
fdc0367851 | ||
|
4a8fc2c8b3 | ||
|
8128349e81 | ||
|
ab0f03868e | ||
|
4e0dcbb14a | ||
|
0d910be798 | ||
|
23d38b36f8 | ||
|
ccdb23df47 | ||
|
9239628cfc | ||
|
8e3aec856b | ||
|
13588544c5 | ||
|
aac67d4c3d | ||
|
29c25a8e01 | ||
|
0ca580f6fb | ||
|
967a572877 | ||
|
27df579a6f | ||
|
117082d17b | ||
|
89fc5e5d66 | ||
|
9fc3cba7fa | ||
|
8a9c22462a | ||
|
9eb662e94c | ||
|
7e42f2f863 | ||
|
c0dbf1fb90 | ||
|
8138a3b0c6 | ||
|
a99b3d76f2 | ||
|
d834f22c8e | ||
|
8dfea369ea | ||
|
669f7a111f | ||
|
2d8e9af9c9 | ||
|
8e907a13ea | ||
|
76990f630b | ||
|
e893cd66dc | ||
|
39fc1a6a05 | ||
|
5f3629babd | ||
|
7b28543293 | ||
|
f4d5e0098a | ||
|
52fbdb5892 | ||
|
53adbc34a2 | ||
|
896e4cbf4d | ||
|
2288191b9c | ||
|
032da43172 | ||
|
3cfd2b707d | ||
|
de8e98f133 | ||
|
bbd41262ca | ||
|
9f303149a0 | ||
|
ed2eb9afcb | ||
|
bac6b9676c | ||
|
f6f13cd4a8 | ||
|
627a3091c8 | ||
|
fa482912e4 | ||
|
8cb9f0d0f8 | ||
|
07a9af327e | ||
|
11e2dfd37d | ||
|
c4f02b1fd8 | ||
|
6718d773ad | ||
|
b2f757f9b7 | ||
|
14057bf4dc | ||
|
f30dcba95d | ||
|
8fef0a6eae | ||
|
13f5935c36 | ||
|
68662769ff | ||
|
5301d93336 | ||
|
e72007907a | ||
|
eeb75ae603 | ||
|
30b641919c | ||
|
9ce2171eed | ||
|
9ba09ba5e6 | ||
|
b4bee866f3 | ||
|
8461a0598c | ||
|
aaa2f29761 | ||
|
624d1a4f31 | ||
|
110b5d83a6 | ||
|
0f8df1b95c | ||
|
e9b663934d | ||
|
5d525ad911 | ||
|
e32ddbaae5 | ||
|
4e6bceff3b | ||
|
8e97b17bbd | ||
|
a1a4396142 | ||
|
8ba3dcde1e | ||
|
f6c881b448 | ||
|
73fd4a6046 | ||
|
dafec3de59 | ||
|
367e57ec9b | ||
|
a8a0b892df | ||
|
ee453a161f | ||
|
0902e71a16 | ||
|
9f15eeb32a | ||
|
0f3168aa5b | ||
|
997e13fca4 | ||
|
c0bcc48068 | ||
|
bc7e88ae03 | ||
|
da051b23fe | ||
|
09707570eb | ||
|
8c014dbafe | ||
|
1c282a3a62 | ||
|
70988afbb1 | ||
|
5ff8699684 | ||
|
ac6482e0eb | ||
|
711df835d3 | ||
|
672186efa8 | ||
|
8b8bff20d0 | ||
|
43b5058d59 | ||
|
e828e4f7f1 | ||
|
d29e95a922 | ||
|
afc68427d8 | ||
|
8df85a6123 | ||
|
399b60a0ad | ||
|
add95ac378 | ||
|
58b3bdc933 | ||
|
c6e7d14fa9 | ||
|
2035e10e83 | ||
|
5f170f33fd | ||
|
c9ce2da080 | ||
|
d5ab387d2a | ||
|
236a9de39a | ||
|
dfd2e67583 | ||
|
8290d43d0d | ||
|
6fc0f38fe0 | ||
|
12646a5ae2 | ||
|
e59890c3e8 | ||
|
f83e3685a5 | ||
|
6098c7f953 | ||
|
67003d1af8 | ||
|
a06066343d | ||
|
6e395e9c60 | ||
|
7e8583bdef | ||
|
856bc99a57 | ||
|
6e7b6cc6f7 | ||
|
760e231bf0 | ||
|
d6d26e0414 | ||
|
0d3a69ec70 | ||
|
2eca425d4b | ||
|
8f19c916dc | ||
|
10d432b1b4 | ||
|
36ba4665ff | ||
|
79f585d903 | ||
|
cbc66a2704 | ||
|
5028104652 | ||
|
e81910e077 | ||
|
f5ba273ecd | ||
|
86f6187197 | ||
|
0b7e6e7da2 | ||
|
c78b3acd0c | ||
|
451868847b | ||
|
aa5e1f75d9 | ||
|
4a64bee465 | ||
|
f3d05fe417 | ||
|
f3979fcc3b | ||
|
5d9dba5b1a | ||
|
71155438f0 | ||
|
04a4a2afd5 | ||
|
de52822400 | ||
|
ba9f095e75 | ||
|
77611ad4da | ||
|
7ece89c6b1 | ||
|
c5a7371313 | ||
|
954de0f158 | ||
|
7ff49f0c73 | ||
|
4c9993c3c7 | ||
|
8775b35700 | ||
|
b7e1921351 | ||
|
378d2bd3a8 | ||
|
7c8aaed1c7 | ||
|
b41cdbf4d3 | ||
|
9a0c6b1ed2 | ||
|
7bed7a507c | ||
|
0b7e77395d | ||
|
4a277ceb2b | ||
|
b420fb6a37 | ||
|
5adbbc2995 | ||
|
27d0ab2482 | ||
|
186baeb237 | ||
|
a5a55c458f | ||
|
66f55ec64c | ||
|
723d1b1da1 | ||
|
32e768ae94 | ||
|
3d407edab0 | ||
|
e32352cf66 | ||
|
2c4ad28347 | ||
|
3f8e5072f7 | ||
|
0a5835068c | ||
|
9bdc99bec2 | ||
|
af7b970e76 | ||
|
d853016702 | ||
|
02d15cad11 | ||
|
ee80814753 | ||
|
bffc1eaaf5 | ||
|
cdc59bb69e | ||
|
ecc888a08f | ||
|
f41986da2d | ||
|
dee1b66f85 | ||
|
d7da975624 | ||
|
3adb47a937 | ||
|
557e701169 | ||
|
5da69e38e6 | ||
|
98beeb8ba9 | ||
|
75acb5321e | ||
|
052e089dce | ||
|
413098d06c | ||
|
1d4ad4df1d | ||
|
4de601b128 | ||
|
7e415a0f66 | ||
|
3bedfb1d17 | ||
|
426d574504 | ||
|
60b8078990 | ||
|
9add53a470 | ||
|
b0a0942105 | ||
|
3283290881 | ||
|
7b28757f5e | ||
|
b4414c1f37 | ||
|
304e5625e5 | ||
|
9ce192d417 | ||
|
7b22b912fd | ||
|
fe98790977 | ||
|
50a5c3f33e | ||
|
c17e495529 | ||
|
7e12d1bf7f | ||
|
b4da05a638 | ||
|
8862e11b01 | ||
|
b97f6d757b | ||
|
bd9724b905 | ||
|
6cbe6d0821 | ||
|
0e8c82331d | ||
|
771779ed91 | ||
|
793867a736 | ||
|
c5d3832cfe | ||
|
0e93516996 | ||
|
6b10575493 | ||
|
f0d5fc50ef | ||
|
ca4f2b729c | ||
|
4bd87101b3 | ||
|
30bb7c133e | ||
|
d95b0c2ba0 | ||
|
b6fa52db66 | ||
|
6da3a3ef1f | ||
|
c77ae1d950 | ||
|
39d03faf4e | ||
|
5bcea60e1b | ||
|
ecb017924c | ||
|
a00d62c913 | ||
|
87e1d2a51b | ||
|
8fdffc7e9b | ||
|
58ca01aeae | ||
|
4dcfef961d | ||
|
7c4a59a881 | ||
|
07fce3c2f9 | ||
|
5fa399c9e2 | ||
|
90da75e673 | ||
|
061379e2ac | ||
|
6bf783984a | ||
|
f187448d85 | ||
|
62ea79f381 | ||
|
6ad7611a5c | ||
|
96becbd8fa | ||
|
70a5b429e7 | ||
|
f23208cacc | ||
|
49af73a59b | ||
|
3e282d337f | ||
|
fbf5995c02 | ||
|
635b44a118 | ||
|
71622a7ac0 | ||
|
3965571c7c | ||
|
ea8849aaf6 | ||
|
cf58a48f62 | ||
|
9898fcda80 | ||
|
3c002e048d | ||
|
f077f5c39f | ||
|
efa7ad84f6 | ||
|
78d5068a96 | ||
|
cb9fb5bb00 | ||
|
07e87221f6 | ||
|
1b6dea5de1 | ||
|
d76bb2182d | ||
|
d6c85bee75 | ||
|
3fa056ab78 | ||
|
19701d22df | ||
|
2a7750d939 | ||
|
3f04dfd331 | ||
|
ed8297b98d | ||
|
e8773bdf80 | ||
|
45ef0076bf | ||
|
a24cc774ec | ||
|
0dcf989311 | ||
|
59917a749b | ||
|
425652451b | ||
|
65dc92ca0f | ||
|
a6e2b3a831 | ||
|
6b4a39fb51 | ||
|
5cb9148949 | ||
|
03bbd98b9c | ||
|
b4e87ec32c | ||
|
1ea670896b | ||
|
d2249417f8 | ||
|
70d213e08b | ||
|
89e6463c1a | ||
|
67c0489076 | ||
|
260460ae06 | ||
|
f547e9bb27 | ||
|
a059bcd21c | ||
|
b3ddc4c2ec | ||
|
ee8dbe6308 | ||
|
b3ef4fb50c | ||
|
40903af771 | ||
|
05a1104392 | ||
|
5dffa63b2f | ||
|
e8482f24cf | ||
|
f5b9cde232 | ||
|
c661ecca60 | ||
|
0649ebbdb7 | ||
|
84899251f1 | ||
|
4d44947336 | ||
|
4767810533 | ||
|
87798c0030 | ||
|
d31b7b682c | ||
|
f7bd3a7d8f | ||
|
5e1febface | ||
|
41fd4136fc | ||
|
0912bee1aa | ||
|
581e8516ea | ||
|
0dd8a49d4d | ||
|
983a384436 | ||
|
5c8fc7c1de | ||
|
1f80a703f2 | ||
|
777fd647dc | ||
|
39a16cb41d | ||
|
11eaa98105 | ||
|
c07c37d70a | ||
|
043d16b225 | ||
|
a56fcaaf46 | ||
|
f1567cddea | ||
|
e1208c3103 | ||
|
a85139a1b7 | ||
|
d90d994c74 | ||
|
b14159f7d8 | ||
|
993f97eed6 | ||
|
36bec0acf0 | ||
|
bd4d918f36 | ||
|
2b396caaa2 | ||
|
261b9a3df1 | ||
|
5824f314a3 | ||
|
77a36397c0 | ||
|
3072610753 | ||
|
5d25c05039 | ||
|
9764dcbca3 | ||
|
9181a38382 | ||
|
d7bd7ca5bf | ||
|
e51b013093 | ||
|
70dc22dcc9 | ||
|
20590f751f | ||
|
a6a1ef9e7b | ||
|
75f245410a | ||
|
29b07a3821 | ||
|
5f9fd7ea86 | ||
|
2a47e1401b | ||
|
b58088819b | ||
|
d2e4966591 | ||
|
b531e140f1 | ||
|
b0230a69bc | ||
|
91ff98b7b5 | ||
|
1fc25a89ac | ||
|
b14391d1c8 | ||
|
422107f900 | ||
|
2c8e47380e | ||
|
914589c26c | ||
|
294f6bcbdb | ||
|
bc3cedfa48 | ||
|
cd6ce4a90c | ||
|
21e5527b59 | ||
|
d8e41d423d | ||
|
42d14d4e8f | ||
|
61a021a822 | ||
|
bc2e39e366 | ||
|
1cab5b8d99 | ||
|
0824a13502 | ||
|
9121bed249 | ||
|
a95e38c034 |
267
Makefile.in
@@ -42,12 +42,11 @@ VP8 = @top_srcdir@/src/jpeg
|
||||
VP9 = @top_srcdir@/src/tiff
|
||||
VP10 = @top_srcdir@/src/zlib
|
||||
VP11 = @top_srcdir@/src/iodbc
|
||||
VP12 = @top_srcdir@/src/ogl
|
||||
|
||||
# the comment at the end of the next line is needed because otherwise autoconf
|
||||
# would remove this line completely - it contains a built-in hack to remove
|
||||
# any VPATH assignment not containing ':'
|
||||
VPATH = $(VP1)@PATH_IFS@$(VP2)@PATH_IFS@$(VP3)@PATH_IFS@$(VP4)@PATH_IFS@$(VP5)@PATH_IFS@$(VP6)@PATH_IFS@$(VP7)@PATH_IFS@$(VP8)@PATH_IFS@$(VP9)@PATH_IFS@$(VP10)@PATH_IFS@$(VP11)@PATH_IFS@$(VP12) # ':' for autoconf
|
||||
VPATH = $(VP1)@PATH_IFS@$(VP2)@PATH_IFS@$(VP3)@PATH_IFS@$(VP4)@PATH_IFS@$(VP5)@PATH_IFS@$(VP6)@PATH_IFS@$(VP7)@PATH_IFS@$(VP8)@PATH_IFS@$(VP9)@PATH_IFS@$(VP10)@PATH_IFS@$(VP11) # ':' for autoconf
|
||||
|
||||
top_srcdir = @top_srcdir@
|
||||
prefix = @prefix@
|
||||
@@ -108,7 +107,6 @@ SRCDIR = $(WXDIR)/src
|
||||
GENDIR = $(WXDIR)/src/generic
|
||||
COMMDIR = $(WXDIR)/src/common
|
||||
HTMLDIR = $(WXDIR)/src/html
|
||||
OGLDIR = $(WXDIR)/src/ogl
|
||||
UNIXDIR = $(WXDIR)/src/unix
|
||||
PNGDIR = $(WXDIR)/src/png
|
||||
JPEGDIR = $(WXDIR)/src/jpeg
|
||||
@@ -338,7 +336,7 @@ CREATE_INSTALLED_LINKS: preinstall
|
||||
&& $(LN_S) @WX_LIBRARY_NAME_SHARED@ @WX_LIBRARY_LINK2@ \
|
||||
&& $(LN_S) @WX_LIBRARY_NAME_SHARED@ @WX_LIBRARY_LINK3@
|
||||
|
||||
CREATE_INSTALLED_LINKS_GL: preinstall
|
||||
CREATE_INSTALLED_LINKS_GL: preinstall_gl
|
||||
$(RM) $(libdir)/@WX_LIBRARY_LINK1_GL@
|
||||
$(RM) $(libdir)/@WX_LIBRARY_LINK2_GL@
|
||||
$(RM) $(libdir)/@WX_LIBRARY_LINK3_GL@
|
||||
@@ -412,6 +410,13 @@ preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_D
|
||||
echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \
|
||||
done
|
||||
|
||||
preinstall_gl: $(top_builddir)/lib/@WX_TARGET_LIBRARY_GL@
|
||||
@echo " "
|
||||
@echo " Installing wxWindows OpenGl add-on..."
|
||||
@echo " "
|
||||
$(INSTALL) -d $(libdir)
|
||||
$(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY_GL@ $(libdir)/@WX_TARGET_LIBRARY_GL@
|
||||
|
||||
install: @AFMINSTALL@ @WX_ALL_INSTALLED@
|
||||
@echo " "
|
||||
@echo " The installation of wxWindows is finished. On certain"
|
||||
@@ -462,7 +467,6 @@ uninstall:
|
||||
@if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/motif; fi
|
||||
@if test -d $(includedir)/wx/msw; then rmdir $(includedir)/wx/msw; fi
|
||||
@if test -d $(includedir)/wx/html; then rmdir $(includedir)/wx/html; fi
|
||||
@if test -d $(includedir)/wx/ogl; then rmdir $(includedir)/wx/ogl; fi
|
||||
@if test -d $(includedir)/wx/unix; then rmdir $(includedir)/wx/unix; fi
|
||||
@if test -d $(includedir)/wx/generic; then rmdir $(includedir)/wx/generic; fi
|
||||
@if test -d $(includedir)/wx/protocol; then rmdir $(includedir)/wx/protocol; fi
|
||||
@@ -481,10 +485,21 @@ ALL_DIST: distclean
|
||||
cp $(WXDIR)/mkinstalldirs $(DISTDIR)
|
||||
cp $(WXDIR)/wx-config.in $(DISTDIR)
|
||||
cp $(WXDIR)/setup.h.in $(DISTDIR)
|
||||
cp $(WXDIR)/setup.h_vms $(DISTDIR)
|
||||
cp $(WXDIR)/descrip.mms $(DISTDIR)
|
||||
cp $(WXDIR)/Makefile.in $(DISTDIR)
|
||||
cp $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
|
||||
cp $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
|
||||
cp $(DOCDIR)/symbols.txt $(DISTDIR)/SYMBOLS.txt
|
||||
mkdir $(DISTDIR)/lib
|
||||
cp $(WXDIR)/lib/vms.opt $(DISTDIR)/lib
|
||||
cp $(WXDIR)/lib/vms_gtk.opt $(DISTDIR)/lib
|
||||
mkdir $(DISTDIR)/src
|
||||
mkdir $(DISTDIR)/src/zlib
|
||||
cp $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
|
||||
cp $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
|
||||
cp $(ZLIBDIR)/README $(DISTDIR)/src/zlib
|
||||
cp $(ZLIBDIR)/*.mms $(DISTDIR)/src/zlib
|
||||
|
||||
# this target is the common part of distribution script for all GUI toolkits,
|
||||
# but is not used when building wxBase distribution
|
||||
@@ -499,7 +514,6 @@ ALL_GUI_DIST: ALL_DIST
|
||||
mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)
|
||||
mkdir $(DISTDIR)/include/wx/generic
|
||||
mkdir $(DISTDIR)/include/wx/html
|
||||
mkdir $(DISTDIR)/include/wx/ogl
|
||||
mkdir $(DISTDIR)/include/wx/protocol
|
||||
mkdir $(DISTDIR)/include/wx/unix
|
||||
cp $(INCDIR)/wx/*.h $(DISTDIR)/include/wx
|
||||
@@ -508,42 +522,37 @@ ALL_GUI_DIST: ALL_DIST
|
||||
cp $(INCDIR)/wx/generic/*.h $(DISTDIR)/include/wx/generic
|
||||
cp $(INCDIR)/wx/generic/*.xpm $(DISTDIR)/include/wx/generic
|
||||
cp $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html
|
||||
cp $(INCDIR)/wx/ogl/*.h $(DISTDIR)/include/wx/ogl
|
||||
cp $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix
|
||||
cp $(INCDIR)/wx/protocol/*.h $(DISTDIR)/include/wx/protocol
|
||||
mkdir $(DISTDIR)/src
|
||||
mkdir $(DISTDIR)/src/common
|
||||
mkdir $(DISTDIR)/src/generic
|
||||
mkdir $(DISTDIR)/src/html
|
||||
mkdir $(DISTDIR)/src/ogl
|
||||
mkdir $(DISTDIR)/src/html/bitmaps
|
||||
mkdir $(DISTDIR)/src/$(TOOLKITDIR)
|
||||
mkdir $(DISTDIR)/src/png
|
||||
mkdir $(DISTDIR)/src/jpeg
|
||||
mkdir $(DISTDIR)/src/tiff
|
||||
mkdir $(DISTDIR)/src/zlib
|
||||
mkdir $(DISTDIR)/src/iodbc
|
||||
mkdir $(DISTDIR)/src/unix
|
||||
cp $(WXDIR)/@PORT_FILES@ $(DISTDIR)/@PORT_FILES@
|
||||
cp $(SRCDIR)/*.in $(DISTDIR)/src
|
||||
cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
|
||||
cp $(COMMDIR)/*.c $(DISTDIR)/src/common
|
||||
cp $(UNIXDIR)/*.c $(DISTDIR)/src/unix
|
||||
cp $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
|
||||
cp $(COMMDIR)/*.inc $(DISTDIR)/src/common
|
||||
cp $(COMMDIR)/*.l $(DISTDIR)/src/common
|
||||
cp $(COMMDIR)/*.h $(DISTDIR)/src/common
|
||||
cp $(COMMDIR)/*.y $(DISTDIR)/src/common
|
||||
cp $(COMMDIR)/*.mms $(DISTDIR)/src/common
|
||||
cp $(UNIXDIR)/*.c $(DISTDIR)/src/unix
|
||||
cp $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
|
||||
cp $(UNIXDIR)/*.mms $(DISTDIR)/src/unix
|
||||
cp $(GENDIR)/*.cpp $(DISTDIR)/src/generic
|
||||
cp $(OGLDIR)/*.cpp $(DISTDIR)/src/ogl
|
||||
cp $(GENDIR)/*.mms $(DISTDIR)/src/generic
|
||||
cp $(HTMLDIR)/*.cpp $(DISTDIR)/src/html
|
||||
cp $(HTMLDIR)/bitmaps/*.xpm $(DISTDIR)/src/html/bitmaps
|
||||
cp $(PNGDIR)/*.h $(DISTDIR)/src/png
|
||||
cp $(PNGDIR)/*.c $(DISTDIR)/src/png
|
||||
cp $(PNGDIR)/README $(DISTDIR)/src/png
|
||||
cp $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
|
||||
cp $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
|
||||
cp $(ZLIBDIR)/README $(DISTDIR)/src/zlib
|
||||
cp $(JPEGDIR)/*.h $(DISTDIR)/src/jpeg
|
||||
cp $(JPEGDIR)/*.c $(DISTDIR)/src/jpeg
|
||||
cp $(JPEGDIR)/README $(DISTDIR)/src/jpeg
|
||||
@@ -563,7 +572,6 @@ BASE_DIST: ALL_DIST
|
||||
mkdir $(DISTDIR)/include/wx
|
||||
mkdir $(DISTDIR)/include/wx/protocol
|
||||
mkdir $(DISTDIR)/include/wx/unix
|
||||
mkdir $(DISTDIR)/src
|
||||
mkdir $(DISTDIR)/src/common
|
||||
mkdir $(DISTDIR)/src/unix
|
||||
cp $(WXDIR)/@PORT_FILES@ $(DISTDIR)/@PORT_FILES@
|
||||
@@ -575,6 +583,7 @@ BASE_DIST: ALL_DIST
|
||||
cp $(DOCDIR)/readme.txt $(DISTDIR)/README.txt
|
||||
cp $(DOCDIR)/todo.txt $(DISTDIR)/TODO.txt
|
||||
cp $(SRCDIR)/*.in $(DISTDIR)/src
|
||||
cp $(WXDIR)/src/common/unzip.h $(DISTDIR)/src/common/unzip.h
|
||||
list='$(HEADERS)'; for p in $$list; do \
|
||||
cp $(WXDIR)/include/wx/$$p $(DISTDIR)/include/wx/$$p; \
|
||||
done
|
||||
@@ -589,6 +598,9 @@ GTK_DIST: ALL_GUI_DIST
|
||||
cp $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
|
||||
cp $(GTKDIR)/*.c $(DISTDIR)/src/gtk
|
||||
cp $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
|
||||
cp $(GTKDIR)/*.mms $(DISTDIR)/src/gtk
|
||||
mkdir $(DISTDIR)/contrib
|
||||
cp -R $(WXDIR)/contrib $(DISTDIR)
|
||||
|
||||
MOTIF_DIST: ALL_GUI_DIST
|
||||
cp $(WXDIR)/wxMOTIF.spec $(DISTDIR)
|
||||
@@ -666,56 +678,59 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
|
||||
cp $(SAMPDIR)/configure $(DISTDIR)/samples
|
||||
cp $(SAMPDIR)/configure.in $(DISTDIR)/samples
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/calendar
|
||||
cp $(SAMPDIR)/calendar/Makefile.in $(DISTDIR)/samples/calendar
|
||||
cp $(SAMPDIR)/calendar/makefile.unx $(DISTDIR)/samples/calendar
|
||||
cp $(SAMPDIR)/calendar/*.cpp $(DISTDIR)/samples/calendar
|
||||
|
||||
mkdir $(DISTDIR)/samples/caret
|
||||
cp $(SAMPDIR)/caret/Makefile.in $(DISTDIR)/samples/caret
|
||||
cp $(SAMPDIR)/caret/makefile.unx $(DISTDIR)/samples/caret
|
||||
cp $(SAMPDIR)/caret/*.cpp $(DISTDIR)/samples/caret
|
||||
cp $(SAMPDIR)/caret/*.xpm $(DISTDIR)/samples/caret
|
||||
|
||||
mkdir $(DISTDIR)/samples/calendar
|
||||
cp $(SAMPDIR)/calendar/Makefile.in $(DISTDIR)/samples/calendar
|
||||
cp $(SAMPDIR)/calendar/makefile.unx $(DISTDIR)/samples/calendar
|
||||
cp $(SAMPDIR)/calendar/*.cpp $(DISTDIR)/samples/calendar
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/checklst
|
||||
cp $(SAMPDIR)/checklst/Makefile.in $(DISTDIR)/samples/checklst
|
||||
cp $(SAMPDIR)/checklst/makefile.unx $(DISTDIR)/samples/checklst
|
||||
cp $(SAMPDIR)/checklst/*.cpp $(DISTDIR)/samples/checklst
|
||||
cp $(SAMPDIR)/checklst/*.xpm $(DISTDIR)/samples/checklst
|
||||
cp $(SAMPDIR)/checklst/*.mms $(DISTDIR)/samples/checklst
|
||||
|
||||
mkdir $(DISTDIR)/samples/config
|
||||
cp $(SAMPDIR)/config/Makefile.in $(DISTDIR)/samples/config
|
||||
cp $(SAMPDIR)/config/makefile.unx $(DISTDIR)/samples/config
|
||||
cp $(SAMPDIR)/config/*.cpp $(DISTDIR)/samples/config
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/console
|
||||
cp $(SAMPDIR)/console/Makefile.in $(DISTDIR)/samples/console
|
||||
cp $(SAMPDIR)/console/makefile.unx $(DISTDIR)/samples/console
|
||||
cp $(SAMPDIR)/console/*.cpp $(DISTDIR)/samples/console
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/controls
|
||||
mkdir $(DISTDIR)/samples/controls/icons
|
||||
cp $(SAMPDIR)/controls/Makefile.in $(DISTDIR)/samples/controls
|
||||
cp $(SAMPDIR)/controls/makefile.unx $(DISTDIR)/samples/controls
|
||||
cp $(SAMPDIR)/controls/*.cpp $(DISTDIR)/samples/controls
|
||||
cp $(SAMPDIR)/controls/*.xpm $(DISTDIR)/samples/controls
|
||||
cp $(SAMPDIR)/controls/*.mms $(DISTDIR)/samples/controls
|
||||
cp $(SAMPDIR)/controls/icons/*.??? $(DISTDIR)/samples/controls/icons
|
||||
|
||||
mkdir $(DISTDIR)/samples/checklst
|
||||
cp $(SAMPDIR)/checklst/Makefile.in $(DISTDIR)/samples/checklst
|
||||
cp $(SAMPDIR)/checklst/makefile.unx $(DISTDIR)/samples/checklst
|
||||
cp $(SAMPDIR)/checklst/*.cpp $(DISTDIR)/samples/checklst
|
||||
cp $(SAMPDIR)/checklst/*.xpm $(DISTDIR)/samples/checklst
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/db
|
||||
cp $(SAMPDIR)/db/Makefile.in $(DISTDIR)/samples/db
|
||||
cp $(SAMPDIR)/db/makefile.unx $(DISTDIR)/samples/db
|
||||
cp $(SAMPDIR)/db/*.cpp $(DISTDIR)/samples/db
|
||||
cp $(SAMPDIR)/db/*.h $(DISTDIR)/samples/db
|
||||
cp $(SAMPDIR)/db/*.xpm $(DISTDIR)/samples/db
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/dialogs
|
||||
cp $(SAMPDIR)/dialogs/Makefile.in $(DISTDIR)/samples/dialogs
|
||||
cp $(SAMPDIR)/dialogs/makefile.unx $(DISTDIR)/samples/dialogs
|
||||
cp $(SAMPDIR)/dialogs/*.cpp $(DISTDIR)/samples/dialogs
|
||||
cp $(SAMPDIR)/dialogs/*.h $(DISTDIR)/samples/dialogs
|
||||
cp $(SAMPDIR)/dialogs/*.txt $(DISTDIR)/samples/dialogs
|
||||
|
||||
cp $(SAMPDIR)/dialogs/*.mms $(DISTDIR)/samples/dialogs
|
||||
|
||||
mkdir $(DISTDIR)/samples/dnd
|
||||
cp $(SAMPDIR)/dnd/Makefile.in $(DISTDIR)/samples/dnd
|
||||
cp $(SAMPDIR)/dnd/makefile.unx $(DISTDIR)/samples/dnd
|
||||
@@ -724,52 +739,56 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/dnd/*.xpm $(DISTDIR)/samples/dnd
|
||||
cp $(SAMPDIR)/dnd/*.txt $(DISTDIR)/samples/dnd
|
||||
cp $(SAMPDIR)/dnd/*.png $(DISTDIR)/samples/dnd
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/docview
|
||||
cp $(SAMPDIR)/docview/Makefile.in $(DISTDIR)/samples/docview
|
||||
cp $(SAMPDIR)/docview/makefile.unx $(DISTDIR)/samples/docview
|
||||
cp $(SAMPDIR)/docview/*.cpp $(DISTDIR)/samples/docview
|
||||
cp $(SAMPDIR)/docview/*.h $(DISTDIR)/samples/docview
|
||||
cp $(SAMPDIR)/docview/*.xpm $(DISTDIR)/samples/docview
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/docvwmdi
|
||||
cp $(SAMPDIR)/docvwmdi/Makefile.in $(DISTDIR)/samples/docvwmdi
|
||||
cp $(SAMPDIR)/docvwmdi/makefile.unx $(DISTDIR)/samples/docvwmdi
|
||||
cp $(SAMPDIR)/docvwmdi/*.cpp $(DISTDIR)/samples/docvwmdi
|
||||
cp $(SAMPDIR)/docvwmdi/*.h $(DISTDIR)/samples/docvwmdi
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/dragimag
|
||||
cp $(SAMPDIR)/dragimag/Makefile.in $(DISTDIR)/samples/dragimag
|
||||
cp $(SAMPDIR)/dragimag/makefile.unx $(DISTDIR)/samples/dragimag
|
||||
cp $(SAMPDIR)/dragimag/*.cpp $(DISTDIR)/samples/dragimag
|
||||
cp $(SAMPDIR)/dragimag/*.h $(DISTDIR)/samples/dragimag
|
||||
cp $(SAMPDIR)/dragimag/*.xpm $(DISTDIR)/samples/dragimag
|
||||
cp $(SAMPDIR)/dragimag/*.png $(DISTDIR)/samples/dragimag
|
||||
|
||||
mkdir $(DISTDIR)/samples/drawing
|
||||
cp $(SAMPDIR)/drawing/Makefile.in $(DISTDIR)/samples/drawing
|
||||
cp $(SAMPDIR)/drawing/makefile.unx $(DISTDIR)/samples/drawing
|
||||
cp $(SAMPDIR)/drawing/*.cpp $(DISTDIR)/samples/drawing
|
||||
cp $(SAMPDIR)/drawing/*.xpm $(DISTDIR)/samples/drawing
|
||||
|
||||
cp $(SAMPDIR)/drawing/*.bmp $(DISTDIR)/samples/drawing
|
||||
|
||||
mkdir $(DISTDIR)/samples/dynamic
|
||||
cp $(SAMPDIR)/dynamic/Makefile.in $(DISTDIR)/samples/dynamic
|
||||
cp $(SAMPDIR)/dynamic/makefile.unx $(DISTDIR)/samples/dynamic
|
||||
cp $(SAMPDIR)/dynamic/*.cpp $(DISTDIR)/samples/dynamic
|
||||
cp $(SAMPDIR)/dynamic/*.xpm $(DISTDIR)/samples/dynamic
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/exec
|
||||
cp $(SAMPDIR)/exec/Makefile.in $(DISTDIR)/samples/exec
|
||||
cp $(SAMPDIR)/exec/makefile.unx $(DISTDIR)/samples/exec
|
||||
cp $(SAMPDIR)/exec/*.cpp $(DISTDIR)/samples/exec
|
||||
|
||||
mkdir $(DISTDIR)/samples/ipc
|
||||
cp $(SAMPDIR)/ipc/Makefile.in $(DISTDIR)/samples/ipc
|
||||
cp $(SAMPDIR)/ipc/*.xpm $(DISTDIR)/samples/ipc
|
||||
cp $(SAMPDIR)/ipc/*.h $(DISTDIR)/samples/ipc
|
||||
cp $(SAMPDIR)/ipc/*.cpp $(DISTDIR)/samples/ipc
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/font
|
||||
cp $(SAMPDIR)/font/Makefile.in $(DISTDIR)/samples/font
|
||||
cp $(SAMPDIR)/font/makefile.unx $(DISTDIR)/samples/font
|
||||
cp $(SAMPDIR)/font/*.cpp $(DISTDIR)/samples/font
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/grid
|
||||
cp $(SAMPDIR)/grid/Makefile.in $(DISTDIR)/samples/grid
|
||||
cp $(SAMPDIR)/grid/makefile.unx $(DISTDIR)/samples/grid
|
||||
cp $(SAMPDIR)/grid/*.cpp $(DISTDIR)/samples/grid
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/help
|
||||
mkdir $(DISTDIR)/samples/help/doc
|
||||
cp $(SAMPDIR)/help/Makefile.in $(DISTDIR)/samples/help
|
||||
@@ -777,7 +796,7 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/help/*.cpp $(DISTDIR)/samples/help
|
||||
cp $(SAMPDIR)/help/*.xpm $(DISTDIR)/samples/help
|
||||
cp $(SAMPDIR)/help/doc/*.* $(DISTDIR)/samples/help/doc
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/html
|
||||
cp $(SAMPDIR)/html/Makefile.in $(DISTDIR)/samples/html
|
||||
mkdir $(DISTDIR)/samples/html/about
|
||||
@@ -804,6 +823,7 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/html/test/*.cpp $(DISTDIR)/samples/html/test
|
||||
cp $(SAMPDIR)/html/test/*.bmp $(DISTDIR)/samples/html/test
|
||||
cp $(SAMPDIR)/html/test/*.png $(DISTDIR)/samples/html/test
|
||||
cp $(SAMPDIR)/html/test/*.gif $(DISTDIR)/samples/html/test
|
||||
cp $(SAMPDIR)/html/test/*.htm $(DISTDIR)/samples/html/test
|
||||
cp $(SAMPDIR)/html/test/*.html $(DISTDIR)/samples/html/test
|
||||
mkdir $(DISTDIR)/samples/html/virtual
|
||||
@@ -819,11 +839,12 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/html/zip/*.cpp $(DISTDIR)/samples/html/zip
|
||||
cp $(SAMPDIR)/html/zip/*.htm $(DISTDIR)/samples/html/zip
|
||||
cp $(SAMPDIR)/html/zip/*.zip $(DISTDIR)/samples/html/zip
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/image
|
||||
cp $(SAMPDIR)/image/Makefile.in $(DISTDIR)/samples/image
|
||||
cp $(SAMPDIR)/image/makefile.unx $(DISTDIR)/samples/image
|
||||
cp $(SAMPDIR)/image/*.cpp $(DISTDIR)/samples/image
|
||||
cp $(SAMPDIR)/image/*.mms $(DISTDIR)/samples/image
|
||||
cp $(SAMPDIR)/image/horse.* $(DISTDIR)/samples/image
|
||||
cp $(SAMPDIR)/image/smile.xbm $(DISTDIR)/samples/image
|
||||
cp $(SAMPDIR)/image/smile.xpm $(DISTDIR)/samples/image
|
||||
@@ -837,17 +858,31 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/internat/*.xpm $(DISTDIR)/samples/internat
|
||||
cp $(SAMPDIR)/internat/*.txt $(DISTDIR)/samples/internat
|
||||
cp $(SAMPDIR)/internat/*.po $(DISTDIR)/samples/internat
|
||||
cp $(SAMPDIR)/internat/fr/*.po $(DISTDIR)/samples/internat/fr
|
||||
cp $(SAMPDIR)/internat/fr/*.mo $(DISTDIR)/samples/internat/fr
|
||||
cp $(SAMPDIR)/internat/de/*.mo $(DISTDIR)/samples/internat/de
|
||||
cp $(SAMPDIR)/internat/fr/*.po $(DISTDIR)/samples/internat/fr
|
||||
cp $(SAMPDIR)/internat/de/*.mo $(DISTDIR)/samples/internat/de
|
||||
|
||||
cp $(SAMPDIR)/internat/de/*.po $(DISTDIR)/samples/internat/de
|
||||
|
||||
mkdir $(DISTDIR)/samples/ipc
|
||||
cp $(SAMPDIR)/ipc/Makefile.in $(DISTDIR)/samples/ipc
|
||||
cp $(SAMPDIR)/ipc/makefile.unx $(DISTDIR)/samples/ipc
|
||||
cp $(SAMPDIR)/ipc/*.cpp $(DISTDIR)/samples/ipc
|
||||
cp $(SAMPDIR)/ipc/*.h $(DISTDIR)/samples/ipc
|
||||
cp $(SAMPDIR)/ipc/*.xpm $(DISTDIR)/samples/ipc
|
||||
|
||||
mkdir $(DISTDIR)/samples/joytest
|
||||
cp $(SAMPDIR)/joytest/Makefile.in $(DISTDIR)/samples/joytest
|
||||
cp $(SAMPDIR)/joytest/makefile.unx $(DISTDIR)/samples/joytest
|
||||
cp $(SAMPDIR)/joytest/*.cpp $(DISTDIR)/samples/joytest
|
||||
cp $(SAMPDIR)/joytest/*.h $(DISTDIR)/samples/joytest
|
||||
cp $(SAMPDIR)/joytest/*.wav $(DISTDIR)/samples/joytest
|
||||
|
||||
mkdir $(DISTDIR)/samples/layout
|
||||
cp $(SAMPDIR)/layout/Makefile.in $(DISTDIR)/samples/layout
|
||||
cp $(SAMPDIR)/layout/makefile.unx $(DISTDIR)/samples/layout
|
||||
cp $(SAMPDIR)/layout/*.cpp $(DISTDIR)/samples/layout
|
||||
cp $(SAMPDIR)/layout/*.h $(DISTDIR)/samples/layout
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/listctrl
|
||||
mkdir $(DISTDIR)/samples/listctrl/bitmaps
|
||||
cp $(SAMPDIR)/listctrl/Makefile.in $(DISTDIR)/samples/listctrl
|
||||
@@ -856,7 +891,7 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/listctrl/*.h $(DISTDIR)/samples/listctrl
|
||||
cp $(SAMPDIR)/listctrl/*.xpm $(DISTDIR)/samples/listctrl
|
||||
cp $(SAMPDIR)/listctrl/bitmaps/*.xpm $(DISTDIR)/samples/listctrl/bitmaps
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/mdi
|
||||
mkdir $(DISTDIR)/samples/mdi/bitmaps
|
||||
cp $(SAMPDIR)/mdi/Makefile.in $(DISTDIR)/samples/mdi
|
||||
@@ -865,18 +900,18 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/mdi/*.h $(DISTDIR)/samples/mdi
|
||||
cp $(SAMPDIR)/mdi/*.xpm $(DISTDIR)/samples/mdi
|
||||
cp $(SAMPDIR)/mdi/bitmaps/*.xpm $(DISTDIR)/samples/mdi/bitmaps
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/memcheck
|
||||
cp $(SAMPDIR)/memcheck/Makefile.in $(DISTDIR)/samples/memcheck
|
||||
cp $(SAMPDIR)/memcheck/makefile.unx $(DISTDIR)/samples/memcheck
|
||||
cp $(SAMPDIR)/memcheck/*.cpp $(DISTDIR)/samples/memcheck
|
||||
cp $(SAMPDIR)/memcheck/*.xpm $(DISTDIR)/samples/memcheck
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/menu
|
||||
cp $(SAMPDIR)/menu/Makefile.in $(DISTDIR)/samples/menu
|
||||
cp $(SAMPDIR)/menu/makefile.unx $(DISTDIR)/samples/menu
|
||||
cp $(SAMPDIR)/menu/*.cpp $(DISTDIR)/samples/menu
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/minifram
|
||||
mkdir $(DISTDIR)/samples/minifram/bitmaps
|
||||
cp $(SAMPDIR)/minifram/Makefile.in $(DISTDIR)/samples/minifram
|
||||
@@ -885,37 +920,64 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/minifram/*.h $(DISTDIR)/samples/minifram
|
||||
cp $(SAMPDIR)/minifram/*.xpm $(DISTDIR)/samples/minifram
|
||||
cp $(SAMPDIR)/minifram/bitmaps/*.xpm $(DISTDIR)/samples/minifram/bitmaps
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/minimal
|
||||
cp $(SAMPDIR)/minimal/Makefile.in $(DISTDIR)/samples/minimal
|
||||
cp $(SAMPDIR)/minimal/makefile.unx $(DISTDIR)/samples/minimal
|
||||
cp $(SAMPDIR)/minimal/*.cpp $(DISTDIR)/samples/minimal
|
||||
cp $(SAMPDIR)/minimal/*.xpm $(DISTDIR)/samples/minimal
|
||||
|
||||
cp $(SAMPDIR)/minimal/*.mms $(DISTDIR)/samples/minimal
|
||||
|
||||
mkdir $(DISTDIR)/samples/dialup
|
||||
cp $(SAMPDIR)/dialup/Makefile.in $(DISTDIR)/samples/dialup
|
||||
cp $(SAMPDIR)/dialup/makefile.unx $(DISTDIR)/samples/dialup
|
||||
cp $(SAMPDIR)/dialup/*.cpp $(DISTDIR)/samples/dialup
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/newgrid
|
||||
cp $(SAMPDIR)/newgrid/Makefile.in $(DISTDIR)/samples/newgrid
|
||||
cp $(SAMPDIR)/newgrid/makefile.unx $(DISTDIR)/samples/newgrid
|
||||
cp $(SAMPDIR)/newgrid/*.cpp $(DISTDIR)/samples/newgrid
|
||||
cp $(SAMPDIR)/newgrid/*.h $(DISTDIR)/samples/newgrid
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/notebook
|
||||
cp $(SAMPDIR)/notebook/Makefile.in $(DISTDIR)/samples/notebook
|
||||
cp $(SAMPDIR)/notebook/makefile.unx $(DISTDIR)/samples/notebook
|
||||
cp $(SAMPDIR)/notebook/*.cpp $(DISTDIR)/samples/notebook
|
||||
cp $(SAMPDIR)/notebook/*.h $(DISTDIR)/samples/notebook
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/opengl
|
||||
cp $(SAMPDIR)/opengl/Makefile.in $(DISTDIR)/samples/opengl
|
||||
mkdir $(DISTDIR)/samples/opengl/penguin
|
||||
cp $(SAMPDIR)/opengl/penguin/Makefile.in $(DISTDIR)/samples/opengl/penguin
|
||||
cp $(SAMPDIR)/opengl/penguin/makefile.unx $(DISTDIR)/samples/opengl/penguin
|
||||
cp $(SAMPDIR)/opengl/penguin/*.cpp $(DISTDIR)/samples/opengl/penguin
|
||||
cp $(SAMPDIR)/opengl/penguin/*.c $(DISTDIR)/samples/opengl/penguin
|
||||
cp $(SAMPDIR)/opengl/penguin/*.h $(DISTDIR)/samples/opengl/penguin
|
||||
cp $(SAMPDIR)/opengl/penguin/*.lwo $(DISTDIR)/samples/opengl/penguin
|
||||
mkdir $(DISTDIR)/samples/opengl/cube
|
||||
cp $(SAMPDIR)/opengl/cube/Makefile.in $(DISTDIR)/samples/opengl/cube
|
||||
cp $(SAMPDIR)/opengl/cube/makefile.unx $(DISTDIR)/samples/opengl/cube
|
||||
cp $(SAMPDIR)/opengl/cube/*.cpp $(DISTDIR)/samples/opengl/cube
|
||||
cp $(SAMPDIR)/opengl/cube/*.h $(DISTDIR)/samples/opengl/cube
|
||||
mkdir $(DISTDIR)/samples/opengl/isosurf
|
||||
cp $(SAMPDIR)/opengl/isosurf/Makefile.in $(DISTDIR)/samples/opengl/isosurf
|
||||
cp $(SAMPDIR)/opengl/isosurf/makefile.unx $(DISTDIR)/samples/opengl/isosurf
|
||||
cp $(SAMPDIR)/opengl/isosurf/*.cpp $(DISTDIR)/samples/opengl/isosurf
|
||||
cp $(SAMPDIR)/opengl/isosurf/*.h $(DISTDIR)/samples/opengl/isosurf
|
||||
cp $(SAMPDIR)/opengl/isosurf/*.gz $(DISTDIR)/samples/opengl/isosurf
|
||||
|
||||
mkdir $(DISTDIR)/samples/plot
|
||||
cp $(SAMPDIR)/plot/Makefile.in $(DISTDIR)/samples/plot
|
||||
cp $(SAMPDIR)/plot/makefile.unx $(DISTDIR)/samples/plot
|
||||
cp $(SAMPDIR)/plot/*.cpp $(DISTDIR)/samples/plot
|
||||
|
||||
mkdir $(DISTDIR)/samples/png
|
||||
cp $(SAMPDIR)/png/Makefile.in $(DISTDIR)/samples/png
|
||||
cp $(SAMPDIR)/png/makefile.unx $(DISTDIR)/samples/png
|
||||
cp $(SAMPDIR)/png/*.cpp $(DISTDIR)/samples/png
|
||||
cp $(SAMPDIR)/png/*.h $(DISTDIR)/samples/png
|
||||
cp $(SAMPDIR)/png/*.png $(DISTDIR)/samples/png
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/printing
|
||||
cp $(SAMPDIR)/printing/Makefile.in $(DISTDIR)/samples/printing
|
||||
cp $(SAMPDIR)/printing/makefile.unx $(DISTDIR)/samples/printing
|
||||
@@ -923,14 +985,14 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/printing/*.h $(DISTDIR)/samples/printing
|
||||
cp $(SAMPDIR)/printing/*.xpm $(DISTDIR)/samples/printing
|
||||
cp $(SAMPDIR)/printing/*.xbm $(DISTDIR)/samples/printing
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/resource
|
||||
cp $(SAMPDIR)/resource/Makefile.in $(DISTDIR)/samples/resource
|
||||
cp $(SAMPDIR)/resource/makefile.unx $(DISTDIR)/samples/resource
|
||||
cp $(SAMPDIR)/resource/*.cpp $(DISTDIR)/samples/resource
|
||||
cp $(SAMPDIR)/resource/*.h $(DISTDIR)/samples/resource
|
||||
cp $(SAMPDIR)/resource/*.wxr $(DISTDIR)/samples/resource
|
||||
|
||||
|
||||
mkdir $(DISTDIR)/samples/rotate
|
||||
cp $(SAMPDIR)/rotate/Makefile.in $(DISTDIR)/samples/rotate
|
||||
cp $(SAMPDIR)/rotate/makefile.unx $(DISTDIR)/samples/rotate
|
||||
@@ -939,29 +1001,28 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
|
||||
mkdir $(DISTDIR)/samples/richedit
|
||||
cp $(SAMPDIR)/richedit/Makefile.in $(DISTDIR)/samples/richedit
|
||||
cp $(SAMPDIR)/richedit/makefile.unx $(DISTDIR)/samples/richedit
|
||||
cp $(SAMPDIR)/richedit/*.cpp $(DISTDIR)/samples/richedit
|
||||
cp $(SAMPDIR)/richedit/*.h $(DISTDIR)/samples/richedit
|
||||
cp $(SAMPDIR)/richedit/*.xpm $(DISTDIR)/samples/richedit
|
||||
cp $(SAMPDIR)/richedit/README $(DISTDIR)/samples/richedit
|
||||
cp $(SAMPDIR)/richedit/TODO $(DISTDIR)/samples/richedit
|
||||
|
||||
mkdir $(DISTDIR)/samples/plot
|
||||
cp $(SAMPDIR)/plot/Makefile.in $(DISTDIR)/samples/plot
|
||||
cp $(SAMPDIR)/plot/makefile.unx $(DISTDIR)/samples/plot
|
||||
cp $(SAMPDIR)/plot/*.cpp $(DISTDIR)/samples/plot
|
||||
|
||||
mkdir $(DISTDIR)/samples/proplist
|
||||
cp $(SAMPDIR)/proplist/Makefile.in $(DISTDIR)/samples/proplist
|
||||
cp $(SAMPDIR)/proplist/makefile.unx $(DISTDIR)/samples/proplist
|
||||
cp $(SAMPDIR)/proplist/*.cpp $(DISTDIR)/samples/proplist
|
||||
cp $(SAMPDIR)/proplist/*.h $(DISTDIR)/samples/proplist
|
||||
|
||||
mkdir $(DISTDIR)/samples/propsize
|
||||
cp $(SAMPDIR)/propsize/Makefile.in $(DISTDIR)/samples/propsize
|
||||
cp $(SAMPDIR)/propsize/makefile.unx $(DISTDIR)/samples/propsize
|
||||
cp $(SAMPDIR)/propsize/*.cpp $(DISTDIR)/samples/propsize
|
||||
cp $(SAMPDIR)/propsize/*.xpm $(DISTDIR)/samples/propsize
|
||||
|
||||
mkdir $(DISTDIR)/samples/sashtest
|
||||
cp $(SAMPDIR)/sashtest/Makefile.in $(DISTDIR)/samples/sashtest
|
||||
cp $(SAMPDIR)/sashtest/makefile.unx $(DISTDIR)/samples/sashtest
|
||||
cp $(SAMPDIR)/sashtest/*.cpp $(DISTDIR)/samples/sashtest
|
||||
cp $(SAMPDIR)/sashtest/*.h $(DISTDIR)/samples/sashtest
|
||||
|
||||
@@ -975,13 +1036,20 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
cp $(SAMPDIR)/scrollsub/makefile.unx $(DISTDIR)/samples/scrollsub
|
||||
cp $(SAMPDIR)/scrollsub/*.cpp $(DISTDIR)/samples/scrollsub
|
||||
|
||||
mkdir $(DISTDIR)/samples/sockets
|
||||
cp $(SAMPDIR)/sockets/Makefile.in $(DISTDIR)/samples/sockets
|
||||
cp $(SAMPDIR)/sockets/makefile.unx $(DISTDIR)/samples/sockets
|
||||
cp $(SAMPDIR)/sockets/*.cpp $(DISTDIR)/samples/sockets
|
||||
cp $(SAMPDIR)/sockets/*.xpm $(DISTDIR)/samples/sockets
|
||||
|
||||
mkdir $(DISTDIR)/samples/splitter
|
||||
cp $(SAMPDIR)/splitter/makefile.unx $(DISTDIR)/samples/splitter
|
||||
cp $(SAMPDIR)/splitter/Makefile.in $(DISTDIR)/samples/splitter
|
||||
cp $(SAMPDIR)/splitter/makefile.unx $(DISTDIR)/samples/splitter
|
||||
cp $(SAMPDIR)/splitter/*.cpp $(DISTDIR)/samples/splitter
|
||||
|
||||
mkdir $(DISTDIR)/samples/statbar
|
||||
cp $(SAMPDIR)/statbar/Makefile.in $(DISTDIR)/samples/statbar
|
||||
cp $(SAMPDIR)/statbar/makefile.unx $(DISTDIR)/samples/statbar
|
||||
cp $(SAMPDIR)/statbar/*.cpp $(DISTDIR)/samples/statbar
|
||||
cp $(SAMPDIR)/statbar/*.xpm $(DISTDIR)/samples/statbar
|
||||
|
||||
@@ -998,6 +1066,7 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
|
||||
mkdir $(DISTDIR)/samples/toolbar
|
||||
cp $(SAMPDIR)/toolbar/Makefile.in $(DISTDIR)/samples/toolbar
|
||||
cp $(SAMPDIR)/toolbar/makefile.unx $(DISTDIR)/samples/toolbar
|
||||
cp $(SAMPDIR)/toolbar/*.cpp $(DISTDIR)/samples/toolbar
|
||||
cp $(SAMPDIR)/toolbar/*.xpm $(DISTDIR)/samples/toolbar
|
||||
mkdir $(DISTDIR)/samples/toolbar/bitmaps
|
||||
@@ -1005,38 +1074,69 @@ SAMPLES_DIST: ALL_GUI_DIST
|
||||
|
||||
mkdir $(DISTDIR)/samples/treectrl
|
||||
cp $(SAMPDIR)/treectrl/Makefile.in $(DISTDIR)/samples/treectrl
|
||||
cp $(SAMPDIR)/treectrl/makefile.unx $(DISTDIR)/samples/treectrl
|
||||
cp $(SAMPDIR)/treectrl/*.cpp $(DISTDIR)/samples/treectrl
|
||||
cp $(SAMPDIR)/treectrl/*.h $(DISTDIR)/samples/treectrl
|
||||
cp $(SAMPDIR)/treectrl/*.xpm $(DISTDIR)/samples/treectrl
|
||||
mkdir $(DISTDIR)/samples/treectrl/bitmaps
|
||||
cp $(SAMPDIR)/treectrl/bitmaps/*.bmp $(DISTDIR)/samples/treectrl/bitmaps
|
||||
|
||||
mkdir $(DISTDIR)/samples/treelay
|
||||
cp $(SAMPDIR)/treelay/Makefile.in $(DISTDIR)/samples/treelay
|
||||
cp $(SAMPDIR)/treelay/makefile.unx $(DISTDIR)/samples/treelay
|
||||
cp $(SAMPDIR)/treelay/*.cpp $(DISTDIR)/samples/treelay
|
||||
cp $(SAMPDIR)/treelay/*.h $(DISTDIR)/samples/treelay
|
||||
|
||||
mkdir $(DISTDIR)/samples/typetest
|
||||
cp $(SAMPDIR)/typetest/Makefile.in $(DISTDIR)/samples/typetest
|
||||
cp $(SAMPDIR)/typetest/makefile.unx $(DISTDIR)/samples/typetest
|
||||
cp $(SAMPDIR)/typetest/*.cpp $(DISTDIR)/samples/typetest
|
||||
cp $(SAMPDIR)/typetest/*.h $(DISTDIR)/samples/typetest
|
||||
cp $(SAMPDIR)/typetest/*.xpm $(DISTDIR)/samples/typetest
|
||||
|
||||
mkdir $(DISTDIR)/samples/validate
|
||||
cp $(SAMPDIR)/validate/Makefile.in $(DISTDIR)/samples/validate
|
||||
cp $(SAMPDIR)/validate/makefile.unx $(DISTDIR)/samples/validate
|
||||
cp $(SAMPDIR)/validate/*.cpp $(DISTDIR)/samples/validate
|
||||
cp $(SAMPDIR)/validate/*.h $(DISTDIR)/samples/validate
|
||||
cp $(SAMPDIR)/validate/*.xpm $(DISTDIR)/samples/validate
|
||||
|
||||
mkdir $(DISTDIR)/samples/wizard
|
||||
cp $(SAMPDIR)/wizard/Makefile.in $(DISTDIR)/samples/wizard
|
||||
cp $(SAMPDIR)/wizard/makefile.unx $(DISTDIR)/samples/wizard
|
||||
cp $(SAMPDIR)/wizard/*.cpp $(DISTDIR)/samples/wizard
|
||||
cp $(SAMPDIR)/wizard/*.xpm $(DISTDIR)/samples/wizard
|
||||
|
||||
mkdir $(DISTDIR)/samples/sockets
|
||||
cp $(SAMPDIR)/sockets/Makefile.in $(DISTDIR)/samples/sockets
|
||||
cp $(SAMPDIR)/sockets/*.cpp $(DISTDIR)/samples/sockets
|
||||
cp $(SAMPDIR)/sockets/*.xpm $(DISTDIR)/samples/sockets
|
||||
|
||||
UTILS_DIST: ALL_GUI_DIST
|
||||
mkdir $(DISTDIR)/utils
|
||||
cp $(UTILSDIR)/Makefile.in $(DISTDIR)/utils
|
||||
cp $(UTILSDIR)/configure $(DISTDIR)/utils
|
||||
cp $(UTILSDIR)/configure.in $(DISTDIR)/utils
|
||||
|
||||
mkdir $(DISTDIR)/utils/tex2rtf
|
||||
mkdir $(DISTDIR)/utils/tex2rtf/src
|
||||
cp $(UTILSDIR)/tex2rtf/*.in $(DISTDIR)/utils/tex2rtf
|
||||
cp $(UTILSDIR)/tex2rtf/src/*.h $(DISTDIR)/utils/tex2rtf/src
|
||||
cp $(UTILSDIR)/tex2rtf/src/*.in $(DISTDIR)/utils/tex2rtf/src
|
||||
cp $(UTILSDIR)/tex2rtf/src/*.cpp $(DISTDIR)/utils/tex2rtf/src
|
||||
cp $(UTILSDIR)/tex2rtf/src/tex2rtf.* $(DISTDIR)/utils/tex2rtf/src
|
||||
|
||||
mkdir $(DISTDIR)/utils/makegen
|
||||
mkdir $(DISTDIR)/utils/makegen/templates
|
||||
cp $(UTILSDIR)/makegen/Makefile.in $(DISTDIR)/utils/makegen
|
||||
cp $(UTILSDIR)/makegen/*.cpp $(DISTDIR)/utils/makegen
|
||||
cp $(UTILSDIR)/makegen/templates/*.* $(DISTDIR)/utils/makegen/templates
|
||||
|
||||
mkdir $(DISTDIR)/utils/hhp2cached
|
||||
cp $(UTILSDIR)/hhp2cached/*.* $(DISTDIR)/utils/hhp2cached
|
||||
|
||||
mkdir $(DISTDIR)/utils/HelpGen
|
||||
mkdir $(DISTDIR)/utils/HelpGen/src
|
||||
cp $(UTILSDIR)/HelpGen/Makefile.in $(DISTDIR)/utils/HelpGen
|
||||
cp $(UTILSDIR)/HelpGen/src/*.* $(DISTDIR)/utils/HelpGen/src
|
||||
|
||||
cp -R $(UTILSDIR)/dialoged $(DISTDIR)/utils/dialoged
|
||||
|
||||
MISC_DIST: ALL_GUI_DIST
|
||||
mkdir $(DISTDIR)/misc
|
||||
mkdir $(DISTDIR)/misc/afm
|
||||
@@ -1054,15 +1154,6 @@ MANUAL_DIST:
|
||||
cp $(DOCDIR)/latex/wx/*.bib $(DISTDIR)/docs/latex/wx
|
||||
cp $(DOCDIR)/latex/wx/*.sty $(DISTDIR)/docs/latex/wx
|
||||
|
||||
-mkdir $(DISTDIR)/utils
|
||||
mkdir $(DISTDIR)/utils/tex2rtf
|
||||
mkdir $(DISTDIR)/utils/tex2rtf/src
|
||||
cp $(UTILSDIR)/tex2rtf/*.in $(DISTDIR)/utils/tex2rtf
|
||||
cp $(UTILSDIR)/tex2rtf/src/*.h $(DISTDIR)/utils/tex2rtf/src
|
||||
cp $(UTILSDIR)/tex2rtf/src/*.in $(DISTDIR)/utils/tex2rtf/src
|
||||
cp $(UTILSDIR)/tex2rtf/src/*.cpp $(DISTDIR)/utils/tex2rtf/src
|
||||
cp $(UTILSDIR)/tex2rtf/src/tex2rtf.* $(DISTDIR)/utils/tex2rtf/src
|
||||
|
||||
# this target does not generate a complete wxPython dist, it only includes
|
||||
# those files needed for the Debian source package.
|
||||
# see utils/wxPython/distrib for scripts to make a proper wxPython dist.
|
||||
@@ -1129,6 +1220,6 @@ clean:
|
||||
$(RM) *.d
|
||||
$(RM) parser.c
|
||||
$(RM) lexer.c
|
||||
$(RM) ./lib/*
|
||||
$(RM) -r ./lib/*
|
||||
|
||||
cleanall: clean
|
||||
|
@@ -142,3 +142,28 @@ PURE;
|
||||
#define MoveMemory RtlMoveMemory
|
||||
#define CopyMemory RtlCopyMemory
|
||||
|
||||
--- i386-mingw32\include\winsock.h Sat Jul 31 17:48:50 1999
|
||||
+++ winsock.h Mon Mar 20 13:47:12 2000
|
||||
@@ -13,6 +13,10 @@
|
||||
#define _GNU_H_WINDOWS32_SOCKETS
|
||||
#include <windows.h>
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+
|
||||
#ifndef _SYS_TYPES_H
|
||||
typedef unsigned char u_char;
|
||||
typedef unsigned short u_short;
|
||||
@@ -495,4 +499,9 @@
|
||||
typedef struct timeval TIMEVAL;
|
||||
typedef struct timeval *PTIMEVAL;
|
||||
typedef struct timeval *LPTIMEVAL;
|
||||
+
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
#endif
|
||||
+#endif
|
||||
+
|
||||
|
||||
|
||||
|
293
configure.in
@@ -51,6 +51,7 @@ dnl
|
||||
#include <gtk/gtk.h>
|
||||
#include <gtk/gtkfeatures.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int
|
||||
main ()
|
||||
@@ -288,6 +289,52 @@ AC_DEFUN(WX_ARG_CACHE_FLUSH,
|
||||
mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
|
||||
])
|
||||
|
||||
dnl this macro checks for a three-valued command line --with argument:
|
||||
dnl possible arguments are 'yes', 'no', or 'sys'
|
||||
dnl usage: WX_ARG_SYS_WITH(option, helpmessage, variable-name)
|
||||
AC_DEFUN(WX_ARG_SYS_WITH,
|
||||
[
|
||||
AC_MSG_CHECKING("for --with-$1")
|
||||
no_cache=0
|
||||
AC_ARG_WITH($1, $2,
|
||||
[
|
||||
if test "$withval" = yes; then
|
||||
ac_cv_use_$1='$3=yes'
|
||||
elif test "$withval" = no; then
|
||||
ac_cv_use_$1='$3=no'
|
||||
elif test "$withval" = sys; then
|
||||
ac_cv_use_$1='$3=sys'
|
||||
else
|
||||
AC_MSG_ERROR([Invalid value for --with-$1: should be yes, no or sys])
|
||||
fi
|
||||
],
|
||||
[
|
||||
LINE=`grep "$3" ${wx_arg_cache_file}`
|
||||
if test "x$LINE" != x ; then
|
||||
eval "DEFAULT_$LINE"
|
||||
else
|
||||
no_cache=1
|
||||
fi
|
||||
|
||||
ac_cv_use_$1='$3='$DEFAULT_$3
|
||||
])
|
||||
|
||||
eval "$ac_cv_use_$1"
|
||||
if test "$no_cache" != 1; then
|
||||
echo $ac_cv_use_$1 >> ${wx_arg_cache_file}.tmp
|
||||
fi
|
||||
|
||||
if test "$$3" = yes; then
|
||||
AC_MSG_RESULT(yes)
|
||||
elif test "$$3" = no; then
|
||||
AC_MSG_RESULT(no)
|
||||
elif test "$$3" = sys; then
|
||||
AC_MSG_RESULT(system version)
|
||||
else
|
||||
AC_MSG_ERROR([Invalid value for --with-$1: should be yes, no or sys])
|
||||
fi
|
||||
])
|
||||
|
||||
dnl this macro checks for a command line argument and caches the result
|
||||
dnl usage: WX_ARG_WITH(option, helpmessage, variable-name)
|
||||
AC_DEFUN(WX_ARG_WITH,
|
||||
@@ -395,6 +442,7 @@ dnl ---------------------------------------------------------------------------
|
||||
dnl the file passed to AC_INIT should be specific to our package
|
||||
AC_INIT(wx-config.in)
|
||||
|
||||
dnl sets build, host, target variables and the same with _alias
|
||||
AC_CANONICAL_SYSTEM
|
||||
|
||||
dnl When making releases do:
|
||||
@@ -654,6 +702,7 @@ if test $DEBUG_CONFIGURE = 1; then
|
||||
DEFAULT_wxUSE_ODBC=no
|
||||
DEFAULT_wxUSE_OPENGL=no
|
||||
|
||||
DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
|
||||
DEFAULT_wxUSE_STD_IOSTREAM=no
|
||||
DEFAULT_wxUSE_FILE=no
|
||||
DEFAULT_wxUSE_TEXTFILE=no
|
||||
@@ -774,6 +823,7 @@ else
|
||||
DEFAULT_wxUSE_ODBC=no
|
||||
DEFAULT_wxUSE_OPENGL=no
|
||||
|
||||
DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
|
||||
DEFAULT_wxUSE_STD_IOSTREAM=no
|
||||
DEFAULT_wxUSE_FILE=yes
|
||||
DEFAULT_wxUSE_TEXTFILE=yes
|
||||
@@ -909,16 +959,16 @@ AC_ARG_WITH(gtk-prefix, [ --with-gtk-prefix=PFX Prefix where GTK is instal
|
||||
AC_ARG_WITH(gtk-exec-prefix, [ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed],
|
||||
gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
|
||||
|
||||
WX_ARG_WITH(libpng, [ --with-libpng use libpng (PNG image format)], wxUSE_LIBPNG)
|
||||
WX_ARG_WITH(libjpeg, [ --with-libjpeg use libjpeg (JPEG file format)], wxUSE_LIBJPEG)
|
||||
WX_ARG_WITH(libtiff, [ --with-libtiff use libtiff (TIFF file format)], wxUSE_LIBTIFF)
|
||||
WX_ARG_SYS_WITH(libpng, [ --with-libpng use libpng (PNG image format)], wxUSE_LIBPNG)
|
||||
WX_ARG_SYS_WITH(libjpeg, [ --with-libjpeg use libjpeg (JPEG file format)], wxUSE_LIBJPEG)
|
||||
WX_ARG_SYS_WITH(libtiff, [ --with-libtiff use libtiff (TIFF file format)], wxUSE_LIBTIFF)
|
||||
WX_ARG_WITH(opengl, [ --with-opengl use OpenGL (or Mesa)], wxUSE_OPENGL)
|
||||
|
||||
fi
|
||||
dnl for GUI only
|
||||
|
||||
WX_ARG_WITH(dmalloc, [ --with-dmalloc use dmalloc library (www.letters.com/dmalloc)], wxUSE_DMALLOC)
|
||||
WX_ARG_WITH(zlib, [ --with-zlib use zlib for LZW compression], wxUSE_ZLIB)
|
||||
WX_ARG_SYS_WITH(zlib, [ --with-zlib use zlib for LZW compression], wxUSE_ZLIB)
|
||||
WX_ARG_WITH(odbc, [ --with-odbc use the IODBC and wxODBC classes], wxUSE_ODBC)
|
||||
|
||||
dnl ====================
|
||||
@@ -960,15 +1010,11 @@ dnl ---------------------------------------------------------------------------
|
||||
WX_ARG_ENABLE(intl, [ --enable-intl use internationalization system], wxUSE_INTL)
|
||||
WX_ARG_ENABLE(config, [ --enable-config use wxConfig (and derived) classes], wxUSE_CONFIG)
|
||||
|
||||
dnl can't use sockets without GUI so far
|
||||
if test "$wxUSE_GUI" = "yes"; then
|
||||
WX_ARG_ENABLE(sockets, [ --enable-sockets use socket/network classes], wxUSE_SOCKETS)
|
||||
else
|
||||
wxUSE_SOCKETS=no
|
||||
fi
|
||||
|
||||
WX_ARG_ENABLE(ipc, [ --enable-ipc use interprocess communication (wxSocket etc.)], wxUSE_IPC)
|
||||
|
||||
WX_ARG_ENABLE(dialupman, [ --enable-dialupman use dialup network classes], wxUSE_DIALUP_MANAGER)
|
||||
WX_ARG_ENABLE(ipc, [ --enable-ipc use interprocess communication (wxSocket etc.)], wxUSE_IPC)
|
||||
WX_ARG_ENABLE(apple_ieee, [ --enable-apple_ieee use the Apple IEEE codec], wxUSE_APPLE_IEEE)
|
||||
WX_ARG_ENABLE(timedate, [ --enable-timedate use date/time classes], wxUSE_TIMEDATE)
|
||||
WX_ARG_ENABLE(wave, [ --enable-wave use wxWave class], wxUSE_WAVE)
|
||||
@@ -989,6 +1035,8 @@ WX_ARG_ENABLE(fs_inet, [ --enable-fs_inet use virtual HTTP/FTP fil
|
||||
WX_ARG_ENABLE(fs_zip, [ --enable-fs_zip use virtual ZIP filesystems], wxUSE_FS_ZIP)
|
||||
WX_ARG_ENABLE(zipstream, [ --enable-zipstream use wxZipInputStream], wxUSE_ZIPSTREAM)
|
||||
|
||||
WX_ARG_ENABLE(catch_segvs, [ --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException], wxUSE_ON_FATAL_EXCEPTION)
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl "big" options (i.e. those which change a lot of things throughout the library)
|
||||
dnl ---------------------------------------------------------------------------
|
||||
@@ -1265,17 +1313,16 @@ AC_CACHE_SAVE
|
||||
|
||||
dnl cross-compiling support: we're cross compiling if the build system is
|
||||
dnl different from the target one (assume host and target be always the same)
|
||||
if eval "test $host != $build"; then
|
||||
if eval "test $host_alias != NONE"; then
|
||||
if test "$build" != "$host" ; then
|
||||
CC=$host_alias-gcc
|
||||
CXX=$host_alias-c++
|
||||
AR=$host_alias-ar
|
||||
RANLIB=$host_alias-ranlib
|
||||
DLLTOOL=$host_alias-dlltool
|
||||
RESCOMP=$host_alias-windres
|
||||
LD=$host_alias-ld
|
||||
NM=$host_alias-nm
|
||||
STRIP=$host_alias-strip
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl C-compiler checks
|
||||
@@ -1490,7 +1537,8 @@ WXWINE=
|
||||
|
||||
if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
|
||||
if test "$cross_compiling" = "yes" ; then
|
||||
AC_MSG_WARN(Cross compiling --- skipping windows.h check)
|
||||
dnl mingw32 will find them even if they're not in one of standard paths
|
||||
AC_MSG_WARN(skipping windows.h check for cross-compilation)
|
||||
else
|
||||
AC_MSG_CHECKING(for Windows headers)
|
||||
WX_PATH_FIND_INCLUDES($SEARCH_INCLUDE, windows.h)
|
||||
@@ -1508,6 +1556,11 @@ if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
|
||||
dnl --- This will bloat the executable, but it'll work for now...
|
||||
LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
|
||||
|
||||
dnl add extra odbc libs if we have compiled in odbc
|
||||
if test "$wxUSE_ODBC" = "yes" ; then
|
||||
LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
|
||||
fi
|
||||
|
||||
dnl -mwindows is needed to avoid that spawning of a console window
|
||||
if test "$wxUSE_MINGW" = 1; then
|
||||
LDFLAGS="$LDFLAGS -mwindows"
|
||||
@@ -1521,6 +1574,18 @@ if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
|
||||
GENERICOBJS="\$(MSW_GENERICOBJS)"
|
||||
UNIXOBJS=
|
||||
GUIDIST=MSW_DIST
|
||||
|
||||
dnl we should calculate these
|
||||
RCINCSWITCH="--include-dir"
|
||||
RCDEFSWITCH="--define"
|
||||
RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
|
||||
RCINPUTSWITCH="-i"
|
||||
RCOUTPUTSWITCH="-o"
|
||||
RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
|
||||
|
||||
dnl set optinal RES_PROGRAM_OPT to RES_PROGRAM
|
||||
RESPROGRAM="\$(RES_PROGRAM)"
|
||||
|
||||
fi
|
||||
|
||||
if test "$wxUSE_GTK" = 1; then
|
||||
@@ -1615,7 +1680,7 @@ if test "$wxUSE_WINE" = 1; then
|
||||
AC_MSG_ERROR(no)
|
||||
fi
|
||||
|
||||
GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
|
||||
GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
|
||||
GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
|
||||
WXWINE=1
|
||||
TOOLKIT=MSW
|
||||
@@ -1797,7 +1862,7 @@ if test "$wxUSE_MOTIF" = 1; then
|
||||
)
|
||||
fi
|
||||
|
||||
GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
|
||||
GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
|
||||
GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
|
||||
TOOLKIT=MOTIF
|
||||
|
||||
@@ -1882,6 +1947,10 @@ else
|
||||
ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
|
||||
ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
|
||||
|
||||
if test "$wxUSE_ZLIB" = "yes" ; then
|
||||
ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
|
||||
fi
|
||||
|
||||
dnl building wxBase only
|
||||
WX_LIBRARY="wxbase"
|
||||
|
||||
@@ -1935,7 +2004,11 @@ if test "$wxUSE_SHARED" = "yes"; then
|
||||
fi
|
||||
WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
|
||||
WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl"
|
||||
WX_ALL=${WX_LIBRARY_NAME_SHARED}
|
||||
if test "$wxUSE_OPENGL" = "yes"; then
|
||||
WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
|
||||
else
|
||||
WX_ALL="${WX_LIBRARY_NAME_SHARED}"
|
||||
fi
|
||||
;;
|
||||
|
||||
dnl in fact, these settings are for any platform using gcc
|
||||
@@ -1946,8 +2019,13 @@ if test "$wxUSE_SHARED" = "yes"; then
|
||||
BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
|
||||
BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
|
||||
fi
|
||||
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||
WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
|
||||
if test "$wxUSE_OPENGL" = "yes"; then
|
||||
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
|
||||
WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
|
||||
else
|
||||
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||
WX_ALL="CREATE_LINKS"
|
||||
fi
|
||||
;;
|
||||
*-*-irix5* | *-*-irix6* )
|
||||
if test "$GCC" = yes ; then
|
||||
@@ -1956,8 +2034,13 @@ if test "$wxUSE_SHARED" = "yes"; then
|
||||
else
|
||||
SHARED_LD="${CXX} -shared -o"
|
||||
fi
|
||||
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||
WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
|
||||
if test "$wxUSE_OPENGL" = "yes"; then
|
||||
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
|
||||
WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
|
||||
else
|
||||
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||
WX_ALL="CREATE_LINKS"
|
||||
fi
|
||||
;;
|
||||
*-*-solaris2* )
|
||||
if test "$GCC" = yes ; then
|
||||
@@ -1967,8 +2050,13 @@ if test "$wxUSE_SHARED" = "yes"; then
|
||||
SHARED_LD="${CXX} -G -o"
|
||||
PIC_FLAG="-KPIC"
|
||||
fi
|
||||
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||
WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
|
||||
if test "$wxUSE_OPENGL" = "yes"; then
|
||||
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
|
||||
WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
|
||||
else
|
||||
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
||||
WX_ALL="CREATE_LINKS"
|
||||
fi
|
||||
;;
|
||||
*-*-sunos4* )
|
||||
SHARED_LD="${CC} -shared -o"
|
||||
@@ -2038,11 +2126,14 @@ if test "$wxUSE_SHARED" = "yes"; then
|
||||
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
|
||||
WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
|
||||
fi
|
||||
dnl do not alter the LIBRARY_TYPE strings "so" and "a", they are magic
|
||||
WX_TARGET_LIBRARY_TYPE="so"
|
||||
else
|
||||
dnl set target to static
|
||||
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
|
||||
WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
|
||||
WX_ALL="${WX_LIBRARY_NAME_STATIC}"
|
||||
WX_TARGET_LIBRARY_TYPE="a"
|
||||
fi
|
||||
|
||||
dnl ------------------------------------------------------------------------
|
||||
@@ -2061,8 +2152,10 @@ dnl defines HAVE_FNMATCH_H
|
||||
AC_CHECK_HEADERS(fnmatch.h)
|
||||
|
||||
if test "$wxUSE_GUI" = "yes"; then
|
||||
dnl defines HAVE_X11_XKBLIB_H
|
||||
AC_CHECK_HEADERS(X11/XKBlib.h)
|
||||
if test "$wxUSE_UNIX" = "yes"; then
|
||||
dnl defines HAVE_X11_XKBLIB_H
|
||||
AC_CHECK_HEADERS(X11/XKBlib.h)
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
@@ -2095,7 +2188,6 @@ AC_CACHE_CHECK([for pw_gecos in struct passwd], wx_cv_struct_pw_gecos,
|
||||
],
|
||||
[
|
||||
wx_cv_struct_pw_gecos=yes
|
||||
AC_DEFINE(HAVE_PW_GECOS)
|
||||
],
|
||||
[
|
||||
wx_cv_struct_pw_gecos=no
|
||||
@@ -2104,6 +2196,10 @@ AC_CACHE_CHECK([for pw_gecos in struct passwd], wx_cv_struct_pw_gecos,
|
||||
]
|
||||
)
|
||||
|
||||
if test "$wx_cv_struct_pw_gecos" = "yes"; then
|
||||
AC_DEFINE(HAVE_PW_GECOS)
|
||||
fi
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Checks for compiler characteristics
|
||||
dnl ---------------------------------------------------------------------------
|
||||
@@ -2202,6 +2298,16 @@ AC_LANG_RESTORE
|
||||
dnl under MSW we always have Sleep()
|
||||
if test "$TOOLKIT" != "MSW"; then
|
||||
|
||||
dnl check for POSIX signals if we need them
|
||||
if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
|
||||
AC_CHECK_FUNCS(sigaction)
|
||||
|
||||
if test "$ac_cv_func_sigaction" = "no"; then
|
||||
AC_MSG_WARN([No POSIX signal functions on this system, wxApp::OnFatalException will not be called])
|
||||
wxUSE_ON_FATAL_EXCEPTION=no
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl check for vfork() (even if it's the same as fork() in modern Unices)
|
||||
AC_CHECK_FUNCS(vfork)
|
||||
|
||||
@@ -2239,9 +2345,15 @@ fi
|
||||
dnl check for uname (POSIX) and gethostname (BSD)
|
||||
AC_CHECK_FUNCS(uname gethostname, break)
|
||||
|
||||
dnl check for MT-safe version of strtok
|
||||
dnl check for MT-safe version of strtok (on DEC Alpha, it's ok for C compiler
|
||||
dnl but not for C++ one - hence change language)
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
||||
AC_CHECK_FUNCS(strtok_r)
|
||||
|
||||
AC_LANG_RESTORE
|
||||
|
||||
dnl check for inet_addr and inet_aton (these may live either in libc, or in
|
||||
dnl libnsl or libresolv)
|
||||
INET_LINK=
|
||||
@@ -2517,28 +2629,76 @@ dnl Optional libraries
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
ZLIB_INCLUDE=
|
||||
if test "$wxUSE_ZLIB" = "yes" ; then
|
||||
if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
|
||||
AC_DEFINE(wxUSE_ZLIB)
|
||||
ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
|
||||
if test "$wxUSE_ZLIB" = "yes" ; then
|
||||
ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
|
||||
else
|
||||
ZLIB_LINK=
|
||||
AC_CHECK_HEADER(zlib.h, AC_CHECK_LIB(z, deflate, ZLIB_LINK="-lz"))
|
||||
if test "x$ZLIB_LINK" = "x" ; then
|
||||
AC_MSG_ERROR(system zlib compression library not found! Use --with-zlib=yes to use built-in zlib)
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
PNG_INCLUDE=
|
||||
if test "$wxUSE_LIBPNG" = "yes" ; then
|
||||
if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
|
||||
AC_DEFINE(wxUSE_LIBPNG)
|
||||
PNG_INCLUDE="-I\${top_srcdir}/src/png"
|
||||
dnl for the check below to have a chance to succeed, we must already have
|
||||
dnl libz somewhere
|
||||
if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
|
||||
AC_MSG_WARN([--with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead])
|
||||
wxUSE_LIBPNG=yes
|
||||
fi
|
||||
|
||||
if test "$wxUSE_LIBPNG" = "yes" ; then
|
||||
PNG_INCLUDE="-I\${top_srcdir}/src/png"
|
||||
else
|
||||
PNG_LINK=
|
||||
AC_CHECK_HEADER(png.h,
|
||||
AC_CHECK_LIB(png, png_check_sig,
|
||||
PNG_LINK="-lpng",
|
||||
,
|
||||
[-lz -lm])
|
||||
)
|
||||
if test "x$PNG_LINK" = "x" ; then
|
||||
AC_MSG_ERROR(system png library not found! Use --with-libpng=yes to use the built-in libpng)
|
||||
fi
|
||||
fi
|
||||
|
||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
|
||||
fi
|
||||
|
||||
JPEG_INCLUDE=
|
||||
if test "$wxUSE_LIBJPEG" = "yes" ; then
|
||||
if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
|
||||
AC_DEFINE(wxUSE_LIBJPEG)
|
||||
JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
|
||||
if test "$wxUSE_LIBJPEG" = "yes" ; then
|
||||
JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
|
||||
else
|
||||
JPEG_LINK=
|
||||
AC_CHECK_HEADER(jpeglib.h, AC_CHECK_LIB(jpeg, jpeg_read_header, JPEG_LINK="-ljpeg"))
|
||||
if test "x$JPEG_LINK" = "x" ; then
|
||||
AC_MSG_ERROR(system jpeg library not found! Use --with-libjpeg=yes to use the built-in one)
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
TIFF_INCLUDE=
|
||||
if test "$wxUSE_LIBTIFF" = "yes" ; then
|
||||
if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
|
||||
AC_DEFINE(wxUSE_LIBTIFF)
|
||||
TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
|
||||
if test "$wxUSE_LIBTIFF" = "yes" ; then
|
||||
TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
|
||||
else
|
||||
TIFF_LINK=
|
||||
AC_CHECK_HEADER(tiffio.h, AC_CHECK_LIB(tiff, TIFFError,
|
||||
TIFF_LINK="-ltiff",
|
||||
,
|
||||
-lm))
|
||||
if test "x$TIFF_LINK" = "x" ; then
|
||||
AC_MSG_ERROR(system tiff library not found! Use --with-libtiff=yes to use the built-in one)
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$wxUSE_OPENGL" = "yes"; then
|
||||
@@ -2617,6 +2777,10 @@ if test "$wxUSE_ZIPSTREAM" = "yes"; then
|
||||
AC_DEFINE(wxUSE_ZIPSTREAM)
|
||||
fi
|
||||
|
||||
if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
|
||||
AC_DEFINE(wxUSE_ON_FATAL_EXCEPTION)
|
||||
fi
|
||||
|
||||
if test "$wxUSE_BUSYINFO" = "yes"; then
|
||||
AC_DEFINE(wxUSE_BUSYINFO)
|
||||
fi
|
||||
@@ -2890,26 +3054,31 @@ dnl ---------------------------------------------------------------------------
|
||||
dnl Joystick support
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
if test "$wxUSE_GUI" = "yes"; then
|
||||
|
||||
dnl under MSW we always have joystick support
|
||||
if test "$TOOLKIT" != "MSW"; then
|
||||
|
||||
if test "$wxUSE_JOYSTICK" = 1; then
|
||||
if test "$wxUSE_JOYSTICK" = "yes"; then
|
||||
dnl joystick support is only for Linux 2.1.x or greater
|
||||
AC_CHECK_HEADERS(linux/joystick.h)
|
||||
if test "$ac_cv_header_linux_joystick_h" != "yes"; then
|
||||
wxUSE_JOYSTICK=0
|
||||
AC_MSG_WARN(Joystick not supported yb this system, disabled)
|
||||
wxUSE_JOYSTICK=no
|
||||
AC_MSG_WARN(Joystick not supported by this system, disabled)
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
dnl if !MSW
|
||||
|
||||
if test "$wxUSE_JOYSTICK" = 1; then
|
||||
if test "$wxUSE_JOYSTICK" = "yes"; then
|
||||
AC_DEFINE(wxUSE_JOYSTICK)
|
||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
|
||||
fi
|
||||
|
||||
fi
|
||||
dnl if wxUSE_GUI
|
||||
|
||||
dnl ------------------------------------------------------------------------
|
||||
dnl DLL support
|
||||
dnl ------------------------------------------------------------------------
|
||||
@@ -3074,6 +3243,10 @@ dnl IPC: IPC, Drag'n'Drop, Clipboard, ...
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
if test "$wxUSE_IPC" = "yes"; then
|
||||
if test "$wxUSE_SOCKETS" != "yes"; then
|
||||
AC_MSG_WARN(wxWindows IPC classes require sockets, disabled)
|
||||
fi
|
||||
|
||||
AC_DEFINE(wxUSE_IPC)
|
||||
fi
|
||||
|
||||
@@ -3366,8 +3539,15 @@ dnl ---------------------------------------------------------------------------
|
||||
dnl get the string with OS info - used by wxGetOsDescription()
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
OSINFO=`uname -s -r -m`
|
||||
OSINFO="\"$OSINFO\""
|
||||
if test "$cross_compiling" = "yes"; then
|
||||
dnl Use best guess from host as we can't use uname when cross compiling
|
||||
OSINFO="\"$host\""
|
||||
else
|
||||
dnl attualy work out OS version
|
||||
OSINFO=`uname -s -r -m`
|
||||
OSINFO="\"$OSINFO\""
|
||||
fi
|
||||
|
||||
AC_DEFINE_UNQUOTED(WXWIN_OS_DESCRIPTION, $OSINFO)
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
@@ -3377,9 +3557,12 @@ dnl ---------------------------------------------------------------------------
|
||||
GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $TOOLKIT_LINK"
|
||||
|
||||
dnl all additional libraries (except wxWindows itself) we link with
|
||||
EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
|
||||
dnl
|
||||
dnl note that we always link with -lm - extended.c uses floor() and is always
|
||||
dnl linked in
|
||||
EXTRA_LIBS="-lm $LIBS $ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
|
||||
if test "$wxUSE_GUI" = "yes"; then
|
||||
EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
|
||||
EXTRA_LIBS="$EXTRA_LIBS $GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK"
|
||||
fi
|
||||
|
||||
dnl all the libraries needed to link wxWindows programs when using the
|
||||
@@ -3466,6 +3649,7 @@ AC_SUBST(DEP_INFO_FLAGS)
|
||||
AC_SUBST(CODE_GEN_FLAGS)
|
||||
AC_SUBST(BURNT_LIBRARY_NAME)
|
||||
AC_SUBST(BURNT_LIBRARY_NAME_GL)
|
||||
AC_SUBST(WX_TARGET_LIBRARY_TYPE)
|
||||
|
||||
dnl debugging options
|
||||
AC_SUBST(WXDEBUG_DEFINE)
|
||||
@@ -3514,6 +3698,21 @@ AC_SUBST(EXTRADEFS)
|
||||
AC_SUBST(LIBS)
|
||||
AC_SUBST(LD_LIBS)
|
||||
|
||||
dnl additional resurces settings
|
||||
AC_SUBST(RCINPUTSWITCH)
|
||||
AC_SUBST(RCOUTPUTSWITCH)
|
||||
AC_SUBST(RESPROGRAM)
|
||||
AC_SUBST(RESCOMP)
|
||||
AC_SUBST(RESFLAGS)
|
||||
|
||||
dnl These seam to be missing
|
||||
AC_SUBST(DLLTOOL)
|
||||
AC_SUBST(AS)
|
||||
AC_SUBST(NM)
|
||||
AC_SUBST(LD)
|
||||
AC_SUBST(MAKEINFO)
|
||||
|
||||
|
||||
dnl MAKE_SET will be replaced with "MAKE=..." or nothing if make sets MAKE
|
||||
dnl itself (this is macro is required if SUBDIRS variable is used in Makefile.am
|
||||
dnl - and we do use it)
|
||||
@@ -3534,10 +3733,14 @@ AC_CONFIG_HEADER(setup.h:setup.h.in)
|
||||
|
||||
dnl some more GUI only things
|
||||
if test "$wxUSE_GUI" = "yes"; then
|
||||
dnl we need to pass SAMPLES_SUBDIRS to the configure in
|
||||
dnl we need to pass SAMPLES_SUBDIRS (and some other) to the configure in
|
||||
dnl samples and the only way to do it is, again, use the cache
|
||||
wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
|
||||
AC_CONFIG_SUBDIRS(demos samples utils)
|
||||
wx_cv_path_ifs=$PATH_IFS
|
||||
wx_cv_program_ext=$PROGRAM_EXT
|
||||
wx_cv_target_library=$WX_TARGET_LIBRARY
|
||||
wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
|
||||
AC_CONFIG_SUBDIRS(demos samples utils contrib)
|
||||
fi
|
||||
dnl from wxUSE_GUI
|
||||
|
||||
|
13
contrib/Makefile.in
Normal file
@@ -0,0 +1,13 @@
|
||||
#
|
||||
# Makefile : Builds wxWindows utils for Unix.
|
||||
#
|
||||
|
||||
all:
|
||||
cd src; make
|
||||
|
||||
clean:
|
||||
cd src; make clean
|
||||
cd samples; make clean
|
||||
|
||||
samples:
|
||||
cd samples; make
|
974
contrib/configure
vendored
Executable file
@@ -0,0 +1,974 @@
|
||||
#! /bin/sh
|
||||
|
||||
# From configure.in Id: configure.in
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated automatically using autoconf version 2.13
|
||||
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
||||
#
|
||||
# This configure script is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy, distribute and modify it.
|
||||
|
||||
# Defaults:
|
||||
ac_help=
|
||||
ac_default_prefix=/usr/local
|
||||
# Any additions from configure.in:
|
||||
|
||||
# Initialize some variables set by options.
|
||||
# The variables have the same names as the options, with
|
||||
# dashes changed to underlines.
|
||||
build=NONE
|
||||
cache_file=./config.cache
|
||||
exec_prefix=NONE
|
||||
host=NONE
|
||||
no_create=
|
||||
nonopt=NONE
|
||||
no_recursion=
|
||||
prefix=NONE
|
||||
program_prefix=NONE
|
||||
program_suffix=NONE
|
||||
program_transform_name=s,x,x,
|
||||
silent=
|
||||
site=
|
||||
srcdir=
|
||||
target=NONE
|
||||
verbose=
|
||||
x_includes=NONE
|
||||
x_libraries=NONE
|
||||
bindir='${exec_prefix}/bin'
|
||||
sbindir='${exec_prefix}/sbin'
|
||||
libexecdir='${exec_prefix}/libexec'
|
||||
datadir='${prefix}/share'
|
||||
sysconfdir='${prefix}/etc'
|
||||
sharedstatedir='${prefix}/com'
|
||||
localstatedir='${prefix}/var'
|
||||
libdir='${exec_prefix}/lib'
|
||||
includedir='${prefix}/include'
|
||||
oldincludedir='/usr/include'
|
||||
infodir='${prefix}/info'
|
||||
mandir='${prefix}/man'
|
||||
|
||||
# Initialize some other variables.
|
||||
subdirs=
|
||||
MFLAGS= MAKEFLAGS=
|
||||
SHELL=${CONFIG_SHELL-/bin/sh}
|
||||
# Maximum number of lines to put in a shell here document.
|
||||
ac_max_here_lines=12
|
||||
|
||||
ac_prev=
|
||||
for ac_option
|
||||
do
|
||||
|
||||
# If the previous option needs an argument, assign it.
|
||||
if test -n "$ac_prev"; then
|
||||
eval "$ac_prev=\$ac_option"
|
||||
ac_prev=
|
||||
continue
|
||||
fi
|
||||
|
||||
case "$ac_option" in
|
||||
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
||||
*) ac_optarg= ;;
|
||||
esac
|
||||
|
||||
# Accept the important Cygnus configure options, so we can diagnose typos.
|
||||
|
||||
case "$ac_option" in
|
||||
|
||||
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
||||
ac_prev=bindir ;;
|
||||
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
||||
bindir="$ac_optarg" ;;
|
||||
|
||||
-build | --build | --buil | --bui | --bu)
|
||||
ac_prev=build ;;
|
||||
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
||||
build="$ac_optarg" ;;
|
||||
|
||||
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
||||
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
||||
ac_prev=cache_file ;;
|
||||
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
||||
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
||||
cache_file="$ac_optarg" ;;
|
||||
|
||||
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
||||
ac_prev=datadir ;;
|
||||
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
||||
| --da=*)
|
||||
datadir="$ac_optarg" ;;
|
||||
|
||||
-disable-* | --disable-*)
|
||||
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
||||
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
||||
eval "enable_${ac_feature}=no" ;;
|
||||
|
||||
-enable-* | --enable-*)
|
||||
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
||||
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
||||
case "$ac_option" in
|
||||
*=*) ;;
|
||||
*) ac_optarg=yes ;;
|
||||
esac
|
||||
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
||||
|
||||
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
||||
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
||||
| --exec | --exe | --ex)
|
||||
ac_prev=exec_prefix ;;
|
||||
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
||||
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
||||
| --exec=* | --exe=* | --ex=*)
|
||||
exec_prefix="$ac_optarg" ;;
|
||||
|
||||
-gas | --gas | --ga | --g)
|
||||
# Obsolete; use --with-gas.
|
||||
with_gas=yes ;;
|
||||
|
||||
-help | --help | --hel | --he)
|
||||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat << EOF
|
||||
Usage: configure [options] [host]
|
||||
Options: [defaults in brackets after descriptions]
|
||||
Configuration:
|
||||
--cache-file=FILE cache test results in FILE
|
||||
--help print this message
|
||||
--no-create do not create output files
|
||||
--quiet, --silent do not print \`checking...' messages
|
||||
--version print the version of autoconf that created configure
|
||||
Directory and file names:
|
||||
--prefix=PREFIX install architecture-independent files in PREFIX
|
||||
[$ac_default_prefix]
|
||||
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
||||
[same as prefix]
|
||||
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
||||
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
||||
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
||||
--datadir=DIR read-only architecture-independent data in DIR
|
||||
[PREFIX/share]
|
||||
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
||||
--sharedstatedir=DIR modifiable architecture-independent data in DIR
|
||||
[PREFIX/com]
|
||||
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
||||
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
||||
--includedir=DIR C header files in DIR [PREFIX/include]
|
||||
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
||||
--infodir=DIR info documentation in DIR [PREFIX/info]
|
||||
--mandir=DIR man documentation in DIR [PREFIX/man]
|
||||
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
||||
--program-prefix=PREFIX prepend PREFIX to installed program names
|
||||
--program-suffix=SUFFIX append SUFFIX to installed program names
|
||||
--program-transform-name=PROGRAM
|
||||
run sed PROGRAM on installed program names
|
||||
EOF
|
||||
cat << EOF
|
||||
Host type:
|
||||
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
||||
--host=HOST configure for HOST [guessed]
|
||||
--target=TARGET configure for TARGET [TARGET=HOST]
|
||||
Features and packages:
|
||||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||
--x-includes=DIR X include files are in DIR
|
||||
--x-libraries=DIR X library files are in DIR
|
||||
EOF
|
||||
if test -n "$ac_help"; then
|
||||
echo "--enable and --with options recognized:$ac_help"
|
||||
fi
|
||||
exit 0 ;;
|
||||
|
||||
-host | --host | --hos | --ho)
|
||||
ac_prev=host ;;
|
||||
-host=* | --host=* | --hos=* | --ho=*)
|
||||
host="$ac_optarg" ;;
|
||||
|
||||
-includedir | --includedir | --includedi | --included | --include \
|
||||
| --includ | --inclu | --incl | --inc)
|
||||
ac_prev=includedir ;;
|
||||
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
||||
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
||||
includedir="$ac_optarg" ;;
|
||||
|
||||
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
||||
ac_prev=infodir ;;
|
||||
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
||||
infodir="$ac_optarg" ;;
|
||||
|
||||
-libdir | --libdir | --libdi | --libd)
|
||||
ac_prev=libdir ;;
|
||||
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
||||
libdir="$ac_optarg" ;;
|
||||
|
||||
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
||||
| --libexe | --libex | --libe)
|
||||
ac_prev=libexecdir ;;
|
||||
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
||||
| --libexe=* | --libex=* | --libe=*)
|
||||
libexecdir="$ac_optarg" ;;
|
||||
|
||||
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
||||
| --localstate | --localstat | --localsta | --localst \
|
||||
| --locals | --local | --loca | --loc | --lo)
|
||||
ac_prev=localstatedir ;;
|
||||
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
||||
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
||||
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
||||
localstatedir="$ac_optarg" ;;
|
||||
|
||||
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
||||
ac_prev=mandir ;;
|
||||
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
||||
mandir="$ac_optarg" ;;
|
||||
|
||||
-nfp | --nfp | --nf)
|
||||
# Obsolete; use --without-fp.
|
||||
with_fp=no ;;
|
||||
|
||||
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
||||
| --no-cr | --no-c)
|
||||
no_create=yes ;;
|
||||
|
||||
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
||||
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
||||
no_recursion=yes ;;
|
||||
|
||||
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
||||
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
||||
| --oldin | --oldi | --old | --ol | --o)
|
||||
ac_prev=oldincludedir ;;
|
||||
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
||||
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
||||
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
||||
oldincludedir="$ac_optarg" ;;
|
||||
|
||||
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
||||
ac_prev=prefix ;;
|
||||
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
||||
prefix="$ac_optarg" ;;
|
||||
|
||||
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
||||
| --program-pre | --program-pr | --program-p)
|
||||
ac_prev=program_prefix ;;
|
||||
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
||||
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
||||
program_prefix="$ac_optarg" ;;
|
||||
|
||||
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
||||
| --program-suf | --program-su | --program-s)
|
||||
ac_prev=program_suffix ;;
|
||||
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
||||
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
||||
program_suffix="$ac_optarg" ;;
|
||||
|
||||
-program-transform-name | --program-transform-name \
|
||||
| --program-transform-nam | --program-transform-na \
|
||||
| --program-transform-n | --program-transform- \
|
||||
| --program-transform | --program-transfor \
|
||||
| --program-transfo | --program-transf \
|
||||
| --program-trans | --program-tran \
|
||||
| --progr-tra | --program-tr | --program-t)
|
||||
ac_prev=program_transform_name ;;
|
||||
-program-transform-name=* | --program-transform-name=* \
|
||||
| --program-transform-nam=* | --program-transform-na=* \
|
||||
| --program-transform-n=* | --program-transform-=* \
|
||||
| --program-transform=* | --program-transfor=* \
|
||||
| --program-transfo=* | --program-transf=* \
|
||||
| --program-trans=* | --program-tran=* \
|
||||
| --progr-tra=* | --program-tr=* | --program-t=*)
|
||||
program_transform_name="$ac_optarg" ;;
|
||||
|
||||
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
||||
| -silent | --silent | --silen | --sile | --sil)
|
||||
silent=yes ;;
|
||||
|
||||
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
||||
ac_prev=sbindir ;;
|
||||
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
||||
| --sbi=* | --sb=*)
|
||||
sbindir="$ac_optarg" ;;
|
||||
|
||||
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
||||
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
||||
| --sharedst | --shareds | --shared | --share | --shar \
|
||||
| --sha | --sh)
|
||||
ac_prev=sharedstatedir ;;
|
||||
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
||||
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
||||
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
||||
| --sha=* | --sh=*)
|
||||
sharedstatedir="$ac_optarg" ;;
|
||||
|
||||
-site | --site | --sit)
|
||||
ac_prev=site ;;
|
||||
-site=* | --site=* | --sit=*)
|
||||
site="$ac_optarg" ;;
|
||||
|
||||
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
||||
ac_prev=srcdir ;;
|
||||
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
||||
srcdir="$ac_optarg" ;;
|
||||
|
||||
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
||||
| --syscon | --sysco | --sysc | --sys | --sy)
|
||||
ac_prev=sysconfdir ;;
|
||||
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
||||
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
||||
sysconfdir="$ac_optarg" ;;
|
||||
|
||||
-target | --target | --targe | --targ | --tar | --ta | --t)
|
||||
ac_prev=target ;;
|
||||
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
||||
target="$ac_optarg" ;;
|
||||
|
||||
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
||||
verbose=yes ;;
|
||||
|
||||
-version | --version | --versio | --versi | --vers)
|
||||
echo "configure generated by autoconf version 2.13"
|
||||
exit 0 ;;
|
||||
|
||||
-with-* | --with-*)
|
||||
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
||||
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
||||
case "$ac_option" in
|
||||
*=*) ;;
|
||||
*) ac_optarg=yes ;;
|
||||
esac
|
||||
eval "with_${ac_package}='$ac_optarg'" ;;
|
||||
|
||||
-without-* | --without-*)
|
||||
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
||||
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
||||
eval "with_${ac_package}=no" ;;
|
||||
|
||||
--x)
|
||||
# Obsolete; use --with-x.
|
||||
with_x=yes ;;
|
||||
|
||||
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
||||
| --x-incl | --x-inc | --x-in | --x-i)
|
||||
ac_prev=x_includes ;;
|
||||
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
||||
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
||||
x_includes="$ac_optarg" ;;
|
||||
|
||||
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
||||
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
||||
ac_prev=x_libraries ;;
|
||||
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
||||
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
||||
x_libraries="$ac_optarg" ;;
|
||||
|
||||
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
||||
;;
|
||||
|
||||
*)
|
||||
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
||||
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
||||
fi
|
||||
if test "x$nonopt" != xNONE; then
|
||||
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
||||
fi
|
||||
nonopt="$ac_option"
|
||||
;;
|
||||
|
||||
esac
|
||||
done
|
||||
|
||||
if test -n "$ac_prev"; then
|
||||
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
||||
fi
|
||||
|
||||
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
||||
|
||||
# File descriptor usage:
|
||||
# 0 standard input
|
||||
# 1 file creation
|
||||
# 2 errors and warnings
|
||||
# 3 some systems may open it to /dev/tty
|
||||
# 4 used on the Kubota Titan
|
||||
# 6 checking for... messages and results
|
||||
# 5 compiler messages saved in config.log
|
||||
if test "$silent" = yes; then
|
||||
exec 6>/dev/null
|
||||
else
|
||||
exec 6>&1
|
||||
fi
|
||||
exec 5>./config.log
|
||||
|
||||
echo "\
|
||||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
" 1>&5
|
||||
|
||||
# Strip out --no-create and --no-recursion so they do not pile up.
|
||||
# Also quote any args containing shell metacharacters.
|
||||
ac_configure_args=
|
||||
for ac_arg
|
||||
do
|
||||
case "$ac_arg" in
|
||||
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
||||
| --no-cr | --no-c) ;;
|
||||
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
||||
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
||||
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
||||
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
||||
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# NLS nuisances.
|
||||
# Only set these to C if already set. These must not be set unconditionally
|
||||
# because not all systems understand e.g. LANG=C (notably SCO).
|
||||
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
||||
# Non-C LC_CTYPE values break the ctype check.
|
||||
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
||||
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
||||
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
||||
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
||||
|
||||
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
||||
rm -rf conftest* confdefs.h
|
||||
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
||||
echo > confdefs.h
|
||||
|
||||
# A filename unique to this package, relative to the directory that
|
||||
# configure is in, which we can look for to find out if srcdir is correct.
|
||||
ac_unique_file=Makefile.in
|
||||
|
||||
# Find the source files, if location was not specified.
|
||||
if test -z "$srcdir"; then
|
||||
ac_srcdir_defaulted=yes
|
||||
# Try the directory containing this script, then its parent.
|
||||
ac_prog=$0
|
||||
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
||||
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
||||
srcdir=$ac_confdir
|
||||
if test ! -r $srcdir/$ac_unique_file; then
|
||||
srcdir=..
|
||||
fi
|
||||
else
|
||||
ac_srcdir_defaulted=no
|
||||
fi
|
||||
if test ! -r $srcdir/$ac_unique_file; then
|
||||
if test "$ac_srcdir_defaulted" = yes; then
|
||||
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
||||
else
|
||||
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
||||
fi
|
||||
fi
|
||||
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
||||
|
||||
# Prefer explicitly selected file to automatically selected ones.
|
||||
if test -z "$CONFIG_SITE"; then
|
||||
if test "x$prefix" != xNONE; then
|
||||
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
||||
else
|
||||
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
||||
fi
|
||||
fi
|
||||
for ac_site_file in $CONFIG_SITE; do
|
||||
if test -r "$ac_site_file"; then
|
||||
echo "loading site script $ac_site_file"
|
||||
. "$ac_site_file"
|
||||
fi
|
||||
done
|
||||
|
||||
if test -r "$cache_file"; then
|
||||
echo "loading cache $cache_file"
|
||||
. $cache_file
|
||||
else
|
||||
echo "creating cache $cache_file"
|
||||
> $cache_file
|
||||
fi
|
||||
|
||||
ac_ext=c
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
||||
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
||||
cross_compiling=$ac_cv_prog_cc_cross
|
||||
|
||||
ac_exeext=
|
||||
ac_objext=o
|
||||
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
||||
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
||||
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
||||
ac_n= ac_c='
|
||||
' ac_t=' '
|
||||
else
|
||||
ac_n=-n ac_c= ac_t=
|
||||
fi
|
||||
else
|
||||
ac_n= ac_c='\c' ac_t=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ESD_LINK=
|
||||
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
||||
echo "configure:531: checking how to run the C preprocessor" >&5
|
||||
# On Suns, sometimes $CPP names a directory.
|
||||
if test -n "$CPP" && test -d "$CPP"; then
|
||||
CPP=
|
||||
fi
|
||||
if test -z "$CPP"; then
|
||||
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
# This must be in double quotes, not single quotes, because CPP may get
|
||||
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
||||
CPP="${CC-cc} -E"
|
||||
# On the NeXT, cc -E runs the code through the compiler's parser,
|
||||
# not just through cpp.
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 546 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||
if test -z "$ac_err"; then
|
||||
:
|
||||
else
|
||||
echo "$ac_err" >&5
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -rf conftest*
|
||||
CPP="${CC-cc} -E -traditional-cpp"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 563 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||
if test -z "$ac_err"; then
|
||||
:
|
||||
else
|
||||
echo "$ac_err" >&5
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -rf conftest*
|
||||
CPP="${CC-cc} -nologo -E"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 580 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <assert.h>
|
||||
Syntax Error
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||
if test -z "$ac_err"; then
|
||||
:
|
||||
else
|
||||
echo "$ac_err" >&5
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -rf conftest*
|
||||
CPP=/lib/cpp
|
||||
fi
|
||||
rm -f conftest*
|
||||
fi
|
||||
rm -f conftest*
|
||||
fi
|
||||
rm -f conftest*
|
||||
ac_cv_prog_CPP="$CPP"
|
||||
fi
|
||||
CPP="$ac_cv_prog_CPP"
|
||||
else
|
||||
ac_cv_prog_CPP="$CPP"
|
||||
fi
|
||||
echo "$ac_t""$CPP" 1>&6
|
||||
|
||||
ac_safe=`echo "esd.h" | sed 'y%./+-%__p_%'`
|
||||
echo $ac_n "checking for esd.h""... $ac_c" 1>&6
|
||||
echo "configure:612: checking for esd.h" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 617 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <esd.h>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_header_$ac_safe=yes"
|
||||
else
|
||||
echo "$ac_err" >&5
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_header_$ac_safe=no"
|
||||
fi
|
||||
rm -f conftest*
|
||||
fi
|
||||
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
|
||||
echo $ac_n "checking for esd_close in -lesd""... $ac_c" 1>&6
|
||||
echo "configure:640: checking for esd_close in -lesd" >&5
|
||||
ac_lib_var=`echo esd'_'esd_close | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lesd $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 648 "configure"
|
||||
#include "confdefs.h"
|
||||
/* Override any gcc2 internal prototype to avoid an error. */
|
||||
/* We use char because int might match the return type of a gcc2
|
||||
builtin and then its argument prototype would still apply. */
|
||||
char esd_close();
|
||||
|
||||
int main() {
|
||||
esd_close()
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=no"
|
||||
fi
|
||||
rm -f conftest*
|
||||
LIBS="$ac_save_LIBS"
|
||||
|
||||
fi
|
||||
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
|
||||
ESD_LINK="-lesd"
|
||||
|
||||
else
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
|
||||
|
||||
else
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
|
||||
|
||||
if test "$ESD_LINK" != "" ; then
|
||||
echo "ESound detected"
|
||||
fi
|
||||
|
||||
|
||||
PATH_IFS=$wx_cv_path_ifs
|
||||
WX_TARGET_LIBRARY=$wx_cv_target_library
|
||||
WX_TARGET_LIBRARY_TYPE=$wx_cv_target_libtype
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
trap '' 1 2 15
|
||||
cat > confcache <<\EOF
|
||||
# This file is a shell script that caches the results of configure
|
||||
# tests run on this system so they can be shared between configure
|
||||
# scripts and configure runs. It is not useful on other systems.
|
||||
# If it contains results you don't want to keep, you may remove or edit it.
|
||||
#
|
||||
# By default, configure uses ./config.cache as the cache file,
|
||||
# creating it if it does not exist already. You can give configure
|
||||
# the --cache-file=FILE option to use a different cache file; that is
|
||||
# what configure does when it calls configure scripts in
|
||||
# subdirectories, so they share the cache.
|
||||
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
||||
# config.status only pays attention to the cache file if you give it the
|
||||
# --recheck option to rerun configure.
|
||||
#
|
||||
EOF
|
||||
# The following way of writing the cache mishandles newlines in values,
|
||||
# but we know of no workaround that is simple, portable, and efficient.
|
||||
# So, don't put newlines in cache variables' values.
|
||||
# Ultrix sh set writes to stderr and can't be redirected directly,
|
||||
# and sets the high bit in the cache file unless we assign to the vars.
|
||||
(set) 2>&1 |
|
||||
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
||||
*ac_space=\ *)
|
||||
# `set' does not quote correctly, so add quotes (double-quote substitution
|
||||
# turns \\\\ into \\, and sed turns \\ into \).
|
||||
sed -n \
|
||||
-e "s/'/'\\\\''/g" \
|
||||
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
||||
;;
|
||||
*)
|
||||
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
||||
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
||||
;;
|
||||
esac >> confcache
|
||||
if cmp -s $cache_file confcache; then
|
||||
:
|
||||
else
|
||||
if test -w $cache_file; then
|
||||
echo "updating cache $cache_file"
|
||||
cat confcache > $cache_file
|
||||
else
|
||||
echo "not updating unwritable cache $cache_file"
|
||||
fi
|
||||
fi
|
||||
rm -f confcache
|
||||
|
||||
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
||||
|
||||
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
||||
# Let make expand exec_prefix.
|
||||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||
|
||||
# Any assignment to VPATH causes Sun make to only execute
|
||||
# the first set of double-colon rules, so remove it if not needed.
|
||||
# If there is a colon in the path, we need to keep it.
|
||||
if test "x$srcdir" = x.; then
|
||||
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
||||
fi
|
||||
|
||||
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
||||
|
||||
# Transform confdefs.h into DEFS.
|
||||
# Protect against shell expansion while executing Makefile rules.
|
||||
# Protect against Makefile macro expansion.
|
||||
cat > conftest.defs <<\EOF
|
||||
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
|
||||
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
|
||||
s%\[%\\&%g
|
||||
s%\]%\\&%g
|
||||
s%\$%$$%g
|
||||
EOF
|
||||
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
||||
rm -f conftest.defs
|
||||
|
||||
|
||||
# Without the "./", some shells look in PATH for config.status.
|
||||
: ${CONFIG_STATUS=./config.status}
|
||||
|
||||
echo creating $CONFIG_STATUS
|
||||
rm -f $CONFIG_STATUS
|
||||
cat > $CONFIG_STATUS <<EOF
|
||||
#! /bin/sh
|
||||
# Generated automatically by configure.
|
||||
# Run this file to recreate the current configuration.
|
||||
# This directory was configured as follows,
|
||||
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
||||
#
|
||||
# $0 $ac_configure_args
|
||||
#
|
||||
# Compiler output produced by configure, useful for debugging
|
||||
# configure, is in ./config.log if it exists.
|
||||
|
||||
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
||||
for ac_option
|
||||
do
|
||||
case "\$ac_option" in
|
||||
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
||||
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
||||
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
||||
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
||||
echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
||||
exit 0 ;;
|
||||
-help | --help | --hel | --he | --h)
|
||||
echo "\$ac_cs_usage"; exit 0 ;;
|
||||
*) echo "\$ac_cs_usage"; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
ac_given_srcdir=$srcdir
|
||||
|
||||
trap 'rm -fr `echo "
|
||||
Makefile
|
||||
src/Makefile
|
||||
src/ogl/Makefile
|
||||
src/mmedia/Makefile
|
||||
src/stc/Makefile
|
||||
samples/Makefile
|
||||
samples/mmedia/Makefile
|
||||
samples/stc/Makefile
|
||||
" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
# Protect against being on the right side of a sed subst in config.status.
|
||||
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
||||
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
||||
$ac_vpsub
|
||||
$extrasub
|
||||
s%@SHELL@%$SHELL%g
|
||||
s%@CFLAGS@%$CFLAGS%g
|
||||
s%@CPPFLAGS@%$CPPFLAGS%g
|
||||
s%@CXXFLAGS@%$CXXFLAGS%g
|
||||
s%@FFLAGS@%$FFLAGS%g
|
||||
s%@DEFS@%$DEFS%g
|
||||
s%@LDFLAGS@%$LDFLAGS%g
|
||||
s%@LIBS@%$LIBS%g
|
||||
s%@exec_prefix@%$exec_prefix%g
|
||||
s%@prefix@%$prefix%g
|
||||
s%@program_transform_name@%$program_transform_name%g
|
||||
s%@bindir@%$bindir%g
|
||||
s%@sbindir@%$sbindir%g
|
||||
s%@libexecdir@%$libexecdir%g
|
||||
s%@datadir@%$datadir%g
|
||||
s%@sysconfdir@%$sysconfdir%g
|
||||
s%@sharedstatedir@%$sharedstatedir%g
|
||||
s%@localstatedir@%$localstatedir%g
|
||||
s%@libdir@%$libdir%g
|
||||
s%@includedir@%$includedir%g
|
||||
s%@oldincludedir@%$oldincludedir%g
|
||||
s%@infodir@%$infodir%g
|
||||
s%@mandir@%$mandir%g
|
||||
s%@CPP@%$CPP%g
|
||||
s%@PATH_IFS@%$PATH_IFS%g
|
||||
s%@ESD_LINK@%$ESD_LINK%g
|
||||
s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
|
||||
s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
|
||||
|
||||
CEOF
|
||||
EOF
|
||||
|
||||
cat >> $CONFIG_STATUS <<\EOF
|
||||
|
||||
# Split the substitutions into bite-sized pieces for seds with
|
||||
# small command number limits, like on Digital OSF/1 and HP-UX.
|
||||
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
||||
ac_file=1 # Number of current file.
|
||||
ac_beg=1 # First line for current file.
|
||||
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
||||
ac_more_lines=:
|
||||
ac_sed_cmds=""
|
||||
while $ac_more_lines; do
|
||||
if test $ac_beg -gt 1; then
|
||||
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
||||
else
|
||||
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
||||
fi
|
||||
if test ! -s conftest.s$ac_file; then
|
||||
ac_more_lines=false
|
||||
rm -f conftest.s$ac_file
|
||||
else
|
||||
if test -z "$ac_sed_cmds"; then
|
||||
ac_sed_cmds="sed -f conftest.s$ac_file"
|
||||
else
|
||||
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
||||
fi
|
||||
ac_file=`expr $ac_file + 1`
|
||||
ac_beg=$ac_end
|
||||
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
||||
fi
|
||||
done
|
||||
if test -z "$ac_sed_cmds"; then
|
||||
ac_sed_cmds=cat
|
||||
fi
|
||||
EOF
|
||||
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
CONFIG_FILES=\${CONFIG_FILES-"Makefile
|
||||
src/Makefile
|
||||
src/ogl/Makefile
|
||||
src/mmedia/Makefile
|
||||
src/stc/Makefile
|
||||
samples/Makefile
|
||||
samples/mmedia/Makefile
|
||||
samples/stc/Makefile
|
||||
"}
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<\EOF
|
||||
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
||||
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
||||
case "$ac_file" in
|
||||
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
||||
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
||||
*) ac_file_in="${ac_file}.in" ;;
|
||||
esac
|
||||
|
||||
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
||||
|
||||
# Remove last slash and all that follows it. Not all systems have dirname.
|
||||
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
||||
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
||||
# The file is in a subdirectory.
|
||||
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
||||
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
||||
# A "../" for each directory in $ac_dir_suffix.
|
||||
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
||||
else
|
||||
ac_dir_suffix= ac_dots=
|
||||
fi
|
||||
|
||||
case "$ac_given_srcdir" in
|
||||
.) srcdir=.
|
||||
if test -z "$ac_dots"; then top_srcdir=.
|
||||
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
||||
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
||||
*) # Relative path.
|
||||
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
||||
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
||||
esac
|
||||
|
||||
|
||||
echo creating "$ac_file"
|
||||
rm -f "$ac_file"
|
||||
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
||||
case "$ac_file" in
|
||||
*Makefile*) ac_comsub="1i\\
|
||||
# $configure_input" ;;
|
||||
*) ac_comsub= ;;
|
||||
esac
|
||||
|
||||
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
||||
sed -e "$ac_comsub
|
||||
s%@configure_input@%$configure_input%g
|
||||
s%@srcdir@%$srcdir%g
|
||||
s%@top_srcdir@%$top_srcdir%g
|
||||
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
||||
fi; done
|
||||
rm -f conftest.s*
|
||||
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<\EOF
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
chmod +x $CONFIG_STATUS
|
||||
rm -fr confdefs* $ac_clean_files
|
||||
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
||||
|
48
contrib/configure.in
Normal file
@@ -0,0 +1,48 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_REVISION($Id$)dnl
|
||||
|
||||
AC_INIT(Makefile.in)
|
||||
|
||||
dnl ---------------
|
||||
dnl MMedia specific
|
||||
dnl ---------------
|
||||
|
||||
dnl Check for ESD
|
||||
|
||||
ESD_LINK=
|
||||
AC_CHECK_HEADER(esd.h, [
|
||||
AC_CHECK_LIB(esd, esd_close, [
|
||||
ESD_LINK="-lesd"
|
||||
])
|
||||
])
|
||||
|
||||
if test "$ESD_LINK" != "" ; then
|
||||
echo "ESound detected"
|
||||
fi
|
||||
|
||||
dnl -----------
|
||||
dnl Final subst
|
||||
|
||||
PATH_IFS=$wx_cv_path_ifs
|
||||
WX_TARGET_LIBRARY=$wx_cv_target_library
|
||||
WX_TARGET_LIBRARY_TYPE=$wx_cv_target_libtype
|
||||
|
||||
AC_SUBST(PATH_IFS)
|
||||
AC_SUBST(ESD_LINK)
|
||||
AC_SUBST(WX_TARGET_LIBRARY)
|
||||
AC_SUBST(WX_TARGET_LIBRARY_TYPE)
|
||||
|
||||
dnl -----------
|
||||
dnl File output
|
||||
|
||||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
src/Makefile
|
||||
src/ogl/Makefile
|
||||
src/mmedia/Makefile
|
||||
src/stc/Makefile
|
||||
samples/Makefile
|
||||
samples/mmedia/Makefile
|
||||
samples/stc/Makefile
|
||||
])
|
Before Width: | Height: | Size: 225 B After Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
9
contrib/docs/latex/mmedia/bugs.tex
Normal file
@@ -0,0 +1,9 @@
|
||||
\chapter{Bugs}\label{bugs}%
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}
|
||||
|
||||
These are the known bugs.
|
||||
|
||||
\begin{itemize}\itemsep=0pt
|
||||
\item No bugs
|
||||
\end{itemize}
|
Before Width: | Height: | Size: 138 B After Width: | Height: | Size: 138 B |
@@ -3,19 +3,21 @@
|
||||
% /home/guilhem/PROJECTS/wxWindows/utils/wxMMedia2/lib/cdbase.h at 26/Feb/00 14:52:12
|
||||
%
|
||||
|
||||
|
||||
\section{\class{wxCDAudio}}\label{wxcdaudio}
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
\helpref{wxObject}{wxobject}
|
||||
wxObject
|
||||
|
||||
\wxheading{Data structures}
|
||||
|
||||
{\small \begin{verbatim}
|
||||
{\small
|
||||
\begin{verbatim}
|
||||
typedef struct wxCDtime {
|
||||
wxUint8 track
|
||||
\end{verbatim}}
|
||||
};
|
||||
\end{verbatim}
|
||||
}
|
||||
{\small \begin{verbatim}
|
||||
typedef enum { PLAYING, PAUSED, STOPPED } CDstatus
|
||||
\end{verbatim}}
|
@@ -6,8 +6,6 @@
|
||||
|
||||
\section{\class{wxCDAudioLinux}}\label{wxcdaudiolinux}
|
||||
|
||||
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
\helpref{wxCDAudio}{wxcdaudio}
|
||||
@@ -16,17 +14,12 @@
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
|
||||
\membersection{wxCDAudioLinux::wxCDAudioLinux}\label{wxcdaudiolinuxwxcdaudiolinux}
|
||||
|
||||
\func{}{wxCDAudioLinux}{\void}
|
||||
|
||||
|
||||
\membersection{wxCDAudioLinux::wxCDAudioLinux}\label{wxcdaudiolinuxwxcdaudiolinux}
|
||||
|
||||
\func{}{wxCDAudioLinux}{\param{const char* }{dev\_name}}
|
||||
|
||||
|
||||
\membersection{wxCDAudioLinux::\destruct{wxCDAudioLinux}}\label{wxcdaudiolinuxdtor}
|
||||
|
||||
\func{}{\destruct{wxCDAudioLinux}}{\void}
|
@@ -14,10 +14,14 @@
|
||||
|
||||
\wxheading{Data structures}
|
||||
|
||||
{\small \begin{verbatim}
|
||||
{\small
|
||||
\begin{verbatim}
|
||||
typedef struct CDAW\_Internal {
|
||||
MCIDEVICEID dev\_id
|
||||
\end{verbatim}}
|
||||
};
|
||||
\end{verbatim}
|
||||
}
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
|
||||
@@ -25,9 +29,6 @@ typedef struct CDAW\_Internal {
|
||||
|
||||
\func{}{wxCDAudioWin}{\void}
|
||||
|
||||
|
||||
\membersection{wxCDAudioWin::wxCDAudioWin}\label{wxcdaudiowinwxcdaudiowin}
|
||||
|
||||
\func{}{wxCDAudioWin}{\param{const char* }{dev\_name}}
|
||||
|
||||
|
@@ -17,7 +17,6 @@ No base class
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
|
||||
\membersection{CDtoc::CDtoc}\label{cdtoccdtoc}
|
||||
|
||||
\func{}{CDtoc}{\param{wxCDtime\& }{tot\_tm}, \param{wxCDtime* }{trks\_tm}, \param{wxCDtime* }{trks\_pos}}
|
||||
@@ -62,16 +61,10 @@ Returns the total time
|
||||
|
||||
Play audio at the specified position
|
||||
|
||||
|
||||
\membersection{wxCDAudio::Play}\label{wxcdaudioplay}
|
||||
|
||||
\func{bool}{Play}{\param{const wxCDtime\& }{beg\_play}}
|
||||
|
||||
Play audio from the specified to the end of the CD audio
|
||||
|
||||
|
||||
\membersection{wxCDAudio::Play}\label{wxcdaudioplay}
|
||||
|
||||
\func{bool}{Play}{\param{wxUint8 }{beg\_track}, \param{wxUint8 }{end\_track = 0}}
|
||||
|
||||
|
3
contrib/docs/latex/mmedia/changes.tex
Normal file
@@ -0,0 +1,3 @@
|
||||
\chapter{Change log}
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}
|
13
contrib/docs/latex/mmedia/classes.tex
Normal file
@@ -0,0 +1,13 @@
|
||||
\chapter{Class reference}\label{classref}
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}
|
||||
|
||||
These are the main Mmedia classes.
|
||||
|
||||
\input cdaudio.tex
|
||||
\input cdaudlnx.tex
|
||||
\input cdaudwin.tex
|
||||
\input cdtoc.tex
|
||||
\input sndbase.tex
|
||||
\input sndfile.tex
|
||||
\input sndfrmt.tex
|
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 164 B |
47
contrib/docs/latex/mmedia/intro.tex
Normal file
@@ -0,0 +1,47 @@
|
||||
\chapter{Introduction}
|
||||
\pagenumbering{arabic}%
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}
|
||||
|
||||
The MMedia wxWindows extension is a wxWindows library which provides you
|
||||
a full set of multimedia classes including sound recording/playing,
|
||||
cd audio playing and video playing. The API is portable and can be used
|
||||
on any supported systems with the insurance the behaviour will be the
|
||||
same.
|
||||
|
||||
\section{File structure}
|
||||
|
||||
These are the files that comprise the mmedia library.
|
||||
|
||||
\begin{description}\itemsep=0pt
|
||||
\item[sndbase.h] Header for wxSoundStream base class and wxSoundFormat base class.
|
||||
\item[sndbase.cpp] Basic objects implementation.
|
||||
\item[sndfile.h] wxSoundFileStream base class header.
|
||||
\item[sndfile.cpp] wxSoundFileStream base class implementation.
|
||||
\item[sndpcm.h] wxSoundFormatPcm class header.
|
||||
\item[sndpcm.cpp] wxSoundFormatPcm class implementation.
|
||||
\item[sndcpcm.h] wxSoundCodecPcm class header (PCM converter).
|
||||
\item[sndcpcm.cpp] wxSoundCodecPcm class implementation (PCM converter).
|
||||
\item[sndulaw.h]
|
||||
\item[sndulaw.cpp]
|
||||
\item[sndg72x.h]
|
||||
\item[sndg72x.cpp]
|
||||
\item[sndoss.h]
|
||||
\item[sndoss.cpp]
|
||||
\item[sndesd.h]
|
||||
\item[sndesd.cpp]
|
||||
\item[sndwin.h]
|
||||
\item[sndwin.cpp]
|
||||
\item[cdbase.h]
|
||||
\item[cdbase.cpp]
|
||||
\item[cdunix.h]
|
||||
\item[cdunix.cpp]
|
||||
\item[cdwin.h]
|
||||
\item[cdwin.cpp]
|
||||
\item[vidbase.h]
|
||||
\item[vidbase.cpp]
|
||||
\item[vidxanm.h]
|
||||
\item[vidxanm.cpp]
|
||||
\item[vidwin.h]
|
||||
\item[vidwin.cpp]
|
||||
\end{description}
|
45
contrib/docs/latex/mmedia/mmedia.tex
Normal file
@@ -0,0 +1,45 @@
|
||||
\documentstyle[a4,makeidx,verbatim,texhelp,fancyheadings]{report}
|
||||
\definecolour{black}{0}{0}{0}%
|
||||
\definecolour{cyan}{0}{255}{255}%
|
||||
\definecolour{green}{0}{255}{0}%
|
||||
\definecolour{magenta}{255}{0}{255}%
|
||||
\definecolour{red}{255}{0}{0}%
|
||||
\definecolour{blue}{0}{0}{200}%
|
||||
\definecolour{yellow}{255}{255}{0}%
|
||||
\definecolour{white}{255}{255}{255}%
|
||||
\input psbox.tex
|
||||
\parindent 0pt
|
||||
\parskip 11pt
|
||||
\title{MMedia for wxWindows}
|
||||
\author{Guilhem Lavaux}
|
||||
\date{March 2000}
|
||||
|
||||
\makeindex
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
\pagestyle{fancyplain}
|
||||
\bibliographystyle{plain}
|
||||
\pagenumbering{roman}
|
||||
\setheader{{\it CONTENTS}}{}{}{}{}{{\it CONTENTS}}
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}
|
||||
\tableofcontents%
|
||||
|
||||
\input{intro.tex}
|
||||
%
|
||||
\input{sample.tex}
|
||||
%
|
||||
\input{classes.tex}
|
||||
%
|
||||
\input{topics.tex}
|
||||
%
|
||||
\input{bugs.tex}
|
||||
%
|
||||
\input{changes.tex}
|
||||
|
||||
%
|
||||
\addcontentsline{toc}{chapter}{Index}
|
||||
\setheader{{\it INDEX}}{}{}{}{}{{\it INDEX}}
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}%
|
||||
\printindex
|
||||
\end{document}
|
520
contrib/docs/latex/mmedia/psbox.tex
Normal file
@@ -0,0 +1,520 @@
|
||||
%
|
||||
% %%%%%%% %%%%% %%%%%% %%%%% % %
|
||||
% % % % % % % % % %
|
||||
% % % % % % % % % %
|
||||
% %%%%%%% %%%%% %%%%%% % % %
|
||||
% % % % % % % % %
|
||||
% % % % % % % % %
|
||||
% % %%%%%% %%%%%% %%%%% % %
|
||||
%
|
||||
% By Jean Orloff
|
||||
% Comments & suggestions by e-mail: ORLOFF@surya11.cern.ch
|
||||
% No modification of this file allowed if not e-sent to me.
|
||||
%
|
||||
% A simple way to measure the size of encapsulated postscript figures
|
||||
% from inside TeX, and to use it for automatically formatting texts
|
||||
% with inserted figures. Works both under Plain TeX-based macros
|
||||
% (Phyzzx, Harvmac, Psizzl, ...) and LaTeX environment.
|
||||
% Provides exactly the same result on any PostScript printer provided
|
||||
% the single instruction \psfor... is changed to fit the needs of the
|
||||
% particular dvi->ps translator used.
|
||||
% History:
|
||||
% 1.31: adds \psforDVIALW(?)
|
||||
% 1.30: adds \splitfile & \joinfiles for multi-file management
|
||||
% 1.24: fix error handling & add \psonlyboxes
|
||||
% 1.23: adds \putsp@ce for OzTeX fix
|
||||
% 1.22: makes \drawingBox \global for use in Phyzzx
|
||||
% 1.21: accepts %%BoundingBox: (atend)
|
||||
% 1.20: tries to add \psfordvitps for the TeXPS package.
|
||||
% 1.10: adds \psforoztex, error handling...
|
||||
%2345678 1 2345678 2 2345678 3 2345678 4 2345678 5 2345678 6 2345678 7 23456789
|
||||
%
|
||||
\def\temp{1.31}
|
||||
\let\tempp=\relax
|
||||
\expandafter\ifx\csname psboxversion\endcsname\relax
|
||||
\message{version: \temp}
|
||||
\else
|
||||
\ifdim\temp cm>\psboxversion cm
|
||||
\message{version: \temp}
|
||||
\else
|
||||
\message{psbox(\psboxversion) is already loaded: I won't load
|
||||
psbox(\temp)!}
|
||||
\let\temp=\psboxversion
|
||||
\let\tempp=\endinput
|
||||
\fi
|
||||
\fi
|
||||
\tempp
|
||||
\let\psboxversion=\temp
|
||||
\catcode`\@=11
|
||||
% Every macro likes a little privacy...
|
||||
%
|
||||
% Some common defs
|
||||
%
|
||||
\def\execute#1{#1}% NOT stupid: cs in #1 are then identified BEFORE execution
|
||||
\def\psm@keother#1{\catcode`#112\relax}% borrowed from latex
|
||||
\def\executeinspecs#1{%
|
||||
\execute{\begingroup\let\do\psm@keother\dospecials\catcode`\^^M=9#1\endgroup}}
|
||||
%
|
||||
%Trying to tame the variety of \special commands for Postscript: the
|
||||
% universal internal command \PSspeci@l##1##2 takes ##1 to be the
|
||||
% filename and ##2 to be the integer scale factor*1000 (as for usual
|
||||
% TeX \scale commands)
|
||||
%
|
||||
\def\psfortextures{% For TeXtures on the Macintosh
|
||||
%-----------------
|
||||
\def\PSspeci@l##1##2{%
|
||||
\special{illustration ##1\space scaled ##2}%
|
||||
}}
|
||||
%
|
||||
\def\psfordvitops{% For the DVItoPS converter on IBM mainframes
|
||||
%----------------
|
||||
\def\PSspeci@l##1##2{%
|
||||
\special{dvitops: import ##1\space \the\drawingwd \the\drawinght}%
|
||||
}}
|
||||
%
|
||||
\def\psfordvips{% For DVIPS converter on VAX, UNIX and PC's
|
||||
%--------------
|
||||
\def\PSspeci@l##1##2{%
|
||||
% \special{/@scaleunit 1000 def}% never read dox without trying!
|
||||
\d@my=0.1bp \d@mx=\drawingwd \divide\d@mx by\d@my%
|
||||
\special{PSfile=##1\space llx=\psllx\space lly=\pslly\space%
|
||||
urx=\psurx\space ury=\psury\space rwi=\number\d@mx}%
|
||||
}}
|
||||
%
|
||||
\def\psforoztex{% For the OzTeX shareware on the Macintosh
|
||||
%--------------
|
||||
\def\PSspeci@l##1##2{%
|
||||
\special{##1 \space
|
||||
##2 1000 div dup scale
|
||||
\putsp@ce{\number-\psllx} \putsp@ce{\number-\pslly} translate
|
||||
}%
|
||||
}}
|
||||
\def\putsp@ce#1{#1 }
|
||||
%
|
||||
\def\psfordvitps{% From the UNIX TeXPS package, vers.>3.12
|
||||
%---------------
|
||||
% Convert a dimension into the number \psn@sp (in scaled points)
|
||||
\def\psdimt@n@sp##1{\d@mx=##1\relax\edef\psn@sp{\number\d@mx}}
|
||||
\def\PSspeci@l##1##2{%
|
||||
% psfig.psr contains the def of "startTexFig": if you can locate it
|
||||
% and include the correct pathname, it should work
|
||||
\special{dvitps: Include0 "psfig.psr"}% contains def of "startTexFig"
|
||||
\psdimt@n@sp{\drawingwd}
|
||||
\special{dvitps: Literal "\psn@sp\space"}
|
||||
\psdimt@n@sp{\drawinght}
|
||||
\special{dvitps: Literal "\psn@sp\space"}
|
||||
\psdimt@n@sp{\psllx bp}
|
||||
\special{dvitps: Literal "\psn@sp\space"}
|
||||
\psdimt@n@sp{\pslly bp}
|
||||
\special{dvitps: Literal "\psn@sp\space"}
|
||||
\psdimt@n@sp{\psurx bp}
|
||||
\special{dvitps: Literal "\psn@sp\space"}
|
||||
\psdimt@n@sp{\psury bp}
|
||||
\special{dvitps: Literal "\psn@sp\space startTexFig\space"}
|
||||
\special{dvitps: Include1 "##1"}
|
||||
\special{dvitps: Literal "endTexFig\space"}
|
||||
}}
|
||||
\def\psforDVIALW{% Try for dvialw, a UNIX public domain
|
||||
%---------------
|
||||
\def\PSspeci@l##1##2{
|
||||
\special{language "PS"
|
||||
literal "##2 1000 div dup scale"
|
||||
include "##1"}}}
|
||||
\def\psonlyboxes{% Draft-like behaviour if none of the others works
|
||||
%---------------
|
||||
\def\PSspeci@l##1##2{%
|
||||
\at(0cm;0cm){\boxit{\vbox to\drawinght
|
||||
{\vss
|
||||
\hbox to\drawingwd{\at(0cm;0cm){\hbox{(##1)}}\hss}
|
||||
}}}
|
||||
}%
|
||||
}
|
||||
%
|
||||
\def\psloc@lerr#1{%
|
||||
\let\savedPSspeci@l=\PSspeci@l%
|
||||
\def\PSspeci@l##1##2{%
|
||||
\at(0cm;0cm){\boxit{\vbox to\drawinght
|
||||
{\vss
|
||||
\hbox to\drawingwd{\at(0cm;0cm){\hbox{(##1) #1}}\hss}
|
||||
}}}
|
||||
\let\PSspeci@l=\savedPSspeci@l% restore normal output for other figs!
|
||||
}%
|
||||
}
|
||||
%
|
||||
%\def\psfor... add your own!
|
||||
%
|
||||
% \ReadPSize{PSfilename} reads the dimensions of a PostScript drawing
|
||||
% and stores it in \drawinght(wd)
|
||||
\newread\pst@mpin
|
||||
\newdimen\drawinght\newdimen\drawingwd
|
||||
\newdimen\psxoffset\newdimen\psyoffset
|
||||
\newbox\drawingBox
|
||||
\newif\ifNotB@undingBox
|
||||
\newhelp\PShelp{Proceed: you'll have a 5cm square blank box instead of
|
||||
your graphics (Jean Orloff).}
|
||||
\def\@mpty{}
|
||||
\def\s@tsize#1 #2 #3 #4\@ndsize{
|
||||
\def\psllx{#1}\def\pslly{#2}%
|
||||
\def\psurx{#3}\def\psury{#4}% needed by a crazyness of dvips!
|
||||
\ifx\psurx\@mpty\NotB@undingBoxtrue% this is not a valid one!
|
||||
\else
|
||||
\drawinght=#4bp\advance\drawinght by-#2bp
|
||||
\drawingwd=#3bp\advance\drawingwd by-#1bp
|
||||
% !Units related by crazy factors as bp/pt=72.27/72 should be BANNED!
|
||||
\fi
|
||||
}
|
||||
\def\sc@nline#1:#2\@ndline{\edef\p@rameter{#1}\edef\v@lue{#2}}
|
||||
\def\g@bblefirstblank#1#2:{\ifx#1 \else#1\fi#2}
|
||||
\def\psm@keother#1{\catcode`#112\relax}% borrowed from latex
|
||||
\def\execute#1{#1}% Seems stupid, but cs are identified BEFORE execution
|
||||
{\catcode`\%=12
|
||||
\xdef\B@undingBox{%%BoundingBox}
|
||||
} %% is not a true comment in PostScript, even if % is!
|
||||
\def\ReadPSize#1{
|
||||
\edef\PSfilename{#1}
|
||||
\openin\pst@mpin=#1\relax
|
||||
\ifeof\pst@mpin \errhelp=\PShelp
|
||||
\errmessage{I haven't found your postscript file (\PSfilename)}
|
||||
\psloc@lerr{was not found}
|
||||
\s@tsize 0 0 142 142\@ndsize
|
||||
\closein\pst@mpin
|
||||
\else
|
||||
\immediate\write\psbj@inaux{#1,}
|
||||
\loop
|
||||
\executeinspecs{\catcode`\ =10\global\read\pst@mpin to\n@xtline}
|
||||
\ifeof\pst@mpin
|
||||
\errhelp=\PShelp
|
||||
\errmessage{(\PSfilename) is not an Encapsulated PostScript File:
|
||||
I could not find any \B@undingBox: line.}
|
||||
\edef\v@lue{0 0 142 142:}
|
||||
\psloc@lerr{is not an EPSFile}
|
||||
\NotB@undingBoxfalse
|
||||
\else
|
||||
\expandafter\sc@nline\n@xtline:\@ndline
|
||||
\ifx\p@rameter\B@undingBox\NotB@undingBoxfalse
|
||||
\edef\t@mp{%
|
||||
\expandafter\g@bblefirstblank\v@lue\space\space\space}
|
||||
\expandafter\s@tsize\t@mp\@ndsize
|
||||
\else\NotB@undingBoxtrue
|
||||
\fi
|
||||
\fi
|
||||
\ifNotB@undingBox\repeat
|
||||
\closein\pst@mpin
|
||||
\fi
|
||||
\message{#1}
|
||||
}
|
||||
%
|
||||
% \psboxto(xdim;ydim){psfilename}: you specify the dimensions and
|
||||
% TeX uniformly scales to fit the largest one. If xdim=0pt, the
|
||||
% scale is fully determined by ydim and vice versa.
|
||||
% Notice: psboxes are a real vboxes; couldn't take hbox otherwise all
|
||||
% indentation and all cr's would be interpreted as spaces (hugh!).
|
||||
%
|
||||
\newcount\xscale \newcount\yscale \newdimen\pscm\pscm=1cm
|
||||
\newdimen\d@mx \newdimen\d@my
|
||||
\let\ps@nnotation=\relax
|
||||
\def\psboxto(#1;#2)#3{\vbox{
|
||||
\ReadPSize{#3}
|
||||
\divide\drawingwd by 1000
|
||||
\divide\drawinght by 1000
|
||||
\d@mx=#1
|
||||
\ifdim\d@mx=0pt\xscale=1000
|
||||
\else \xscale=\d@mx \divide \xscale by \drawingwd\fi
|
||||
\d@my=#2
|
||||
\ifdim\d@my=0pt\yscale=1000
|
||||
\else \yscale=\d@my \divide \yscale by \drawinght\fi
|
||||
\ifnum\yscale=1000
|
||||
\else\ifnum\xscale=1000\xscale=\yscale
|
||||
\else\ifnum\yscale<\xscale\xscale=\yscale\fi
|
||||
\fi
|
||||
\fi
|
||||
\divide \psxoffset by 1000\multiply\psxoffset by \xscale
|
||||
\divide \psyoffset by 1000\multiply\psyoffset by \xscale
|
||||
\global\divide\pscm by 1000
|
||||
\global\multiply\pscm by\xscale
|
||||
\multiply\drawingwd by\xscale \multiply\drawinght by\xscale
|
||||
\ifdim\d@mx=0pt\d@mx=\drawingwd\fi
|
||||
\ifdim\d@my=0pt\d@my=\drawinght\fi
|
||||
\message{scaled \the\xscale}
|
||||
\hbox to\d@mx{\hss\vbox to\d@my{\vss
|
||||
\global\setbox\drawingBox=\hbox to 0pt{\kern\psxoffset\vbox to 0pt{
|
||||
\kern-\psyoffset
|
||||
\PSspeci@l{\PSfilename}{\the\xscale}
|
||||
\vss}\hss\ps@nnotation}
|
||||
\global\ht\drawingBox=\the\drawinght
|
||||
\global\wd\drawingBox=\the\drawingwd
|
||||
\baselineskip=0pt
|
||||
\copy\drawingBox
|
||||
\vss}\hss}
|
||||
\global\psxoffset=0pt
|
||||
\global\psyoffset=0pt% These are local to one figure
|
||||
\global\pscm=1cm
|
||||
\global\drawingwd=\drawingwd
|
||||
\global\drawinght=\drawinght
|
||||
}}
|
||||
%
|
||||
% \psboxscaled{scalefactor*1000}{PSfilename} allows to bypass the
|
||||
% rounding errors of TeX integer divisions for situations where the
|
||||
% TeX box should fit the original BoundingBox with a precision better
|
||||
% than 1/1000.
|
||||
%
|
||||
\def\psboxscaled#1#2{\vbox{
|
||||
\ReadPSize{#2}
|
||||
\xscale=#1
|
||||
\message{scaled \the\xscale}
|
||||
\divide\drawingwd by 1000\multiply\drawingwd by\xscale
|
||||
\divide\drawinght by 1000\multiply\drawinght by\xscale
|
||||
\divide \psxoffset by 1000\multiply\psxoffset by \xscale
|
||||
\divide \psyoffset by 1000\multiply\psyoffset by \xscale
|
||||
\global\divide\pscm by 1000
|
||||
\global\multiply\pscm by\xscale
|
||||
\global\setbox\drawingBox=\hbox to 0pt{\kern\psxoffset\vbox to 0pt{
|
||||
\kern-\psyoffset
|
||||
\PSspeci@l{\PSfilename}{\the\xscale}
|
||||
\vss}\hss\ps@nnotation}
|
||||
\global\ht\drawingBox=\the\drawinght
|
||||
\global\wd\drawingBox=\the\drawingwd
|
||||
\baselineskip=0pt
|
||||
\copy\drawingBox
|
||||
\global\psxoffset=0pt
|
||||
\global\psyoffset=0pt% These are local to one figure
|
||||
\global\pscm=1cm
|
||||
\global\drawingwd=\drawingwd
|
||||
\global\drawinght=\drawinght
|
||||
}}
|
||||
%
|
||||
% \psbox{PSfilename} makes a TeX box having the minimal size to
|
||||
% enclose the picture
|
||||
\def\psbox#1{\psboxscaled{1000}{#1}}
|
||||
%
|
||||
%
|
||||
% \joinfiles file1, file2, ...n \into joinedfilename .
|
||||
% makes one file out of many
|
||||
% \splitfile joinedfilename
|
||||
% the opposite
|
||||
%
|
||||
%\def\execute#1{#1}% NOT stupid: cs in #1 are then identified BEFORE execution
|
||||
%\def\psm@keother#1{\catcode`#112\relax}% borrowed from latex
|
||||
%\def\executeinspecs#1{%
|
||||
%\execute{\begingroup\let\do\psm@keother\dospecials\catcode`\^^M=9#1\endgroup}}
|
||||
%\newread\pst@mpin
|
||||
\newif\ifn@teof\n@teoftrue
|
||||
\newif\ifc@ntrolline
|
||||
\newif\ifmatch
|
||||
\newread\j@insplitin
|
||||
\newwrite\j@insplitout
|
||||
\newwrite\psbj@inaux
|
||||
\immediate\openout\psbj@inaux=psbjoin.aux
|
||||
\immediate\write\psbj@inaux{\string\joinfiles}
|
||||
\immediate\write\psbj@inaux{\jobname,}
|
||||
%
|
||||
% We redefine input to keep track of the various files inputted
|
||||
%
|
||||
\immediate\let\oldinput=\input
|
||||
\def\input#1 {
|
||||
\immediate\write\psbj@inaux{#1,}
|
||||
\oldinput #1 }
|
||||
\def\empty{}
|
||||
\def\setmatchif#1\contains#2{
|
||||
\def\match##1#2##2\endmatch{
|
||||
\def\tmp{##2}
|
||||
\ifx\empty\tmp
|
||||
\matchfalse
|
||||
\else
|
||||
\matchtrue
|
||||
\fi}
|
||||
\match#1#2\endmatch}
|
||||
\def\warnopenout#1#2{
|
||||
\setmatchif{TrashMe,psbjoin.aux,psbjoin.all}\contains{#2}
|
||||
\ifmatch
|
||||
\else
|
||||
\immediate\openin\pst@mpin=#2
|
||||
\ifeof\pst@mpin
|
||||
\else
|
||||
\errhelp{If the content of this file is so precious to you, abort (ie
|
||||
press x or e) and rename it before retrying.}
|
||||
\errmessage{I'm just about to replace your file named #2}
|
||||
\fi
|
||||
\immediate\closein\pst@mpin
|
||||
\fi
|
||||
\message{#2}
|
||||
\immediate\openout#1=#2}
|
||||
% No comments allowed below: % will have an unusual catcode
|
||||
{
|
||||
\catcode`\%=12
|
||||
\gdef\splitfile#1 {
|
||||
\immediate\openin\j@insplitin=#1
|
||||
\message{Splitting file #1 into:}
|
||||
\warnopenout\j@insplitout{TrashMe}
|
||||
\loop
|
||||
\ifeof
|
||||
\j@insplitin\immediate\closein\j@insplitin\n@teoffalse
|
||||
\else
|
||||
\n@teoftrue
|
||||
\executeinspecs{\global\read\j@insplitin to\spl@tinline\expandafter
|
||||
\ch@ckbeginnewfile\spl@tinline%Beginning-Of-File-Named:%\endcheck}
|
||||
\ifc@ntrolline
|
||||
\else
|
||||
\toks0=\expandafter{\spl@tinline}
|
||||
\immediate\write\j@insplitout{\the\toks0}
|
||||
\fi
|
||||
\fi
|
||||
\ifn@teof\repeat
|
||||
\immediate\closeout\j@insplitout}
|
||||
\gdef\ch@ckbeginnewfile#1%Beginning-Of-File-Named:#2%#3\endcheck{
|
||||
\def\t@mp{#1}
|
||||
\ifx\empty\t@mp
|
||||
\def\t@mp{#3}
|
||||
\ifx\empty\t@mp
|
||||
\global\c@ntrollinefalse
|
||||
\else
|
||||
\immediate\closeout\j@insplitout
|
||||
\warnopenout\j@insplitout{#2}
|
||||
\global\c@ntrollinetrue
|
||||
\fi
|
||||
\else
|
||||
\global\c@ntrollinefalse
|
||||
\fi}
|
||||
\gdef\joinfiles#1\into#2 {
|
||||
\message{Joining following files into}
|
||||
\warnopenout\j@insplitout{#2}
|
||||
\message{:}
|
||||
{
|
||||
\edef\w@##1{\immediate\write\j@insplitout{##1}}
|
||||
\w@{% This text was produced with psbox's \string\joinfiles.}
|
||||
\w@{% To decompose and tex it:}
|
||||
\w@{%-save this with a filename CONTAINING ONLY LETTERS, and no extensions}
|
||||
\w@{% (say, JOINTFIL), in some uncrowded directory;}
|
||||
\w@{%-make sure you can \string\input\space psbox.tex (version>=1.3);}
|
||||
\w@{%-tex JOINTFIL using Plain, or LaTeX, or whatever is needed by}
|
||||
\w@{% the first part in the joining (after splitting JOINTFIL into}
|
||||
\w@{% it's constituents, TeX will try to process it as it stands).}
|
||||
\w@{\string\input\space psbox.tex}
|
||||
\w@{\string\splitfile{\string\jobname}}
|
||||
}
|
||||
\tre@tfilelist#1, \endtre@t
|
||||
\immediate\closeout\j@insplitout}
|
||||
\gdef\tre@tfilelist#1, #2\endtre@t{
|
||||
\def\t@mp{#1}
|
||||
\ifx\empty\t@mp
|
||||
\else
|
||||
\llj@in{#1}
|
||||
\tre@tfilelist#2, \endtre@t
|
||||
\fi}
|
||||
\gdef\llj@in#1{
|
||||
\immediate\openin\j@insplitin=#1
|
||||
\ifeof\j@insplitin
|
||||
\errmessage{I couldn't find file #1.}
|
||||
\else
|
||||
\message{#1}
|
||||
\toks0={%Beginning-Of-File-Named:#1}
|
||||
\immediate\write\j@insplitout{\the\toks0}
|
||||
\executeinspecs{\global\read\j@insplitin to\oldj@ininline}
|
||||
\loop
|
||||
\ifeof\j@insplitin\immediate\closein\j@insplitin\n@teoffalse
|
||||
\else\n@teoftrue
|
||||
\executeinspecs{\global\read\j@insplitin to\j@ininline}
|
||||
\toks0=\expandafter{\oldj@ininline}
|
||||
\let\oldj@ininline=\j@ininline
|
||||
\immediate\write\j@insplitout{\the\toks0}
|
||||
\fi
|
||||
\ifn@teof
|
||||
\repeat
|
||||
\immediate\closein\j@insplitin
|
||||
\fi}
|
||||
}
|
||||
% To be put at the end of a file, for making an tar-like file containing
|
||||
% everything it used.
|
||||
\def\autojoin{
|
||||
\immediate\write\psbj@inaux{\string\into\space psbjoin.all}
|
||||
\immediate\closeout\psbj@inaux
|
||||
\input psbjoin.aux
|
||||
}
|
||||
%
|
||||
% Annotations & Captions etc...
|
||||
%
|
||||
%
|
||||
% \centinsert{anybox} is just a centered \midinsert, but is included as
|
||||
% people barely use the original inserts from TeX.
|
||||
%
|
||||
\def\centinsert#1{\midinsert\line{\hss#1\hss}\endinsert}
|
||||
\def\psannotate#1#2{\def\ps@nnotation{#2\global\let\ps@nnotation=\relax}#1}
|
||||
\def\pscaption#1#2{\vbox{
|
||||
\setbox\drawingBox=#1
|
||||
\copy\drawingBox
|
||||
\vskip\baselineskip
|
||||
\vbox{\hsize=\wd\drawingBox\setbox0=\hbox{#2}
|
||||
\ifdim\wd0>\hsize
|
||||
\noindent\unhbox0\tolerance=5000
|
||||
\else\centerline{\box0}
|
||||
\fi
|
||||
}}}
|
||||
% for compatibility with older versions
|
||||
\def\psfig#1#2#3{\pscaption{\psannotate{#1}{#2}}{#3}}
|
||||
\def\psfigurebox#1#2#3{\pscaption{\psannotate{\psbox{#1}}{#2}}{#3}}
|
||||
%
|
||||
% \at(#1;#2)#3 puts #3 at #1-higher and #2-right of the current
|
||||
% position without moving it (to be used in annotations).
|
||||
\def\at(#1;#2)#3{\setbox0=\hbox{#3}\ht0=0pt\dp0=0pt
|
||||
\rlap{\kern#1\vbox to0pt{\kern-#2\box0\vss}}}
|
||||
%
|
||||
% \gridfill(ht;wd) makes a 1cm*1cm grid of ht by wd whose lower-left
|
||||
% corner is the current point
|
||||
\newdimen\gridht \newdimen\gridwd
|
||||
\def\gridfill(#1;#2){
|
||||
\setbox0=\hbox to 1\pscm
|
||||
{\vrule height1\pscm width.4pt\leaders\hrule\hfill}
|
||||
\gridht=#1
|
||||
\divide\gridht by \ht0
|
||||
\multiply\gridht by \ht0
|
||||
\gridwd=#2
|
||||
\divide\gridwd by \wd0
|
||||
\multiply\gridwd by \wd0
|
||||
\advance \gridwd by \wd0
|
||||
\vbox to \gridht{\leaders\hbox to\gridwd{\leaders\box0\hfill}\vfill}}
|
||||
%
|
||||
% Useful to measure where to put annotations
|
||||
\def\fillinggrid{\at(0cm;0cm){\vbox{
|
||||
\gridfill(\drawinght;\drawingwd)}}}
|
||||
%
|
||||
% \textleftof\anybox: Sample text\endtext
|
||||
% inserts "Sample text" on the left of \anybox ie \vbox, \psbox.
|
||||
% \textrightof is the symmetric (not documented, too uggly)
|
||||
% Welcome any suggestion about clean wraparound macros from
|
||||
% TeXhackers reading this
|
||||
%
|
||||
\def\textleftof#1:{
|
||||
\setbox1=#1
|
||||
\setbox0=\vbox\bgroup
|
||||
\advance\hsize by -\wd1 \advance\hsize by -2em}
|
||||
\def\textrightof#1:{
|
||||
\setbox0=#1
|
||||
\setbox1=\vbox\bgroup
|
||||
\advance\hsize by -\wd0 \advance\hsize by -2em}
|
||||
\def\endtext{
|
||||
\egroup
|
||||
\hbox to \hsize{\valign{\vfil##\vfil\cr%
|
||||
\box0\cr%
|
||||
\noalign{\hss}\box1\cr}}}
|
||||
%
|
||||
% \frameit{\thick}{\skip}{\anybox}
|
||||
% draws with thickness \thick a box around \anybox, leaving \skip of
|
||||
% blank around it. eg \frameit{0.5pt}{1pt}{\hbox{hello}}
|
||||
% \boxit{\anybox} is a shortcut.
|
||||
\def\frameit#1#2#3{\hbox{\vrule width#1\vbox{
|
||||
\hrule height#1\vskip#2\hbox{\hskip#2\vbox{#3}\hskip#2}%
|
||||
\vskip#2\hrule height#1}\vrule width#1}}
|
||||
\def\boxit#1{\frameit{0.4pt}{0pt}{#1}}
|
||||
%
|
||||
%
|
||||
\catcode`\@=12 % cs containing @ are unreachable
|
||||
%
|
||||
% CUSTOMIZE YOUR DEFAULT DRIVER:
|
||||
% Uncomment the line corresponding to your TeX system:
|
||||
%\psfortextures% For TeXtures on the Macintosh
|
||||
%\psforoztex % For OzTeX shareware on the Macintosh
|
||||
%\psfordvitops % For the DVItoPS converter for TeX on IBM mainframes
|
||||
\psfordvips % For DVIPS converter on VAX and UNIX
|
||||
%\psfordvitps % For dvitps from TeXPS package under UNIX
|
||||
%\psforDVIALW % For DVIALW, UNIX public domain
|
||||
%\psonlyboxes % Blank Boxes (when all else fails).
|
6
contrib/docs/latex/mmedia/sample.tex
Normal file
@@ -0,0 +1,6 @@
|
||||
\chapter{MMboard: a sample MMedia application}\label{mmboard}%
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}
|
||||
|
||||
To be written.
|
||||
|
@@ -200,18 +200,25 @@ will not block for this buffer size.
|
||||
|
||||
\func{bool}{SetSoundFormat}{\param{const wxSoundFormatBase\& }{format}}
|
||||
|
||||
SetSoundFormat is one of the key function of the wxSoundStream object. It specifies
|
||||
the sound format the user needs. SetSoundFormat tries to apply the format to the
|
||||
current sound stream (it can be a sound file or a sound driver).
|
||||
Then, either it manages to apply it and it returns {\bf TRUE}, or it could not and
|
||||
it returns {\bf FALSE}. In this case, you must check the error with
|
||||
SetSoundFormat is one of the key function of the wxSoundStream object.
|
||||
It specifies the sound format the user needs. SetSoundFormat tries to
|
||||
apply the format to the current sound stream (it can be a sound file or a
|
||||
sound driver). Then, either it manages to apply it and it returns {\bf TRUE},
|
||||
or it could not and it returns {\bf FALSE}. In this case, you must check
|
||||
the error with
|
||||
\helpref{wxSoundStream::GetError}{wxsoundstreamgeterror}. See
|
||||
\helpref{wxSoundStream errors section}{wxsoundstream} for more details.
|
||||
|
||||
\wxheading{Remark}
|
||||
\wxheading{Note}
|
||||
|
||||
The {\bf format} object can be destroyed after the call. The object does not need it.
|
||||
|
||||
\wxheading{Note}
|
||||
|
||||
If the error is {\bf wxSOUND\_NOTEXACT}, the stream tries to find the best
|
||||
approaching format and setups it. You can check the format which it applied
|
||||
with \helpref{wxSoundStream::GetSoundFormat}{wxsoundstreamgetsoundformat}.
|
||||
|
||||
%%
|
||||
%% GetSoundFormat
|
||||
%%
|
||||
@@ -229,9 +236,9 @@ the stream itself.
|
||||
|
||||
\func{void}{Register}{\param{int }{evt}, \param{wxSoundCallback }{cbk}, \param{void* }{cdata}}
|
||||
|
||||
It installs a C callback for wxSoundStream events. The C callbacks are still useful
|
||||
to avoid hard inheritance. You can install only one callback per event. Each callback
|
||||
has its callback data.
|
||||
It installs a C callback for wxSoundStream events. The C callbacks are still
|
||||
useful to avoid hard inheritance. You can install only one callback per event.
|
||||
Each callback has its callback data.
|
||||
|
||||
%%
|
||||
%% StartProduction
|
||||
@@ -240,14 +247,19 @@ has its callback data.
|
||||
|
||||
\func{bool}{StartProduction}{\param{int }{evt}}
|
||||
|
||||
Starts the async notifier. After this call, the stream begins either
|
||||
recording or playing or the two at the same time.
|
||||
StartProduction starts the sound streaming. {\it evt} may be one of
|
||||
{\bf wxSOUND\_INPUT}, {\bf wxSOUND\_OUTPUT} or {\bf wxSOUND\_DUPLEX}.
|
||||
You cannot specify several flags at the same time. Starting the production
|
||||
may automaticaly in position of buffer underrun (only in the case you activated
|
||||
recording). Actually this may happen the sound IO queue is too short.
|
||||
It is also advised that you fill quickly enough the sound IO queue when the
|
||||
driver requests it (through a wxSoundEvent).
|
||||
|
||||
\membersection{wxSoundStream::StopProduction}\label{wxsoundstreamstopproduction}
|
||||
|
||||
\func{bool}{StopProduction}{\void}
|
||||
|
||||
Stops the async notifier.
|
||||
I stops the async notifier and the sound streaming straightly.
|
||||
|
||||
\membersection{wxSoundStream::SetEventHandler}\label{wxsoundstreamseteventhandler}
|
||||
|
||||
@@ -259,19 +271,24 @@ Sets the event handler: if it is non-null, all events are routed to it.
|
||||
|
||||
\constfunc{wxSoundError}{GetError}{\void}
|
||||
|
||||
It returns the last error which occured.
|
||||
|
||||
\membersection{wxSoundStream::GetLastAccess}\label{wxsoundstreamgetlastaccess}
|
||||
|
||||
\constfunc{wxUint32}{GetLastAccess}{\void}
|
||||
|
||||
It returns the number of bytes which were effectively written to/read from the sound stream.
|
||||
|
||||
\membersection{wxSoundStream::QueueFilled}\label{wxsoundstreamqueuefilled}
|
||||
|
||||
\constfunc{bool}{QueueFilled}{\void}
|
||||
|
||||
This is only useful for device (I think).
|
||||
It returns whether the sound IO queue is full. When it is full, the next IO call will block
|
||||
until the IO queue has at least one empty entry.
|
||||
|
||||
\membersection{wxSoundStream::OnSoundEvent}\label{wxsoundstreamonsoundevent}
|
||||
|
||||
\func{void}{OnSoundEvent}{\param{int }{evt}}
|
||||
|
||||
Handles event.
|
||||
It is called by the wxSoundStream when a new sound event occured.
|
||||
|
228
contrib/docs/latex/mmedia/sndfile.tex
Normal file
@@ -0,0 +1,228 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Name: sndfile.tex
|
||||
%% Purpose: wxMMedia docs
|
||||
%% Author: Guilhem Lavaux <lavaux@easynet.fr>
|
||||
%% Modified by:
|
||||
%% Created: 2000
|
||||
%% RCS-ID: $Id$
|
||||
%% Copyright: (c) wxWindows team
|
||||
%% Licence: wxWindows licence
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\section{\class{wxSoundFileStream}}\label{wxsoundfilestream}
|
||||
|
||||
Base class for file coders/decoders. This class is not constructor (it is an abstract
|
||||
class).
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
\helpref{wxSoundStream}{wxsoundstream}
|
||||
|
||||
\wxheading{Include file}
|
||||
|
||||
wx/sndfile.h
|
||||
|
||||
\wxheading{Data structures}
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
\membersection{wxSoundFileStream::wxSoundFileStream}\label{wxsoundfilestreamwxsoundfilestream}
|
||||
|
||||
\func{}{wxSoundFileStream}{\param{wxInputStream\& }{stream}, \param{wxSoundStream\& }{io\_sound}}
|
||||
|
||||
It constructs a new file decoder object which will send
|
||||
audio data to the specified sound stream.
|
||||
The {\it stream} is the input stream to be decoded. The
|
||||
{\it io\_sound} is the destination sound stream.
|
||||
Once it has been constructed, you cannot change any of
|
||||
the specified streams nor the direction of the stream.
|
||||
|
||||
You will have access to the playback functions.
|
||||
|
||||
\func{}{wxSoundFileStream}{\param{wxOutputStream\& }{stream}, \param{wxSoundStream\& }{io\_sound}}
|
||||
|
||||
It constructs a new file coder object which will get
|
||||
data to be recorded from the specified sound stream.
|
||||
The {\it stream} is the output wxStream. The {\it io\_sound}
|
||||
is the source sound stream of the audio data. Once
|
||||
it has been constructed, you cannot change any of
|
||||
the specified streams nor the direction of the stream.
|
||||
|
||||
\membersection{wxSoundFileStream::\destruct{wxSoundFileStream}}\label{wxsoundfilestreamdtor}
|
||||
\func{}{\destruct{wxSoundFileStream}}{\void}
|
||||
|
||||
It destroys the current sound file codec.
|
||||
|
||||
\membersection{wxSoundFileStream::Play}\label{wxsoundfilestreamplay}
|
||||
\func{bool}{Play}{\void}
|
||||
|
||||
It starts playing the file. The playing begins, in background
|
||||
in nearly all cases, after the return of the function. The
|
||||
codec returns to a {\bf stopped} state when it reaches the
|
||||
end of the file.
|
||||
On success, it returns TRUE.
|
||||
|
||||
\membersection{wxSoundFileStream::Record}\label{wxsoundfilestreamrecord}
|
||||
\func{bool}{Record}{\param{wxUint32 }{time}}
|
||||
|
||||
It starts recording data from the sound stream and writing them
|
||||
to the output stream. You have to precise the recording length in
|
||||
parameter. This length is expressed in seconds. If you want to
|
||||
control the record length (using \helpref{Stop}{wxsoundfilestreamstop}),
|
||||
you can set it to wxSOUND\_INFINITE\_TIME.
|
||||
|
||||
On success, it returns TRUE.
|
||||
|
||||
\membersection{wxSoundFileStream::Stop}\label{wxsoundfilestreamstop}
|
||||
\func{bool}{Stop}{\void}
|
||||
|
||||
It stops either recording or playing. Whatever happens (even unexpected
|
||||
errors), the stream is stopped when the function returns. When you are
|
||||
in recording mode, the file headers are updated and flushed if possible
|
||||
(ie: if the output stream is seekable).
|
||||
|
||||
On success, it returns TRUE.
|
||||
|
||||
\membersection{wxSoundFileStream::Pause}\label{wxsoundfilestreampause}
|
||||
\func{bool}{Pause}{\void}
|
||||
|
||||
The file codec tries to pause the stream: it means that it stops audio
|
||||
production but keep the file pointer at the place.
|
||||
|
||||
If the file codec is already paused, it returns FALSE.
|
||||
|
||||
On success, it returns TREE.
|
||||
|
||||
\membersection{wxSoundFileStream::Resume}\label{wxsoundfilestreamresume}
|
||||
\func{bool}{Resume}{\void}
|
||||
|
||||
When the file codec has been paused using
|
||||
\helpref{Pause}{wxsoundfilestreampause}, you could be interrested in
|
||||
resuming it. This is the goal of this function.
|
||||
|
||||
\membersection{wxSoundFileStream::IsStopped}\label{wxsoundfilestreamisstopped}
|
||||
\constfunc{bool}{IsStopped}{\void}
|
||||
|
||||
It returns TRUE when the stream is stopped, in another case it returns
|
||||
FALSE.
|
||||
|
||||
\membersection{wxSoundFileStream::IsPaused}\label{wxsoundfilestreamispaused}
|
||||
\constfunc{bool}{IsPaused}{\void}
|
||||
|
||||
It returns TRUE when the stream is paused, in another case it returns
|
||||
FALSE.
|
||||
|
||||
\membersection{wxSoundFileStream::StartProduction}\label{wxsoundfilestreamstartproduction}
|
||||
\func{bool}{StartProduction}{\param{int }{evt}}
|
||||
|
||||
It is really not advised you call this function. From the wxSoundFileStream
|
||||
point of view it is an internal function. Internally, it is called after
|
||||
the file stream has been prepared to be played or to receive audio data and
|
||||
when it wants to start processing audio data.
|
||||
|
||||
\membersection{wxSoundFileStream::StopProduction}\label{wxsoundfilestreamstopproduction}
|
||||
\func{bool}{StopProduction}{\void}
|
||||
|
||||
As for \helpref{StartProduction}{wxsoundfilestreamstopproduction}, it is not
|
||||
advised for you to call this function. It is called by
|
||||
\helpref{Stop}{wxsoundfilestreamstop} when it needs to stop the audio data
|
||||
processing.
|
||||
|
||||
\membersection{wxSoundFileStream::GetLength}\label{wxsoundfilestreamgetlength}
|
||||
\func{wxUint32}{GetLength}{\void}
|
||||
|
||||
It returns the audio data length of the file stream. This length is expressed
|
||||
in bytes. If you need the length in seconds, you will need to use
|
||||
\helpref{GetSoundFormat}{wxsoundstreamgetsoundformat} and
|
||||
\helpref{GetTimeFromBytes}{wxsoundformatbasegettimefrombytes}.
|
||||
|
||||
\membersection{wxSoundFileStream::GetPosition}\label{wxsoundfilestreamgetposition}
|
||||
\func{wxUint32}{GetPosition}{\void}
|
||||
|
||||
It returns the current position in the soundfile stream. The position
|
||||
is expressed in bytes. If you need the length in seconds, you will need to use
|
||||
\helpref{GetSoundFormat}{wxsoundstreamgetsoundformat} and
|
||||
\helpref{GetTimeFromBytes}{wxsoundformatbasegettimefrombytes}.
|
||||
|
||||
\membersection{wxSoundFileStream::SetPosition}\label{wxsoundfilestreamsetposition}
|
||||
\func{wxUint32}{SetPosition}{\param{wxUint32 }{new\_position}}
|
||||
|
||||
It sets the current in the soundfile stream. The position
|
||||
{\it new\_position} must be expressed in bytes. You can get
|
||||
a length/position in bytes from a time value using
|
||||
\helpref{GetSoundFormat}{wxsoundstreamgetsoundformat} and
|
||||
\helpref{GetTimeFromBytes}{wxsoundformatbasegettimefrombytes}.
|
||||
|
||||
On success, it returns TRUE.
|
||||
|
||||
\wxheading{Warning}
|
||||
|
||||
Some wxStream may not be capable to support this function as
|
||||
it may not support the seekable functionnality. If this happens,
|
||||
it returns FALSE and leave the stream at the same position.
|
||||
|
||||
\membersection{wxSoundFileStream::Read}\label{wxsoundfilestreamread}
|
||||
\func{wxSoundStream\&}{Read}{\param{void* }{buffer}, \param{wxUint32 }{len}}
|
||||
|
||||
You can obtain the audio data encoded in the file using this function.
|
||||
But it must be considered as an internal function. Used carelessly, it
|
||||
may corrupt the current state of the stream.
|
||||
Data are returned using in the original file coding (You must use a sound
|
||||
format object to decode it).
|
||||
|
||||
\membersection{wxSoundFileStream::Write}\label{wxsoundfilestreamwrite}
|
||||
\func{wxSoundStream\&}{Write}{\param{const void* }{buffer}, \param{wxUint32 }{len}}
|
||||
|
||||
You can put encoded audio data to the file using this function.
|
||||
But it must be considered as an internal function. Used carelessly, it
|
||||
may corrupt the current state of the stream.
|
||||
Data must be coded with the specified file coding (You must use a sound
|
||||
format object to do this).
|
||||
|
||||
\membersection{wxSoundFileStream::SetSoundFormat}\label{wxsoundfilestreamsetsoundformat}
|
||||
\func{bool}{SetSoundFormat}{\param{const wxSoundFormatBase\& }{format}}
|
||||
|
||||
\membersection{wxSoundFileStream::GetCodecName}\label{wxsoundfilestreamgetcodecname}
|
||||
\constfunc{wxString}{GetCodecName}{\void}
|
||||
|
||||
This function returns the Codec name. This is useful for those who
|
||||
want to build a player (But also in some other case).
|
||||
|
||||
\membersection{wxSoundFileStream::CanRead}\label{wxsoundfilestreamcanread}
|
||||
\func{bool}{CanRead}{\void}
|
||||
|
||||
You should use this function to test whether this file codec can read
|
||||
the stream you passed to it.
|
||||
|
||||
\membersection{wxSoundFileStream::PrepareToPlay}\label{wxsoundfilestreampreparetoplay}
|
||||
\func{bool}{PrepareToPlay}{\void}
|
||||
|
||||
It is called by wxSoundFileStream to prepare the specific file loader
|
||||
to prepare itself to play the file. Actually, this includes reading
|
||||
headers and setting the various parameters of the sound format.
|
||||
This should not be called by an external user but it should be
|
||||
implemented when you inherit wxSoundFileStream to build a new codec.
|
||||
|
||||
It must return when the file is identified and the parameters have
|
||||
been set. In all other cases, you must return FALSE.
|
||||
|
||||
\membersection{wxSoundFileStream::PrepareToRecord}\label{wxsoundfilestreampreparetorecord}
|
||||
\func{bool}{PrepareToRecord}{\param{wxUint32 }{time}}
|
||||
|
||||
\membersection{wxSoundFileStream::FinishRecording}\label{wxsoundfilestreamfinishrecording}
|
||||
\func{bool}{FinishRecording}{\void}
|
||||
|
||||
\membersection{wxSoundFileStream::RepositionStream}\label{wxsoundfilestreamrepositionstream}
|
||||
\func{bool}{RepositionStream}{\param{wxUint32 }{position}}
|
||||
|
||||
|
||||
\membersection{wxSoundFileStream::FinishPreparation}\label{wxsoundfilestreamfinishpreparation}
|
||||
\func{void}{FinishPreparation}{\param{wxUint32 }{len}}
|
||||
|
||||
|
||||
\membersection{wxSoundFileStream::GetData}\label{wxsoundfilestreamgetdata}
|
||||
\func{wxUint32}{GetData}{\param{void* }{buffer}, \param{wxUint32 }{len}}
|
||||
|
||||
|
||||
\membersection{wxSoundFileStream::PutData}\label{wxsoundfilestreamputdata}
|
||||
\func{wxUint32}{PutData}{\param{const void* }{buffer}, \param{wxUint32 }{len}}
|
||||
|
34
contrib/docs/latex/mmedia/tex2rtf.ini
Normal file
@@ -0,0 +1,34 @@
|
||||
runTwice = yes
|
||||
titleFontSize = 12
|
||||
authorFontSize = 10
|
||||
chapterFontSize = 12
|
||||
sectionFontSize = 12
|
||||
subsectionFontSize = 12
|
||||
headerRule = yes
|
||||
footerRule = yes
|
||||
useHeadingStyles = yes
|
||||
listItemIndent=40
|
||||
generateHPJ = yes
|
||||
htmlBrowseButtons = bitmap
|
||||
winHelpVersion = 3
|
||||
winHelpContents = yes
|
||||
winHelpTitle = "MMedia Manual"
|
||||
truncateFilenames = yes
|
||||
combineSubSections = yes
|
||||
\overview [2] {\rtfonly{See also }\settransparency{on}\sethotspotcolour{off}\sethotspotunderline{on}\winhelponly{\image{}{books.bmp}\settransparency{off}}
|
||||
\htmlonly{\image{}{books.gif}}\helpref{#1}{#2}
|
||||
\sethotspotcolour{on}\sethotspotunderline{on}}
|
||||
\docparam [2]{\parskip{0}{\it #1}\htmlignore{\par}\parskip{10}\indented{1cm}{#2}}
|
||||
\wxheading [1]{{\bf \htmlignore{\fcol{blue}{#1}}\htmlonly{\fcol{red}{#1}}}}
|
||||
\const [0] {{\bf const}}
|
||||
\constfunc [3] {{\bf #1} {\bf #2}(#3) {\bf const}\index{#2}}
|
||||
\windowstyle [1] {{\bf #1}\index{#1}}
|
||||
|
||||
;;
|
||||
;; These two are for generating MS HTML Help project, contents and index files.
|
||||
;;
|
||||
htmlWorkshopFiles = true
|
||||
htmlIndex = true
|
||||
\pythonnote [1] {{\bf \fcol{blue}{wxPython note:}} #1}
|
||||
%\pythonnote [1] {}
|
||||
|
10
contrib/docs/latex/mmedia/topics.tex
Normal file
@@ -0,0 +1,10 @@
|
||||
\chapter{Topic overviews}\label{overviews}
|
||||
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
|
||||
\setfooter{\thepage}{}{}{}{}{\thepage}
|
||||
|
||||
The following sections describe particular topics.
|
||||
|
||||
\section{MMedia extension overview}\label{mmedoverview}
|
||||
|
||||
To be written.
|
||||
|
Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 137 B |
@@ -9,7 +9,7 @@ Classes definition
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
\helpref{wxObject}{wxobject}
|
||||
wxObject
|
||||
|
||||
\wxheading{Data structures}
|
||||
|
148
contrib/docs/latex/mmedia/vidwin.tex
Normal file
@@ -0,0 +1,148 @@
|
||||
%
|
||||
% automatically generated by HelpGen from
|
||||
% /home/guilhem/PROJECTS/wxWindows/utils/wxMMedia2/lib/vidwin.h at 26/Feb/00 14:52:03
|
||||
%
|
||||
|
||||
|
||||
\section{\class{wxVideoWindows}}\label{wxvideowindows}
|
||||
|
||||
|
||||
|
||||
Class definition
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
\helpref{wxVideoBaseDriver}{wxvideobasedriver}
|
||||
|
||||
\wxheading{Data structures}
|
||||
|
||||
{\small \begin{verbatim}
|
||||
typedef struct VIDW\_Internal {
|
||||
MCIDEVICEID m\_dev\_id
|
||||
};
|
||||
\end{verbatim}}
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
\membersection{wxVideoWindows::OpenFile}\label{wxvideowindowsopenfile}
|
||||
|
||||
\func{void}{OpenFile}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::wxVideoWindows}\label{wxvideowindowswxvideowindows}
|
||||
|
||||
\func{}{wxVideoWindows}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::wxVideoWindows}\label{wxvideowindowswxvideowindows}
|
||||
|
||||
\func{}{wxVideoWindows}{\param{wxInputStream\& }{str}}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::wxVideoWindows}\label{wxvideowindowswxvideowindows}
|
||||
|
||||
\func{}{wxVideoWindows}{\param{const wxString\& }{fname}}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::\destruct{wxVideoWindows}}\label{wxvideowindowsdtor}
|
||||
|
||||
\func{}{\destruct{wxVideoWindows}}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::Play}\label{wxvideowindowsplay}
|
||||
|
||||
\func{bool}{Play}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::Stop}\label{wxvideowindowsstop}
|
||||
|
||||
\func{bool}{Stop}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::Pause}\label{wxvideowindowspause}
|
||||
|
||||
\func{bool}{Pause}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::Resume}\label{wxvideowindowsresume}
|
||||
|
||||
\func{bool}{Resume}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::GetSize}\label{wxvideowindowsgetsize}
|
||||
|
||||
\constfunc{bool}{GetSize}{\param{wxSize\& }{size}}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::SetSize}\label{wxvideowindowssetsize}
|
||||
|
||||
\func{bool}{SetSize}{\param{wxSize }{size}}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::GetMovieCodec}\label{wxvideowindowsgetmoviecodec}
|
||||
|
||||
\constfunc{wxString}{GetMovieCodec}{\void}
|
||||
|
||||
Return codec name for each stream.
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::GetAudioCodec}\label{wxvideowindowsgetaudiocodec}
|
||||
|
||||
\constfunc{wxString}{GetAudioCodec}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::GetSampleRate}\label{wxvideowindowsgetsamplerate}
|
||||
|
||||
\constfunc{wxUint32}{GetSampleRate}{\void}
|
||||
|
||||
Return misc. info about audio
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::GetChannels}\label{wxvideowindowsgetchannels}
|
||||
|
||||
\constfunc{wxUint8}{GetChannels}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::GetBPS}\label{wxvideowindowsgetbps}
|
||||
|
||||
\constfunc{wxUint8}{GetBPS}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::GetFrameRate}\label{wxvideowindowsgetframerate}
|
||||
|
||||
\constfunc{double}{GetFrameRate}{\void}
|
||||
|
||||
Return the frame rate of the video (in frames/second)
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::GetNbFrames}\label{wxvideowindowsgetnbframes}
|
||||
|
||||
\constfunc{wxUint32}{GetNbFrames}{\void}
|
||||
|
||||
Return the total number of frames in the movie
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::IsCapable}\label{wxvideowindowsiscapable}
|
||||
|
||||
\func{bool}{IsCapable}{\param{wxVideoType }{v\_type}}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::AttachOutput}\label{wxvideowindowsattachoutput}
|
||||
|
||||
\func{bool}{AttachOutput}{\param{wxWindow\& }{output}}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::DetachOutput}\label{wxvideowindowsdetachoutput}
|
||||
|
||||
\func{void}{DetachOutput}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::IsPaused}\label{wxvideowindowsispaused}
|
||||
|
||||
\constfunc{bool}{IsPaused}{\void}
|
||||
|
||||
|
||||
\membersection{wxVideoWindows::IsStopped}\label{wxvideowindowsisstopped}
|
||||
|
||||
\constfunc{bool}{IsStopped}{\void}
|
||||
|
Before Width: | Height: | Size: 225 B After Width: | Height: | Size: 225 B |
BIN
contrib/docs/latex/ogl/books.bmp
Normal file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 138 B After Width: | Height: | Size: 138 B |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
298
contrib/docs/latex/ogl/texhelp.sty
Normal file
@@ -0,0 +1,298 @@
|
||||
% LaTeX style file
|
||||
% Name: texhelp.sty
|
||||
% Author: Julian Smart
|
||||
%
|
||||
% Purpose
|
||||
% -------
|
||||
% Style file to enable the simultaneous preparation of printed LaTeX and on-line
|
||||
% hypertext manuals.
|
||||
% Use in conjunction with Tex2RTF (see Tex2RTF documentation).
|
||||
%
|
||||
% Note that if a non-ASCII character starts a newline and there should be a space
|
||||
% between the last word on the previous line and the first word on this line,
|
||||
% you need to use \rtfsp to generate a space in Windows Help. \rtfsp is ignored
|
||||
% in all other formats.
|
||||
%
|
||||
% Julian Smart
|
||||
% Artificial Intelligence Applications Institute
|
||||
%
|
||||
%
|
||||
% ============== C++/CLIPS Documentation Facilities ==============
|
||||
%
|
||||
% Each class definition should be typeset with e.g.
|
||||
%
|
||||
% \section{\class{Name}: Parent}
|
||||
%
|
||||
% followed by a description of the class.
|
||||
% Each member should follow:
|
||||
%
|
||||
% \membersection{wxName::Member}
|
||||
%
|
||||
% with a description of what this member does.
|
||||
% Then, one (or more if overloaded) member (function) in detail:
|
||||
%
|
||||
% \func{return type}{name}{args}
|
||||
% or
|
||||
% \member{type}{name}
|
||||
%
|
||||
% where args is a list of \param{type}{name}, ...
|
||||
|
||||
% Function, e.g.
|
||||
% e.g. to typeset
|
||||
%
|
||||
% void DoIt(char *string);
|
||||
%
|
||||
% write:
|
||||
%
|
||||
% \func{void}{DoIt}{\param{char *}{string}}
|
||||
%
|
||||
|
||||
\newcommand{\func}[3]{\hangafter=1\noindent\hangindent=10mm
|
||||
{{\it #1} {\bf #2}\index{#2}}(#3)}
|
||||
|
||||
% For function/type definition where the name is a pointer,
|
||||
% e.g. to typeset
|
||||
%
|
||||
% typedef void (*wxFunction)(wxObject&)
|
||||
%
|
||||
% write:
|
||||
%
|
||||
% \pfunc{typedef void}{wxFunction}{param{wxObject&}}
|
||||
|
||||
\newcommand{\pfunc}[3]{\hangafter=1\noindent\hangindent=10mm
|
||||
{{\it #1} ({\bf *#2})\index{#2}}(#3)}
|
||||
|
||||
% Use an ordinary \section command for class name definitions.
|
||||
|
||||
% This is used for a member, such as wxBitmap: GetDepth
|
||||
\newcommand{\membersection}[1]{\subsection*{#1}\index{#1}}
|
||||
|
||||
% CLIPS function
|
||||
\newcommand{\clipsfunc}[3]{\hangafter=1\noindent\hangindent=10mm
|
||||
{{\bf #1} ({\bf #2}\index{#2}}#3)}
|
||||
|
||||
\newcommand{\clipssection}[1]{\chapter{#1}}
|
||||
|
||||
% This is used for a CLIPS function name
|
||||
\newcommand{\functionsection}[1]{\subsection*{#1}}
|
||||
|
||||
% Member: a type and a name
|
||||
\newcommand{\member}[2]{{\bf #1 \it #2}}
|
||||
|
||||
% C++ Parameter: a type and a name (no intervening space)
|
||||
\newcommand{\param}[2]{{\it #1}{\bf #2}}
|
||||
|
||||
% CLIPS Parameter: a type and a name (one intervening space)
|
||||
\newcommand{\cparam}[2]{{\bf #1} {\it #2}}
|
||||
|
||||
% Class: puts in index
|
||||
\newcommand{\class}[1]{#1\index{#1}}
|
||||
|
||||
%\newcommand{\docparam}[2]{\parskip=0pt {\it #1}\par\parskip=10pt\begin{indented}{1cm}{#2}\end{indented}}
|
||||
|
||||
% Void type
|
||||
\newcommand{\void}{{\it void}}
|
||||
|
||||
% Typeset destructor
|
||||
\newcommand{\destruct}[1]{{$\sim$}#1}
|
||||
|
||||
% Typeset insert/extract operators
|
||||
\newcommand{\cinsert}{$<<$}
|
||||
\newcommand{\cextract}{$>>$}
|
||||
|
||||
|
||||
% =================== Hypertext facilities ===================
|
||||
%
|
||||
% To insert hyperlinks (or references, in Latex), \label the sections
|
||||
% or membersections \label{ref-label} immediately after the section, on the same line,
|
||||
% and use \helpref{text-to-show}{ref-label} to make a reference.
|
||||
%
|
||||
|
||||
% Type text with section reference
|
||||
\newcommand{\helpref}[2]{{\it #1} (p.\ \pageref{#2}) }
|
||||
|
||||
% Type text with URL in verbatim mode
|
||||
\newcommand{\urlref}[2]{#1 (\verb$#2$)}
|
||||
|
||||
% Don't typeset section number in LaTeX
|
||||
\newcommand{\helprefn}[2]{{\it #1}}
|
||||
|
||||
% Like helpref, but popup text in WinHelp instead of hyperlinked
|
||||
\newcommand{\popref}[2]{{\it #1}}
|
||||
|
||||
% Like footnote, but popup text.
|
||||
\newcommand{\footnotepopup}[2]{{\it #1}\footnote{#2}}
|
||||
|
||||
% =================== On-line help specific macros ===================
|
||||
%
|
||||
|
||||
% Global document font size/family, help only.
|
||||
\newcommand{\helpfontsize}[1]{}
|
||||
\newcommand{\helpfontfamily}[1]{}
|
||||
|
||||
% Ignore in all on-line help
|
||||
\newcommand{\helpignore}[1]{#1}
|
||||
% Only print in all on-line help
|
||||
\newcommand{\helponly}[1]{}
|
||||
|
||||
% Ignore in LaTeX
|
||||
\newcommand{\latexignore}[1]{}
|
||||
% Only print in LaTeX
|
||||
\newcommand{\latexonly}[1]{#1}
|
||||
|
||||
% Ignore in linear RTF
|
||||
\newcommand{\rtfignore}[1]{#1}
|
||||
% Only print in linear RTF
|
||||
\newcommand{\rtfonly}[1]{}
|
||||
|
||||
% Ignore in WinHelp RTF
|
||||
\newcommand{\winhelpignore}[1]{#1}
|
||||
% Only print in WinHelp RTF
|
||||
\newcommand{\winhelponly}[1]{}
|
||||
|
||||
% Ignore in wxHelp
|
||||
\newcommand{\xlpignore}[1]{#1}
|
||||
% Only print in wxHelp
|
||||
\newcommand{\xlponly}[1]{}
|
||||
|
||||
% Ignore in HTML
|
||||
\newcommand{\htmlignore}[1]{#1}
|
||||
% Only print in HTML
|
||||
\newcommand{\htmlonly}[1]{}
|
||||
|
||||
% Input a file only for help system (binder thickness is not a limitation
|
||||
% in help systems!)
|
||||
\newcommand{\helpinput}[1]{}
|
||||
|
||||
\newcommand{\rtfsp}{ } % Force a space in RTF, ignore in Latex
|
||||
|
||||
% =================== Miscellaneous macros ===================
|
||||
%
|
||||
% Headings consistent with generated ones
|
||||
\newcommand{\myheading}[1]{\vspace*{25pt}
|
||||
\begin{flushleft}
|
||||
{\LARGE \bf #1}
|
||||
\end{flushleft}
|
||||
\vskip 20pt
|
||||
}
|
||||
|
||||
% Heading with entry in contents page.
|
||||
\newcommand{\chapterheading}[1]{\myheading{#1}
|
||||
\addcontentsline{toc}{chapter}{#1}}
|
||||
|
||||
\newcommand{\sectionheading}[1]{\myheading{#1}
|
||||
\addcontentsline{toc}{section}{#1}}
|
||||
|
||||
% Glossary environment
|
||||
\newenvironment{helpglossary}{\newpage\chapterheading{Glossary}\begin{description}}{\end{description}}
|
||||
|
||||
% Glossary entry
|
||||
\newcommand{\gloss}[1]{\item[#1]\index{#1}}
|
||||
|
||||
% Image: EPS in Latex, BMP or MF (whatever's available) in RTF. Requires psbox.
|
||||
\newcommand{\image}[2]{\psboxto(#1){#2}}
|
||||
|
||||
% Image, left aligned (HTML)
|
||||
\newcommand{\imager}[2]{\psboxto(#1){#2}}
|
||||
|
||||
% Image, right aligned (HTML)
|
||||
\newcommand{\imagel}[2]{\psboxto(#1){#2}}
|
||||
|
||||
% Imagemap: principally for HTML only. In Latex,
|
||||
% acts like \image.
|
||||
\newcommand{\imagemap}[3]{\psboxto(#1){#2}}
|
||||
|
||||
% Headers and footers
|
||||
% \setheader{EvenPageLeft}{EvenPageCentre}{EvenPageRight}
|
||||
% {OddPageLeft}{OddPageCentre}{OddPageRight}
|
||||
\newcommand{\setheader}[6]{
|
||||
\lhead[\fancyplain{}{#1}]{\fancyplain{}{#4}}
|
||||
\chead[\fancyplain{}{#2}]{\fancyplain{}{#5}}
|
||||
\rhead[\fancyplain{}{#3}]{\fancyplain{}{#6}}
|
||||
}
|
||||
|
||||
% \setfooter{EvenPageLeft}{EvenPageCentre}{EvenPageRight}
|
||||
% {OddPageLeft}{OddPageCentre}{OddPageRight}
|
||||
\newcommand{\setfooter}[6]{
|
||||
\lfoot[\fancyplain{#1}{#1}]{\fancyplain{#4}{#4}}
|
||||
\cfoot[\fancyplain{#2}{#2}]{\fancyplain{#5}{#5}}
|
||||
\rfoot[\fancyplain{#3}{#3}]{\fancyplain{#6}{#6}}
|
||||
}
|
||||
|
||||
% Needed for telling RTF where margin paragraph should go
|
||||
% in mirrored margins mode.
|
||||
\newcommand{\marginpareven}[1]{\hspace*{0pt}\marginpar{#1}}
|
||||
\newcommand{\marginparodd}[1]{\hspace*{0pt}\marginpar{#1}}
|
||||
|
||||
% Environment for two-column table popular in WinHelp and manuals.
|
||||
\newcommand{\twocolwidtha}[1]{\def\twocolwidthaval{#1}}
|
||||
\newcommand{\twocolwidthb}[1]{\def\twocolwidthbval{#1}}
|
||||
\newcommand{\twocolspacing}[1]{\def\twocolspacingval{#1}}
|
||||
|
||||
\twocolwidtha{3cm}
|
||||
\twocolwidthb{8.5cm}
|
||||
\twocolspacing{2}
|
||||
|
||||
\newcommand{\twocolitem}[2]{#1 & #2\\}
|
||||
\newcommand{\twocolitemruled}[2]{#1 & #2\\\hline}
|
||||
|
||||
\newenvironment{twocollist}{\renewcommand{\arraystretch}{\twocolspacingval}\begin{tabular}{lp{\twocolwidthbval}}}%
|
||||
{\end{tabular}\renewcommand{\arraystretch}{1}}
|
||||
|
||||
% Specifying table rows for RTF compatibility
|
||||
\newcommand{\row}[1]{#1\\}
|
||||
|
||||
% Use for the last ruled row for correct RTF generation.
|
||||
\newcommand{\ruledrow}[1]{#1\\\hline}
|
||||
|
||||
% Indentation environment. Arg1 is left margin size
|
||||
\newenvironment{indented}[1]{\begin{list}{}{\leftmargin=#1}\item[]}%
|
||||
{\end{list}}
|
||||
|
||||
% Framed box of text, normal formatting.
|
||||
\newcommand{\normalbox}[1]{\fbox{\vbox{#1}}}
|
||||
% Double-framed box of text.
|
||||
\newcommand{\normalboxd}[1]{\fbox{\fbox{\vbox{#1}}}}
|
||||
|
||||
% WITHDRAWN -- can't do in RTF, easily.
|
||||
% Framed box of text, horizontally centred. Ragged right within box.
|
||||
% \newcommand{\centeredbox}[2]{\begin{center}\fbox{\parbox{#1}{\raggedright#2}}\end{center}}
|
||||
% Double-framed box of text, horizontally centred. Ragged right within box.
|
||||
% \newcommand{\centeredboxd}[2]{\begin{center}\fbox{\fbox{\parbox{#1}{\raggedright#2}}}\end{center}}
|
||||
|
||||
% toocomplex environment: simply prints the argument in LaTeX,
|
||||
% comes out verbatim in all generated formats.
|
||||
\newenvironment{toocomplex}{}{}
|
||||
|
||||
% Colour: dummy commands since LaTeX doesn't support colour.
|
||||
% \definecolour{name}{red}{blue}{green}
|
||||
% \fcol{name}{text} ; Foreground
|
||||
% \bcol{name}{text} ; Background
|
||||
\newcommand{\definecolour}[4]{}
|
||||
\newcommand{\definecolor}[4]{}
|
||||
\newcommand{\fcol}[2]{#2}
|
||||
\newcommand{\bcol}[2]{#2}
|
||||
\newcommand{\sethotspotcolour}[1]{}
|
||||
\newcommand{\sethotspotunderline}[1]{}
|
||||
\newcommand{\settransparency}[1]{}
|
||||
\newcommand{\backslashraw}[0]{}
|
||||
\newcommand{\lbraceraw}[0]{}
|
||||
\newcommand{\rbraceraw}[0]{}
|
||||
\newcommand{\registered}[0]{(r)}
|
||||
\newcommand{\background}[1]{}
|
||||
\newcommand{\textcolour}[1]{}
|
||||
\newcommand{\overview}[2]{See \helpref{#1}{#2}.}
|
||||
\newcommand{\docparam}[2]{{\it #1}\begin{list}{}{\leftmargin=1cm}\item[]
|
||||
#2%
|
||||
\end{list}}
|
||||
\newcommand{\wxheading}[1]{{\bf #1}}
|
||||
\newcommand{\const}[0]{{\bf const}}
|
||||
\newcommand{\constfunc}[3]{{\bf #1} {\bf #2}(#3) {\bf const}\index{#2}}
|
||||
\newcommand{\windowstyle}[1]{{\bf #1}\index{#1}}
|
||||
|
||||
\addtolength{\textwidth}{1in}
|
||||
\addtolength{\oddsidemargin}{-0.5in}
|
||||
\addtolength{\topmargin}{-0.5in}
|
||||
\addtolength{\textheight}{1in}
|
||||
\sloppy
|
||||
|
Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 137 B |
@@ -1,22 +1,20 @@
|
||||
// -*- c++ -*-
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// ---------------------------------------------------------------------------
|
||||
// Name: cdbase.h
|
||||
// Purpose: wxMMedia
|
||||
// Author: Guilhem Lavaux
|
||||
// Created: 1997
|
||||
// Updated: 1998
|
||||
// Copyright: (C) 1997, 1998, Guilhem Lavaux
|
||||
// Updated: 1998, 1999, 2000
|
||||
// Copyright: (C) 1997, 1998, 1999, 2000 Guilhem Lavaux
|
||||
// License: wxWindows license
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// ---------------------------------------------------------------------------
|
||||
#ifndef __CDA_base_H__
|
||||
#define __CDA_base_H__
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface
|
||||
#pragma interface "cdbase.h"
|
||||
#endif
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
|
||||
typedef struct wxCDtime {
|
@@ -1,25 +1,23 @@
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// ---------------------------------------------------------------------------
|
||||
// Name: cdunix.h
|
||||
// Purpose: wxMMedia
|
||||
// Author: Guilhem Lavaux
|
||||
// Created: 1997
|
||||
// Updated: 1998
|
||||
// Copyright: (C) 1997, 1998, Guilhem Lavaux
|
||||
// Updated: 2000
|
||||
// Copyright: (C) 1997, 1998, 1999, 2000 Guilhem Lavaux
|
||||
// License: wxWindows license
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// ---------------------------------------------------------------------------
|
||||
#ifndef __CDUNIXH__
|
||||
#define __CDUNIXH__
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface
|
||||
#pragma interface "cdunix.h"
|
||||
#endif
|
||||
|
||||
#ifdef WX_PRECOMP
|
||||
#include "wx/wxprec.h"
|
||||
#else
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
#include "cdbase.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/mmedia/cdbase.h"
|
||||
|
||||
///
|
||||
class WXDLLEXPORT wxCDAudioLinux : public wxCDAudio {
|
||||
@@ -34,7 +32,7 @@ public:
|
||||
///
|
||||
wxCDAudioLinux();
|
||||
///
|
||||
wxCDAudioLinux(const char *dev_name);
|
||||
wxCDAudioLinux(const wxString& dev_name);
|
||||
///
|
||||
virtual ~wxCDAudioLinux();
|
||||
|
||||
@@ -54,7 +52,7 @@ public:
|
||||
virtual inline bool Ok() const { return (m_fd != -1); }
|
||||
protected:
|
||||
///
|
||||
void OpenDevice(const char *dev_name);
|
||||
void OpenDevice(const wxString& dev_name);
|
||||
};
|
||||
|
||||
#endif
|
@@ -12,10 +12,11 @@
|
||||
#pragma interface "sndaiff.h"
|
||||
#endif
|
||||
|
||||
#include <wx/stream.h>
|
||||
#include "sndbase.h"
|
||||
#include "sndcodec.h"
|
||||
#include "sndfile.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/stream.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
#include "wx/mmedia/sndcodec.h"
|
||||
#include "wx/mmedia/sndfile.h"
|
||||
|
||||
//
|
||||
// AIFF codec
|
@@ -12,7 +12,7 @@
|
||||
#pragma interface "sndbase.h"
|
||||
#endif
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include "wx/defs.h"
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// DEFINITIONS
|
||||
@@ -61,6 +61,8 @@ typedef enum {
|
||||
// may happen when you call
|
||||
// wxSoundRouterStream::SetSoundFormat().
|
||||
// - wxSOUND_MEMERR: Not enough memory.
|
||||
// - wxSOUND_NOTSTARTED: You did not start the production using
|
||||
// StartProduction()
|
||||
// ---------------------
|
||||
typedef enum {
|
||||
wxSOUND_NOERROR,
|
||||
@@ -70,7 +72,8 @@ typedef enum {
|
||||
wxSOUND_NOEXACT,
|
||||
wxSOUND_INVSTRM,
|
||||
wxSOUND_NOCODEC,
|
||||
wxSOUND_MEMERROR
|
||||
wxSOUND_MEMERROR,
|
||||
wxSOUND_NOTSTARTED
|
||||
} wxSoundError;
|
||||
|
||||
class WXDLLEXPORT wxSoundStream;
|
@@ -12,7 +12,8 @@
|
||||
#pragma interface "sndcodec.h"
|
||||
#endif
|
||||
|
||||
#include "sndbase.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
|
||||
class wxSoundStreamCodec: public wxSoundStream {
|
||||
public:
|
@@ -12,8 +12,9 @@
|
||||
#pragma interface "sndcpcm.h"
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include "sndcodec.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
#include "wx/mmedia/sndcodec.h"
|
||||
|
||||
//
|
||||
// PCM converter class
|
53
contrib/include/wx/mmedia/sndesd.h
Normal file
@@ -0,0 +1,53 @@
|
||||
// --------------------------------------------------------------------------
|
||||
// Name: sndesd.h
|
||||
// Purpose:
|
||||
// Date: 08/11/1999
|
||||
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
|
||||
// CVSID: $Id$
|
||||
// --------------------------------------------------------------------------
|
||||
#ifndef _WX_SNDESD_H
|
||||
#define _WX_SNDESD_H
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface "sndesd.h"
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
#include "wx/mmedia/sndpcm.h"
|
||||
|
||||
//
|
||||
// ESD output class
|
||||
//
|
||||
|
||||
class wxSoundStreamESD : public wxSoundStream {
|
||||
public:
|
||||
wxSoundStreamESD(const wxString& hostname = wxT("localhost"));
|
||||
~wxSoundStreamESD();
|
||||
|
||||
wxSoundStream& Read(void *buffer, wxUint32 len);
|
||||
wxSoundStream& Write(const void *buffer, wxUint32 len);
|
||||
|
||||
bool SetSoundFormat(const wxSoundFormatBase& format);
|
||||
|
||||
bool StartProduction(int evt);
|
||||
bool StopProduction();
|
||||
|
||||
// You should not call this.
|
||||
void WakeUpEvt(int evt);
|
||||
|
||||
bool QueueFilled() const { return m_q_filled; }
|
||||
protected:
|
||||
int m_fd_input, m_fd_output; // ESD fds
|
||||
int m_tag_input, m_tag_output; // GLIB tags
|
||||
bool m_esd_stop; // Stream started ?
|
||||
bool m_esd_ok; // ESD detected
|
||||
wxString m_hostname; // ESD host
|
||||
bool m_q_filled; // queue filled
|
||||
|
||||
private:
|
||||
void DetectBest(wxSoundFormatPcm *pcm);
|
||||
};
|
||||
|
||||
#endif
|
@@ -8,11 +8,10 @@
|
||||
#ifndef _WX_SNDFILE_H
|
||||
#define _WX_SNDFILE_H
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include <wx/stream.h>
|
||||
#include <stdlib.h>
|
||||
#include "sndbase.h"
|
||||
#include "sndcodec.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/stream.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
#include "wx/mmedia/sndcodec.h"
|
||||
|
||||
#define wxSOUND_INFINITE_TIME ((wxUint32)-1)
|
||||
|
@@ -12,9 +12,10 @@
|
||||
#pragma interface "sndg72x.h"
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include "sndcodec.h"
|
||||
#include "sndbase.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
#include "wx/mmedia/sndcodec.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
|
||||
typedef enum {
|
||||
wxSOUND_G721,
|
72
contrib/include/wx/mmedia/sndmsad.h
Normal file
@@ -0,0 +1,72 @@
|
||||
// --------------------------------------------------------------------------
|
||||
// Name: sndmsad(pcm).h
|
||||
// Purpose: MS ADPCM codec
|
||||
// Date: 25/02/2000
|
||||
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 2000
|
||||
// CVSID: $Id$
|
||||
// --------------------------------------------------------------------------
|
||||
#ifndef _WX_SNDULAW_H
|
||||
#define _WX_SNDULAW_H
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface "sndmsad.h"
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/mmedia/sndcodec.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
|
||||
WX_DEFINE_EXPORTED_ARRAY(wxUint16, wxMSAdpcmCoeffs);
|
||||
|
||||
//
|
||||
// MSADPCM format
|
||||
//
|
||||
class WXDLLEXPORT wxSoundFormatMSAdpcm: public wxSoundFormatBase {
|
||||
public:
|
||||
wxSoundFormatMSAdpcm();
|
||||
~wxSoundFormatMSAdpcm();
|
||||
|
||||
void SetSampleRate(wxUint32 srate);
|
||||
wxUint32 GetSampleRate() const;
|
||||
|
||||
void SetSamplesBlock(wxUint16 sampblock);
|
||||
wxUint16 GetSamplesBlock() const;
|
||||
|
||||
void SetCoefs(wxMSAdpcmCoefs& coefs);
|
||||
wxMSAdpcmCoefs& GetCoefs() const;
|
||||
|
||||
wxSoundFormatType GetType() const { return wxSOUND_ULAW; }
|
||||
wxSoundFormatBase *Clone() const;
|
||||
|
||||
wxUint32 GetTimeFromBytes(wxUint32 bytes) const;
|
||||
wxUint32 GetBytesFromTime(wxUint32 time) const;
|
||||
|
||||
bool operator !=(const wxSoundFormatBase& frmt2) const;
|
||||
|
||||
protected:
|
||||
wxUint32 m_srate;
|
||||
wxMSAdpcmCoefs *m_coefs;
|
||||
};
|
||||
|
||||
//
|
||||
// MS ADPCM converter class
|
||||
//
|
||||
class WXDLLEXPORT wxSoundRouterStream;
|
||||
class WXDLLEXPORT wxSoundStreamAdpcm: public wxSoundStreamCodec {
|
||||
public:
|
||||
wxSoundStreamAdpcm(wxSoundStream& sndio);
|
||||
~wxSoundStreamAdpcm();
|
||||
|
||||
wxSoundStream& Read(void *buffer, wxUint32 len);
|
||||
wxSoundStream& Write(const void *buffer, wxUint32 len);
|
||||
|
||||
bool SetSoundFormat(const wxSoundFormatBase& format);
|
||||
|
||||
wxUint32 GetBestSize() const;
|
||||
|
||||
protected:
|
||||
wxSoundRouterStream *m_router;
|
||||
};
|
||||
|
||||
#endif
|
@@ -12,9 +12,10 @@
|
||||
#pragma interface "sndoss.h"
|
||||
#endif
|
||||
|
||||
#include <wx/string.h>
|
||||
#include "sndbase.h"
|
||||
#include "sndpcm.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
#include "wx/mmedia/sndpcm.h"
|
||||
|
||||
//
|
||||
// OSS output class
|
||||
@@ -22,7 +23,7 @@
|
||||
|
||||
class wxSoundStreamOSS : public wxSoundStream {
|
||||
public:
|
||||
wxSoundStreamOSS(const wxString& dev_name = _T("/dev/dsp"));
|
||||
wxSoundStreamOSS(const wxString& dev_name = wxT("/dev/dsp"));
|
||||
~wxSoundStreamOSS();
|
||||
|
||||
wxSoundStream& Read(void *buffer, wxUint32 len);
|
||||
@@ -39,10 +40,11 @@ class wxSoundStreamOSS : public wxSoundStream {
|
||||
// You should not call this.
|
||||
void WakeUpEvt(int evt);
|
||||
protected:
|
||||
// OSS device
|
||||
int m_fd;
|
||||
wxUint32 m_bufsize;
|
||||
int m_tag;
|
||||
bool m_oss_stop, m_q_filled;
|
||||
bool m_oss_stop, m_oss_ok, m_q_filled;
|
||||
wxString m_devname;
|
||||
|
||||
private:
|
@@ -12,15 +12,15 @@
|
||||
#pragma interface "sndpcm.h"
|
||||
#endif
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include "sndbase.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
|
||||
//
|
||||
// PCM specification class
|
||||
//
|
||||
|
||||
class wxSoundFormatPcm : public wxSoundFormatBase {
|
||||
public:
|
||||
public:
|
||||
wxSoundFormatPcm(wxUint32 srate = 22500, wxUint8 bps = 8,
|
||||
wxUint16 channels = 2, bool sign = TRUE,
|
||||
int order = wxLITTLE_ENDIAN);
|
||||
@@ -46,7 +46,7 @@ class wxSoundFormatPcm : public wxSoundFormatBase {
|
||||
|
||||
bool operator!=(const wxSoundFormatBase& frmt2) const;
|
||||
|
||||
protected:
|
||||
protected:
|
||||
wxUint32 m_srate;
|
||||
wxUint8 m_bps;
|
||||
wxUint16 m_nchan;
|
@@ -13,9 +13,8 @@
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#include "sndcodec.h"
|
||||
#include "sndbase.h"
|
||||
#include "wx/mmedia/sndcodec.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
|
||||
//
|
||||
// ULAW format
|
@@ -12,12 +12,13 @@
|
||||
#pragma interface "sndwav.h"
|
||||
#endif
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include <wx/stream.h>
|
||||
#include <wx/datstrm.h>
|
||||
#include "sndbase.h"
|
||||
#include "sndcodec.h"
|
||||
#include "sndfile.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/stream.h"
|
||||
#include "wx/datstrm.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
#include "wx/mmedia/sndcodec.h"
|
||||
#include "wx/mmedia/sndfile.h"
|
||||
|
||||
//
|
||||
// WAVE codec
|
@@ -8,12 +8,13 @@
|
||||
#ifndef _WX_SNDWIN_H
|
||||
#define _WX_SNDWIN_H
|
||||
|
||||
#include <wx/wxprec.h>
|
||||
#include "sndbase.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/mmedia/sndbase.h"
|
||||
|
||||
typedef struct _wxSoundInternal wxSoundInternal;
|
||||
typedef struct _wxSoundInfoHeader wxSoundInfoHeader;
|
||||
|
||||
// class WXDLLEXPORT wxSoundInternal;
|
||||
class WXDLLEXPORT wxSoundStreamWin : public wxSoundStream {
|
||||
public:
|
||||
wxSoundStreamWin();
|
@@ -36,7 +36,7 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxMMedia2 headers
|
||||
|
||||
#include "vidbase.h"
|
||||
#include "wx/mmedia/vidbase.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// System headers and private types
|
@@ -44,7 +44,7 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxMMedia2 headers
|
||||
|
||||
#include "vidbase.h"
|
||||
#include "wx/mmedia/vidbase.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Internal types
|
@@ -16,7 +16,7 @@
|
||||
#pragma interface "ogldiag.h"
|
||||
#endif
|
||||
|
||||
#include "basic.h"
|
||||
#include <wx/ogl/basic.h>
|
||||
|
||||
class wxDiagram: public wxObject
|
||||
{
|
560
contrib/include/wx/stc/stc.h
Normal file
@@ -0,0 +1,560 @@
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// Name: stc.h
|
||||
// Purpose: A wxWindows implementation of Scintilla. This class is the
|
||||
// one meant to be used directly by wx applications. It does not
|
||||
// derive directly from the Scintilla classes, and in fact there
|
||||
// is no mention of Scintilla classes at all in this header.
|
||||
// This class delegates all method calls and events to the
|
||||
// Scintilla objects and so forth. This allows the use of
|
||||
// Scintilla without polluting the namespace with all the
|
||||
// classes and itentifiers from Scintilla.
|
||||
//
|
||||
// Author: Robin Dunn
|
||||
//
|
||||
// Created: 13-Jan-2000
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2000 by Total Control Software
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __stc_h__
|
||||
#define __stc_h__
|
||||
|
||||
|
||||
#include <wx/wx.h>
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// constants and stuff
|
||||
|
||||
enum wxSTC_UndoType {
|
||||
wxSTC_UndoCollectNone,
|
||||
wxSTC_UndoCollectAutoStart
|
||||
};
|
||||
|
||||
|
||||
enum wxSTC_EOL {
|
||||
wxSTC_EOL_CRLF,
|
||||
wxSTC_EOL_CR,
|
||||
wxSTC_EOL_LF
|
||||
};
|
||||
|
||||
enum wxSTC_EDGE {
|
||||
wxSTC_EDGE_NONE,
|
||||
wxSTC_EDGE_LINE,
|
||||
wxSTC_EDGE_BACKGROUND
|
||||
};
|
||||
|
||||
|
||||
|
||||
const int wxSTC_LEX_STYLE_MAX = 31;
|
||||
const int wxSTC_STYLE_DEFAULT = 32;
|
||||
const int wxSTC_STYLE_LINENUMBER = 33;
|
||||
const int wxSTC_STYLE_BRACELIGHT = 34;
|
||||
const int wxSTC_STYLE_BRACEBAD = 35;
|
||||
const int wxSTC_STYLE_CONTROLCHAR = 36;
|
||||
const int wxSTC_STYLE_MAX = 63;
|
||||
const int wxSTC_STYLE_MASK = 31;
|
||||
|
||||
const int wxSTC_MARKER_MAX = 31;
|
||||
const int wxSTC_MARK_CIRCLE = 0;
|
||||
const int wxSTC_MARK_ROUNDRECT = 1;
|
||||
const int wxSTC_MARK_ARROW = 2;
|
||||
const int wxSTC_MARK_SMALLRECT = 3;
|
||||
const int wxSTC_MARK_SHORTARROW = 4;
|
||||
const int wxSTC_MARK_EMPTY = 5;
|
||||
|
||||
const int wxSTC_INDIC_PLAIN = 0;
|
||||
const int wxSTC_INDIC_SQUIGGLE = 1;
|
||||
const int wxSTC_INDIC_TT = 2;
|
||||
const int wxSTC_INDIC0_MASK = 32;
|
||||
const int wxSTC_INDIC1_MASK = 64;
|
||||
const int wxSTC_INDIC2_MASK = 128;
|
||||
const int wxSTC_INDICS_MASK = (wxSTC_INDIC0_MASK | wxSTC_INDIC1_MASK | wxSTC_INDIC2_MASK);
|
||||
|
||||
|
||||
// key commands
|
||||
enum {
|
||||
wxSTC_CMD_LINEDOWN = 2300,
|
||||
wxSTC_CMD_LINEDOWNEXTEND,
|
||||
wxSTC_CMD_LINEUP,
|
||||
wxSTC_CMD_LINEUPEXTEND,
|
||||
wxSTC_CMD_CHARLEFT,
|
||||
wxSTC_CMD_CHARLEFTEXTEND,
|
||||
wxSTC_CMD_CHARRIGHT,
|
||||
wxSTC_CMD_CHARRIGHTEXTEND,
|
||||
wxSTC_CMD_WORDLEFT,
|
||||
wxSTC_CMD_WORDLEFTEXTEND,
|
||||
wxSTC_CMD_WORDRIGHT,
|
||||
wxSTC_CMD_WORDRIGHTEXTEND,
|
||||
wxSTC_CMD_HOME,
|
||||
wxSTC_CMD_HOMEEXTEND,
|
||||
wxSTC_CMD_LINEEND,
|
||||
wxSTC_CMD_LINEENDEXTEND,
|
||||
wxSTC_CMD_DOCUMENTSTART,
|
||||
wxSTC_CMD_DOCUMENTSTARTEXTEND,
|
||||
wxSTC_CMD_DOCUMENTEND,
|
||||
wxSTC_CMD_DOCUMENTENDEXTEND,
|
||||
wxSTC_CMD_PAGEUP,
|
||||
wxSTC_CMD_PAGEUPEXTEND,
|
||||
wxSTC_CMD_PAGEDOWN,
|
||||
wxSTC_CMD_PAGEDOWNEXTEND,
|
||||
wxSTC_CMD_EDITTOGGLEOVERTYPE,
|
||||
wxSTC_CMD_CANCEL,
|
||||
wxSTC_CMD_DELETEBACK,
|
||||
wxSTC_CMD_TAB,
|
||||
wxSTC_CMD_BACKTAB,
|
||||
wxSTC_CMD_NEWLINE,
|
||||
wxSTC_CMD_FORMFEED,
|
||||
wxSTC_CMD_VCHOME,
|
||||
wxSTC_CMD_VCHOMEEXTEND,
|
||||
wxSTC_CMD_ZOOMIN,
|
||||
wxSTC_CMD_ZOOMOUT,
|
||||
wxSTC_CMD_DELWORDLEFT,
|
||||
wxSTC_CMD_DELWORDRIGHT
|
||||
};
|
||||
|
||||
|
||||
enum wxSTC_LEX {
|
||||
wxSTC_LEX_CONTAINER=0,
|
||||
wxSTC_LEX_NULL,
|
||||
wxSTC_LEX_PYTHON,
|
||||
wxSTC_LEX_CPP,
|
||||
wxSTC_LEX_HTML,
|
||||
wxSTC_LEX_XML,
|
||||
wxSTC_LEX_PERL,
|
||||
wxSTC_LEX_SQL,
|
||||
wxSTC_LEX_VB,
|
||||
wxSTC_LEX_PROPERTIES,
|
||||
wxSTC_LEX_ERRORLIST,
|
||||
wxSTC_LEX_MAKEFILE,
|
||||
wxSTC_LEX_BATCH,
|
||||
};
|
||||
|
||||
|
||||
|
||||
const int wxSTC_CARET_SLOP = 0x01;
|
||||
const int WXSTC_CARET_CENTER = 0x02;
|
||||
const int wxSTC_CARET_STRICT = 0x04;
|
||||
|
||||
const int wxSTC_MARGIN_SYMBOL = 0;
|
||||
const int wxSTC_MARGIN_NUMBER = 1;
|
||||
|
||||
|
||||
class ScintillaWX; // forward declare
|
||||
class WordList;
|
||||
struct SCNotification;
|
||||
|
||||
|
||||
extern const wxChar* wxSTCNameStr;
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
class wxStyledTextCtrl : public wxControl {
|
||||
public:
|
||||
|
||||
wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize, long style = 0,
|
||||
const wxString& name = wxSTCNameStr);
|
||||
~wxStyledTextCtrl();
|
||||
|
||||
|
||||
|
||||
// Text retrieval and modification
|
||||
wxString GetText();
|
||||
bool SetText(const wxString& text);
|
||||
wxString GetLine(int line);
|
||||
void ReplaceSelection(const wxString& text);
|
||||
void SetReadOnly(bool readOnly);
|
||||
bool GetReadOnly();
|
||||
wxString GetTextRange(int startPos, int endPos);
|
||||
wxString GetStyledTextRange(int startPos, int endPos);
|
||||
void GetTextRange(int startPos, int endPos, char* buff);
|
||||
void GetStyledTextRange(int startPos, int endPos, char* buff);
|
||||
void AddText(const wxString& text);
|
||||
void AddStyledText(const wxString& text);
|
||||
void InsertText(int pos, const wxString& text);
|
||||
void ClearAll();
|
||||
char GetCharAt(int pos);
|
||||
char GetStyleAt(int pos);
|
||||
void SetStyleBits(int bits);
|
||||
int GetStyleBits();
|
||||
|
||||
|
||||
// Clipboard
|
||||
void Cut();
|
||||
void Copy();
|
||||
void Paste();
|
||||
bool CanPaste();
|
||||
void ClearClipbrd(); // avoiding name conflict with virtual in wxWindow
|
||||
|
||||
|
||||
// Undo and Redo
|
||||
void Undo();
|
||||
bool CanUndo();
|
||||
void EmptyUndoBuffer();
|
||||
void Redo();
|
||||
bool CanRedo();
|
||||
void SetUndoCollection(wxSTC_UndoType type);
|
||||
wxSTC_UndoType GetUndoCollection();
|
||||
void BeginUndoAction();
|
||||
void EndUndoAction();
|
||||
|
||||
|
||||
// Selection and information
|
||||
void GetSelection(int* startPos, int* endPos);
|
||||
void SetSelection(int startPos, int endPos);
|
||||
wxString GetSelectedText();
|
||||
void HideSelection(bool hide);
|
||||
bool GetHideSelection();
|
||||
|
||||
int GetTextLength();
|
||||
int GetFirstVisibleLine();
|
||||
bool GetModified();
|
||||
int GetLineCount();
|
||||
wxRect GetRect();
|
||||
int GetLineFromPos(int pos);
|
||||
int GetLineStartPos(int line);
|
||||
int GetLineLengthAtPos(int pos);
|
||||
int GetLineLength(int line);
|
||||
wxString GetCurrentLineText(int* linePos=NULL);
|
||||
int GetCurrentLine();
|
||||
int PositionFromPoint(wxPoint pt);
|
||||
int LineFromPoint(wxPoint pt);
|
||||
wxPoint PointFromPosition(int pos);
|
||||
int GetCurrentPos();
|
||||
int GetAnchor();
|
||||
void SelectAll();
|
||||
void SetCurrentPosition(int pos);
|
||||
void SetAnchor(int pos);
|
||||
void GotoPos(int pos);
|
||||
void GotoLine(int line);
|
||||
void ChangePosition(int delta, bool extendSelection);
|
||||
void PageMove(int cmdKey, bool extendSelection);
|
||||
|
||||
void ScrollBy(int columnDelta, int lineDelta);
|
||||
void ScrollToLine(int line);
|
||||
void ScrollToColumn(int column);
|
||||
void EnsureCaretVisible();
|
||||
void SetCaretPolicy(int policy, int slop=0);
|
||||
int GetSelectionType();
|
||||
|
||||
|
||||
|
||||
// Searching
|
||||
int FindText(int minPos, int maxPos, const wxString& text,
|
||||
bool caseSensitive, bool wholeWord);
|
||||
void SearchAnchor();
|
||||
int SearchNext(const wxString& text, bool caseSensitive, bool wholeWord);
|
||||
int SearchPrev(const wxString& text, bool caseSensitive, bool wholeWord);
|
||||
|
||||
|
||||
// Visible whitespace
|
||||
bool GetViewWhitespace();
|
||||
void SetViewWhitespace(bool visible);
|
||||
|
||||
|
||||
// Line endings
|
||||
wxSTC_EOL GetEOLMode();
|
||||
void SetEOLMode(wxSTC_EOL mode);
|
||||
bool GetViewEOL();
|
||||
void SetViewEOL(bool visible);
|
||||
void ConvertEOL(wxSTC_EOL mode);
|
||||
|
||||
|
||||
// Styling
|
||||
int GetEndStyled();
|
||||
void StartStyling(int pos, int mask);
|
||||
void SetStyleFor(int length, int style);
|
||||
void SetStyleBytes(int length, char* styleBytes);
|
||||
|
||||
|
||||
// Style Definition
|
||||
void StyleClearAll();
|
||||
void StyleResetDefault();
|
||||
void StyleSetSpec(int styleNum, const wxString& spec);
|
||||
void StyleSetForeground(int styleNum, const wxColour& colour);
|
||||
void StyleSetBackground(int styleNum, const wxColour& colour);
|
||||
void StyleSetFont(int styleNum, wxFont& font);
|
||||
void StyleSetFontAttr(int styleNum, int size, const wxString& faceName, bool bold, bool italic);
|
||||
void StyleSetBold(int styleNum, bool bold);
|
||||
void StyleSetItalic(int styleNum, bool italic);
|
||||
void StyleSetFaceName(int styleNum, const wxString& faceName);
|
||||
void StyleSetSize(int styleNum, int pointSize);
|
||||
void StyleSetEOLFilled(int styleNum, bool fillEOL);
|
||||
|
||||
|
||||
// Margins in the edit area
|
||||
int GetLeftMargin();
|
||||
int GetRightMargin();
|
||||
void SetMargins(int left, int right);
|
||||
|
||||
|
||||
// Margins for selection, markers, etc.
|
||||
void SetMarginType(int margin, int type);
|
||||
int GetMarginType(int margin);
|
||||
void SetMarginWidth(int margin, int pixelWidth);
|
||||
int GetMarginWidth(int margin);
|
||||
void SetMarginMask(int margin, int mask);
|
||||
int GetMarginMask(int margin);
|
||||
void SetMarginSensitive(int margin, bool sensitive);
|
||||
bool GetMarginSensitive(int margin);
|
||||
|
||||
|
||||
// Selection and Caret styles
|
||||
void SetSelectionForeground(const wxColour& colour);
|
||||
void SetSelectionBackground(const wxColour& colour);
|
||||
void SetCaretForeground(const wxColour& colour);
|
||||
int GetCaretPeriod();
|
||||
void SetCaretPeriod(int milliseconds);
|
||||
|
||||
|
||||
// Other settings
|
||||
void SetBufferedDraw(bool isBuffered);
|
||||
void SetTabWidth(int numChars);
|
||||
void SetWordChars(const wxString& wordChars);
|
||||
|
||||
|
||||
// Brace highlighting
|
||||
void BraceHighlight(int pos1, int pos2);
|
||||
void BraceBadlight(int pos);
|
||||
int BraceMatch(int pos, int maxReStyle=0);
|
||||
|
||||
|
||||
// Markers
|
||||
void MarkerDefine(int markerNumber, int markerSymbol,
|
||||
const wxColour& foreground,
|
||||
const wxColour& background);
|
||||
void MarkerSetType(int markerNumber, int markerSymbol);
|
||||
void MarkerSetForeground(int markerNumber, const wxColour& colour);
|
||||
void MarkerSetBackground(int markerNumber, const wxColour& colour);
|
||||
int MarkerAdd(int line, int markerNumber);
|
||||
void MarkerDelete(int line, int markerNumber);
|
||||
void MarkerDeleteAll(int markerNumber);
|
||||
int MarkerGet(int line);
|
||||
int MarkerGetNextLine(int lineStart, int markerMask);
|
||||
int MarkerGetPrevLine(int lineStart, int markerMask);
|
||||
int MarkerLineFromHandle(int handle);
|
||||
void MarkerDeleteHandle(int handle);
|
||||
|
||||
|
||||
// Indicators
|
||||
void IndicatorSetStyle(int indicNum, int indicStyle);
|
||||
int IndicatorGetStyle(int indicNum);
|
||||
void IndicatorSetColour(int indicNum, const wxColour& colour);
|
||||
|
||||
|
||||
// Auto completion
|
||||
void AutoCompShow(const wxString& listOfWords);
|
||||
void AutoCompCancel();
|
||||
bool AutoCompActive();
|
||||
int AutoCompPosAtStart();
|
||||
void AutoCompComplete();
|
||||
void AutoCompStopChars(const wxString& stopChars);
|
||||
|
||||
|
||||
// Call tips
|
||||
void CallTipShow(int pos, const wxString& text);
|
||||
void CallTipCancel();
|
||||
bool CallTipActive();
|
||||
int CallTipPosAtStart();
|
||||
void CallTipSetHighlight(int start, int end);
|
||||
void CallTipSetBackground(const wxColour& colour);
|
||||
|
||||
|
||||
// Key bindings
|
||||
void CmdKeyAssign(int key, int modifiers, int cmd);
|
||||
void CmdKeyClear(int key, int modifiers);
|
||||
void CmdKeyClearAll();
|
||||
void CmdKeyExecute(int cmd);
|
||||
|
||||
|
||||
// Print formatting
|
||||
int FormatRange(bool doDraw,
|
||||
int startPos,
|
||||
int endPos,
|
||||
wxDC* draw,
|
||||
wxDC* target, // Why does it use two? Can they be the same?
|
||||
wxRect renderRect,
|
||||
wxRect pageRect);
|
||||
|
||||
|
||||
// Document Sharing (multiple views)
|
||||
void* GetDocument();
|
||||
void SetDocument(void* document);
|
||||
// TODO: create a wx wrapper for Scintilla's document class
|
||||
|
||||
|
||||
// Folding
|
||||
int VisibleFromDocLine(int docLine);
|
||||
int DocLineFromVisible(int displayLine);
|
||||
int SetFoldLevel(int line, int level);
|
||||
int GetFoldLevel(int line);
|
||||
int GetLastChild(int line);
|
||||
int GetFoldParent(int line);
|
||||
void ShowLines(int lineStart, int lineEnd);
|
||||
void HideLines(int lineStart, int lineEnd);
|
||||
bool GetLineVisible(int line);
|
||||
void SetFoldExpanded(int line);
|
||||
bool GetFoldExpanded(int line);
|
||||
void ToggleFold(int line);
|
||||
void EnsureVisible(int line);
|
||||
|
||||
|
||||
// Long Lines
|
||||
int GetEdgeColumn();
|
||||
void SetEdgeColumn(int column);
|
||||
wxSTC_EDGE GetEdgeMode();
|
||||
void SetEdgeMode(wxSTC_EDGE mode);
|
||||
wxColour GetEdgeColour();
|
||||
void SetEdgeColour(const wxColour& colour);
|
||||
|
||||
|
||||
// Lexer
|
||||
void SetLexer(wxSTC_LEX lexer);
|
||||
wxSTC_LEX GetLexer();
|
||||
void Colourise(int start, int end);
|
||||
void SetProperty(const wxString& key, const wxString& value);
|
||||
void SetKeywords(int keywordSet, const wxString& keywordList);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
// Event handlers
|
||||
void OnPaint(wxPaintEvent& evt);
|
||||
void OnScrollWin(wxScrollWinEvent& evt);
|
||||
void OnSize(wxSizeEvent& evt);
|
||||
void OnMouseLeftDown(wxMouseEvent& evt);
|
||||
void OnMouseMove(wxMouseEvent& evt);
|
||||
void OnMouseLeftUp(wxMouseEvent& evt);
|
||||
void OnMouseRightUp(wxMouseEvent& evt);
|
||||
void OnChar(wxKeyEvent& evt);
|
||||
void OnLoseFocus(wxFocusEvent& evt);
|
||||
void OnGainFocus(wxFocusEvent& evt);
|
||||
void OnSysColourChanged(wxSysColourChangedEvent& evt);
|
||||
void OnEraseBackground(wxEraseEvent& evt);
|
||||
void OnMenu(wxCommandEvent& evt);
|
||||
|
||||
|
||||
// Turn notifications from Scintilla into events
|
||||
void NotifyChange();
|
||||
void NotifyParent(SCNotification* scn);
|
||||
|
||||
long SendMsg(int msg, long wp=0, long lp=0);
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
ScintillaWX* m_swx;
|
||||
wxStopWatch m_stopWatch;
|
||||
bool m_readOnly;
|
||||
wxSTC_UndoType m_undoType;
|
||||
|
||||
|
||||
friend class ScintillaWX;
|
||||
friend class Platform;
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
class wxStyledTextEvent : public wxCommandEvent {
|
||||
public:
|
||||
wxStyledTextEvent(wxEventType commandType, int id);
|
||||
~wxStyledTextEvent() {}
|
||||
|
||||
void SetPosition(int pos) { m_position = pos; }
|
||||
void SetKey(int k) { m_key = k; }
|
||||
void SetModifiers(int m) { m_modifiers = m; }
|
||||
void SetModificationType(int t) { m_modificationType = t; }
|
||||
void SetText(const char* t) { m_text = t; }
|
||||
void SetLength(int len) { m_length = len; }
|
||||
void SetLinesAdded(int num) { m_linesAdded = num; }
|
||||
void SetLine(int val) { m_line = val; }
|
||||
void SetFoldLevelNow(int val) { m_foldLevelNow = val; }
|
||||
void SetFoldLevelPrev(int val) { m_foldLevelPrev = val; }
|
||||
void SetMargin(int val) { m_margin = val; }
|
||||
void SetMessage(int val) { m_message = val; }
|
||||
void SetWParam(int val) { m_wParam = val; }
|
||||
void SetLParam(int val) { m_lParam = val; }
|
||||
|
||||
int GetPosition() const { return m_position; }
|
||||
int GetKey() const { return m_key; }
|
||||
int GetModifiers() const { return m_modifiers; }
|
||||
int GetModificationType() const { return m_modificationType; }
|
||||
wxString GetText() const { return m_text; }
|
||||
int GetLength() const { return m_length; }
|
||||
int GetLinesAdded() const { return m_linesAdded; }
|
||||
int GetLine() const { return m_line; }
|
||||
int GetFoldLevelNow() const { return m_foldLevelNow; }
|
||||
int GetFoldLevelPrev() const { return m_foldLevelPrev; }
|
||||
int GetMargin() const { return m_margin; }
|
||||
int GetMessage() const { return m_message; }
|
||||
int GetWParam() const { return m_wParam; }
|
||||
int GetLParam() const { return m_lParam; }
|
||||
|
||||
bool GetShift() const;
|
||||
bool GetControl() const;
|
||||
bool GetAlt() const;
|
||||
|
||||
void CopyObject(wxObject& obj) const;
|
||||
|
||||
private:
|
||||
int m_position;
|
||||
int m_key;
|
||||
int m_modifiers;
|
||||
|
||||
int m_modificationType; // wxEVT_STC_MODIFIED
|
||||
wxString m_text;
|
||||
int m_length;
|
||||
int m_linesAdded;
|
||||
int m_line;
|
||||
int m_foldLevelNow;
|
||||
int m_foldLevelPrev;
|
||||
|
||||
int m_margin; // wxEVT_STC_MARGINCLICK
|
||||
|
||||
int m_message; // wxEVT_STC_MACRORECORD
|
||||
int m_wParam;
|
||||
int m_lParam;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
enum {
|
||||
wxEVT_STC_CHANGE = 1650,
|
||||
wxEVT_STC_STYLENEEDED,
|
||||
wxEVT_STC_CHARADDED,
|
||||
wxEVT_STC_UPDATEUI,
|
||||
wxEVT_STC_SAVEPOINTREACHED,
|
||||
wxEVT_STC_SAVEPOINTLEFT,
|
||||
wxEVT_STC_ROMODIFYATTEMPT,
|
||||
wxEVT_STC_DOUBLECLICK,
|
||||
wxEVT_STC_MODIFIED,
|
||||
wxEVT_STC_KEY,
|
||||
wxEVT_STC_MACRORECORD,
|
||||
wxEVT_STC_MARGINCLICK,
|
||||
wxEVT_STC_NEEDSHOWN
|
||||
};
|
||||
|
||||
typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
|
||||
|
||||
#define EVT_STC_CHANGE(id, fn) { wxEVT_STC_CHANGE, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_STC_STYLENEEDED(id, fn) { wxEVT_STC_STYLENEEDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_STC_CHARADDED(id, fn) { wxEVT_STC_CHARADDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_STC_UPDATEUI(id, fn) { wxEVT_STC_UPDATEUI, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_STC_SAVEPOINTREACHED(id, fn) { wxEVT_STC_SAVEPOINTREACHED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_STC_SAVEPOINTLEFT(id, fn) { wxEVT_STC_SAVEPOINTLEFT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_STC_ROMODIFYATTEMPT(id, fn) { wxEVT_STC_ROMODIFYATTEMPT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_STC_DOUBLECLICK(id, fn) { wxEVT_STC_DOUBLECLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_STC_MODIFIED(id, fn) { wxEVT_STC_MODIFIED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_STC_CMDKEY(id, fn) { wxEVT_STC_CMDKEY, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||
#define EVT_STC_UNKNOWNCMDKEY(id, fn) { wxEVT_STC_UNKNOWNCMDKEY, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
#endif
|
||||
|
||||
|