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