2003-03-31 05:24:36 -05:00
|
|
|
// wxr2xml.h:
|
2000-09-17 15:17:13 -04:00
|
|
|
// 8/30/00 Brian Gavin
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#if !defined(WXR2XML_H)
|
|
|
|
#define WXR2XML_H
|
|
|
|
|
2005-09-19 18:32:30 -04:00
|
|
|
#include "wx/ffile.h"
|
2003-03-31 05:24:36 -05:00
|
|
|
#include "wx/deprecated/setup.h"
|
|
|
|
#include "wx/deprecated/resource.h"
|
2000-09-17 15:17:13 -04:00
|
|
|
|
2002-12-29 02:48:21 -05:00
|
|
|
#if !wxUSE_WX_RESOURCES
|
|
|
|
#error "convertc requires wxUSE_WX_RESOURCES"
|
|
|
|
#endif // wxUSE_WX_RESOURCES
|
2000-09-17 15:17:13 -04:00
|
|
|
|
2003-03-31 05:24:36 -05:00
|
|
|
class wxr2xml : public wxObject
|
2000-09-17 15:17:13 -04:00
|
|
|
{
|
|
|
|
public:
|
2000-09-26 17:59:37 -04:00
|
|
|
bool Convert(wxString wxrfile,wxString xmlfile);
|
|
|
|
wxr2xml();
|
|
|
|
virtual ~wxr2xml();
|
2000-09-17 15:17:13 -04:00
|
|
|
|
|
|
|
protected:
|
2000-09-26 17:59:37 -04:00
|
|
|
void GetFontWeight(wxFont font);
|
|
|
|
void GetFontStyle(wxFont font);
|
|
|
|
void ParseBitmapButton(wxItemResource *res);
|
|
|
|
void GetFontFace(wxFont font);
|
|
|
|
void WriteFontInfo(wxItemResource *res);
|
|
|
|
wxString GetValue2(wxItemResource *res);
|
|
|
|
wxString GetValue3(wxItemResource *res);
|
|
|
|
wxString GetValue5(wxItemResource *res);
|
|
|
|
void PanelStuff(wxItemResource *res);
|
|
|
|
bool m_systemdefaults;
|
|
|
|
bool m_dlgunits;
|
|
|
|
void ParseBitmap(wxItemResource *res);
|
|
|
|
void ParseStaticBitmap(wxItemResource *res);
|
|
|
|
wxString FixMenuString(wxString phrase);
|
|
|
|
void ParseMenuItem(wxItemResource *res);
|
|
|
|
void ParseMenu(wxItemResource *res);
|
|
|
|
void ParseMenuBar(wxItemResource *res);
|
|
|
|
wxString GenerateName(wxItemResource *res);
|
|
|
|
wxString GetStyles(wxItemResource *res);
|
|
|
|
wxString GetDimension(wxItemResource *res);
|
|
|
|
void ParsePanel(wxItemResource *res);
|
|
|
|
void ParseRadioButton(wxItemResource *res);
|
|
|
|
wxString GetMin(wxItemResource *res);
|
|
|
|
wxString GetCheckStatus(wxItemResource *res);
|
|
|
|
void ParseScrollBar(wxItemResource *res);
|
|
|
|
void ParseComboBox(wxItemResource * res);
|
|
|
|
wxString GetMax(wxItemResource *res);
|
|
|
|
void ParseSlider(wxItemResource *res);
|
|
|
|
wxString GetValue1(wxItemResource *res);
|
|
|
|
wxString GetRange(wxItemResource *res);
|
|
|
|
void ParseGauge(wxItemResource *res);
|
|
|
|
void ParseChoice(wxItemResource *res);
|
|
|
|
void WriteStringList(wxItemResource *res);
|
|
|
|
void ParseStaticBox(wxItemResource *res);
|
|
|
|
void ParseRadioBox(wxItemResource *res);
|
|
|
|
wxString GetLabel(wxItemResource *res);
|
|
|
|
void ParseCheckBox(wxItemResource *res);
|
|
|
|
wxString GetValue4(wxItemResource *res);
|
|
|
|
wxString GetTitle(wxItemResource *res);
|
|
|
|
void ParseTextCtrl(wxItemResource *res);
|
|
|
|
void ParseButton(wxItemResource *res);
|
|
|
|
wxString GetPosition(wxItemResource *res);
|
|
|
|
void WriteControlInfo(wxItemResource *res);
|
|
|
|
void ParseStaticText(wxItemResource *res);
|
|
|
|
void ParseListBox(wxItemResource *res);
|
|
|
|
wxString GetSize(wxItemResource *res);
|
|
|
|
void ParseControls(wxItemResource *res);
|
|
|
|
void ParseDialog(wxItemResource *res);
|
|
|
|
bool ParseResources();
|
|
|
|
//Variables
|
|
|
|
wxResourceTable m_table;
|
|
|
|
wxFFile m_xmlfile;
|
2000-09-17 15:17:13 -04:00
|
|
|
};
|
|
|
|
|
2003-03-31 05:24:36 -05:00
|
|
|
#endif
|