00001
00002
00003
00004 #ifdef WIN32
00005 #include <wx/wx.h>
00006 #else
00007 #include <wx-2.6/wx/wx.h>
00008 #endif
00009
00010 #include <wx/spinbutt.h>
00011
00012 #ifndef _MYCOUNTER_H_
00013 #define _MYCOUNTER_H_
00014
00015 class MyCounter : public wxDialog
00016 {
00017 public:
00018 MyCounter(wxWindow* parent,const wxString& title, const wxPoint& pos, const wxSize& size, int* count,int* time);
00019 void OnNext(wxCommandEvent& event);
00020 void OnHelp(wxCommandEvent& event);
00021 void OnChange(wxSpinEvent& event);
00022 private:
00023 wxBoxSizer* sizer;
00024 wxBoxSizer* sizer2;
00025 wxBoxSizer* sizer3;
00026 wxButton* next;
00027 wxButton* help;
00028 wxStaticText* label;
00029 wxSpinButton* spin;
00030 wxSpinButton* time_spin;
00031 wxStaticText* time_label;
00032 int* count;
00033 int* time;
00034
00035 DECLARE_EVENT_TABLE();
00036 };
00037
00038 #endif // _MYCOUNTER_H_