]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/convertrc/rc2wxr.h
Better wxFile support, warning fixes and minor source cleaning.
[wxWidgets.git] / contrib / utils / convertrc / rc2wxr.h
CommitLineData
88d42654
VS
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
f80ea77b 11class rc2wxr : public wxObject
88d42654
VS
12{
13public:
19311d4e
WS
14 rc2wxr();
15 ~rc2wxr();
16 void Convert(wxString wxrfile, wxString rcfile);
88d42654
VS
17
18private:
19311d4e
WS
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 Seperator(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);
88d42654
VS
44};
45
88d42654 46
19f0995a 47#endif