X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88d42654d76be0098f6a1fa12b83af97f5b6235a..dcb39c53303d1ec6884f7bcd7bc9dc101e560e62:/contrib/utils/convertrc/rc2wxr.h diff --git a/contrib/utils/convertrc/rc2wxr.h b/contrib/utils/convertrc/rc2wxr.h index 35aeb28bc2..d5ddb540f5 100644 --- a/contrib/utils/convertrc/rc2wxr.h +++ b/contrib/utils/convertrc/rc2wxr.h @@ -5,67 +5,47 @@ #if !defined(RC2WXR_H) #define RC2WXR_H +#ifdef __GNUG__ +#pragma interface "rc2wxr.h" +#endif + #include "wx/file.h" #include "stdio.h" -class wxRC2WXR : public wxObject +class rc2wxr : public wxObject { public: -wxRC2WXR(); -~wxRC2WXR(); -void Open(wxString wxrfile, wxString rcfile); + rc2wxr(); + ~rc2wxr(); + void Convert(wxString wxrfile, wxString rcfile); private: -wxFile m_rc; -FILE *m_wxr; -int m_filesize; -bool m_done; -int m_controlid; -void ParseDialog(wxString dlgname); -void ParseControls(); -void ParseStaticText(); -void ParseTextCtrl(); -void ParsePushButton(); -bool Seperator(int ch); -void ParseGroupBox(); -void ReadRect(int & x, int & y, int & width, int & height); -wxString GetToken(); -wxString GetQuoteField(); -void ReadChar(int &ch); -void ParseComboBox(); -void ParseMenu(wxString name); -void ParsePopupMenu(); -wxString PeekToken(); -void ParseControlMS(); -void ParseSlider(wxString label, wxString varname); -void ParseProgressBar(wxString label, wxString varname); -bool ReadOrs(wxString & w); -void ParseCtrlButton(wxString label, wxString varname); - + wxFile m_rc; + FILE *m_wxr; + wxFileOffset m_filesize; + bool m_done; + int m_controlid; + void ParseDialog(wxString dlgname); + void ParseControls(); + void ParseStaticText(); + void ParseTextCtrl(); + void ParsePushButton(); + bool Seperator(int ch); + void ParseGroupBox(); + void ReadRect(int & x, int & y, int & width, int & height); + wxString GetToken(); + wxString GetQuoteField(); + void ReadChar(int &ch); + void ParseComboBox(); + void ParseMenu(wxString name); + void ParsePopupMenu(); + wxString PeekToken(); + void ParseControlMS(); + void ParseSlider(wxString label, wxString varname); + void ParseProgressBar(wxString label, wxString varname); + bool ReadOrs(wxString & w); + void ParseCtrlButton(wxString label, wxString varname); }; -class wxFileProgressDlg : public wxDialog -{ -public: - void UpdateProgress(wxFile *f); - -wxFileProgressDlg(); -virtual ~wxFileProgressDlg(); - -protected: -wxGauge *m_pProgress; -wxStaticText *m_pCompleteLabel; - - DECLARE_EVENT_TABLE() - -}; -class GenerateBitmapSrc : public wxObject -{ -public: - bool Create(wxString imfile, wxString srcfile,wxString varname); - GenerateBitmapSrc(); - virtual ~GenerateBitmapSrc(); - -}; -#endif \ No newline at end of file +#endif