Mercurial > mercurial > hgweb_hanzen.cgi
comparison myframe.h @ 0:79a92ddc3546
first release.
| author | pyon@macmini |
|---|---|
| date | Wed, 16 Apr 2014 01:08:11 +0900 |
| parents | |
| children | 9f0e0d0ae5de |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:79a92ddc3546 |
|---|---|
| 1 // Filename : myframe.cpp | |
| 2 // Last Change: 15-Apr-2014. | |
| 3 // | |
| 4 | |
| 5 #ifndef __MYFRAME_H__ | |
| 6 #define __MYFRAME_H__ | |
| 7 | |
| 8 #include <wx/artprov.h> | |
| 9 #include <wx/xrc/xmlres.h> | |
| 10 #include <wx/string.h> | |
| 11 #include <wx/button.h> | |
| 12 #include <wx/gdicmn.h> | |
| 13 #include <wx/font.h> | |
| 14 #include <wx/colour.h> | |
| 15 #include <wx/settings.h> | |
| 16 #include <wx/combobox.h> | |
| 17 #include <wx/sizer.h> | |
| 18 #include <wx/textctrl.h> | |
| 19 #include <wx/clipbrd.h> | |
| 20 #include <wx/frame.h> | |
| 21 #include <wx/regex.h> | |
| 22 | |
| 23 class MyFrame : public wxFrame | |
| 24 { | |
| 25 DECLARE_EVENT_TABLE() | |
| 26 private: | |
| 27 | |
| 28 protected: | |
| 29 wxButton* m_buttonPaste; | |
| 30 wxComboBox* m_comboBoxDirection; | |
| 31 wxButton* m_buttonConvert; | |
| 32 wxButton* m_buttonCopy; | |
| 33 wxButton* m_buttonClear; | |
| 34 wxTextCtrl* m_textCtrl; | |
| 35 | |
| 36 public: | |
| 37 MyFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("HanZen"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL ); | |
| 38 ~MyFrame(); | |
| 39 void OnPaste( wxCommandEvent& WXUNUSED(event) ); | |
| 40 void OnConvert( wxCommandEvent& WXUNUSED(event) ); | |
| 41 void OnCopy( wxCommandEvent& WXUNUSED(event) ); | |
| 42 void OnClear( wxCommandEvent& WXUNUSED(event) ); | |
| 43 }; | |
| 44 | |
| 45 enum | |
| 46 { | |
| 47 ID_PASTE = wxID_HIGHEST + 1, | |
| 48 ID_CONVERT, | |
| 49 ID_COPY, | |
| 50 ID_CLEAR, | |
| 51 }; | |
| 52 | |
| 53 #endif //__MYFRAME_H__ | |
| 54 |
