X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76ff8ed6736af1c5d6fe8ba3280c02ff55b54a6a..5f167b77d20f656f9e855113175849bd2e79cc58:/utils/wxrc/wxrc.cpp?ds=sidebyside diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index f17badc498..f5ac65295d 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -19,6 +19,7 @@ #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/log.h" + #include "wx/wxcrtvararg.h" #endif #include "wx/cmdline.h" @@ -109,9 +110,10 @@ public: return m_wdata; } - bool IsRealClass(const wxString& name) + bool CanBeUsedWithXRCCTRL(const wxString& name) { if (name == _T("tool") || + name == _T("data") || name == _T("unknown") || name == _T("notebookpage") || name == _T("separator") || @@ -131,10 +133,10 @@ public: file.Write(_T("class ") + m_className + _T(" : public ") + m_parentClassName + _T(" {\nprotected:\n")); size_t i; - for(i=0;iGetPropVal(_T("class"), wxEmptyString); - if (klass == _T("wxBitmap") || klass == _T("wxIcon")) + if (klass == _T("wxBitmap") || + klass == _T("wxIcon") || + klass == _T("data") ) return true; } @@ -510,7 +514,7 @@ void XmlResApp::FindFilesInXML(wxXmlNode *node, wxArrayString& flist, const wxSt void XmlResApp::DeleteTempFiles(const wxArrayString& flist) { - for (size_t i = 0; i < flist.Count(); i++) + for (size_t i = 0; i < flist.GetCount(); i++) wxRemoveFile(parOutputPath + wxFILE_SEP_PATH + flist[i]); } @@ -520,7 +524,7 @@ void XmlResApp::MakePackageZIP(const wxArrayString& flist) { wxString files; - for (size_t i = 0; i < flist.Count(); i++) + for (size_t i = 0; i < flist.GetCount(); i++) files += flist[i] + _T(" "); files.RemoveLast(); @@ -611,7 +615,7 @@ _T("#include \n") _T("#include \n") _T("\n")); - for (i = 0; i < flist.Count(); i++) + for (i = 0; i < flist.GetCount(); i++) file.Write( FileToCppArray(parOutputPath + wxFILE_SEP_PATH + flist[i], i)); @@ -630,7 +634,7 @@ _T(" else wxFileSystem::AddHandler(new wxMemoryFSHandler);\n") _T(" }\n") _T("\n")); - for (i = 0; i < flist.Count(); i++) + for (i = 0; i < flist.GetCount(); i++) { wxString s; s.Printf(_T(" wxMemoryFSHandler::AddFile(wxT(\"XRC_resource/") + flist[i] + @@ -638,7 +642,7 @@ _T("\n")); file.Write(s); } - for (i = 0; i < parFiles.Count(); i++) + for (i = 0; i < parFiles.GetCount(); i++) { file.Write(_T(" wxXmlResource::Get()->Load(wxT(\"memory:XRC_resource/") + GetInternalFileName(parFiles[i], flist) + _T("\"));\n")); @@ -662,7 +666,7 @@ _T("//\n\n") _T("#ifndef __") + fileSpec + _T("_h__\n") _T("#define __") + fileSpec + _T("_h__\n") ); - for(size_t i=0;i