wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
5.78k stars 1.7k forks source link

New class: wxZipOutputStream #6747

Closed wxtrac closed 2 years ago

wxtrac commented 19 years ago

Issue migrated from trac ticket # 6747

priority: low

2004-07-07 21:52:14: kbluck (Kevin Bluck) created the issue


This patch is made on 2.4.2. I believe it will work equally well on 2.5.2, but I cannot verify it since current makefiles for 2.5.2 break my MinGW.

The primary effect of this patch is to add a new class: wxZipOutputStream. This is a companion to the existing wxZipInputStream that allows writing files into a Zip archive.

Secondary changes:

Moved unzip.* from src/common to src/zlib. This seems logical to me since Minizip is in fact a contrib to zlib.

Added zip.c, zip.h, ioapi.c, ioapi.h to src/zlib.

Updated unzip., zip., ioapi.* to latest 1.01 version, suitably modified for wx.

Modified wxZipInputStream to provide a "NewFile()" function that allows the stream to switch to a reading a different file in the Zip without destroying the stream object. This mirrors a member function in wxZipOutputStream.

Updated documentation and tmake files.

wxtrac commented 19 years ago

2004-07-07 21:59:22: kbluck (Kevin Bluck) commented


Also updates zlib to 1.2.1

wxtrac commented 19 years ago

2004-07-08 13:53:20: chiclero commented


Hi,

Just to let you know that I'm currenlty working on zip streams as part of a effort to add streams for archive formats. I'm close to having it ready for submission, I uploaded the implemetation for zips this morning here: http://cvs.sf.net/viewcvs.py/wxcode/wxCode/components/wxarchive/ in case you want to look at it (see the Readme).

And also there is Ryan's project wxZipStream, now also on http://wxcode.sf.net I think.

Mike

wxtrac commented 19 years ago

2004-07-25 18:02:36: @vadz commented


I didn't try to apply this patch yet (I'd like to wait for Mike's patch too and have a look at both of them first) but please make a patch against cvs HEAD, it can't be applied to 2.4. Plenty of people use 2.5 with mingw32 so it should really be possible for you to use it too...

Thanks!

wxtrac commented 19 years ago

2004-09-16 21:40:01: kbluck (Kevin Bluck) commented


Deleted. I've made a new patch against HEAD, and this one was kind of goofed up anyway.