]> git.saurik.com Git - wxWidgets.git/blob - contrib/utils/convertrc/rc2wxr.h
Removed fstream include which seemed unnecessary, and gave errors for BC++ 5.5 anyway.
[wxWidgets.git] / contrib / utils / convertrc / rc2wxr.h
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
11 class rc2wxr : public wxObject
12 {
13 public:
14 rc2wxr();
15 ~rc2wxr();
16 void Convert(wxString wxrfile, wxString rcfile);
17
18 private:
19 wxFile m_rc;
20 FILE *m_wxr;
21 int 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);
44
45 };
46
47
48 #endif