]>
Commit | Line | Data |
---|---|---|
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 | ||
2193517f | 11 | class rc2wxr : public wxObject |
88d42654 VS |
12 | { |
13 | public: | |
2193517f VS |
14 | rc2wxr(); |
15 | ~rc2wxr(); | |
16 | void Convert(wxString wxrfile, wxString rcfile); | |
88d42654 VS |
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 | ||
88d42654 | 47 | |
19f0995a | 48 | #endif |