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