]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/convertrc/rc2wxr.h
fixed bug in wxHtmlWindow: HistoryBack/Forward now correctly preserves last entry...
[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
11class wxRC2WXR : public wxObject
12{
13public:
14wxRC2WXR();
15~wxRC2WXR();
16void Open(wxString wxrfile, wxString rcfile);
17
18private:
19wxFile m_rc;
20FILE *m_wxr;
21int m_filesize;
22bool m_done;
23int m_controlid;
24void ParseDialog(wxString dlgname);
25void ParseControls();
26void ParseStaticText();
27void ParseTextCtrl();
28void ParsePushButton();
29bool Seperator(int ch);
30void ParseGroupBox();
31void ReadRect(int & x, int & y, int & width, int & height);
32wxString GetToken();
33wxString GetQuoteField();
34void ReadChar(int &ch);
35void ParseComboBox();
36void ParseMenu(wxString name);
37void ParsePopupMenu();
38wxString PeekToken();
39void ParseControlMS();
40void ParseSlider(wxString label, wxString varname);
41void ParseProgressBar(wxString label, wxString varname);
42bool ReadOrs(wxString & w);
43void ParseCtrlButton(wxString label, wxString varname);
44
45};
46
47class wxFileProgressDlg : public wxDialog
48{
49public:
50 void UpdateProgress(wxFile *f);
51
52wxFileProgressDlg();
53virtual ~wxFileProgressDlg();
54
55protected:
56wxGauge *m_pProgress;
57wxStaticText *m_pCompleteLabel;
58
59 DECLARE_EVENT_TABLE()
60
61};
62class GenerateBitmapSrc : public wxObject
63{
64public:
65 bool Create(wxString imfile, wxString srcfile,wxString varname);
66 GenerateBitmapSrc();
67 virtual ~GenerateBitmapSrc();
68
69};
70
71#endif