| 1 |
#include "wx_collapsible_pane_pane_wrapper.h" |
| 2 |
#include "allocator_mgr.h" |
| 3 |
#include "wxgui_helpers.h" |
| 4 |
|
| 5 |
wxCollapsiblePanePaneWrapper::wxCollapsiblePanePaneWrapper() |
| 6 |
: wxcWidget(ID_WXCOLLAPSIBLEPANE_PANE) |
| 7 |
{ |
| 8 |
m_properties.DeleteValues(); |
| 9 |
m_styles.Clear(); |
| 10 |
m_sizerFlags.Clear(); |
| 11 |
|
| 12 |
AddProperty(new StringProperty(PROP_NAME, _("Name"), _("Name"))); |
| 13 |
m_namePattern = "m_collpaneWin"; |
| 14 |
SetName(GenerateName()); |
| 15 |
} |
| 16 |
|
| 17 |
wxCollapsiblePanePaneWrapper::~wxCollapsiblePanePaneWrapper() {} |
| 18 |
|
| 19 |
wxcWidget* wxCollapsiblePanePaneWrapper::Clone() const { return new wxCollapsiblePanePaneWrapper(); } |
| 20 |
|
| 21 |
wxString wxCollapsiblePanePaneWrapper::CppCtorCode() const { return ""; } |
| 22 |
|
| 23 |
void wxCollapsiblePanePaneWrapper::GetIncludeFile(wxArrayString& headers) const { wxUnusedVar(headers); } |
| 24 |
|
| 25 |
wxString wxCollapsiblePanePaneWrapper::GetWxClassName() const { return ""; } |
| 26 |
|
| 27 |
void wxCollapsiblePanePaneWrapper::ToXRC(wxString& text, XRC_TYPE type) const |
| 28 |
{ |
| 29 |
wxString xrc; |
| 30 |
xrc << "<object class=\"panewindow\" name=\"" << wxCrafter::XMLEncode(GetName()) << "\""; |
| 31 |
if(!PropertyString(PROP_SUBCLASS_NAME).empty()) { |
| 32 |
xrc << " subclass=\"" << wxCrafter::XMLEncode(PropertyString(PROP_SUBCLASS_NAME)) << "\""; |
| 33 |
} |
| 34 |
xrc << ">"; |
| 35 |
xrc << XRCSize() << XRCCommonAttributes() << XRCStyle(); |
| 36 |
ChildrenXRC(xrc, type); |
| 37 |
xrc << XRCSuffix(); |
| 38 |
|
| 39 |
text << xrc; |
| 40 |
} |