added rc2xml and wxr2xml convertor (no makefiles yet)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2000-09-17 19:17:13 +00:00
parent 5183bfc60c
commit 88d42654d7
6 changed files with 2630 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
// wxHandleWXR.h: interface for the wxHandleWXR class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(RC2WXR_H)
#define RC2WXR_H
#include "wx/file.h"
#include "stdio.h"
class wxRC2WXR : public wxObject
{
public:
wxRC2WXR();
~wxRC2WXR();
void Open(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);
};
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