mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-02-12 14:45:38 +00:00
37 lines
966 B
C
37 lines
966 B
C
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// Name: wx/xrc/xh_infobar.h
|
||
|
// Purpose: XML resource handler for wxInfoBar
|
||
|
// Author: Ilya Sinitsyn
|
||
|
// Created: 2019-09-25
|
||
|
// Copyright: (c) 2019 TT-Solutions SARL
|
||
|
// Licence: wxWindows licence
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#ifndef _WX_XH_INFOBAR_H_
|
||
|
#define _WX_XH_INFOBAR_H_
|
||
|
|
||
|
#include "wx/xrc/xmlres.h"
|
||
|
|
||
|
#if wxUSE_XRC && wxUSE_INFOBAR
|
||
|
|
||
|
class WXDLLIMPEXP_XRC wxInfoBarXmlHandler : public wxXmlResourceHandler
|
||
|
{
|
||
|
wxDECLARE_DYNAMIC_CLASS(wxInfoBarXmlHandler);
|
||
|
|
||
|
public:
|
||
|
wxInfoBarXmlHandler();
|
||
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||
|
|
||
|
private:
|
||
|
wxShowEffect GetShowEffect(wxString const& param);
|
||
|
|
||
|
bool m_insideBar;
|
||
|
|
||
|
wxString m_effectNames[wxSHOW_EFFECT_MAX];
|
||
|
};
|
||
|
|
||
|
#endif // wxUSE_XRC && wxUSE_INFOBAR
|
||
|
|
||
|
#endif // _WX_XH_INFOBAR_H_
|