Mercurial > mercurial > hgweb_dw.cgi
comparison include/myframe.h @ 0:7c3921bf511e
Beta2
| author | pyon@macmini |
|---|---|
| date | Sat, 20 Oct 2012 16:07:42 +0900 |
| parents | |
| children | 20018a6f69a9 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:7c3921bf511e |
|---|---|
| 1 // Filename : myframe.h | |
| 2 // Last Change: 20-Oct-2012. | |
| 3 // | |
| 4 #ifndef __MYFRAME_H__ | |
| 5 #define __MYFRAME_H__ | |
| 6 | |
| 7 #include "common.h" | |
| 8 | |
| 9 class MyFrame : public wxFrame | |
| 10 { | |
| 11 DECLARE_EVENT_TABLE() | |
| 12 private: | |
| 13 | |
| 14 protected: | |
| 15 wxMenuBar* m_menubar; | |
| 16 wxMenu* m_menuFile; | |
| 17 | |
| 18 wxStaticText* m_staticText1; | |
| 19 wxDirPickerCtrl* m_dirPickerWatch; | |
| 20 wxStaticText* m_staticText2; | |
| 21 wxTextCtrl* m_textCtrlFile; | |
| 22 wxStaticText* m_staticText3; | |
| 23 wxTextCtrl* m_textCtrlCommand; | |
| 24 wxStaticText* m_staticText4; | |
| 25 wxDirPickerCtrl* m_dirPickerMove; | |
| 26 wxStaticText* m_staticText5; | |
| 27 wxToggleButton* m_toggleBtn; | |
| 28 | |
| 29 wxFileSystemWatcher* m_watcher; | |
| 30 | |
| 31 public: | |
| 32 MyFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | |
| 33 ~MyFrame(); | |
| 34 | |
| 35 void OnFileSystemEvent( wxFileSystemWatcherEvent& event ); | |
| 36 void OnWatch( wxCommandEvent& WXUNUSED(event) ); | |
| 37 | |
| 38 void OnWinSize( wxSizeEvent& event ); | |
| 39 void OnWinMove( wxMoveEvent& WXUNUSED(event) ); | |
| 40 void TellLocation( void ); | |
| 41 void OnQuit( wxCommandEvent& WXUNUSED(event) ); | |
| 42 void OnAbout( wxCommandEvent& WXUNUSED(event) ); | |
| 43 void SaveConfig( wxCloseEvent& WXUNUSED(event) ); | |
| 44 }; | |
| 45 | |
| 46 enum { | |
| 47 ID_MNAPPDIR = wxID_HIGHEST + 10, | |
| 48 ID_MNABOUT, | |
| 49 ID_WATCHDIR, | |
| 50 ID_FILENAME, | |
| 51 ID_COMMAND, | |
| 52 ID_MOVEDIR, | |
| 53 ID_TOGGLEWATCH, | |
| 54 }; | |
| 55 | |
| 56 #endif //__MYFRAME_H__ | |
| 57 |
