X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..3285ee538be44537a0d4e43252db18f5e7362782:/contrib/utils/convertrc/rc2xml.h diff --git a/contrib/utils/convertrc/rc2xml.h b/contrib/utils/convertrc/rc2xml.h index 9f1c18b29e..6afe5e6f82 100644 --- a/contrib/utils/convertrc/rc2xml.h +++ b/contrib/utils/convertrc/rc2xml.h @@ -5,12 +5,16 @@ #if !defined(RC2XML_H) #define RC2XML_H +#ifdef __GNUG__ +#pragma interface "rc2xml.h" +#endif + #include "wx/file.h" #include #include -class rc2xml : public wxObject +class rc2xml : public wxObject { public: wxString m_workingpath; @@ -22,8 +26,8 @@ public: ~rc2xml(); protected: - wxString LookUpId(wxString id); - + wxString LookUpId(wxString id); + void ParseResourceHeader(); void WriteBitmap(wxString bitmapname); void ParseListCtrl(wxString label,wxString varname); @@ -37,7 +41,7 @@ protected: wxList * m_iconlist; void ParseIconStatic(); void ParseMenuItem(); - + //Functions bool SplitHelp(wxString msg, wxString &shorthelp, wxString &longhelp); bool LookUpString(wxString strid,wxString & st); @@ -52,19 +56,20 @@ protected: void ParseRichEdit(wxString label, wxString varname); void ParseDialog(wxString dlgname); void ParseControls(); - void ParseListBox(); - void ParseStaticText(); - void ParseTextCtrl(); - void ParseRadioButton(); - void ParseCheckBox(); - void ParsePushButton(); - bool Seperator(int ch); - void ParseGroupBox(); + void ParseListBox(wxString varname); + void ParseStaticText(wxString phrase,wxString varname); + void ParseTextCtrl(wxString varname); + void ParseRadioButton(wxString phrase,wxString varname); + void ParseCheckBox(wxString phrase,wxString varname); + void ParsePushButton(wxString phrase, wxString varname); + bool Separator(int ch); + void ParseGroupBox(wxString phrase, wxString varname); bool ReadRect(int & x, int & y, int & width, int & height); - wxString GetToken(bool *listseperator = 0); + wxString GetToken(bool *listseparator = 0); wxString GetQuoteField(); + wxString GetStringQuote(); void ReadChar(int &ch); - void ParseComboBox(); + void ParseComboBox(wxString varname); void ParseMenu(wxString varname); void ParsePopupMenu(); wxString PeekToken(); @@ -86,7 +91,7 @@ protected: wxList * m_resourcelist; wxFile m_rc; wxFFile m_xmlfile; - int m_filesize; + wxFileOffset m_filesize; bool m_done; };