| 1 |
#include "ribbon_button_bar_wrapper.h" |
| 2 |
|
| 3 |
#include "allocator_mgr.h" |
| 4 |
|
| 5 |
#include <wx/ribbon/buttonbar.h> |
| 6 |
|
| 7 |
RibbonButtonBarWrapper::RibbonButtonBarWrapper() |
| 8 |
: wxcWidget(ID_WXRIBBONBUTTONBAR) |
| 9 |
{ |
| 10 |
SetPropertyString(_("Common Settings"), "wxRibbonButtonBar"); |
| 11 |
m_namePattern = "m_ribbonButtonBar"; |
| 12 |
SetName(GenerateName()); |
| 13 |
} |
| 14 |
|
| 15 |
RibbonButtonBarWrapper::~RibbonButtonBarWrapper() {} |
| 16 |
|
| 17 |
wxcWidget* RibbonButtonBarWrapper::Clone() const { return new RibbonButtonBarWrapper(); } |
| 18 |
|
| 19 |
wxString RibbonButtonBarWrapper::CppCtorCode() const |
| 20 |
{ |
| 21 |
wxString cppcode; |
| 22 |
cppcode << CPPStandardWxCtor("0"); |
| 23 |
return cppcode; |
| 24 |
} |
| 25 |
|
| 26 |
void RibbonButtonBarWrapper::GetIncludeFile(wxArrayString& headers) const |
| 27 |
{ |
| 28 |
headers.Add("#include <wx/ribbon/buttonbar.h>"); |
| 29 |
} |
| 30 |
|
| 31 |
wxString RibbonButtonBarWrapper::GetWxClassName() const { return "wxRibbonButtonBar"; } |
| 32 |
|
| 33 |
void RibbonButtonBarWrapper::ToXRC(wxString& text, XRC_TYPE type) const |
| 34 |
{ |
| 35 |
text << XRCPrefix() << XRCSize() << XRCStyle(); |
| 36 |
ChildrenXRC(text, type); |
| 37 |
text << XRCSuffix(); |
| 38 |
} |
| 39 |
|
| 40 |
wxString RibbonButtonBarWrapper::DoGenerateCppCtorCode_End() const |
| 41 |
{ |
| 42 |
return wxString() << GetName() << "->Realize();\n\n"; |
| 43 |
} |