2004-09-01 17:47:16 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-07-04 18:08:09 +00:00
|
|
|
// Name: wx/xrc/xh_tglbtn.h
|
2004-09-01 17:47:16 +00:00
|
|
|
// Purpose: XML resource handler for wxToggleButton
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Created: 2004-08-30
|
|
|
|
// Copyright: (c) 2004 Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_XH_TGLBTN_H_
|
|
|
|
#define _WX_XH_TGLBTN_H_
|
|
|
|
|
|
|
|
#include "wx/xrc/xmlres.h"
|
|
|
|
|
2006-10-03 14:53:40 +00:00
|
|
|
#if wxUSE_XRC && wxUSE_TOGGLEBTN
|
2004-09-01 17:47:16 +00:00
|
|
|
|
|
|
|
class WXDLLIMPEXP_XRC wxToggleButtonXmlHandler : public wxXmlResourceHandler
|
|
|
|
{
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxToggleButtonXmlHandler);
|
2006-10-03 14:53:40 +00:00
|
|
|
|
2004-09-01 17:47:16 +00:00
|
|
|
public:
|
|
|
|
wxToggleButtonXmlHandler();
|
2015-09-07 00:20:42 +00:00
|
|
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
|
|
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
2010-05-16 14:30:13 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void DoCreateToggleButton(wxObject *control);
|
2014-05-15 23:56:58 +00:00
|
|
|
#if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !(defined(__WXGTK__) && !defined(__WXGTK20__))
|
2010-05-16 14:30:13 +00:00
|
|
|
virtual void DoCreateBitmapToggleButton(wxObject *control);
|
2010-05-27 13:45:06 +00:00
|
|
|
#endif
|
2004-09-01 17:47:16 +00:00
|
|
|
};
|
|
|
|
|
2006-10-03 14:53:40 +00:00
|
|
|
#endif // wxUSE_XRC && wxUSE_TOGGLEBTN
|
2004-09-01 17:47:16 +00:00
|
|
|
|
|
|
|
#endif // _WX_XH_TGLBTN_H_
|