2000-08-11 19:10:39 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-07-04 18:08:09 +00:00
|
|
|
// Name: wx/xrc/xh_toolb.h
|
2006-10-03 14:53:40 +00:00
|
|
|
// Purpose: XML resource handler for wxToolBar
|
2000-08-11 19:10:39 +00:00
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Created: 2000/08/11
|
|
|
|
// Copyright: (c) 2000 Vaclav Slavik
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_XH_TOOLB_H_
|
|
|
|
#define _WX_XH_TOOLB_H_
|
|
|
|
|
2001-06-09 22:18:45 +00:00
|
|
|
#include "wx/xrc/xmlres.h"
|
2000-08-11 19:10:39 +00:00
|
|
|
|
2006-10-03 14:53:40 +00:00
|
|
|
#if wxUSE_XRC && wxUSE_TOOLBAR
|
2000-08-11 19:10:39 +00:00
|
|
|
|
2007-07-09 10:09:52 +00:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxToolBar;
|
2000-08-11 19:10:39 +00:00
|
|
|
|
2003-07-04 13:33:42 +00:00
|
|
|
class WXDLLIMPEXP_XRC wxToolBarXmlHandler : public wxXmlResourceHandler
|
2000-08-11 19:10:39 +00:00
|
|
|
{
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxToolBarXmlHandler);
|
2006-10-03 14:53:40 +00:00
|
|
|
|
2001-05-02 23:01:00 +00:00
|
|
|
public:
|
|
|
|
wxToolBarXmlHandler();
|
2015-09-07 00:20:42 +00:00
|
|
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
|
|
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
2001-06-05 22:03:02 +00:00
|
|
|
|
2001-05-02 23:01:00 +00:00
|
|
|
private:
|
|
|
|
bool m_isInside;
|
|
|
|
wxToolBar *m_toolbar;
|
2009-05-05 18:23:04 +00:00
|
|
|
wxSize m_toolSize;
|
2000-08-11 19:10:39 +00:00
|
|
|
};
|
|
|
|
|
2006-10-03 14:53:40 +00:00
|
|
|
#endif // wxUSE_XRC && wxUSE_TOOLBAR
|
2000-08-11 19:10:39 +00:00
|
|
|
|
2006-10-03 14:53:40 +00:00
|
|
|
#endif // _WX_XH_TOOLB_H_
|