2000-09-17 15:17:13 -04:00
|
|
|
// wxHandleWXR.h: interface for the wxHandleWXR class.
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#if !defined(RC2WXR_H)
|
|
|
|
#define RC2WXR_H
|
|
|
|
|
|
|
|
#include "wx/file.h"
|
|
|
|
#include "stdio.h"
|
|
|
|
|
2004-06-11 09:14:23 -04:00
|
|
|
class rc2wxr : public wxObject
|
2000-09-17 15:17:13 -04:00
|
|
|
{
|
|
|
|
public:
|
2005-03-04 14:32:40 -05:00
|
|
|
rc2wxr();
|
|
|
|
~rc2wxr();
|
|
|
|
void Convert(wxString wxrfile, wxString rcfile);
|
2000-09-17 15:17:13 -04:00
|
|
|
|
|
|
|
private:
|
2005-03-04 14:32:40 -05:00
|
|
|
wxFile m_rc;
|
|
|
|
FILE *m_wxr;
|
|
|
|
wxFileOffset m_filesize;
|
|
|
|
bool m_done;
|
|
|
|
int m_controlid;
|
|
|
|
void ParseDialog(wxString dlgname);
|
|
|
|
void ParseControls();
|
|
|
|
void ParseStaticText();
|
|
|
|
void ParseTextCtrl();
|
|
|
|
void ParsePushButton();
|
2005-05-31 05:20:43 -04:00
|
|
|
bool Separator(int ch);
|
2005-03-04 14:32:40 -05:00
|
|
|
void ParseGroupBox();
|
|
|
|
void ReadRect(int & x, int & y, int & width, int & height);
|
|
|
|
wxString GetToken();
|
|
|
|
wxString GetQuoteField();
|
|
|
|
void ReadChar(int &ch);
|
|
|
|
void ParseComboBox();
|
|
|
|
void ParseMenu(wxString name);
|
|
|
|
void ParsePopupMenu();
|
|
|
|
wxString PeekToken();
|
|
|
|
void ParseControlMS();
|
|
|
|
void ParseSlider(wxString label, wxString varname);
|
|
|
|
void ParseProgressBar(wxString label, wxString varname);
|
|
|
|
bool ReadOrs(wxString & w);
|
|
|
|
void ParseCtrlButton(wxString label, wxString varname);
|
2000-09-17 15:17:13 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-01-29 04:44:34 -05:00
|
|
|
#endif
|