Mercurial > mercurial > hgweb_searcher2.cgi
comparison include/myframe.h @ 0:c174ac668e9f
First commit ! (ver2.8)
author | pyon@macmini |
---|---|
date | Tue, 05 Apr 2011 18:44:57 +0900 |
parents | |
children | 75fefb53d983 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c174ac668e9f |
---|---|
1 // Filename : myframe.h | |
2 // Last Change: 31-Mar-2011. | |
3 // | |
4 #ifndef MYFRAME | |
5 #define MYFRAME | |
6 #include "wx/wxprec.h" | |
7 | |
8 #ifndef WX_PRECOMP | |
9 #include "wx/wx.h" | |
10 #include "wx/panel.h" | |
11 #include "wx/stattext.h" | |
12 #include "wx/datectrl.h" | |
13 #include "wx/textctrl.h" | |
14 #include "wx/srchctrl.h" | |
15 #include "wx/splitter.h" | |
16 #include "wx/html/htmlwin.h" | |
17 #include "wx/grid.h" | |
18 #include "wx/dir.h" | |
19 #include "wx/regex.h" | |
20 #include "wx/progdlg.h" | |
21 #include "wx/stdpaths.h" | |
22 #endif | |
23 | |
24 ////////////////////////////////////////////////////////////////////////// | |
25 class MyCmdBox : public wxTextCtrl | |
26 { | |
27 DECLARE_EVENT_TABLE() | |
28 public: | |
29 MyCmdBox( wxWindow *parent, wxWindowID id, const wxString value, const wxPoint pos, const wxSize size, long style ); | |
30 ~MyCmdBox(); | |
31 | |
32 virtual void OnChar( wxKeyEvent& event ); | |
33 void OnCmd( wxCommandEvent& event ); | |
34 | |
35 wxArrayString path; | |
36 // 履歴機能 | |
37 int histpos; | |
38 wxArrayString hist; | |
39 // もしかして機能 | |
40 wxArrayString recenthhs; | |
41 wxArrayString recentname; | |
42 }; | |
43 | |
44 ////////////////////////////////////////////////////////////////////////// | |
45 class MyFrame : public wxFrame | |
46 { | |
47 DECLARE_EVENT_TABLE() | |
48 public: | |
49 wxMenuBar* m_menubar; | |
50 wxMenu* m_menuFile; | |
51 wxMenu* m_menuHelp; | |
52 wxToolBar* m_toolBar; | |
53 wxStatusBar* m_statusBar; | |
54 | |
55 wxPanel* m_panelHead; | |
56 wxStaticText* m_staticTextHname; | |
57 wxSearchCtrl* m_searchCtrlHname; | |
58 wxStaticText* m_staticTextIdx; | |
59 wxStaticBitmap* m_bitmapMkidx; | |
60 wxDatePickerCtrl* m_datePicker; | |
61 wxButton* m_buttonMkidx; | |
62 | |
63 wxSplitterWindow* m_splitter; | |
64 wxHtmlWindow* m_html; | |
65 wxGrid* m_gridHhs; | |
66 wxGrid* m_gridCcn; | |
67 | |
68 wxPanel* m_panelCmd; | |
69 wxStaticText* m_staticTextCmd; | |
70 MyCmdBox* m_cmdbox; | |
71 | |
72 | |
73 MyFrame( wxWindow* parent, wxWindowID id, const wxString& title ); | |
74 ~MyFrame(); | |
75 | |
76 void OnQuit( wxCommandEvent& event ); | |
77 void OnAbout( wxCommandEvent& event ); | |
78 void OnHelp( wxCommandEvent& event ); | |
79 void OnListCcn( wxCommandEvent& event ); | |
80 void OnCheckHhs( wxCommandEvent& event ); | |
81 void OnBackupDB( wxCommandEvent& event ); | |
82 void OnOptimizeDB( wxCommandEvent& event ); | |
83 void OnOpenAppDir( wxCommandEvent& event ); | |
84 void OnOpenDataDir( wxCommandEvent& event ); | |
85 void OnUpdateHhsDb( wxCommandEvent& event ); | |
86 | |
87 //void OnHhsSearch( wxCommandEvent& event ); after version 2.7 | |
88 void OnMkIndex( wxCommandEvent& event ); | |
89 void SaveConfig( wxCloseEvent& event ); | |
90 }; | |
91 | |
92 #endif | |
93 //__MYFRAME__ | |
94 |