]>
Commit | Line | Data |
---|---|---|
88d42654 VS |
1 | // rc2xml.h |
2 | // | |
3 | ////////////////////////////////////////////////////////////////////// | |
4 | ||
5 | #if !defined(RC2XML_H) | |
6 | #define RC2XML_H | |
7 | ||
8 | #include "wx/file.h" | |
9 | #include <wx/ffile.h> | |
10 | #include <wx/list.h> | |
11 | ||
12 | ||
13 | class wxRC2XML : public wxObject | |
14 | { | |
15 | public: | |
16 | void ParseNormalMSControl(); | |
17 | bool Convert(wxString rcfile, wxString xmlfile); | |
18 | wxRC2XML(); | |
19 | ~wxRC2XML(); | |
20 | ||
21 | protected: | |
22 | void ParseListCtrl(wxString label,wxString varname); | |
23 | void ParseCalendar(wxString label,wxString varname); | |
24 | void ParseTreeCtrl(wxString label,wxString varname); | |
25 | void ParseScrollBar(); | |
26 | void ParseWeirdMSControl(); | |
27 | void ParseStaticBitmap(wxString label,wxString varname); | |
28 | wxString CleanName(wxString name); | |
29 | void ParseIcon(wxString varname); | |
30 | wxList * m_iconlist; | |
31 | void ParseIconStatic(); | |
32 | void ParseMenuItem(); | |
33 | ||
34 | //Functions | |
35 | bool SplitHelp(wxString msg, wxString &shorthelp, wxString &longhelp); | |
36 | bool LookUpString(wxString strid,wxString & st); | |
37 | void ParseStringTable(wxString varname); | |
38 | void WriteToolButton(wxString name,int index,int width,int height,wxBitmap bitmap); | |
39 | wxString LookupString(wxString varname,wxStringList id,wxStringList msg); | |
40 | void ParseToolBar(wxString varname); | |
41 | void SecondPass(); | |
42 | void FirstPass(); | |
43 | void ParseBitmap(wxString varname); | |
44 | void ParseSpinCtrl(wxString label,wxString varname); | |
45 | void ParseRichEdit(wxString label, wxString varname); | |
46 | void ParseDialog(wxString dlgname); | |
47 | void ParseControls(); | |
48 | void ParseListBox(); | |
49 | void ParseStaticText(); | |
50 | void ParseTextCtrl(); | |
51 | void ParsePushButton(); | |
52 | bool Seperator(int ch); | |
53 | void ParseGroupBox(); | |
54 | void ReadRect(int & x, int & y, int & width, int & height); | |
55 | wxString GetToken(); | |
56 | wxString GetQuoteField(); | |
57 | void ReadChar(int &ch); | |
58 | void ParseComboBox(); | |
59 | void ParseMenu(wxString varname); | |
60 | void ParsePopupMenu(); | |
61 | wxString PeekToken(); | |
62 | void ParseControlMS(); | |
63 | void ParseSlider(wxString label, wxString varname); | |
64 | void ParseProgressBar(wxString label, wxString varname); | |
65 | bool ReadOrs(wxString & w); | |
66 | void ParseCtrlButton(wxString label, wxString varname); | |
67 | void WriteStyle(wxString style); | |
68 | void WriteBasicInfo(int x,int y,int width,int height,wxString name); | |
69 | void WriteName(wxString name); | |
70 | void WriteTitle(wxString title); | |
71 | void WritePosition(int x,int y); | |
72 | void WriteSize(int width,int height); | |
73 | void WriteLabel(wxString label); | |
74 | //variables | |
75 | wxList * m_stringtable; | |
76 | wxList *m_bitmaplist; | |
77 | wxFile m_rc; | |
78 | wxFFile m_xmlfile; | |
79 | int m_filesize; | |
80 | bool m_done; | |
81 | ||
82 | }; | |
83 | ||
84 | ||
85 | #endif |