]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagiff.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / imagiff.h
CommitLineData
63f8abca 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/imagiff.h
63f8abca
VS
3// Purpose: wxImage handler for Amiga IFF images
4// Author: Steffen Gutmann
63f8abca 5// Copyright: (c) Steffen Gutmann, 2002
65571936 6// Licence: wxWindows licence
63f8abca
VS
7/////////////////////////////////////////////////////////////////////////////
8
9#ifndef _WX_IMAGE_IFF_H_
10#define _WX_IMAGE_IFF_H_
4b6b4dfc 11
4b6b4dfc 12#include "wx/image.h"
4b6b4dfc
RR
13
14//-----------------------------------------------------------------------------
15// wxIFFHandler
16//-----------------------------------------------------------------------------
17
63f8abca 18#if wxUSE_IMAGE && wxUSE_IFF
4b6b4dfc 19
53a2db12 20class WXDLLIMPEXP_CORE wxIFFHandler : public wxImageHandler
4b6b4dfc 21{
4b6b4dfc 22public:
4b6b4dfc
RR
23 wxIFFHandler()
24 {
63f8abca
VS
25 m_name = wxT("IFF file");
26 m_extension = wxT("iff");
27 m_type = wxBITMAP_TYPE_IFF;
28 m_mime = wxT("image/x-iff");
2b5f62a0 29 }
4b6b4dfc
RR
30
31#if wxUSE_STREAMS
7beb59f3
WS
32 virtual bool LoadFile(wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1);
33 virtual bool SaveFile(wxImage *image, wxOutputStream& stream, bool verbose=true);
3c75d8ba 34protected:
4b6b4dfc
RR
35 virtual bool DoCanRead(wxInputStream& stream);
36#endif
2b5f62a0 37
2b5f62a0 38 DECLARE_DYNAMIC_CLASS(wxIFFHandler)
4b6b4dfc 39};
4b6b4dfc 40
63f8abca 41#endif // wxUSE_IMAGE && wxUSE_IFF
4b6b4dfc 42
63f8abca 43#endif // _WX_IMAGE_IFF_H_