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