wx/features.h \
wx/ffile.h \
wx/file.h \
- wx/fileback.h \
wx/fileconf.h \
wx/filefn.h \
wx/filename.h \
wx/features.h \
wx/ffile.h \
wx/file.h \
- wx/fileback.h \
wx/fileconf.h \
wx/filefn.h \
wx/filename.h \
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 \
monodll_fmapbase.o \
monodll_fs_arc.o \
monodll_fs_filter.o \
- monodll_fs_zip.o \
monodll_hash.o \
monodll_hashmap.o \
monodll_init.o \
monolib_fmapbase.o \
monolib_fs_arc.o \
monolib_fs_filter.o \
- monolib_fs_zip.o \
monolib_hash.o \
monolib_hashmap.o \
monolib_init.o \
basedll_fmapbase.o \
basedll_fs_arc.o \
basedll_fs_filter.o \
- basedll_fs_zip.o \
basedll_hash.o \
basedll_hashmap.o \
basedll_init.o \
baselib_fmapbase.o \
baselib_fs_arc.o \
baselib_fs_filter.o \
- baselib_fs_zip.o \
baselib_hash.o \
baselib_hashmap.o \
baselib_init.o \
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
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
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
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
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
wx/features.h
wx/ffile.h
wx/file.h
- wx/fileback.h
wx/fileconf.h
wx/filefn.h
wx/filename.h
$(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 \
$(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 \
$(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 \
$(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 \
$(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) $**
$(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) $**
$(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) $**
$(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) $**
$(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 \
$(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 \
$(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 \
$(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 \
$(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) $<
$(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) $<
$(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) $<
$(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) $<
$(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 \
$(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 \
$(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 \
$(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 \
$(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) $**
$(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) $**
$(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) $**
$(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) $**
$(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 &
$(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 &
$(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 &
$(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 &
$(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) $<
$(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) $<
$(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) $<
$(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) $<
# 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
# 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
--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
--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
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
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
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
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
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
# 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;
}
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
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
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
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
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
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
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)
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)
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
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])
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
/////////////////////////////////////////////////////////////////////////////
-// 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_
-
// 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
// 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
// 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
// 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
// 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
// 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
--- /dev/null
+/////////////////////////////////////////////////////////////////////////////
+// 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__
// 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
// 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
#define wxUSE_ZIPSTREAM 0
-#define wxUSE_BACKINGFILE 0
-
#define wxUSE_TARSTREAM 0
#define wxUSE_ZLIB 0
#define wxUSE_TARSTREAM 1
-#define wxUSE_BACKINGFILE 1
-
#define wxUSE_ZLIB 1
#define wxUSE_APPLE_IEEE 0
#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"
return m_pos;
}
-#endif // wxUSE_BACKINGFILE
+#endif // wxUSE_FILESYSTEM
#include "wx/mimetype.h"
#include "wx/filename.h"
#include "wx/tokenzr.h"
-#include "wx/fileback.h"
+#include "wx/private/fileback.h"
//--------------------------------------------------------------------------------
#endif
#include "wx/archive.h"
-#include "wx/fileback.h"
-#include "wx/thread.h"
+#include "wx/private/fileback.h"
//---------------------------------------------------------------------------
// wxArchiveFSCacheDataImpl
+++ /dev/null
-/////////////////////////////////////////////////////////////////////////////
-// 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
# 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
# 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
wx/features.h
wx/ffile.h
wx/file.h
-wx/fileback.h
wx/fileconf.h
wx/filefn.h
wx/filename.h
wx/features.h
wx/ffile.h
wx/file.h
-wx/fileback.h
wx/fileconf.h
wx/filefn.h
wx/filename.h
wx/features.h
wx/ffile.h
wx/file.h
-wx/fileback.h
wx/fileconf.h
wx/filefn.h
wx/filename.h