Newer
Older
powermon_manager_sw / lib / wxWidgets / include / wx / xrc / xh_infobar.h
@Razvan Turiac Razvan Turiac on 8 Jul 966 bytes Initial import
/////////////////////////////////////////////////////////////////////////////
// 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_