made the code a bit more readable by not using _T() around to-be-generated code snippets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -629,7 +629,7 @@ void XmlResApp::MakePackageCPP(const wxArrayString& flist)
|
|||||||
FileToCppArray(parOutputPath + wxFILE_SEP_PATH + flist[i], i));
|
FileToCppArray(parOutputPath + wxFILE_SEP_PATH + flist[i], i));
|
||||||
|
|
||||||
file.Write(""
|
file.Write(""
|
||||||
"void ") + parFuncname + wxT("()\n"
|
"void " + parFuncname + "()\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
"\n"
|
"\n"
|
||||||
" // Check for memory FS. If not present, load the handler:\n"
|
" // Check for memory FS. If not present, load the handler:\n"
|
||||||
@@ -685,8 +685,8 @@ void XmlResApp::GenCPPHeader()
|
|||||||
"//\n"
|
"//\n"
|
||||||
"// This file was automatically generated by wxrc, do not edit by hand.\n"
|
"// This file was automatically generated by wxrc, do not edit by hand.\n"
|
||||||
"//\n\n"
|
"//\n\n"
|
||||||
"#ifndef __") + fileSpec + _T("_h__\n"
|
"#ifndef __" + fileSpec + "_h__\n"
|
||||||
"#define __") + fileSpec + _T("_h__\n"
|
"#define __" + fileSpec + "_h__\n"
|
||||||
);
|
);
|
||||||
for(size_t i=0;i<aXRCWndClassData.GetCount();++i){
|
for(size_t i=0;i<aXRCWndClassData.GetCount();++i){
|
||||||
aXRCWndClassData.Item(i).GenerateHeaderCode(file);
|
aXRCWndClassData.Item(i).GenerateHeaderCode(file);
|
||||||
@@ -710,7 +710,7 @@ static wxString FileToPythonArray(wxString filename, int num)
|
|||||||
wxASSERT_MSG( offset == lng, wxT("Huge file not supported") );
|
wxASSERT_MSG( offset == lng, wxT("Huge file not supported") );
|
||||||
|
|
||||||
snum.Printf(_T("%i"), num);
|
snum.Printf(_T("%i"), num);
|
||||||
output = _T(" xml_res_file_") + snum + _T(" = '''\\\n");
|
output = " xml_res_file_" + snum + " = '''\\\n";
|
||||||
|
|
||||||
unsigned char *buffer = new unsigned char[lng];
|
unsigned char *buffer = new unsigned char[lng];
|
||||||
file.Read(buffer, lng);
|
file.Read(buffer, lng);
|
||||||
@@ -763,7 +763,7 @@ void XmlResApp::MakePackagePython(const wxArrayString& flist)
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
file.Write("def ") + parFuncname + _T("():\n");
|
file.Write("def " + parFuncname + "():\n");
|
||||||
|
|
||||||
for (i = 0; i < flist.GetCount(); i++)
|
for (i = 0; i < flist.GetCount(); i++)
|
||||||
file.Write(
|
file.Write(
|
||||||
@@ -813,7 +813,7 @@ void XmlResApp::OutputGettext()
|
|||||||
fout.Open(parOutput, wxT("wt"));
|
fout.Open(parOutput, wxT("wt"));
|
||||||
|
|
||||||
for (size_t i = 0; i < str.GetCount(); i++)
|
for (size_t i = 0; i < str.GetCount(); i++)
|
||||||
fout.Write("_(\"") + str[i] + "\");\n";
|
fout.Write("_(\"" + str[i] + "\");\n");
|
||||||
|
|
||||||
if (!parOutput) fout.Detach();
|
if (!parOutput) fout.Detach();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user