Lots of small changes to prevent glibc from crashing
when converting ansi strings to unicode. After this, you can use and display east asian locales in wxGTK, which looks sorta funny... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,12 +43,7 @@ public:
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxCAL_SHOW_HOLIDAYS | wxWANTS_CHARS,
|
||||
const wxString& name = wxCalendarNameStr)
|
||||
{
|
||||
Init();
|
||||
|
||||
(void)Create(parent, id, date, pos, size, style, name);
|
||||
}
|
||||
const wxString& name = wxCalendarNameStr);
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
|
@@ -44,7 +44,7 @@ class WXDLLEXPORT wxImageHandler: public wxObject
|
||||
{
|
||||
public:
|
||||
wxImageHandler()
|
||||
: m_name(""), m_extension(""), m_mime(), m_type(0)
|
||||
: m_name(wxT("")), m_extension(wxT("")), m_mime(), m_type(0)
|
||||
{ }
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
|
@@ -25,23 +25,23 @@
|
||||
|
||||
class WXDLLEXPORT wxGIFHandler : public wxImageHandler
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxGIFHandler)
|
||||
|
||||
public:
|
||||
|
||||
inline wxGIFHandler()
|
||||
{
|
||||
m_name = "GIF file";
|
||||
m_extension = "gif";
|
||||
m_type = wxBITMAP_TYPE_GIF;
|
||||
m_mime = "image/gif";
|
||||
};
|
||||
inline wxGIFHandler()
|
||||
{
|
||||
m_name = wxT("GIF file");
|
||||
m_extension = wxT("gif");
|
||||
m_type = wxBITMAP_TYPE_GIF;
|
||||
m_mime = wxT("image/gif");
|
||||
}
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
#endif
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGIFHandler)
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@@ -24,8 +24,6 @@
|
||||
|
||||
class WXDLLEXPORT wxIFFHandler : public wxImageHandler
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxIFFHandler)
|
||||
|
||||
public:
|
||||
wxIFFHandler()
|
||||
{
|
||||
@@ -33,13 +31,16 @@ public:
|
||||
m_extension = wxT("iff");
|
||||
m_type = wxBITMAP_TYPE_IFF;
|
||||
m_mime = wxT("image/x-iff");
|
||||
};
|
||||
}
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
virtual bool LoadFile(wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1);
|
||||
virtual bool SaveFile(wxImage *image, wxOutputStream& stream, bool verbose=TRUE);
|
||||
virtual bool DoCanRead(wxInputStream& stream);
|
||||
#endif
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxIFFHandler)
|
||||
};
|
||||
|
||||
#endif // wxUSE_IMAGE && wxUSE_IFF
|
||||
|
@@ -23,23 +23,23 @@
|
||||
#if wxUSE_LIBJPEG
|
||||
class WXDLLEXPORT wxJPEGHandler: public wxImageHandler
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxJPEGHandler)
|
||||
|
||||
public:
|
||||
|
||||
inline wxJPEGHandler()
|
||||
{
|
||||
m_name = "JPEG file";
|
||||
m_extension = "jpg";
|
||||
m_type = wxBITMAP_TYPE_JPEG;
|
||||
m_mime = "image/jpeg";
|
||||
};
|
||||
inline wxJPEGHandler()
|
||||
{
|
||||
m_name = wxT("JPEG file");
|
||||
m_extension = wxT("jpg");
|
||||
m_type = wxBITMAP_TYPE_JPEG;
|
||||
m_mime = wxT("image/jpeg");
|
||||
}
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
#endif
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxJPEGHandler)
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@@ -24,23 +24,23 @@
|
||||
#if wxUSE_PCX
|
||||
class WXDLLEXPORT wxPCXHandler : public wxImageHandler
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxPCXHandler)
|
||||
|
||||
public:
|
||||
|
||||
inline wxPCXHandler()
|
||||
{
|
||||
m_name = "PCX file";
|
||||
m_extension = "pcx";
|
||||
m_type = wxBITMAP_TYPE_PCX;
|
||||
m_mime = "image/pcx";
|
||||
};
|
||||
inline wxPCXHandler()
|
||||
{
|
||||
m_name = wxT("PCX file");
|
||||
m_extension = wxT("pcx");
|
||||
m_type = wxBITMAP_TYPE_PCX;
|
||||
m_mime = wxT("image/pcx");
|
||||
}
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
#endif // wxUSE_STREAMS
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPCXHandler)
|
||||
};
|
||||
#endif // wxUSE_PCX
|
||||
|
||||
|
@@ -23,23 +23,23 @@
|
||||
#if wxUSE_LIBPNG
|
||||
class WXDLLEXPORT wxPNGHandler: public wxImageHandler
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxPNGHandler)
|
||||
|
||||
public:
|
||||
|
||||
inline wxPNGHandler()
|
||||
{
|
||||
m_name = "PNG file";
|
||||
m_extension = "png";
|
||||
m_type = wxBITMAP_TYPE_PNG;
|
||||
m_mime = "image/png";
|
||||
};
|
||||
inline wxPNGHandler()
|
||||
{
|
||||
m_name = wxT("PNG file");
|
||||
m_extension = wxT("png");
|
||||
m_type = wxBITMAP_TYPE_PNG;
|
||||
m_mime = wxT("image/png");
|
||||
}
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
#endif
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPNGHandler)
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@@ -23,23 +23,23 @@
|
||||
#if wxUSE_PNM
|
||||
class WXDLLEXPORT wxPNMHandler : public wxImageHandler
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxPNMHandler)
|
||||
|
||||
public:
|
||||
|
||||
inline wxPNMHandler()
|
||||
{
|
||||
m_name = "PNM file";
|
||||
m_extension = "pnm";
|
||||
m_type = wxBITMAP_TYPE_PNM;
|
||||
m_mime = "image/pnm";
|
||||
};
|
||||
inline wxPNMHandler()
|
||||
{
|
||||
m_name = wxT("PNM file");
|
||||
m_extension = wxT("pnm");
|
||||
m_type = wxBITMAP_TYPE_PNM;
|
||||
m_mime = wxT("image/pnm");
|
||||
}
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
#endif
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPNMHandler)
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@@ -24,24 +24,24 @@
|
||||
#if wxUSE_LIBTIFF
|
||||
class WXDLLEXPORT wxTIFFHandler: public wxImageHandler
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxTIFFHandler)
|
||||
|
||||
public:
|
||||
|
||||
inline wxTIFFHandler()
|
||||
{
|
||||
m_name = "TIFF file";
|
||||
m_extension = "tif";
|
||||
m_type = wxBITMAP_TYPE_TIF;
|
||||
m_mime = "image/tiff";
|
||||
};
|
||||
inline wxTIFFHandler()
|
||||
{
|
||||
m_name = wxT("TIFF file");
|
||||
m_extension = wxT("tif");
|
||||
m_type = wxBITMAP_TYPE_TIF;
|
||||
m_mime = wxT("image/tiff");
|
||||
}
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
virtual int GetImageCount( wxInputStream& stream );
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
virtual int GetImageCount( wxInputStream& stream );
|
||||
#endif
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxTIFFHandler)
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@@ -23,23 +23,23 @@
|
||||
|
||||
class WXDLLEXPORT wxXPMHandler : public wxImageHandler
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxXPMHandler)
|
||||
|
||||
public:
|
||||
|
||||
inline wxXPMHandler()
|
||||
{
|
||||
m_name = wxT("XPM file");
|
||||
m_extension = wxT("xpm");
|
||||
m_type = wxBITMAP_TYPE_XPM;
|
||||
m_mime = wxT("image/xpm");
|
||||
};
|
||||
inline wxXPMHandler()
|
||||
{
|
||||
m_name = wxT("XPM file");
|
||||
m_extension = wxT("xpm");
|
||||
m_type = wxBITMAP_TYPE_XPM;
|
||||
m_mime = wxT("image/xpm");
|
||||
}
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 );
|
||||
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
|
||||
virtual bool DoCanRead( wxInputStream& stream );
|
||||
#endif
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxXPMHandler)
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user