]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagpcx.h
use wxTextEntry in wxTextValidator (modified patch 1821743)
[wxWidgets.git] / include / wx / imagpcx.h
CommitLineData
8f493002
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: imagpcx.h
3// Purpose: wxImage PCX handler
4// Author: Guillermo Rodriguez Garcia <guille@iies.es>
5// RCS-ID: $Id$
6// Copyright: (c) 1999 Guillermo Rodriguez Garcia
65571936 7// Licence: wxWindows licence
8f493002
VS
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_IMAGPCX_H_
11#define _WX_IMAGPCX_H_
12
8f493002
VS
13#include "wx/image.h"
14
15
16//-----------------------------------------------------------------------------
17// wxPCXHandler
18//-----------------------------------------------------------------------------
19
20#if wxUSE_PCX
21class WXDLLEXPORT wxPCXHandler : public wxImageHandler
22{
8f493002 23public:
2b5f62a0
VZ
24 inline wxPCXHandler()
25 {
26 m_name = wxT("PCX file");
27 m_extension = wxT("pcx");
28 m_type = wxBITMAP_TYPE_PCX;
29 m_mime = wxT("image/pcx");
30 }
8f493002
VS
31
32#if wxUSE_STREAMS
7beb59f3
WS
33 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
34 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
6f02a879 35protected:
2b5f62a0 36 virtual bool DoCanRead( wxInputStream& stream );
8f493002 37#endif // wxUSE_STREAMS
2b5f62a0
VZ
38
39private:
40 DECLARE_DYNAMIC_CLASS(wxPCXHandler)
8f493002
VS
41};
42#endif // wxUSE_PCX
43
44
45#endif
46 // _WX_IMAGPCX_H_
47