33 lines
569 B
C++
33 lines
569 B
C++
#ifndef gui__h_
|
|
#define gui__h_
|
|
|
|
#include <wx/wx.h>
|
|
|
|
|
|
class MyFrame: public wxFrame
|
|
{
|
|
public:
|
|
MyFrame(wxWindow *parent, wxWindowID id,
|
|
const wxString &title,
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
const wxSize &size = wxDefaultSize,
|
|
long style = wxDEFAULT_FRAME_STYLE);
|
|
~MyFrame(void);
|
|
private:
|
|
void OnAbout(wxCommandEvent &event);
|
|
void OnQuit(wxCommandEvent &event);
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
|
|
class MyApp: public wxApp
|
|
{
|
|
public:
|
|
MyApp();
|
|
virtual bool OnInit();
|
|
virtual int OnExit();
|
|
private:
|
|
//wxSingleInstanceChecker *m_instance;
|
|
};
|
|
|
|
#endif
|