1// wxHandleWXR.h: interface for the wxHandleWXR class. 2// 3////////////////////////////////////////////////////////////////////// 4 5#if !defined(RC2WXR_H) 6#define RC2WXR_H 7 8#include "wx/file.h" 9#include "stdio.h" 10 11class rc2wxr : public wxObject 12{ 13public: 14 rc2wxr(); 15 ~rc2wxr(); 16 void Convert(wxString wxrfile, wxString rcfile); 17 18private: 19 wxFile m_rc; 20 FILE *m_wxr; 21 wxFileOffset m_filesize; 22 bool m_done; 23 int m_controlid; 24 void ParseDialog(wxString dlgname); 25 void ParseControls(); 26 void ParseStaticText(); 27 void ParseTextCtrl(); 28 void ParsePushButton(); 29 bool Separator(int ch); 30 void ParseGroupBox(); 31 void ReadRect(int & x, int & y, int & width, int & height); 32 wxString GetToken(); 33 wxString GetQuoteField(); 34 void ReadChar(int &ch); 35 void ParseComboBox(); 36 void ParseMenu(wxString name); 37 void ParsePopupMenu(); 38 wxString PeekToken(); 39 void ParseControlMS(); 40 void ParseSlider(wxString label, wxString varname); 41 void ParseProgressBar(wxString label, wxString varname); 42 bool ReadOrs(wxString & w); 43 void ParseCtrlButton(wxString label, wxString varname); 44}; 45 46 47#endif 48