From: Vadim Zeitlin Date: Wed, 11 Apr 2007 00:19:20 +0000 (+0000) Subject: add support for a data tag which can be used to embed arbitrary data into the generat... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/325cf48f5a522a0b6ac59dddb87a9983803d0969 add support for a data tag which can be used to embed arbitrary data into the generated code (part of some forgotten patch...) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index 4c8e1d502c..582ad5f2f0 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -112,6 +112,7 @@ public: bool CanBeUsedWithXRCCTRL(const wxString& name) { if (name == _T("tool") || + name == _T("data") || name == _T("unknown") || name == _T("notebookpage") || name == _T("separator") || @@ -455,7 +456,9 @@ static bool NodeContainsFilename(wxXmlNode *node) if ( name == _T("object") ) { wxString klass = node->GetPropVal(_T("class"), wxEmptyString); - if (klass == _T("wxBitmap") || klass == _T("wxIcon")) + if (klass == _T("wxBitmap") || + klass == _T("wxIcon") || + klass == _T("data") ) return true; }