Debian Codegraph @

wxcrafter/controls/menu_wrapper.h

raw
1 #ifndef MENUWRAPPER_H
2 #define MENUWRAPPER_H
3
4 #include "allocator_mgr.h"
5 #include "wxc_widget.h"
6
7 class MenuWrapper : public wxcWidget
8 {
9 public:
10 MenuWrapper();
11 virtual ~MenuWrapper();
12
13 wxcWidget* Clone() const;
14 wxString CppCtorCode() const;
15 void GetIncludeFile(wxArrayString& headers) const;
16 wxString GetWxClassName() const;
17 void ToXRC(wxString& text, XRC_TYPE type) const;
18 };
19
20 class SubMenuWrapper : public MenuWrapper
21 {
22 public:
23 SubMenuWrapper()
24 : MenuWrapper()
25 {
26 SetType(ID_WXSUBMENU);
27 }
28
29 virtual ~SubMenuWrapper() {}
30 wxcWidget* Clone() const { return new SubMenuWrapper(); }
31 };
32
33 #endif // MENUWRAPPER_H