2000-09-26 17:59:37 -04:00
|
|
|
// MainFrame.h: interface for the wxMainFrame class.
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#if !defined(MAINFRAME_H)
|
|
|
|
#define MAINFRAME_H
|
|
|
|
|
|
|
|
#include "wx/wxprec.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define ID_QUIT 1002
|
|
|
|
#define ID_ABOUT 1003
|
|
|
|
#define ID_RC2WXR 1005
|
|
|
|
#define ID_WXR2XML 1006
|
|
|
|
#define ID_RC2XML 1007
|
|
|
|
|
|
|
|
class wxMainFrame:public wxFrame
|
|
|
|
{
|
|
|
|
public:
|
2003-12-11 06:27:56 -05:00
|
|
|
void OnRC2XML(wxCommandEvent& event);
|
|
|
|
void OnWXR2XML(wxCommandEvent& event);
|
|
|
|
void OnRc2Wxr(wxCommandEvent& event);
|
|
|
|
void OnQuit(wxCommandEvent& event);
|
2004-06-11 09:14:23 -04:00
|
|
|
wxMainFrame(wxWindow* parent, wxWindowID id,
|
2000-09-26 17:59:37 -04:00
|
|
|
const wxString& title, const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE,
|
2003-12-11 06:27:56 -05:00
|
|
|
const wxString& name = _T("frame"));
|
2000-09-26 17:59:37 -04:00
|
|
|
virtual ~wxMainFrame();
|
2004-06-11 09:14:23 -04:00
|
|
|
|
2000-09-26 17:59:37 -04:00
|
|
|
protected:
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
2004-06-11 09:14:23 -04:00
|
|
|
class wxConvertApp : public wxApp
|
2000-09-26 17:59:37 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool HandleCommandLine();
|
|
|
|
void InitMenu();
|
|
|
|
bool OnInit(void);
|
|
|
|
wxConvertApp();
|
|
|
|
virtual ~wxConvertApp();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
wxMenuBar * m_pMenuBar;
|
|
|
|
wxMainFrame *m_pFrame;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // !defined(MAINFRAME_H)
|