]>
Commit | Line | Data |
---|---|---|
1 | // wxr2xml.h: | |
2 | // 8/30/00 Brian Gavin | |
3 | ////////////////////////////////////////////////////////////////////// | |
4 | ||
5 | #if !defined(WXR2XML_H) | |
6 | #define WXR2XML_H | |
7 | ||
8 | #include "wx/ffile.h" | |
9 | #include "wx/deprecated/setup.h" | |
10 | #include "wx/deprecated/resource.h" | |
11 | ||
12 | #if !wxUSE_WX_RESOURCES | |
13 | #error "convertc requires wxUSE_WX_RESOURCES" | |
14 | #endif // wxUSE_WX_RESOURCES | |
15 | ||
16 | class wxr2xml : public wxObject | |
17 | { | |
18 | public: | |
19 | bool Convert(wxString wxrfile,wxString xmlfile); | |
20 | wxr2xml(); | |
21 | virtual ~wxr2xml(); | |
22 | ||
23 | protected: | |
24 | void GetFontWeight(wxFont font); | |
25 | void GetFontStyle(wxFont font); | |
26 | void ParseBitmapButton(wxItemResource *res); | |
27 | void GetFontFace(wxFont font); | |
28 | void WriteFontInfo(wxItemResource *res); | |
29 | wxString GetValue2(wxItemResource *res); | |
30 | wxString GetValue3(wxItemResource *res); | |
31 | wxString GetValue5(wxItemResource *res); | |
32 | void PanelStuff(wxItemResource *res); | |
33 | bool m_systemdefaults; | |
34 | bool m_dlgunits; | |
35 | void ParseBitmap(wxItemResource *res); | |
36 | void ParseStaticBitmap(wxItemResource *res); | |
37 | wxString FixMenuString(wxString phrase); | |
38 | void ParseMenuItem(wxItemResource *res); | |
39 | void ParseMenu(wxItemResource *res); | |
40 | void ParseMenuBar(wxItemResource *res); | |
41 | wxString GenerateName(wxItemResource *res); | |
42 | wxString GetStyles(wxItemResource *res); | |
43 | wxString GetDimension(wxItemResource *res); | |
44 | void ParsePanel(wxItemResource *res); | |
45 | void ParseRadioButton(wxItemResource *res); | |
46 | wxString GetMin(wxItemResource *res); | |
47 | wxString GetCheckStatus(wxItemResource *res); | |
48 | void ParseScrollBar(wxItemResource *res); | |
49 | void ParseComboBox(wxItemResource * res); | |
50 | wxString GetMax(wxItemResource *res); | |
51 | void ParseSlider(wxItemResource *res); | |
52 | wxString GetValue1(wxItemResource *res); | |
53 | wxString GetRange(wxItemResource *res); | |
54 | void ParseGauge(wxItemResource *res); | |
55 | void ParseChoice(wxItemResource *res); | |
56 | void WriteStringList(wxItemResource *res); | |
57 | void ParseStaticBox(wxItemResource *res); | |
58 | void ParseRadioBox(wxItemResource *res); | |
59 | wxString GetLabel(wxItemResource *res); | |
60 | void ParseCheckBox(wxItemResource *res); | |
61 | wxString GetValue4(wxItemResource *res); | |
62 | wxString GetTitle(wxItemResource *res); | |
63 | void ParseTextCtrl(wxItemResource *res); | |
64 | void ParseButton(wxItemResource *res); | |
65 | wxString GetPosition(wxItemResource *res); | |
66 | void WriteControlInfo(wxItemResource *res); | |
67 | void ParseStaticText(wxItemResource *res); | |
68 | void ParseListBox(wxItemResource *res); | |
69 | wxString GetSize(wxItemResource *res); | |
70 | void ParseControls(wxItemResource *res); | |
71 | void ParseDialog(wxItemResource *res); | |
72 | bool ParseResources(); | |
73 | //Variables | |
74 | wxResourceTable m_table; | |
75 | wxFFile m_xmlfile; | |
76 | }; | |
77 | ||
78 | #endif |