]> git.saurik.com Git - wxWidgets.git/blob - include/wx/xrc/xh_menu.h
Add wxDEPRECATED_MSG() and use it in a couple of places.
[wxWidgets.git] / include / wx / xrc / xh_menu.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/xrc/xh_menu.h
3 // Purpose: XML resource handler for menus/menubars
4 // Author: Vaclav Slavik
5 // Created: 2000/03/05
6 // Copyright: (c) 2000 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_XH_MENU_H_
11 #define _WX_XH_MENU_H_
12
13 #include "wx/xrc/xmlres.h"
14
15 #if wxUSE_XRC && wxUSE_MENUS
16
17 class WXDLLIMPEXP_XRC wxMenuXmlHandler : public wxXmlResourceHandler
18 {
19 DECLARE_DYNAMIC_CLASS(wxMenuXmlHandler)
20
21 public:
22 wxMenuXmlHandler();
23 virtual wxObject *DoCreateResource();
24 virtual bool CanHandle(wxXmlNode *node);
25
26 private:
27 bool m_insideMenu;
28 };
29
30 class WXDLLIMPEXP_XRC wxMenuBarXmlHandler : public wxXmlResourceHandler
31 {
32 DECLARE_DYNAMIC_CLASS(wxMenuBarXmlHandler)
33
34 public:
35 wxMenuBarXmlHandler();
36 virtual wxObject *DoCreateResource();
37 virtual bool CanHandle(wxXmlNode *node);
38 };
39
40 #endif // wxUSE_XRC && wxUSE_MENUS
41
42 #endif // _WX_XH_MENU_H_