From 325cf48f5a522a0b6ac59dddb87a9983803d0969 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 11 Apr 2007 00:19:20 +0000 Subject: [PATCH] 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 --- utils/wxrc/wxrc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.50.0