]>
Commit | Line | Data |
---|---|---|
2193517f VS |
1 | // MainFrame.h: interface for the wxMainFrame class. |
2 | // | |
3 | ////////////////////////////////////////////////////////////////////// | |
4 | ||
5 | #if !defined(MAINFRAME_H) | |
6 | #define MAINFRAME_H | |
7 | ||
8 | #include "wx/wxprec.h" | |
9 | ||
10 | ||
11 | #define ID_QUIT 1002 | |
12 | #define ID_ABOUT 1003 | |
13 | #define ID_RC2WXR 1005 | |
14 | #define ID_WXR2XML 1006 | |
15 | #define ID_RC2XML 1007 | |
16 | ||
17 | class wxMainFrame:public wxFrame | |
18 | { | |
19 | public: | |
20 | void OnRC2XML(); | |
21 | void OnWXR2XML(); | |
22 | void OnRc2Wxr(); | |
23 | void OnQuit(); | |
24 | wxMainFrame(wxWindow* parent, wxWindowID id, | |
25 | const wxString& title, const wxPoint& pos = wxDefaultPosition, | |
26 | const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, | |
27 | const wxString& name = "frame"); | |
28 | virtual ~wxMainFrame(); | |
29 | ||
30 | protected: | |
31 | DECLARE_EVENT_TABLE() | |
32 | }; | |
33 | ||
34 | class wxConvertApp : public wxApp | |
35 | { | |
36 | public: | |
37 | bool HandleCommandLine(); | |
38 | void InitMenu(); | |
39 | bool OnInit(void); | |
40 | wxConvertApp(); | |
41 | virtual ~wxConvertApp(); | |
42 | ||
43 | protected: | |
44 | wxMenuBar * m_pMenuBar; | |
45 | wxMainFrame *m_pFrame; | |
46 | }; | |
47 | ||
48 | ||
49 | ||
50 | #endif // !defined(MAINFRAME_H) |