Francesco Montorsi
8faef7ccbc
document that CanRead() and GetImageCount() functions of wxImageHandlers do NOT modify the current stream position and that they require seekable streams; rename current GetImageCount() functions to DoGetImageCount() and put save-and-restore stream position logic in GetImageCount(); add comments in the various DoCanRead() and in DoGetImageCount() where the stream position is modified; remove unneeded SeekI(0) calls from DoCanRead() and DoGetImageCount() functions: they didn't allow to load images from non-seekable streams; implement forward-seeking in wxInputStream::SeekI() also for non-seekable streams
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-01 11:43:36 +00:00
Vadim Zeitlin
36f062d3da
modify signature of new wxStreamBuffer ctors to avoid conflicts with the existing ones ( closes #10144 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 10:59:40 +00:00
Vadim Zeitlin
f42c1512dd
provide ctors allowing to specify the non-default buffer size for buffered streams and wxStreamBuffer itself
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 16:42:45 +00:00
Vadim Zeitlin
6c91ea6f89
update m_lastcount correctly in wxBufferedInputStream::Read() when using the buffer associated with another stream and not created by this one
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-11 20:23:29 +00:00
Vadim Zeitlin
b23bc769d3
remove redundant m_buffer_size member (patch 1861348)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-02 16:51:53 +00:00
Václav Slavík
8650108199
don't use implicit wxString->char*/wchar_t* conversion, it will not be available in wxUSE_STL build in the future
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:42:41 +00:00
Vadim Zeitlin
df18cc7aa1
added wxStreamBuffer::Truncate() (patch 1687081)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 18:11:37 +00:00
Vadim Zeitlin
6285e36ba0
added wxRTTI macros to stream classes (patch 1687073)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 23:35:13 +00:00
Vadim Zeitlin
68f146206f
fixed LastRead() after Read(wxOutputStream&) (patch 1658301)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-12 19:08:13 +00:00
Michael Wetherell
6ea48c514e
Change GetC to return an int so that it can return wxEOF on error.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 17:00:07 +00:00
Michael Wetherell
489a164c1c
Rename wxSTREAM_FILEEXTENSION to wxSTREAM_FILEEXT.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 16:47:20 +00:00
Michael Wetherell
58211774c8
Factory some of wxFilterClassFactory into a base class.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-27 07:52:28 +00:00
Michael Wetherell
a8d2cf4e70
Add wxFilterClassFactory::PopExtension().
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-26 22:43:15 +00:00
Michael Wetherell
166c3ef0f9
Add class factories for filter streams. Also filters now follow the convention
...
that they own their parent if they are created with a pointer to the parent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-25 20:41:12 +00:00
Mattia Barbon
653752be8a
Added wxRTTI macros to buffered DCs.
...
Fix a signed/unsigned warning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-15 15:45:13 +00:00
Robert Roebling
8913c40c32
Applied part of [ 1575767 ] Init/size/check fixes for sockets
...
Left out the time out parameter change.
Left out the improper test for arbitrary too large value upon
read failure.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-13 09:00:06 +00:00
Włodzimierz Skiba
530ecef01f
Include wx/stream.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-03 21:50:35 +00:00
Włodzimierz Skiba
8898456df4
wx/wxprec.h already includes wx/defs.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 07:24:35 +00:00
Vadim Zeitlin
0d2ef7a802
fixed a double free bug in SetBufferIO(size_t) (coverity checker CID 62)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-07 23:04:10 +00:00
Michael Wetherell
4a10ea8b13
Warning fixes for win64
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-17 22:08:05 +00:00
Mattia Barbon
dee1a63ff5
Removed WXWIN_COMPATIBILITY_2_2 together with code guarded by it.
...
Changed default for WXWIN_COMPATIBILITY_2_4 to 0.
Added WXWIN_COMPATIBILITY_2_6 (defaults to 1).
Ran build/update-setup-h.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-09 15:48:42 +00:00
Vadim Zeitlin
17a1ebd101
first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
15dc68b6b8
fixed Sun CC warning about local variable read hiding wxStreamBuffer::read
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-13 14:34:38 +00:00
Vadim Zeitlin
c15b71ae08
fixed bug in wxStreamBuffer::Read(wxStreamBuffer *) and improved its documentation (patch 1273774 by Paul Cornett)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-28 15:44:15 +00:00
Włodzimierz Skiba
287d71d992
Huge streams checking and warning fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-03 19:12:18 +00:00
Włodzimierz Skiba
2d67974d24
Old API clearly deprecated.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-07 20:03:22 +00:00
Ryan Norton
8f0ff17851
[ 1070686 ] wxOutputStream::Close()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-23 14:26:10 +00:00
Vadim Zeitlin
588066b7a3
replaced wxStream::GetSize() with GetLength() (still keep the former but it will be deprecated) (second part of patch 1063498)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-10 21:10:30 +00:00
Vadim Zeitlin
30984deafc
new set of fixes for problems due to huge files support: drop wxFileSize_t, use wxFileOffset only, make wxInvalidOffset an int (main part of the patch 1063498)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-10 21:02:58 +00:00
Jouk Jansen
fa06876d15
Committing in .
...
Patches to compile on OpenVMS
Modified Files:
wxWidgets/descrip.mms wxWidgets/src/common/db.cpp
wxWidgets/src/common/stream.cpp
Added Files:
wxWidgets/src/xml/descrip.mms wxWidgets/src/xrc/descrip.mms
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-02 07:13:19 +00:00
Vadim Zeitlin
67c20e133e
use wxFileSize_t instead of wxFileOffset or off_t
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 00:34:21 +00:00
Ron Lee
4004775e5a
Enable the huge files patch to build with mingw-cross.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-26 13:18:46 +00:00
Włodzimierz Skiba
d775fa8235
Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxNOT_FOUND/wxDefaultCoord, TRUE/true, FALSE/false.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 14:38:52 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
999836aaca
warning fixes for BCC and OW (heavily modified patch 819146)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-16 10:28:15 +00:00
Václav Slavík
14f355c2b5
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Julian Smart
55d99c7a77
Fixed copyrights and licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:28:33 +00:00
Vadim Zeitlin
2b5f62a0b2
merged 2.4 branch into the trunk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Vadim Zeitlin
9b11cb6e3f
fixed stream code breakage caused by the previous check in
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-10 11:45:10 +00:00
Vadim Zeitlin
9a76510b8a
loop in wxInputStream::Read() while there is data to read
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-29 22:10:02 +00:00
Vadim Zeitlin
42a3aedbce
fixed bug in Ungetch() which was preventing wxExecute() from working: this method must clear the EOF flag!
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-12 14:41:55 +00:00
Vadim Zeitlin
915a955caf
fixed wxStreamBuffer::Tell() to return at least sometimes a valid result
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-24 22:09:13 +00:00
Robert Roebling
adc350786e
Minor fixes to buffered stream in connection
...
with ungetch. See comments in the code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-23 16:06:54 +00:00
Vadim Zeitlin
d4b45f48c6
fixed a huge memory leak in wxStreamBuffer
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-13 00:05:37 +00:00
Vadim Zeitlin
e9f692911d
bug fix for wxBufferedInputStream::LastCount() after Read()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-09 20:18:20 +00:00
Ron Lee
0b9ab0bd82
Added new dynamic loading classes. (which handle proper
...
wxRTTI and wxModule initialisation and unloading)
Removed serialisation code from wxObject and elsewhere.
Added USER_EXPORTED hash and list macros.
Added *_PLUGGABLE_CLASS defines for exporting dynamic wxObjects
from dlls.
----------------------------------------------------------------------
Modified Files:
Makefile.in configure configure.in setup.h.in debian/changelog
distrib/msw/tmake/filelist.txt include/wx/defs.h
include/wx/docview.h include/wx/dynlib.h include/wx/fileconf.h
include/wx/hash.h include/wx/list.h include/wx/module.h
include/wx/object.h include/wx/resource.h include/wx/stream.h
include/wx/gtk/setup0.h include/wx/msw/setup0.h src/files.lst
src/wxBase.dsp src/wxUniv.dsp src/wxWindows.dsp
src/common/dynlib.cpp src/common/filename.cpp
src/common/module.cpp src/common/object.cpp
src/common/stream.cpp src/gtk/files.lst src/mac/files.lst
src/mgl/files.lst src/mgl/makefile.wat src/motif/files.lst
src/msw/dialup.cpp src/msw/files.lst src/msw/helpchm.cpp
src/msw/makefile.b32 src/msw/makefile.bcc src/msw/makefile.dos
src/msw/makefile.g95 src/msw/makefile.sc src/msw/makefile.vc
src/msw/makefile.wat src/os2/files.lst src/univ/files.lst
Added Files:
include/wx/dynload.h src/common/dynload.cpp
Removed Files:
include/wx/objstrm.h include/wx/serbase.h
src/common/objstrm.cpp src/common/serbase.cpp
utils/serialize/.cvsignore utils/serialize/makefile.b32
utils/serialize/sercore.cpp utils/serialize/sercore.h
utils/serialize/serctrl.cpp utils/serialize/serctrl.h
utils/serialize/serext.cpp utils/serialize/serext.h
utils/serialize/sergdi.cpp utils/serialize/sergdi.h
utils/serialize/sermain.cpp utils/serialize/serwnd.cpp
utils/serialize/serwnd.h
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-19 07:09:58 +00:00
Václav Slavík
ba0b7b3238
fixed yet another bug in wxStream classes
...
(This time, the braindead wannabe coder who wrote the original code created
wxStreamBase instance and then casted it to wxInputStream and hapilly used the stream,
which could of course never work. Anybody knows a cheap hitman?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-22 22:13:22 +00:00
Vadim Zeitlin
733b8ed3f9
use wxTextFile::Eol() in wxEndL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-07 23:20:05 +00:00