Mercurial > mercurial > hgweb_searcher2.cgi
diff include/myframe.h @ 0:c174ac668e9f
First commit ! (ver2.8)
author | pyon@macmini |
---|---|
date | Tue, 05 Apr 2011 18:44:57 +0900 |
parents | |
children | 75fefb53d983 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/myframe.h Tue Apr 05 18:44:57 2011 +0900 @@ -0,0 +1,94 @@ +// Filename : myframe.h +// Last Change: 31-Mar-2011. +// +#ifndef MYFRAME +#define MYFRAME +#include "wx/wxprec.h" + +#ifndef WX_PRECOMP + #include "wx/wx.h" + #include "wx/panel.h" + #include "wx/stattext.h" + #include "wx/datectrl.h" + #include "wx/textctrl.h" + #include "wx/srchctrl.h" + #include "wx/splitter.h" + #include "wx/html/htmlwin.h" + #include "wx/grid.h" + #include "wx/dir.h" + #include "wx/regex.h" + #include "wx/progdlg.h" + #include "wx/stdpaths.h" +#endif + +////////////////////////////////////////////////////////////////////////// +class MyCmdBox : public wxTextCtrl +{ + DECLARE_EVENT_TABLE() +public: + MyCmdBox( wxWindow *parent, wxWindowID id, const wxString value, const wxPoint pos, const wxSize size, long style ); + ~MyCmdBox(); + + virtual void OnChar( wxKeyEvent& event ); + void OnCmd( wxCommandEvent& event ); + + wxArrayString path; + // 履歴機能 + int histpos; + wxArrayString hist; + // もしかして機能 + wxArrayString recenthhs; + wxArrayString recentname; +}; + +////////////////////////////////////////////////////////////////////////// +class MyFrame : public wxFrame +{ + DECLARE_EVENT_TABLE() +public: + wxMenuBar* m_menubar; + wxMenu* m_menuFile; + wxMenu* m_menuHelp; + wxToolBar* m_toolBar; + wxStatusBar* m_statusBar; + + wxPanel* m_panelHead; + wxStaticText* m_staticTextHname; + wxSearchCtrl* m_searchCtrlHname; + wxStaticText* m_staticTextIdx; + wxStaticBitmap* m_bitmapMkidx; + wxDatePickerCtrl* m_datePicker; + wxButton* m_buttonMkidx; + + wxSplitterWindow* m_splitter; + wxHtmlWindow* m_html; + wxGrid* m_gridHhs; + wxGrid* m_gridCcn; + + wxPanel* m_panelCmd; + wxStaticText* m_staticTextCmd; + MyCmdBox* m_cmdbox; + + + MyFrame( wxWindow* parent, wxWindowID id, const wxString& title ); + ~MyFrame(); + + void OnQuit( wxCommandEvent& event ); + void OnAbout( wxCommandEvent& event ); + void OnHelp( wxCommandEvent& event ); + void OnListCcn( wxCommandEvent& event ); + void OnCheckHhs( wxCommandEvent& event ); + void OnBackupDB( wxCommandEvent& event ); + void OnOptimizeDB( wxCommandEvent& event ); + void OnOpenAppDir( wxCommandEvent& event ); + void OnOpenDataDir( wxCommandEvent& event ); + void OnUpdateHhsDb( wxCommandEvent& event ); + + //void OnHhsSearch( wxCommandEvent& event ); after version 2.7 + void OnMkIndex( wxCommandEvent& event ); + void SaveConfig( wxCloseEvent& event ); +}; + +#endif +//__MYFRAME__ +