#define RC2XML_H
#include "wx/file.h"
-#include <wx/ffile.h>
-#include <wx/list.h>
+#include "wx/ffile.h"
+#include "wx/list.h"
-class rc2xml : public wxObject
+class rc2xml : public wxObject
{
public:
+ wxString m_workingpath;
+ wxString m_targetpath;
void WriteIcon(wxString iconname);
void ParseNormalMSControl();
bool Convert(wxString rcfile, wxString xmlfile);
~rc2xml();
protected:
- wxString LookUpId(wxString id);
-
+ wxString LookUpId(wxString id);
+
void ParseResourceHeader();
void WriteBitmap(wxString bitmapname);
void ParseListCtrl(wxString label,wxString varname);
wxList * m_iconlist;
void ParseIconStatic();
void ParseMenuItem();
-
+
//Functions
bool SplitHelp(wxString msg, wxString &shorthelp, wxString &longhelp);
bool LookUpString(wxString strid,wxString & st);
void ParseRichEdit(wxString label, wxString varname);
void ParseDialog(wxString dlgname);
void ParseControls();
- void ParseListBox();
- void ParseStaticText();
- void ParseTextCtrl();
- void ParsePushButton();
- bool Seperator(int ch);
- void ParseGroupBox();
- void ReadRect(int & x, int & y, int & width, int & height);
- wxString GetToken();
+ 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 *listseparator = 0);
wxString GetQuoteField();
+ wxString GetStringQuote();
void ReadChar(int &ch);
- void ParseComboBox();
+ void ParseComboBox(wxString varname);
void ParseMenu(wxString varname);
void ParsePopupMenu();
wxString PeekToken();
wxList * m_resourcelist;
wxFile m_rc;
wxFFile m_xmlfile;
- int m_filesize;
+ wxFileOffset m_filesize;
bool m_done;
};
-#endif
\ No newline at end of file
+#endif