]> git.saurik.com Git - wxWidgets.git/commitdiff
Make wxBackingFile internal, and remove wxZipFSHander, add a typedef to
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 29 Oct 2006 20:06:45 +0000 (20:06 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 29 Oct 2006 20:06:45 +0000 (20:06 +0000)
wxArchiveFSHandler for compatibilty.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

30 files changed:
Makefile.in
build/bakefiles/files.bkl
build/msw/makefile.bcc
build/msw/makefile.gcc
build/msw/makefile.vc
build/msw/makefile.wat
build/msw/wx_base.dsp
configure
configure.in
include/wx/chkconf.h
include/wx/fs_zip.h
include/wx/mac/setup0.h
include/wx/motif/setup0.h
include/wx/msw/setup0.h
include/wx/msw/wince/setup.h
include/wx/os2/setup0.h
include/wx/palmos/setup0.h
include/wx/private/fileback.h [new file with mode: 0644]
include/wx/setup_inc.h
include/wx/univ/setup0.h
setup.h.in
setup.h_vms
src/common/fileback.cpp
src/common/filesys.cpp
src/common/fs_arc.cpp
src/common/fs_zip.cpp [deleted file]
src/wxWindows.dsp
wxGTK.spec
wxMotif.spec
wxX11.spec

index a00b8d39e23e04e87c5c5fbba3f3390104634859..f787daa13fa9d329b0aaac0ccb8c3cc632e988c9 100644 (file)
@@ -252,7 +252,6 @@ ALL_BASE_HEADERS =  \
        wx/features.h \
        wx/ffile.h \
        wx/file.h \
-       wx/fileback.h \
        wx/fileconf.h \
        wx/filefn.h \
        wx/filename.h \
@@ -387,7 +386,6 @@ ALL_PORTS_BASE_HEADERS =  \
        wx/features.h \
        wx/ffile.h \
        wx/file.h \
-       wx/fileback.h \
        wx/fileconf.h \
        wx/filefn.h \
        wx/filename.h \
@@ -554,7 +552,6 @@ ALL_BASE_SOURCES =  \
        src/common/fmapbase.cpp \
        src/common/fs_arc.cpp \
        src/common/fs_filter.cpp \
-       src/common/fs_zip.cpp \
        src/common/hash.cpp \
        src/common/hashmap.cpp \
        src/common/init.cpp \
@@ -710,7 +707,6 @@ MONODLL_OBJECTS =  \
        monodll_fmapbase.o \
        monodll_fs_arc.o \
        monodll_fs_filter.o \
-       monodll_fs_zip.o \
        monodll_hash.o \
        monodll_hashmap.o \
        monodll_init.o \
@@ -810,7 +806,6 @@ MONOLIB_OBJECTS =  \
        monolib_fmapbase.o \
        monolib_fs_arc.o \
        monolib_fs_filter.o \
-       monolib_fs_zip.o \
        monolib_hash.o \
        monolib_hashmap.o \
        monolib_init.o \
@@ -912,7 +907,6 @@ BASEDLL_OBJECTS =  \
        basedll_fmapbase.o \
        basedll_fs_arc.o \
        basedll_fs_filter.o \
-       basedll_fs_zip.o \
        basedll_hash.o \
        basedll_hashmap.o \
        basedll_init.o \
@@ -997,7 +991,6 @@ BASELIB_OBJECTS =  \
        baselib_fmapbase.o \
        baselib_fs_arc.o \
        baselib_fs_filter.o \
-       baselib_fs_zip.o \
        baselib_hash.o \
        baselib_hashmap.o \
        baselib_init.o \
@@ -12247,9 +12240,6 @@ monodll_fs_arc.o: $(srcdir)/src/common/fs_arc.cpp $(MONODLL_ODEP)
 monodll_fs_filter.o: $(srcdir)/src/common/fs_filter.cpp $(MONODLL_ODEP)
        $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/common/fs_filter.cpp
 
-monodll_fs_zip.o: $(srcdir)/src/common/fs_zip.cpp $(MONODLL_ODEP)
-       $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/common/fs_zip.cpp
-
 monodll_hash.o: $(srcdir)/src/common/hash.cpp $(MONODLL_ODEP)
        $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/common/hash.cpp
 
@@ -16345,9 +16335,6 @@ monolib_fs_arc.o: $(srcdir)/src/common/fs_arc.cpp $(MONOLIB_ODEP)
 monolib_fs_filter.o: $(srcdir)/src/common/fs_filter.cpp $(MONOLIB_ODEP)
        $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/common/fs_filter.cpp
 
-monolib_fs_zip.o: $(srcdir)/src/common/fs_zip.cpp $(MONOLIB_ODEP)
-       $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/common/fs_zip.cpp
-
 monolib_hash.o: $(srcdir)/src/common/hash.cpp $(MONOLIB_ODEP)
        $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/common/hash.cpp
 
@@ -20446,9 +20433,6 @@ basedll_fs_arc.o: $(srcdir)/src/common/fs_arc.cpp $(BASEDLL_ODEP)
 basedll_fs_filter.o: $(srcdir)/src/common/fs_filter.cpp $(BASEDLL_ODEP)
        $(CXXC) -c -o $@ $(BASEDLL_CXXFLAGS) $(srcdir)/src/common/fs_filter.cpp
 
-basedll_fs_zip.o: $(srcdir)/src/common/fs_zip.cpp $(BASEDLL_ODEP)
-       $(CXXC) -c -o $@ $(BASEDLL_CXXFLAGS) $(srcdir)/src/common/fs_zip.cpp
-
 basedll_hash.o: $(srcdir)/src/common/hash.cpp $(BASEDLL_ODEP)
        $(CXXC) -c -o $@ $(BASEDLL_CXXFLAGS) $(srcdir)/src/common/hash.cpp
 
@@ -21034,9 +21018,6 @@ baselib_fs_arc.o: $(srcdir)/src/common/fs_arc.cpp $(BASELIB_ODEP)
 baselib_fs_filter.o: $(srcdir)/src/common/fs_filter.cpp $(BASELIB_ODEP)
        $(CXXC) -c -o $@ $(BASELIB_CXXFLAGS) $(srcdir)/src/common/fs_filter.cpp
 
-baselib_fs_zip.o: $(srcdir)/src/common/fs_zip.cpp $(BASELIB_ODEP)
-       $(CXXC) -c -o $@ $(BASELIB_CXXFLAGS) $(srcdir)/src/common/fs_zip.cpp
-
 baselib_hash.o: $(srcdir)/src/common/hash.cpp $(BASELIB_ODEP)
        $(CXXC) -c -o $@ $(BASELIB_CXXFLAGS) $(srcdir)/src/common/hash.cpp
 
index 93225d548243ff4fe1f0d73d5cb4c1d7d70f21f9..cbd6fbce03c2cb64177a3d3eb44982463ee5c2b3 100644 (file)
@@ -316,7 +316,6 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
     src/common/fmapbase.cpp
     src/common/fs_arc.cpp
     src/common/fs_filter.cpp
-    src/common/fs_zip.cpp
     src/common/hash.cpp
     src/common/hashmap.cpp
     src/common/init.cpp
@@ -395,7 +394,6 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
     wx/features.h
     wx/ffile.h
     wx/file.h
-    wx/fileback.h
     wx/fileconf.h
     wx/filefn.h
     wx/filename.h
index 5e36077a7ebe876bc6603b9aa5719f9371d2ae20..795079bdcc02230730768f4e63e6257952eed66b 100644 (file)
@@ -230,7 +230,6 @@ MONODLL_OBJECTS =  \
        $(OBJS)\monodll_fmapbase.obj \
        $(OBJS)\monodll_fs_arc.obj \
        $(OBJS)\monodll_fs_filter.obj \
-       $(OBJS)\monodll_fs_zip.obj \
        $(OBJS)\monodll_hash.obj \
        $(OBJS)\monodll_hashmap.obj \
        $(OBJS)\monodll_init.obj \
@@ -351,7 +350,6 @@ MONOLIB_OBJECTS =  \
        $(OBJS)\monolib_fmapbase.obj \
        $(OBJS)\monolib_fs_arc.obj \
        $(OBJS)\monolib_fs_filter.obj \
-       $(OBJS)\monolib_fs_zip.obj \
        $(OBJS)\monolib_hash.obj \
        $(OBJS)\monolib_hashmap.obj \
        $(OBJS)\monolib_init.obj \
@@ -473,7 +471,6 @@ BASEDLL_OBJECTS =  \
        $(OBJS)\basedll_fmapbase.obj \
        $(OBJS)\basedll_fs_arc.obj \
        $(OBJS)\basedll_fs_filter.obj \
-       $(OBJS)\basedll_fs_zip.obj \
        $(OBJS)\basedll_hash.obj \
        $(OBJS)\basedll_hashmap.obj \
        $(OBJS)\basedll_init.obj \
@@ -579,7 +576,6 @@ BASELIB_OBJECTS =  \
        $(OBJS)\baselib_fmapbase.obj \
        $(OBJS)\baselib_fs_arc.obj \
        $(OBJS)\baselib_fs_filter.obj \
-       $(OBJS)\baselib_fs_zip.obj \
        $(OBJS)\baselib_hash.obj \
        $(OBJS)\baselib_hashmap.obj \
        $(OBJS)\baselib_init.obj \
@@ -4593,9 +4589,6 @@ $(OBJS)\monodll_fs_arc.obj: ..\..\src\common\fs_arc.cpp
 $(OBJS)\monodll_fs_filter.obj: ..\..\src\common\fs_filter.cpp
        $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) $**
 
-$(OBJS)\monodll_fs_zip.obj: ..\..\src\common\fs_zip.cpp
-       $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) $**
-
 $(OBJS)\monodll_hash.obj: ..\..\src\common\hash.cpp
        $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) $**
 
@@ -6577,9 +6570,6 @@ $(OBJS)\monolib_fs_arc.obj: ..\..\src\common\fs_arc.cpp
 $(OBJS)\monolib_fs_filter.obj: ..\..\src\common\fs_filter.cpp
        $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) $**
 
-$(OBJS)\monolib_fs_zip.obj: ..\..\src\common\fs_zip.cpp
-       $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) $**
-
 $(OBJS)\monolib_hash.obj: ..\..\src\common\hash.cpp
        $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) $**
 
@@ -8564,9 +8554,6 @@ $(OBJS)\basedll_fs_arc.obj: ..\..\src\common\fs_arc.cpp
 $(OBJS)\basedll_fs_filter.obj: ..\..\src\common\fs_filter.cpp
        $(CXX) -q -c -P -o$@ $(BASEDLL_CXXFLAGS) $**
 
-$(OBJS)\basedll_fs_zip.obj: ..\..\src\common\fs_zip.cpp
-       $(CXX) -q -c -P -o$@ $(BASEDLL_CXXFLAGS) $**
-
 $(OBJS)\basedll_hash.obj: ..\..\src\common\hash.cpp
        $(CXX) -q -c -P -o$@ $(BASEDLL_CXXFLAGS) $**
 
@@ -8834,9 +8821,6 @@ $(OBJS)\baselib_fs_arc.obj: ..\..\src\common\fs_arc.cpp
 $(OBJS)\baselib_fs_filter.obj: ..\..\src\common\fs_filter.cpp
        $(CXX) -q -c -P -o$@ $(BASELIB_CXXFLAGS) $**
 
-$(OBJS)\baselib_fs_zip.obj: ..\..\src\common\fs_zip.cpp
-       $(CXX) -q -c -P -o$@ $(BASELIB_CXXFLAGS) $**
-
 $(OBJS)\baselib_hash.obj: ..\..\src\common\hash.cpp
        $(CXX) -q -c -P -o$@ $(BASELIB_CXXFLAGS) $**
 
index d9e5c1b77c77f95e2adb7c3f1f5f742817cf844c..c018c4987731091582c9104840ad6c6144ce7c2c 100644 (file)
@@ -216,7 +216,6 @@ MONODLL_OBJECTS =  \
        $(OBJS)\monodll_fmapbase.o \
        $(OBJS)\monodll_fs_arc.o \
        $(OBJS)\monodll_fs_filter.o \
-       $(OBJS)\monodll_fs_zip.o \
        $(OBJS)\monodll_hash.o \
        $(OBJS)\monodll_hashmap.o \
        $(OBJS)\monodll_init.o \
@@ -337,7 +336,6 @@ MONOLIB_OBJECTS =  \
        $(OBJS)\monolib_fmapbase.o \
        $(OBJS)\monolib_fs_arc.o \
        $(OBJS)\monolib_fs_filter.o \
-       $(OBJS)\monolib_fs_zip.o \
        $(OBJS)\monolib_hash.o \
        $(OBJS)\monolib_hashmap.o \
        $(OBJS)\monolib_init.o \
@@ -460,7 +458,6 @@ BASEDLL_OBJECTS =  \
        $(OBJS)\basedll_fmapbase.o \
        $(OBJS)\basedll_fs_arc.o \
        $(OBJS)\basedll_fs_filter.o \
-       $(OBJS)\basedll_fs_zip.o \
        $(OBJS)\basedll_hash.o \
        $(OBJS)\basedll_hashmap.o \
        $(OBJS)\basedll_init.o \
@@ -566,7 +563,6 @@ BASELIB_OBJECTS =  \
        $(OBJS)\baselib_fmapbase.o \
        $(OBJS)\baselib_fs_arc.o \
        $(OBJS)\baselib_fs_filter.o \
-       $(OBJS)\baselib_fs_zip.o \
        $(OBJS)\baselib_hash.o \
        $(OBJS)\baselib_hashmap.o \
        $(OBJS)\baselib_init.o \
@@ -4710,9 +4706,6 @@ $(OBJS)\monodll_fs_arc.o: ../../src/common/fs_arc.cpp
 $(OBJS)\monodll_fs_filter.o: ../../src/common/fs_filter.cpp
        $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<
 
-$(OBJS)\monodll_fs_zip.o: ../../src/common/fs_zip.cpp
-       $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<
-
 $(OBJS)\monodll_hash.o: ../../src/common/hash.cpp
        $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<
 
@@ -6794,9 +6787,6 @@ $(OBJS)\monolib_fs_arc.o: ../../src/common/fs_arc.cpp
 $(OBJS)\monolib_fs_filter.o: ../../src/common/fs_filter.cpp
        $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<
 
-$(OBJS)\monolib_fs_zip.o: ../../src/common/fs_zip.cpp
-       $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<
-
 $(OBJS)\monolib_hash.o: ../../src/common/hash.cpp
        $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<
 
@@ -8881,9 +8871,6 @@ $(OBJS)\basedll_fs_arc.o: ../../src/common/fs_arc.cpp
 $(OBJS)\basedll_fs_filter.o: ../../src/common/fs_filter.cpp
        $(CXX) -c -o $@ $(BASEDLL_CXXFLAGS) $(CPPDEPS) $<
 
-$(OBJS)\basedll_fs_zip.o: ../../src/common/fs_zip.cpp
-       $(CXX) -c -o $@ $(BASEDLL_CXXFLAGS) $(CPPDEPS) $<
-
 $(OBJS)\basedll_hash.o: ../../src/common/hash.cpp
        $(CXX) -c -o $@ $(BASEDLL_CXXFLAGS) $(CPPDEPS) $<
 
@@ -9151,9 +9138,6 @@ $(OBJS)\baselib_fs_arc.o: ../../src/common/fs_arc.cpp
 $(OBJS)\baselib_fs_filter.o: ../../src/common/fs_filter.cpp
        $(CXX) -c -o $@ $(BASELIB_CXXFLAGS) $(CPPDEPS) $<
 
-$(OBJS)\baselib_fs_zip.o: ../../src/common/fs_zip.cpp
-       $(CXX) -c -o $@ $(BASELIB_CXXFLAGS) $(CPPDEPS) $<
-
 $(OBJS)\baselib_hash.o: ../../src/common/hash.cpp
        $(CXX) -c -o $@ $(BASELIB_CXXFLAGS) $(CPPDEPS) $<
 
index 32582c77fe9d4a3ac955e410ff550ea7e536121a..299ded5f51dd8b6cf6b87b2a6e5a398448fe7716 100644 (file)
@@ -231,7 +231,6 @@ MONODLL_OBJECTS =  \
        $(OBJS)\monodll_fmapbase.obj \
        $(OBJS)\monodll_fs_arc.obj \
        $(OBJS)\monodll_fs_filter.obj \
-       $(OBJS)\monodll_fs_zip.obj \
        $(OBJS)\monodll_hash.obj \
        $(OBJS)\monodll_hashmap.obj \
        $(OBJS)\monodll_init.obj \
@@ -357,7 +356,6 @@ MONOLIB_OBJECTS =  \
        $(OBJS)\monolib_fmapbase.obj \
        $(OBJS)\monolib_fs_arc.obj \
        $(OBJS)\monolib_fs_filter.obj \
-       $(OBJS)\monolib_fs_zip.obj \
        $(OBJS)\monolib_hash.obj \
        $(OBJS)\monolib_hashmap.obj \
        $(OBJS)\monolib_init.obj \
@@ -485,7 +483,6 @@ BASEDLL_OBJECTS =  \
        $(OBJS)\basedll_fmapbase.obj \
        $(OBJS)\basedll_fs_arc.obj \
        $(OBJS)\basedll_fs_filter.obj \
-       $(OBJS)\basedll_fs_zip.obj \
        $(OBJS)\basedll_hash.obj \
        $(OBJS)\basedll_hashmap.obj \
        $(OBJS)\basedll_init.obj \
@@ -597,7 +594,6 @@ BASELIB_OBJECTS =  \
        $(OBJS)\baselib_fmapbase.obj \
        $(OBJS)\baselib_fs_arc.obj \
        $(OBJS)\baselib_fs_filter.obj \
-       $(OBJS)\baselib_fs_zip.obj \
        $(OBJS)\baselib_hash.obj \
        $(OBJS)\baselib_hashmap.obj \
        $(OBJS)\baselib_init.obj \
@@ -4926,9 +4922,6 @@ $(OBJS)\monodll_fs_arc.obj: ..\..\src\common\fs_arc.cpp
 $(OBJS)\monodll_fs_filter.obj: ..\..\src\common\fs_filter.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
 
-$(OBJS)\monodll_fs_zip.obj: ..\..\src\common\fs_zip.cpp
-       $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
-
 $(OBJS)\monodll_hash.obj: ..\..\src\common\hash.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) $**
 
@@ -6910,9 +6903,6 @@ $(OBJS)\monolib_fs_arc.obj: ..\..\src\common\fs_arc.cpp
 $(OBJS)\monolib_fs_filter.obj: ..\..\src\common\fs_filter.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
 
-$(OBJS)\monolib_fs_zip.obj: ..\..\src\common\fs_zip.cpp
-       $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
-
 $(OBJS)\monolib_hash.obj: ..\..\src\common\hash.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) $**
 
@@ -8897,9 +8887,6 @@ $(OBJS)\basedll_fs_arc.obj: ..\..\src\common\fs_arc.cpp
 $(OBJS)\basedll_fs_filter.obj: ..\..\src\common\fs_filter.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(BASEDLL_CXXFLAGS) $**
 
-$(OBJS)\basedll_fs_zip.obj: ..\..\src\common\fs_zip.cpp
-       $(CXX) /c /nologo /TP /Fo$@ $(BASEDLL_CXXFLAGS) $**
-
 $(OBJS)\basedll_hash.obj: ..\..\src\common\hash.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(BASEDLL_CXXFLAGS) $**
 
@@ -9167,9 +9154,6 @@ $(OBJS)\baselib_fs_arc.obj: ..\..\src\common\fs_arc.cpp
 $(OBJS)\baselib_fs_filter.obj: ..\..\src\common\fs_filter.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(BASELIB_CXXFLAGS) $**
 
-$(OBJS)\baselib_fs_zip.obj: ..\..\src\common\fs_zip.cpp
-       $(CXX) /c /nologo /TP /Fo$@ $(BASELIB_CXXFLAGS) $**
-
 $(OBJS)\baselib_hash.obj: ..\..\src\common\hash.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(BASELIB_CXXFLAGS) $**
 
index d74f079a86f52ee85fe8e622b003717fd6b142e5..6f00a60951f5d1aa2323d745413a08646a2cff73 100644 (file)
@@ -2943,7 +2943,6 @@ MONODLL_OBJECTS =  &
        $(OBJS)\monodll_fmapbase.obj &
        $(OBJS)\monodll_fs_arc.obj &
        $(OBJS)\monodll_fs_filter.obj &
-       $(OBJS)\monodll_fs_zip.obj &
        $(OBJS)\monodll_hash.obj &
        $(OBJS)\monodll_hashmap.obj &
        $(OBJS)\monodll_init.obj &
@@ -3064,7 +3063,6 @@ MONOLIB_OBJECTS =  &
        $(OBJS)\monolib_fmapbase.obj &
        $(OBJS)\monolib_fs_arc.obj &
        $(OBJS)\monolib_fs_filter.obj &
-       $(OBJS)\monolib_fs_zip.obj &
        $(OBJS)\monolib_hash.obj &
        $(OBJS)\monolib_hashmap.obj &
        $(OBJS)\monolib_init.obj &
@@ -3187,7 +3185,6 @@ BASEDLL_OBJECTS =  &
        $(OBJS)\basedll_fmapbase.obj &
        $(OBJS)\basedll_fs_arc.obj &
        $(OBJS)\basedll_fs_filter.obj &
-       $(OBJS)\basedll_fs_zip.obj &
        $(OBJS)\basedll_hash.obj &
        $(OBJS)\basedll_hashmap.obj &
        $(OBJS)\basedll_init.obj &
@@ -3294,7 +3291,6 @@ BASELIB_OBJECTS =  &
        $(OBJS)\baselib_fmapbase.obj &
        $(OBJS)\baselib_fs_arc.obj &
        $(OBJS)\baselib_fs_filter.obj &
-       $(OBJS)\baselib_fs_zip.obj &
        $(OBJS)\baselib_hash.obj &
        $(OBJS)\baselib_hashmap.obj &
        $(OBJS)\baselib_init.obj &
@@ -4938,9 +4934,6 @@ $(OBJS)\monodll_fs_arc.obj :  .AUTODEPEND ..\..\src\common\fs_arc.cpp
 $(OBJS)\monodll_fs_filter.obj :  .AUTODEPEND ..\..\src\common\fs_filter.cpp
        $(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
 
-$(OBJS)\monodll_fs_zip.obj :  .AUTODEPEND ..\..\src\common\fs_zip.cpp
-       $(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
-
 $(OBJS)\monodll_hash.obj :  .AUTODEPEND ..\..\src\common\hash.cpp
        $(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
 
@@ -7022,9 +7015,6 @@ $(OBJS)\monolib_fs_arc.obj :  .AUTODEPEND ..\..\src\common\fs_arc.cpp
 $(OBJS)\monolib_fs_filter.obj :  .AUTODEPEND ..\..\src\common\fs_filter.cpp
        $(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
 
-$(OBJS)\monolib_fs_zip.obj :  .AUTODEPEND ..\..\src\common\fs_zip.cpp
-       $(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
-
 $(OBJS)\monolib_hash.obj :  .AUTODEPEND ..\..\src\common\hash.cpp
        $(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
 
@@ -9109,9 +9099,6 @@ $(OBJS)\basedll_fs_arc.obj :  .AUTODEPEND ..\..\src\common\fs_arc.cpp
 $(OBJS)\basedll_fs_filter.obj :  .AUTODEPEND ..\..\src\common\fs_filter.cpp
        $(CXX) -bt=nt -zq -fo=$^@ $(BASEDLL_CXXFLAGS) $<
 
-$(OBJS)\basedll_fs_zip.obj :  .AUTODEPEND ..\..\src\common\fs_zip.cpp
-       $(CXX) -bt=nt -zq -fo=$^@ $(BASEDLL_CXXFLAGS) $<
-
 $(OBJS)\basedll_hash.obj :  .AUTODEPEND ..\..\src\common\hash.cpp
        $(CXX) -bt=nt -zq -fo=$^@ $(BASEDLL_CXXFLAGS) $<
 
@@ -9379,9 +9366,6 @@ $(OBJS)\baselib_fs_arc.obj :  .AUTODEPEND ..\..\src\common\fs_arc.cpp
 $(OBJS)\baselib_fs_filter.obj :  .AUTODEPEND ..\..\src\common\fs_filter.cpp
        $(CXX) -bt=nt -zq -fo=$^@ $(BASELIB_CXXFLAGS) $<
 
-$(OBJS)\baselib_fs_zip.obj :  .AUTODEPEND ..\..\src\common\fs_zip.cpp
-       $(CXX) -bt=nt -zq -fo=$^@ $(BASELIB_CXXFLAGS) $<
-
 $(OBJS)\baselib_hash.obj :  .AUTODEPEND ..\..\src\common\hash.cpp
        $(CXX) -bt=nt -zq -fo=$^@ $(BASELIB_CXXFLAGS) $<
 
index 46aafff8f4dc4b07a8f13456b2075c9bed8f9251..089d8d2bfef14bf89e961aebf3d86745c4b0139b 100644 (file)
@@ -579,10 +579,6 @@ SOURCE=..\..\src\common\fs_mem.cpp
 # End Source File
 # Begin Source File
 
-SOURCE=..\..\src\common\fs_zip.cpp
-# End Source File
-# Begin Source File
-
 SOURCE=..\..\src\common\hash.cpp
 # End Source File
 # Begin Source File
@@ -1531,10 +1527,6 @@ SOURCE=..\..\include\wx\file.h
 # End Source File
 # Begin Source File
 
-SOURCE=..\..\include\wx\fileback.h
-# End Source File
-# Begin Source File
-
 SOURCE=..\..\include\wx\fileconf.h
 # End Source File
 # Begin Source File
index 165d8ca0b2da140a3297469944fb60365c87aefc..841a30a793ca15cff37b5dd456c27e645d67b39b 100755 (executable)
--- a/configure
+++ b/configure
@@ -981,7 +981,6 @@ Optional Features:
   --enable-ipc            use interprocess communication (wxSocket etc.)
   --enable-apple_ieee     use the Apple IEEE codec
   --enable-arcstream      use wxArchive streams
-  --enable-backingfile    use wxBackingFile
   --enable-backtrace      use wxStackWalker class for getting backtraces
   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
   --enable-cmdline        use wxCmdLineParser class
@@ -997,7 +996,7 @@ Optional Features:
   --enable-fontmap        use font encodings conversion classes
   --enable-fs_archive     use virtual archive filesystems
   --enable-fs_inet        use virtual HTTP/FTP filesystems
-  --enable-fs_zip         use virtual ZIP filesystems
+  --enable-fs_zip         now replaced by fs_archive
   --enable-geometry       use geometry class
   --enable-log            use logging system
   --enable-longlong       use wxLongLong class
@@ -2321,7 +2320,6 @@ if test $DEBUG_CONFIGURE = 1; then
   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
   DEFAULT_wxUSE_ZIPSTREAM=no
   DEFAULT_wxUSE_TARSTREAM=no
-  DEFAULT_wxUSE_BACKINGFILE=no
   DEFAULT_wxUSE_VALIDATORS=no
 
   DEFAULT_wxUSE_ACCEL=no
@@ -2542,7 +2540,6 @@ else
   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
   DEFAULT_wxUSE_ZIPSTREAM=yes
   DEFAULT_wxUSE_TARSTREAM=yes
-  DEFAULT_wxUSE_BACKINGFILE=yes
   DEFAULT_wxUSE_VALIDATORS=yes
 
   DEFAULT_wxUSE_ACCEL=yes
@@ -5068,47 +5065,6 @@ echo "${ECHO_T}no" >&6
           fi
 
 
-         enablestring=
-          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backingfile" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-backingfile... $ECHO_C" >&6
-          no_cache=0
-          # Check whether --enable-backingfile or --disable-backingfile was given.
-if test "${enable_backingfile+set}" = set; then
-  enableval="$enable_backingfile"
-
-                          if test "$enableval" = yes; then
-                            ac_cv_use_backingfile='wxUSE_BACKINGFILE=yes'
-                          else
-                            ac_cv_use_backingfile='wxUSE_BACKINGFILE=no'
-                          fi
-
-else
-
-                          LINE=`grep "wxUSE_BACKINGFILE" ${wx_arg_cache_file}`
-                          if test "x$LINE" != x ; then
-                            eval "DEFAULT_$LINE"
-                          else
-                            no_cache=1
-                          fi
-
-                          ac_cv_use_backingfile='wxUSE_BACKINGFILE='$DEFAULT_wxUSE_BACKINGFILE
-
-fi;
-
-          eval "$ac_cv_use_backingfile"
-          if test "$no_cache" != 1; then
-            echo $ac_cv_use_backingfile >> ${wx_arg_cache_file}.tmp
-          fi
-
-          if test "$wxUSE_BACKINGFILE" = yes; then
-            echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-          else
-            echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-          fi
-
-
          enablestring=
           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
@@ -29861,7 +29817,7 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-#include <X11/Xlib.h>
+#include <X11/Intrinsic.h>
 _ACEOF
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
@@ -29888,7 +29844,7 @@ else
 sed 's/^/| /' conftest.$ac_ext >&5
 
   for ac_dir in $ac_x_header_dirs; do
-  if test -r "$ac_dir/X11/Xlib.h"; then
+  if test -r "$ac_dir/X11/Intrinsic.h"; then
     ac_x_includes=$ac_dir
     break
   fi
@@ -29902,18 +29858,18 @@ if test "$ac_x_libraries" = no; then
   # See if we find them without any special options.
   # Don't add to $LIBS permanently.
   ac_save_LIBS=$LIBS
-  LIBS="-lX11 $LIBS"
+  LIBS="-lXt $LIBS"
   cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-#include <X11/Xlib.h>
+#include <X11/Intrinsic.h>
 int
 main ()
 {
-XrmInitialize ()
+XtMalloc (0)
   ;
   return 0;
 }
@@ -29951,7 +29907,7 @@ for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 do
   # Don't even attempt the hair of trying to link an X program!
   for ac_extension in a so sl; do
-    if test -r $ac_dir/libX11.$ac_extension; then
+    if test -r $ac_dir/libXt.$ac_extension; then
       ac_x_libraries=$ac_dir
       break 2
     fi
@@ -43401,24 +43357,11 @@ _ACEOF
 
 fi
 
-if test "$wxUSE_FILESYSTEM" = "yes"; then
-  cat >>confdefs.h <<\_ACEOF
-#define wxUSE_FILESYSTEM 1
-_ACEOF
-
-fi
-
-if test "$wxUSE_FS_ZIP" = "yes"; then
-  cat >>confdefs.h <<\_ACEOF
-#define wxUSE_FS_ZIP 1
-_ACEOF
-
-fi
-
 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
   if test "$wxUSE_STREAMS" != yes; then
     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
+    wxUSE_ARCHIVE_STREAMS=no
   else
     cat >>confdefs.h <<\_ACEOF
 #define wxUSE_ARCHIVE_STREAMS 1
@@ -43454,22 +43397,23 @@ _ACEOF
   fi
 fi
 
-if test "$wxUSE_BACKINGFILE" = "yes"; then
+if test "$wxUSE_FILESYSTEM" = "yes"; then
   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
-    { echo "$as_me:$LINENO: WARNING: wxBackingFile requires wxStreams and wxFile or wxFFile... disabled" >&5
-echo "$as_me: WARNING: wxBackingFile requires wxStreams and wxFile or wxFFile... disabled" >&2;}
+    { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
+echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
+    wxUSE_FILESYSTEM=no
   else
     cat >>confdefs.h <<\_ACEOF
-#define wxUSE_BACKINGFILE 1
+#define wxUSE_FILESYSTEM 1
 _ACEOF
 
   fi
 fi
 
 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
-  if test "$wxUSE_ARCHIVE_STREAMS" != yes -o "$wxUSE_BACKINGFILE" != yes; then
-    { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxBackingFile... disabled" >&5
-echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxBackingFile... disabled" >&2;}
+  if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
+    { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
+echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
   else
     cat >>confdefs.h <<\_ACEOF
 #define wxUSE_FS_ARCHIVE 1
@@ -43478,6 +43422,18 @@ _ACEOF
   fi
 fi
 
+if test "$wxUSE_FS_ZIP" = "yes"; then
+  if test "$wxUSE_FS_ARCHIVE" != yes; then
+    { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
+echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
+  else
+    cat >>confdefs.h <<\_ACEOF
+#define wxUSE_FS_ZIP 1
+_ACEOF
+
+  fi
+fi
+
 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
   if test "$USE_UNIX" != 1; then
     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
index be7ee024a56ec65dd1e7c1ae50295e057b2b11bc..9b7290d1d681a5824dda4a87c6b8a1813b16ab0f 100644 (file)
@@ -508,7 +508,6 @@ if test $DEBUG_CONFIGURE = 1; then
   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
   DEFAULT_wxUSE_ZIPSTREAM=no
   DEFAULT_wxUSE_TARSTREAM=no
-  DEFAULT_wxUSE_BACKINGFILE=no
   DEFAULT_wxUSE_VALIDATORS=no
 
   DEFAULT_wxUSE_ACCEL=no
@@ -729,7 +728,6 @@ else
   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
   DEFAULT_wxUSE_ZIPSTREAM=yes
   DEFAULT_wxUSE_TARSTREAM=yes
-  DEFAULT_wxUSE_BACKINGFILE=yes
   DEFAULT_wxUSE_VALIDATORS=yes
 
   DEFAULT_wxUSE_ACCEL=yes
@@ -951,7 +949,6 @@ WX_ARG_ENABLE(ipc,           [  --enable-ipc            use interprocess communi
 dnl please keep the settings below in alphabetical order
 WX_ARG_ENABLE(apple_ieee,    [  --enable-apple_ieee     use the Apple IEEE codec], wxUSE_APPLE_IEEE)
 WX_ARG_ENABLE(arcstream,     [  --enable-arcstream      use wxArchive streams], wxUSE_ARCHIVE_STREAMS)
-WX_ARG_ENABLE(backingfile,   [  --enable-backingfile    use wxBackingFile], wxUSE_BACKINGFILE)
 WX_ARG_ENABLE(backtrace,     [  --enable-backtrace      use wxStackWalker class for getting backtraces], wxUSE_STACKWALKER)
 WX_ARG_ENABLE(catch_segvs,   [  --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)], wxUSE_ON_FATAL_EXCEPTION)
 WX_ARG_ENABLE(cmdline,       [  --enable-cmdline        use wxCmdLineParser class], wxUSE_CMDLINE_PARSER)
@@ -967,7 +964,7 @@ WX_ARG_ENABLE(filesystem,    [  --enable-filesystem     use virtual file systems
 WX_ARG_ENABLE(fontmap,       [  --enable-fontmap        use font encodings conversion classes], wxUSE_FONTMAP)
 WX_ARG_ENABLE(fs_archive,    [  --enable-fs_archive     use virtual archive filesystems], wxUSE_FS_ARCHIVE)
 WX_ARG_ENABLE(fs_inet,       [  --enable-fs_inet        use virtual HTTP/FTP filesystems], wxUSE_FS_INET)
-WX_ARG_ENABLE(fs_zip,        [  --enable-fs_zip         use virtual ZIP filesystems], wxUSE_FS_ZIP)
+WX_ARG_ENABLE(fs_zip,        [  --enable-fs_zip         now replaced by fs_archive], wxUSE_FS_ZIP)
 WX_ARG_ENABLE(geometry,      [  --enable-geometry       use geometry class], wxUSE_GEOMETRY)
 WX_ARG_ENABLE(log,           [  --enable-log            use logging system], wxUSE_LOG)
 WX_ARG_ENABLE(longlong,      [  --enable-longlong       use wxLongLong class], wxUSE_LONGLONG)
@@ -5717,17 +5714,10 @@ if test "$wxUSE_FFILE" = "yes"; then
   AC_DEFINE(wxUSE_FFILE)
 fi
 
-if test "$wxUSE_FILESYSTEM" = "yes"; then
-  AC_DEFINE(wxUSE_FILESYSTEM)
-fi
-
-if test "$wxUSE_FS_ZIP" = "yes"; then
-  AC_DEFINE(wxUSE_FS_ZIP)
-fi
-
 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
   if test "$wxUSE_STREAMS" != yes; then
     AC_MSG_WARN(wxArchive requires wxStreams... disabled)
+    wxUSE_ARCHIVE_STREAMS=no
   else
     AC_DEFINE(wxUSE_ARCHIVE_STREAMS)
   fi
@@ -5751,22 +5741,31 @@ if test "$wxUSE_TARSTREAM" = "yes"; then
   fi
 fi
 
-if test "$wxUSE_BACKINGFILE" = "yes"; then
+if test "$wxUSE_FILESYSTEM" = "yes"; then
   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
-    AC_MSG_WARN(wxBackingFile requires wxStreams and wxFile or wxFFile... disabled)
+    AC_MSG_WARN(wxFileSystem requires wxStreams and wxFile or wxFFile... disabled)
+    wxUSE_FILESYSTEM=no
   else
-    AC_DEFINE(wxUSE_BACKINGFILE)
+    AC_DEFINE(wxUSE_FILESYSTEM)
   fi
 fi
 
 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
-  if test "$wxUSE_ARCHIVE_STREAMS" != yes -o "$wxUSE_BACKINGFILE" != yes; then
-    AC_MSG_WARN(wxArchiveFSHandler requires wxArchive and wxBackingFile... disabled)
+  if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
+    AC_MSG_WARN(wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled)
   else
     AC_DEFINE(wxUSE_FS_ARCHIVE)
   fi
 fi
 
+if test "$wxUSE_FS_ZIP" = "yes"; then
+  if test "$wxUSE_FS_ARCHIVE" != yes; then
+    AC_MSG_WARN(wxZipFSHandler requires wxArchiveFSHandler... disabled)
+  else
+    AC_DEFINE(wxUSE_FS_ZIP)
+  fi
+fi
+
 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
   if test "$USE_UNIX" != 1; then
     AC_MSG_WARN([Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called])
index 20ff0d93ecc3fb216cd279c53723acd87fc43d8e..600ad94440f2998b34cddc432f63b9065421d771 100644 (file)
    please keep the options in alphabetical order!
  */
 
-#ifndef wxUSE_BACKINGFILE
-#   ifdef wxABORT_ON_CONFIG_ERROR
-#       error "wxUSE_BACKINGFILE must be defined."
-#   else
-#       define wxUSE_BACKINGFILE 0
-#   endif
-#endif /* !defined(wxUSE_BACKINGFILE) */
-
 #ifndef wxUSE_CRASHREPORT
     /* this one is special: as currently it is Windows-only, don't force it
        to be defined on other platforms */
 #   endif
 #endif /* wxUSE_HTML */
 
+#if wxUSE_FS_ARCHIVE
+#   if !wxUSE_FILESYSTEM
+#       ifdef wxABORT_ON_CONFIG_ERROR
+#           error "wxArchiveFSHandler requires wxFileSystem"
+#       else
+#           undef wxUSE_FILESYSTEM
+#           define wxUSE_FILESYSTEM 1
+#       endif
+#   endif
+#   if !wxUSE_ARCHIVE_STREAMS
+#       ifdef wxABORT_ON_CONFIG_ERROR
+#           error "wxArchiveFSHandler requires wxArchive"
+#       else
+#           undef wxUSE_ARCHIVE_STREAMS
+#           define wxUSE_ARCHIVE_STREAMS 1
+#       endif
+#   endif
+#endif /* wxUSE_FS_ARCHIVE */
+
 #if wxUSE_FILESYSTEM
 #   if !wxUSE_STREAMS
 #       ifdef wxABORT_ON_CONFIG_ERROR
 #       ifdef wxABORT_ON_CONFIG_ERROR
 #           error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
 #       else
-#           undef wxUSE_FILESYSTEM
-#           define wxUSE_FILESYSTEM 0
+#           undef wxUSE_FILE
+#           define wxUSE_FILE 1
+#           undef wxUSE_FFILE
+#           define wxUSE_FFILE 1
 #       endif
 #   endif
 #endif /* wxUSE_FILESYSTEM */
 #   endif
 #endif /* wxUSE_ZIPSTREAM */
 
-#if wxUSE_FS_ARCHIVE
-#   if !wxUSE_ARCHIVE_STREAMS
-#       ifdef wxABORT_ON_CONFIG_ERROR
-#           error "wxArchiveFSHandler requires wxArchive and wxBackingFile"
-#       else
-#           undef wxUSE_ARCHIVE_STREAMS
-#           define wxUSE_ARCHIVE_STREAMS 1
-#           undef wxUSE_BACKINGFILE
-#           define wxUSE_BACKINGFILE 1
-#       endif
-#   endif
-#endif /* wxUSE_FS_ARCHIVE */
-
-#if wxUSE_BACKINGFILE
-#   if !wxUSE_STREAMS
-#       ifdef wxABORT_ON_CONFIG_ERROR
-#           error "wxBackingFile requires wxStream"
-#       else
-#           undef wxUSE_STREAMS
-#           define wxUSE_STREAMS 1
-#       endif
-#   endif
-#   if !wxUSE_FILE && !wxUSE_FFILE
-#       ifdef wxABORT_ON_CONFIG_ERROR
-#           error "wxBackingFile requires wxFile or wxFFile"
-#       else
-#           undef wxUSE_FFILE
-#           define wxUSE_FFILE 1
-#       endif
-#   endif
-#endif /* wxUSE_BACKINGFILE */
-
 #if wxUSE_TARSTREAM
 #   if !wxUSE_ARCHIVE_STREAMS
 #       ifdef wxABORT_ON_CONFIG_ERROR
index e98b3f82ad48f02b262ed7a2d276e37648613a09..ae3849bb4fefbeab281863f5d655a02360877c9a 100644 (file)
@@ -1,8 +1,8 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        fs_zip.h
-// Purpose:     ZIP file system
-// Author:      Vaclav Slavik
-// Copyright:   (c) 1999 Vaclav Slavik
+// Name:        include/wx/fs_zip.h
+// Purpose:     wxZipFSHandler typedef for compatibility
+// Author:      Mike Wetherell
+// Copyright:   (c) 2006 Mike Wetherell
 // CVS-ID:      $Id$
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/defs.h"
 
-#if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS
+#if wxUSE_FS_ZIP
 
-#include "wx/filesys.h"
-#include "wx/hashmap.h"
+#include "wx/fs_arc.h"
 
+typedef wxArchiveFSHandler wxZipFSHandler;
 
-WX_DECLARE_STRING_HASH_MAP(int, wxZipFilenameHashMap);
-
-
-//---------------------------------------------------------------------------
-// wxZipFSHandler
-//---------------------------------------------------------------------------
-
-class WXDLLIMPEXP_BASE wxZipFSHandler : public wxFileSystemHandler
-{
-    public:
-        wxZipFSHandler();
-        virtual bool CanOpen(const wxString& location);
-        virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
-        virtual wxString FindFirst(const wxString& spec, int flags = 0);
-        virtual wxString FindNext();
-        void Cleanup();
-        virtual ~wxZipFSHandler();
-
-    private:
-        // these vars are used by FindFirst/Next:
-        class wxZipInputStream *m_Archive;
-        wxString m_Pattern, m_BaseDir, m_ZipFile;
-        bool m_AllowDirs, m_AllowFiles;
-        wxZipFilenameHashMap *m_DirsFound;
-
-        wxString DoFind();
-
-    DECLARE_NO_COPY_CLASS(wxZipFSHandler)
-};
-
-
-#endif
-  // wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS
+#endif // wxUSE_FS_ZIP
 
 #endif // _WX_FS_ZIP_H_
-
index 89c7af6953ff9a10a00b5b6769a6dba22137555c..8381fdcfc2b81dcaf3c333dadc199ddc97144396 100644 (file)
 // Set to 1 to compile wxZipInput/OutputStream classes.
 #define wxUSE_ZIPSTREAM     1
 
-// Set to 1 to compile wxBackingFile and wxBackedInputStream
-#define wxUSE_BACKINGFILE   1
-
 // Set to 1 to compile wxTarInput/OutputStream classes.
 #define wxUSE_TARSTREAM     1
 
index e9d856cd02f32c0e3fe9b18e37fe16fa8dae6290..a6d038cc5356e67af3467099b8e4dd95c0aec1e4 100644 (file)
 // Set to 1 to compile wxZipInput/OutputStream classes.
 #define wxUSE_ZIPSTREAM     1
 
-// Set to 1 to compile wxBackingFile and wxBackedInputStream
-#define wxUSE_BACKINGFILE   1
-
 // Set to 1 to compile wxTarInput/OutputStream classes.
 #define wxUSE_TARSTREAM     1
 
index c7d6b3eec24ab89f6d46415f05640222d91537bf..0212e27b590d07110604da8499174fb973d65c9c 100644 (file)
 // Set to 1 to compile wxZipInput/OutputStream classes.
 #define wxUSE_ZIPSTREAM     1
 
-// Set to 1 to compile wxBackingFile and wxBackedInputStream
-#define wxUSE_BACKINGFILE   1
-
 // Set to 1 to compile wxTarInput/OutputStream classes.
 #define wxUSE_TARSTREAM     1
 
index c856681bd4ce87f91f48a4e7d4dd452e4893cbd1..f5de075013d827c9368541bf60d069f0d93265fd 100644 (file)
 // Set to 1 to compile wxZipInput/OutputStream classes.
 #define wxUSE_ZIPSTREAM     1
 
-// Set to 1 to compile wxBackingFile and wxBackedInputStream
-#define wxUSE_BACKINGFILE   1
-
 // Set to 1 to compile wxTarInput/OutputStream classes.
 #define wxUSE_TARSTREAM     1
 
index b26dec1f5ca5957517b7f0d00b29778df12ec001..dfbb5f37781f799fa5a39a488c4aa84932aeca42 100644 (file)
 // Set to 1 to compile wxZipInput/OutputStream classes.
 #define wxUSE_ZIPSTREAM     1
 
-// Set to 1 to compile wxBackingFile and wxBackedInputStream
-#define wxUSE_BACKINGFILE   1
-
 // Set to 1 to compile wxTarInput/OutputStream classes.
 #define wxUSE_TARSTREAM     1
 
index 77ea1219d46c008095a2034369f62d6904165e55..a2439edfc689b6069d9009b06ea8adc48335abe3 100644 (file)
 // Set to 1 to compile wxZipInput/OutputStream classes.
 #define wxUSE_ZIPSTREAM     1
 
-// Set to 1 to compile wxBackingFile and wxBackedInputStream
-#define wxUSE_BACKINGFILE   1
-
 // Set to 1 to compile wxTarInput/OutputStream classes.
 #define wxUSE_TARSTREAM     1
 
diff --git a/include/wx/private/fileback.h b/include/wx/private/fileback.h
new file mode 100644 (file)
index 0000000..8567852
--- /dev/null
@@ -0,0 +1,83 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        include/wx/private/fileback.h
+// Purpose:     Back an input stream with memory or a file
+// Author:      Mike Wetherell
+// RCS-ID:      $Id$
+// Copyright:   (c) 2006 Mike Wetherell
+// Licence:     wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_FILEBACK_H__
+#define _WX_FILEBACK_H__
+
+#include "wx/defs.h"
+
+#if wxUSE_FILESYSTEM
+
+#include "wx/stream.h"
+
+// ----------------------------------------------------------------------------
+// Backs an input stream with memory or a file to make it seekable.
+//
+// One or more wxBackedInputStreams can be used to read it's data. The data is
+// reference counted, so stays alive until the last wxBackingFile or
+// wxBackedInputStream using it is destroyed.
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_BASE wxBackingFile
+{
+public:
+    enum { DefaultBufSize = 16384 };
+
+    // Takes ownership of stream. If the stream is smaller than bufsize, the
+    // backing file is never created and the backing is done with memory.
+    wxBackingFile(wxInputStream *stream,
+                  size_t bufsize = DefaultBufSize,
+                  const wxString& prefix = _T("wxbf"));
+
+    wxBackingFile() : m_impl(NULL) { }
+    ~wxBackingFile();
+
+    wxBackingFile(const wxBackingFile& backer);
+    wxBackingFile& operator=(const wxBackingFile& backer);
+
+    operator bool() const { return m_impl != NULL; }
+
+private:
+    class wxBackingFileImpl *m_impl;
+    friend class wxBackedInputStream;
+};
+
+// ----------------------------------------------------------------------------
+// An input stream to read from a wxBackingFile.
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_BASE wxBackedInputStream : public wxInputStream
+{
+public:
+    wxBackedInputStream(const wxBackingFile& backer);
+
+    // If the length of the backer's parent stream is unknown then GetLength()
+    // returns wxInvalidOffset until the parent has been read to the end.
+    wxFileOffset GetLength() const;
+
+    // Returns the length, reading the parent stream to the end if necessary.
+    wxFileOffset FindLength() const;
+
+    bool IsSeekable() const { return true; }
+
+protected:
+    size_t OnSysRead(void *buffer, size_t size);
+    wxFileOffset OnSysSeek(wxFileOffset pos, wxSeekMode mode);
+    wxFileOffset OnSysTell() const;
+
+private:
+    wxBackingFile m_backer;
+    wxFileOffset m_pos;
+
+    DECLARE_NO_COPY_CLASS(wxBackedInputStream)
+};
+
+#endif // wxUSE_FILESYSTEM
+
+#endif // _WX_FILEBACK_H__
index 9de20b614e15191766772d2c1ccbf93455a945f0..3ea12f533d46d94bd1cfdd5ec009f021e3de1a06 100644 (file)
 // Set to 1 to compile wxZipInput/OutputStream classes.
 #define wxUSE_ZIPSTREAM     1
 
-// Set to 1 to compile wxBackingFile and wxBackedInputStream
-#define wxUSE_BACKINGFILE   1
-
 // Set to 1 to compile wxTarInput/OutputStream classes.
 #define wxUSE_TARSTREAM     1
 
index 6cce0426f29c3d2c7bf75e0e9c04475316d2f648..1c5df999ae7b0a1c4b89b75c4df2ee34ae6ed1b8 100644 (file)
 // Set to 1 to compile wxZipInput/OutputStream classes.
 #define wxUSE_ZIPSTREAM 1
 
-// Set to 1 to compile wxBackingFile and wxBackedInputStream
-#define wxUSE_BACKINGFILE   1
-
 // Set to 1 to compile wxTarInput/OutputStream classes.
 #define wxUSE_TARSTREAM     1
 
index 8081e1b03b4892f9d2772929f5c452e611bc67f8..1df5f82cb731ad5898489fa10f3c3d6e3b962927 100644 (file)
 
 #define wxUSE_ZIPSTREAM     0
 
-#define wxUSE_BACKINGFILE   0
-
 #define wxUSE_TARSTREAM     0
 
 #define wxUSE_ZLIB          0
index 25f9f287caf35a70d8b38bac558c1b10d4705075..4dcc4f36dc0f3deabd2cb68f4c0862703d0549ac 100644 (file)
@@ -270,8 +270,6 @@ typedef pid_t GPid;
 
 #define wxUSE_TARSTREAM     1
 
-#define wxUSE_BACKINGFILE   1
-
 #define wxUSE_ZLIB          1
 
 #define wxUSE_APPLE_IEEE          0
index bc5f2ff9dd7044fdeb136af950bb24c41a127750..6e4253c0f76896fa8684a6ecee8724c5a603e4a4 100644 (file)
@@ -14,9 +14,9 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_BACKINGFILE
+#if wxUSE_FILESYSTEM
 
-#include "wx/fileback.h"
+#include "wx/private/fileback.h"
 
 #ifndef WX_PRECOMP
     #include "wx/utils.h"
@@ -335,4 +335,4 @@ wxFileOffset wxBackedInputStream::OnSysTell() const
     return m_pos;
 }
 
-#endif // wxUSE_BACKINGFILE
+#endif // wxUSE_FILESYSTEM
index 43c1ff93ae78526230ef567d0c9be30057dc1038..c045f5e79896e7b43658634e4f41b15a05c2294c 100644 (file)
@@ -27,7 +27,7 @@
 #include "wx/mimetype.h"
 #include "wx/filename.h"
 #include "wx/tokenzr.h"
-#include "wx/fileback.h"
+#include "wx/private/fileback.h"
 
 
 //--------------------------------------------------------------------------------
index c69153cdce6950e39f0d90f541edb1ef61805d06..357c2f7479ee30b8dc3cdd21c37c267f6874a026 100644 (file)
@@ -23,8 +23,7 @@
 #endif
 
 #include "wx/archive.h"
-#include "wx/fileback.h"
-#include "wx/thread.h"
+#include "wx/private/fileback.h"
 
 //---------------------------------------------------------------------------
 // wxArchiveFSCacheDataImpl
diff --git a/src/common/fs_zip.cpp b/src/common/fs_zip.cpp
deleted file mode 100644 (file)
index f96f1b8..0000000
+++ /dev/null
@@ -1,256 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////
-// Name:        fs_zip.cpp
-// Purpose:     ZIP file system
-// Author:      Vaclav Slavik
-// Copyright:   (c) 1999 Vaclav Slavik
-// CVS-ID:      $Id$
-// Licence:     wxWindows licence
-/////////////////////////////////////////////////////////////////////////////
-
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
-#if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_ZIPSTREAM && wxUSE_ZLIB
-
-#ifndef WXPRECOMP
-    #include "wx/intl.h"
-    #include "wx/log.h"
-#endif
-
-#include "wx/filesys.h"
-#include "wx/wfstream.h"
-#include "wx/zipstrm.h"
-#include "wx/fs_zip.h"
-
-
-//---------------------------------------------------------------------------
-// wxZipFSInputStream
-//---------------------------------------------------------------------------
-// Helper class for wxZipFSHandler
-
-class wxZipFSInputStream : public wxZipInputStream
-{
-    public:
-       wxZipFSInputStream(wxFSFile *file)
-               : wxZipInputStream(*file->GetStream())
-       {
-            m_file = file;
-#if WXWIN_COMPATIBILITY_2_6
-            m_allowSeeking = true;
-#endif
-       }
-
-       virtual ~wxZipFSInputStream() { delete m_file; }
-
-    private:
-       wxFSFile *m_file;
-};
-
-//----------------------------------------------------------------------------
-// wxZipFSHandler
-//----------------------------------------------------------------------------
-
-wxZipFSHandler::wxZipFSHandler() : wxFileSystemHandler()
-{
-    m_Archive = NULL;
-    m_ZipFile = m_Pattern = m_BaseDir = wxEmptyString;
-    m_AllowDirs = m_AllowFiles = true;
-    m_DirsFound = NULL;
-}
-
-
-
-wxZipFSHandler::~wxZipFSHandler()
-{
-    Cleanup();
-}
-
-
-void wxZipFSHandler::Cleanup()
-{
-    wxDELETE(m_Archive);
-    wxDELETE(m_DirsFound);
-}
-
-
-bool wxZipFSHandler::CanOpen(const wxString& location)
-{
-    wxString p = GetProtocol(location);
-    return (p == wxT("zip"));
-}
-
-
-wxFSFile* wxZipFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& location)
-{
-    wxString right = GetRightLocation(location);
-    wxString left = GetLeftLocation(location);
-    wxZipInputStream *s;
-
-    if (right.Contains(wxT("./")))
-    {
-        if (right.GetChar(0) != wxT('/')) right = wxT('/') + right;
-        wxFileName rightPart(right, wxPATH_UNIX);
-        rightPart.Normalize(wxPATH_NORM_DOTS, wxT("/"), wxPATH_UNIX);
-        right = rightPart.GetFullPath(wxPATH_UNIX);
-    }
-
-    if (right.GetChar(0) == wxT('/')) right = right.Mid(1);
-
-    // a new wxFileSystem object is needed here to avoid infinite recursion
-    wxFSFile *leftFile = wxFileSystem().OpenFile(left);
-    if (!leftFile)
-       return NULL;
-
-    s = new wxZipFSInputStream(leftFile);
-    if (s && s->IsOk())
-    {
-#if wxUSE_DATETIME
-       wxDateTime dtMod;
-#endif // wxUSE_DATETIME
-
-       bool found = false;
-       while (!found)
-       {
-           wxZipEntry *ent = s->GetNextEntry();
-           if (!ent)
-               break;
-
-           if (ent->GetInternalName() == right)
-           {
-               found = true;
-               dtMod = ent->GetDateTime();
-           }
-
-           delete ent;
-       }
-       if (found)
-       {
-           return new wxFSFile(s,
-                            left + wxT("#zip:") + right,
-                            GetMimeTypeFromExt(location),
-                            GetAnchor(location)
-#if wxUSE_DATETIME
-                            , dtMod
-#endif // wxUSE_DATETIME
-                            );
-       }
-    }
-
-    delete s;
-    return NULL;
-}
-
-
-
-wxString wxZipFSHandler::FindFirst(const wxString& spec, int flags)
-{
-    wxString right = GetRightLocation(spec);
-    wxString left = GetLeftLocation(spec);
-
-    if (!right.empty() && right.Last() == wxT('/')) right.RemoveLast();
-
-    if (m_Archive)
-    {
-        delete m_Archive;
-        m_Archive = NULL;
-    }
-
-    switch (flags)
-    {
-        case wxFILE:
-            m_AllowDirs = false, m_AllowFiles = true; break;
-        case wxDIR:
-            m_AllowDirs = true, m_AllowFiles = false; break;
-        default:
-            m_AllowDirs = m_AllowFiles = true; break;
-    }
-
-    m_ZipFile = left;
-
-    wxFSFile *leftFile = wxFileSystem().OpenFile(left);
-    if (leftFile)
-        m_Archive = new wxZipFSInputStream(leftFile);
-
-    m_Pattern = right.AfterLast(wxT('/'));
-    m_BaseDir = right.BeforeLast(wxT('/'));
-    if (m_BaseDir.StartsWith(wxT("/")))
-        m_BaseDir = m_BaseDir.Mid(1);
-
-    if (m_Archive)
-    {
-        if (m_AllowDirs)
-        {
-            delete m_DirsFound;
-            m_DirsFound = new wxZipFilenameHashMap();
-            if (right.empty())  // allow "/" to match the archive root
-                return spec;
-        }
-        return DoFind();
-    }
-    return wxEmptyString;
-}
-
-
-
-wxString wxZipFSHandler::FindNext()
-{
-    if (!m_Archive) return wxEmptyString;
-    return DoFind();
-}
-
-
-
-wxString wxZipFSHandler::DoFind()
-{
-    wxString namestr, dir, filename;
-    wxString match = wxEmptyString;
-
-    while (match == wxEmptyString)
-    {
-        wxZipEntry *entry = m_Archive->GetNextEntry();
-        if (!entry)
-        {
-            delete m_Archive;
-            m_Archive = NULL;
-            break;
-        }
-        namestr = entry->GetName(wxPATH_UNIX);
-        delete entry;
-
-        if (m_AllowDirs)
-        {
-            dir = namestr.BeforeLast(wxT('/'));
-            while (!dir.empty())
-            {
-                if( m_DirsFound->find(dir) == m_DirsFound->end() )
-                {
-                    (*m_DirsFound)[dir] = 1;
-                    filename = dir.AfterLast(wxT('/'));
-                    dir = dir.BeforeLast(wxT('/'));
-                    if (!filename.empty() && m_BaseDir == dir &&
-                                wxMatchWild(m_Pattern, filename, false))
-                        match = m_ZipFile + wxT("#zip:") + dir + wxT("/") + filename;
-                }
-                else
-                    break; // already tranversed
-            }
-        }
-
-        filename = namestr.AfterLast(wxT('/'));
-        dir = namestr.BeforeLast(wxT('/'));
-        if (m_AllowFiles && !filename.empty() && m_BaseDir == dir &&
-                            wxMatchWild(m_Pattern, filename, false))
-            match = m_ZipFile + wxT("#zip:") + namestr;
-    }
-
-    return match;
-}
-
-
-
-#endif
-      //wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_ZIPSTREAM
index 83cee20a2b644e764ff5f0561c8928309123572e..6c557b8ae433dcf6d57316bfe8d9b6879465049e 100644 (file)
@@ -607,10 +607,6 @@ SOURCE=.\common\fs_mem.cpp
 # End Source File
 # Begin Source File
 
-SOURCE=.\common\fs_zip.cpp
-# End Source File
-# Begin Source File
-
 SOURCE=.\common\ftp.cpp
 # End Source File
 # Begin Source File
@@ -2639,10 +2635,6 @@ SOURCE=..\include\wx\file.h
 # End Source File
 # Begin Source File
 
-SOURCE=..\include\wx\fileback.h
-# End Source File
-# Begin Source File
-
 SOURCE=..\include\wx\fileconf.h
 # End Source File
 # Begin Source File
index f671637436c5c19475aa23d377e0c17ed492f51b..67a0ee2efc9af68b8415d14d0f51e69ad6e99d8e 100644 (file)
@@ -240,7 +240,6 @@ wx/except.h
 wx/features.h
 wx/ffile.h
 wx/file.h
-wx/fileback.h
 wx/fileconf.h
 wx/filefn.h
 wx/filename.h
index bcc90cdfb34fa57c7f986136897871a9f2b2d038..f6d8e49bbedd48a7ca3e0b6ee0e975eee827907d 100644 (file)
@@ -143,7 +143,6 @@ wx/except.h
 wx/features.h
 wx/ffile.h
 wx/file.h
-wx/fileback.h
 wx/fileconf.h
 wx/filefn.h
 wx/filename.h
index 4f0baaff8a99c98541d349ec8a01fb7c06ec8ef3..7606cd95634cb628d63c8875f7f3f2d6efbfad5a 100644 (file)
@@ -168,7 +168,6 @@ wx/except.h
 wx/features.h
 wx/ffile.h
 wx/file.h
-wx/fileback.h
 wx/fileconf.h
 wx/filefn.h
 wx/filename.h