#include "wx/wfstream.h"
#endif
#endif
-#include <math.h>
+#include "wx/math.h"
//-----------------------------------------------------------------------------
// wxMask
class wxXPMFileHandler : public wxBitmapHandler
{
- DECLARE_DYNAMIC_CLASS(wxXPMFileHandler);
+ DECLARE_DYNAMIC_CLASS(wxXPMFileHandler)
public:
wxXPMFileHandler()
{
- m_name = wxT("XPM file");
- m_extension = wxT("xpm");
- m_type = wxBITMAP_TYPE_XPM;
+ SetName( wxT("XPM file") );
+ SetExtension( wxT("xpm") );
+ SetType( wxBITMAP_TYPE_XPM );
};
virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
class wxXPMDataHandler : public wxBitmapHandler
{
- DECLARE_DYNAMIC_CLASS(wxXPMDataHandler);
+ DECLARE_DYNAMIC_CLASS(wxXPMDataHandler)
public:
wxXPMDataHandler()
{
- m_name = wxT("XPM data");
- m_extension = wxT("xpm");
- m_type = wxBITMAP_TYPE_XPM_DATA;
+ SetName( wxT("XPM data") );
+ SetExtension( wxT("xpm") );
+ SetType( wxBITMAP_TYPE_XPM_DATA );
};
virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
public:
inline wxXBMDataHandler()
{
- m_name = wxT("XBM data");
- m_extension = wxT("xbm");
- m_type = wxBITMAP_TYPE_XBM_DATA;
+ SetName( wxT("XBM data") );
+ SetExtension( wxT("xbm") );
+ SetType( wxBITMAP_TYPE_XBM_DATA );
};
virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,