Vadim Zeitlin
02e22828eb
added a unit test for input/output file streams and fixed the problem it exposed ( #3335 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-15 17:34:50 +00:00
Vadim Zeitlin
92bf6cc15a
Also added wxFFileStream::IsOk() and corrected IsOk() implementations of
...
wxFileInput/OutputStream to call the immediate base class version of this
method and not wxStreamBase one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-10 02:02:54 +00:00
David Elliott
345fec0d57
Fix compilo due to r47267.
...
That patch might need some review because it does not use direct base classes but skips up to wxStreamBase.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 17:41:51 +00:00
Vadim Zeitlin
a6ac8d7582
added wxFileStream::IsOk() (patch 1749587)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 16:59:09 +00:00
Václav Slavík
dc65c743e5
changed wxFFileOutput/InputStream ctor 'mode' argument to wxString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-19 11:57:48 +00:00
Stefan Csomor
f02f4d43c5
fvisibility-inlines-hidden fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-19 13:49:26 +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
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
Michael Wetherell
ecc201480f
Set wxSTREAM_WRITE_ERROR for wxFFileInputStream when open fails
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-13 20:53:13 +00:00
Vadim Zeitlin
b9698194c1
set m_lasterror if the file couldn't be opened in wxFileInputStream ctor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-14 16:02:22 +00:00
Michael Wetherell
e126517457
Add wxTempFileOutputStream
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-13 16:20:51 +00:00
Ryan Norton
859906241d
compile wxFileXXXStream without wxFFileXXXStream
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-17 10:42:22 +00:00
Vadim Zeitlin
5fec5bb620
added mode parameter to wxFFileStream ctors taking wxFFile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-15 23:06:09 +00:00
Ron Lee
9adf429992
Fix wxGTK compilation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-22 07:07:24 +00:00
Włodzimierz Skiba
a6f4dbbd86
wxString and wxChar* access for file functions. Source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-21 17:44:50 +00:00
Vadim Zeitlin
70a7bd90f9
large files support for wxFFile (patch 1077980 from Mike Wetherell)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-12 11:53:53 +00:00
David Elliott
0a1390c7d8
Seek calls take an offset which can validly be negative. Use >= LONG_MIN not 0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-23 16:22:43 +00:00
Włodzimierz Skiba
f9df3f0586
Warning fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-22 17:45:20 +00:00
David Elliott
b9d84e4c06
Prevent crashes in wxFFile(Input|Output)Stream: Do not call Eof() or Error()
...
without first checking IsOpened().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-16 03:15:00 +00:00
Ron Lee
f8a586e08e
Cruft cleanup from MJW, strip the tabs out of sound.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-12 03:30:07 +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
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
cab1a6053d
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@29319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 14:32:35 +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
Jouk Jansen
b7fafe6a1f
Committing in .
...
OpenVMS updates
Modified Files:
wxWidgets/contrib/src/deprecated/resource.cpp
wxWidgets/src/common/descrip.mms
wxWidgets/src/common/wfstream.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-28 08:00:44 +00:00
Václav Slavík
a84e46f231
stream classes docs and code fixes (part of patch 924438)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 20:58:56 +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
f68c6b523c
Unicode compilation fixes after wxFFile change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-02 14:17:41 +00:00
Vadim Zeitlin
e69a1ea87c
compilation fix for HP-UX CC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-31 22:56:49 +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
9a26db9ed2
detect EOF properly in wxFileInputStream
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-12 18:15:11 +00:00
Stefan Csomor
06acc7d9a6
corrected return value
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-28 19:15:24 +00:00
Robert Roebling
942bef71b0
Applied BMP patch.
...
Applied deferred wxBitmapButton patch.
Added error checking to wxFileStream and wxFFileStream.
Corrected activate event things.
All these patches work in the stable branch, the
dev-branch does not currently compile.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-22 10:20:56 +00:00
Bryan Petty
f6bcfd974e
merged 2.2 branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-15 19:51:35 +00:00
Guilhem Lavaux
802e2f34c1
Added a missing wxStream_NOERROR
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-24 19:05:11 +00:00
Robert Roebling
65045edde4
Added wxFFileStream base on wxFFile (as opposed to wxFile)
...
Implemented the "endl" thing for text streams,
Corrected cursor display for text ctrls,
Corrected the strange spin button behaviour when dynamically
changing its range
Corrcected bug in wxListBox when programmatically unselecting
an item in multi-select mode (bug reports are getting esoteric)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-22 16:12:48 +00:00
Guilhem Lavaux
eb4642a989
Added a check for -lresolv in configure.in
...
Removed wxFileInputStream::Peek as it is implemented in wxInputStream::Peek
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-08-18 06:11:07 +00:00
Robert Roebling
cd25b18c8e
Renamed wxStream::StreamSize() to wxStream::GetSize()
...
Add wxStream bool operator !().
Made wxTextStream safe for conversion from/to Mac/DOS/Unix
Added wxFrame::Iconize()
Applied patch for stippled brushes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-07-24 10:50:13 +00:00
Guilhem Lavaux
a324a7bccf
Added GSocket for Unix (only GTK for the moment)
...
Updated wxSocket to use GSocket API
Added a progress bar to client.cpp
Added CopyTo to wxMemoryOutputStream to copy the internal buffer to a specified buffer.
Various changes/fixes to the high-level protocols FTP/HTTP
Various Unicode fixes
Removed sckint.*
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-07-22 17:51:54 +00:00
Robert Roebling
d1af991f49
A few compile things.
...
Changed resizing of multi-line text ctrl.
Augmented beta version to 8.
Distribution things.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-07-11 15:56:57 +00:00
Patrick Albert
cc985face5
Some minors changes, like adding empty lines at end of files, to be able to compile with VC++1.52c.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-07-09 15:30:31 +00:00
Guilhem Lavaux
fae05df5a9
* New wxStreams (to be documented), new classes: wxBufferedStreams,
...
wxTextStreams
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-07-07 17:45:35 +00:00
Robert Roebling
ce4169a4d1
Added a few #if wxUSE_XXX
...
Regrouped image format handlers
Updated the rest accordingly
Added changes.txt for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-15 20:21:59 +00:00
Guilhem Lavaux
0aca1ded9c
wxFileIn/OutputStream fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-24 12:05:30 +00:00
Unknown (UG)
593d4b0dff
no message
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-11-23 11:00:38 +00:00