]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/imagiff.h
Try loading even English translations if provided.
[wxWidgets.git] / include / wx / imagiff.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/imagiff.h
3// Purpose: wxImage handler for Amiga IFF images
4// Author: Steffen Gutmann
5// Copyright: (c) Steffen Gutmann, 2002
6// Licence: wxWindows licence
7/////////////////////////////////////////////////////////////////////////////
8
9#ifndef _WX_IMAGE_IFF_H_
10#define _WX_IMAGE_IFF_H_
11
12#include "wx/image.h"
13
14//-----------------------------------------------------------------------------
15// wxIFFHandler
16//-----------------------------------------------------------------------------
17
18#if wxUSE_IMAGE && wxUSE_IFF
19
20class WXDLLIMPEXP_CORE wxIFFHandler : public wxImageHandler
21{
22public:
23 wxIFFHandler()
24 {
25 m_name = wxT("IFF file");
26 m_extension = wxT("iff");
27 m_type = wxBITMAP_TYPE_IFF;
28 m_mime = wxT("image/x-iff");
29 }
30
31#if wxUSE_STREAMS
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);
34protected:
35 virtual bool DoCanRead(wxInputStream& stream);
36#endif
37
38 DECLARE_DYNAMIC_CLASS(wxIFFHandler)
39};
40
41#endif // wxUSE_IMAGE && wxUSE_IFF
42
43#endif // _WX_IMAGE_IFF_H_