X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be5a51fb592f3fa2ba38ac6cd1e488d6d806058c..3285ee538be44537a0d4e43252db18f5e7362782:/contrib/utils/convertrc/rc2xml.cpp
diff --git a/contrib/utils/convertrc/rc2xml.cpp b/contrib/utils/convertrc/rc2xml.cpp
index fdc82ee0f3..ddc225b77b 100644
--- a/contrib/utils/convertrc/rc2xml.cpp
+++ b/contrib/utils/convertrc/rc2xml.cpp
@@ -16,8 +16,7 @@ cross platform (wxGTK,etc)
*/
#ifdef __GNUG__
-#pragma implementation "rc2xml.cpp"
-#pragma interface "rc2xml.cpp"
+#pragma implementation "rc2xml.h"
#endif
// For compilers that support precompilation, includes "wx/wx.h".
@@ -49,7 +48,7 @@ cross platform (wxGTK,etc)
rc2xml::rc2xml()
{
- m_done=FALSE;
+ m_done=false;
m_bitmaplist=new wxList(wxKEY_STRING);
m_stringtable=new wxList(wxKEY_STRING);
m_iconlist = new wxList(wxKEY_STRING);
@@ -83,7 +82,7 @@ bool rc2xml::Convert(wxString rcfile, wxString xmlfile)
result=m_xmlfile.Open(xmlfile.c_str(),_T("w+t"));
wxASSERT_MSG(result,_T("Couldn't create XML file"));
if (!result)
- return FALSE;
+ return false;
/* Write Basic header for XML file */
@@ -94,7 +93,7 @@ bool rc2xml::Convert(wxString rcfile, wxString xmlfile)
ParseResourceHeader();
//Gather all the resource we need for toolbars,menus, and etc
FirstPass();
- m_done=FALSE;
+ m_done=false;
m_rc.Seek(0);
//Read in dialogs, toolbars,menus
SecondPass();
@@ -105,7 +104,7 @@ bool rc2xml::Convert(wxString rcfile, wxString xmlfile)
wxMessageBox(_("Conversion complete."), _("Done"),
wxOK | wxICON_INFORMATION);
-return TRUE;
+return true;
}
@@ -146,22 +145,22 @@ microsoft reuses the keyword DIALOG for other things
while ((token!=_T("BEGIN"))&(token!=_T("{")))
{
- if (token==_T("CAPTION"))
+ if (token==_T("CAPTION"))
{
- title=GetQuoteField();
+ title=GetQuoteField();
}
//TODO fix face name so that it is cross platform name
// FONT 8, "MS Sans Serif"
if (token==_T("FONT"))
- {
+ {
ptsize=GetToken();
face=GetQuoteField();
m_xmlfile.Write(_T("\t\t\n"));
m_xmlfile.Write(_T("\t\t\t")+ptsize+_T("\n"));
m_xmlfile.Write(_T("\t\t\t")+face+_T("\n"));
m_xmlfile.Write(_T("\t\t\n"));
- }
+ }
token=GetToken();
}
@@ -308,9 +307,9 @@ void rc2xml::ParseRadioButton(wxString phrase, wxString varname)
bool GotOrs;
GotOrs = ReadOrs(token);
if (ReadRect(x,y,width,height))
- if (GotOrs==FALSE)
+ if (GotOrs==false)
ReadOrs(token);
- if (token.Find(_T("WS_GROUP")) != -1)
+ if (token.Find(_T("WS_GROUP")) != wxNOT_FOUND)
style += _T("wxRB_GROUP");
m_xmlfile.Write(_T("\t\t