wxTextStream now interprets 1,1 as 1.1 (European formating).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,11 +1,36 @@
|
||||
|
||||
20th November '99: wxWindows 2.1.12 released
|
||||
19th December '99: wxWindows 2.1.12 released
|
||||
|
||||
Who has a BigEndian computer (e.g. Sparc) that runs a 15 and/or
|
||||
16 bit colour mode. I need this for testing purposes, i.e. this
|
||||
16 bit colour mode? I need this for testing purposes, i.e. this
|
||||
person could help me by running a small testprogram and sending
|
||||
me the output.
|
||||
|
||||
Implemented wxMenuBar::Insert() and wxMenu::Insert(). There is
|
||||
also a Remove() method now, but the GTK doesn't really like that.
|
||||
|
||||
Enhanced wxMimeTypesManager to read GNOME and KDE file ending
|
||||
bindings to MIME types and icons.
|
||||
|
||||
Corrected wxExecute to longer eat up all memory and crash under
|
||||
certain circumstances (Karsten Ballueder).
|
||||
|
||||
wxGTK no longer gives warnings if the application shows a dialog
|
||||
before entering the main loop.
|
||||
|
||||
Updated documentation for wxFile, wxFFile and their respective
|
||||
stream classes. Documented some more stream classes.
|
||||
|
||||
Improved wxHTML and its help system. Options dialog, better printing,
|
||||
history index.
|
||||
|
||||
Corrected wxRegion::GetBox().
|
||||
|
||||
Added wxNotebookSizer for combining notebooks and sizers.
|
||||
|
||||
Added wxDir class. Useful as a replacement for wxFileGetFirst()
|
||||
and wxFileGetNext().
|
||||
|
||||
Added wxStopWatch class.
|
||||
|
||||
wxBitmap now derives from wxGDIObject.
|
||||
@@ -23,7 +48,7 @@ Rewritten wxThread to have a flag controlling if the
|
||||
thread will delete its C++ class itself ("delete this") or
|
||||
if the main thread must delete the C++ class.
|
||||
|
||||
Added TIFF reading code.
|
||||
Added TIFF reading code, PCX writing code.
|
||||
|
||||
Minor compile and build fixes for different architectures.
|
||||
|
||||
@@ -42,14 +67,14 @@ Corrected wrongly set flag in dialogs which broke its tab code.
|
||||
Also corrected navigation on wxRadioBox.
|
||||
|
||||
Corrected segfaults in wxGLCanvas and stupid race when using
|
||||
several such windows.
|
||||
several such canvasses.
|
||||
|
||||
Some minor updates to wxSockets.
|
||||
|
||||
Speed-up for new encoding related font code.
|
||||
|
||||
Change wxListCtrl to send deferred events, i.e. events emitted by
|
||||
the list ctrl won't get processed before the next idle message.
|
||||
Changed wxListBox to send deferred events, i.e. events emitted by
|
||||
the listbox won't get processed before the next idle message.
|
||||
|
||||
Some more minor changes.
|
||||
|
||||
|
@@ -3,9 +3,6 @@
|
||||
|
||||
More testing of Unicode support.
|
||||
|
||||
Add ID based i18n system as a replacement for the
|
||||
unelegant gettext system.
|
||||
|
||||
Improve, update translations. Install *.mo files somewehere.
|
||||
|
||||
-------------------- Medium priority ---------------------
|
||||
|
@@ -188,7 +188,7 @@ void MyApp::DoStreamDemo(wxCommandEvent& WXUNUSED(event))
|
||||
|
||||
wxFileInputStream file_input( "test_wx.dat" );
|
||||
wxBufferedInputStream buf_input( file_input );
|
||||
wxTextInputStream text_input( buf_input );
|
||||
wxTextInputStream text_input( file_input );
|
||||
|
||||
text_input >> si;
|
||||
tmp.Printf( _T("Signed int: %d\n"), si );
|
||||
|
@@ -150,7 +150,7 @@ double wxTextInputStream::ReadDouble()
|
||||
if (c==(wxChar)0) return 0;
|
||||
|
||||
f = 0.0;
|
||||
if (! (c == wxT('.') || c == wxT('-') || c == wxT('+') || isdigit(c)) )
|
||||
if (! (c == wxT('.') || c == wxT(',') || c == wxT('-') || c == wxT('+') || isdigit(c)) )
|
||||
{
|
||||
m_input.Ungetch(c);
|
||||
return 0.0;
|
||||
@@ -177,7 +177,7 @@ double wxTextInputStream::ReadDouble()
|
||||
c = m_input.GetC();
|
||||
}
|
||||
|
||||
if (c == wxT('.'))
|
||||
if (c == wxT('.') || c == wxT(','))
|
||||
{
|
||||
double f_multiplicator = (double) 0.1;
|
||||
|
||||
@@ -418,25 +418,37 @@ wxTextOutputStream& wxTextOutputStream::operator<<(wxChar c)
|
||||
|
||||
wxTextOutputStream& wxTextOutputStream::operator<<(wxInt16 c)
|
||||
{
|
||||
Write16( (wxUint16)c );
|
||||
wxString str;
|
||||
str.Printf(wxT("%d"), (signed int)c);
|
||||
WriteString(str);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
wxTextOutputStream& wxTextOutputStream::operator<<(wxInt32 c)
|
||||
{
|
||||
Write32( (wxUint32)c );
|
||||
wxString str;
|
||||
str.Printf(wxT("%ld"), (signed long)c);
|
||||
WriteString(str);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
wxTextOutputStream& wxTextOutputStream::operator<<(wxUint16 c)
|
||||
{
|
||||
Write16(c);
|
||||
wxString str;
|
||||
str.Printf(wxT("%u"), (unsigned int)c);
|
||||
WriteString(str);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
wxTextOutputStream& wxTextOutputStream::operator<<(wxUint32 c)
|
||||
{
|
||||
Write32(c);
|
||||
wxString str;
|
||||
str.Printf(wxT("%lu"), (unsigned long)c);
|
||||
WriteString(str);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user