0
|
1 // Filename : myframe.h
|
24
|
2 // Last Change: 28-Jul-2011.
|
0
|
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 {
|
22
|
27 private:
|
0
|
28 DECLARE_EVENT_TABLE()
|
|
29 public:
|
|
30 MyCmdBox( wxWindow *parent, wxWindowID id, const wxString value, const wxPoint pos, const wxSize size, long style );
|
|
31 ~MyCmdBox();
|
|
32
|
|
33 virtual void OnChar( wxKeyEvent& event );
|
|
34 void OnCmd( wxCommandEvent& event );
|
12
|
35 void PrintImages( wxString& path );
|
16
|
36 void WriteLog( wxString& cmd, wxString& path );
|
0
|
37
|
|
38 wxArrayString path;
|
|
39 // 履歴機能
|
|
40 int histpos;
|
|
41 wxArrayString hist;
|
|
42 // もしかして機能
|
|
43 wxArrayString recenthhs;
|
|
44 wxArrayString recentname;
|
|
45 };
|
|
46
|
|
47 //////////////////////////////////////////////////////////////////////////
|
|
48 class MyFrame : public wxFrame
|
|
49 {
|
|
50 DECLARE_EVENT_TABLE()
|
|
51 public:
|
|
52 wxMenuBar* m_menubar;
|
|
53 wxMenu* m_menuFile;
|
|
54 wxMenu* m_menuHelp;
|
|
55 wxToolBar* m_toolBar;
|
|
56 wxStatusBar* m_statusBar;
|
|
57
|
|
58 wxPanel* m_panelHead;
|
|
59 wxStaticText* m_staticTextHname;
|
|
60 wxStaticText* m_staticTextIdx;
|
22
|
61 wxButton* m_btnPrevThu;
|
|
62 wxButton* m_btnNextThu;
|
0
|
63 wxDatePickerCtrl* m_datePicker;
|
22
|
64 wxButton* m_btnMkIdx;
|
|
65 wxButton* m_btnLsCcn;
|
0
|
66
|
24
|
67 wxPanel* m_panelHtml;
|
0
|
68 wxHtmlWindow* m_html;
|
|
69
|
|
70 wxPanel* m_panelCmd;
|
|
71 wxStaticText* m_staticTextCmd;
|
|
72 MyCmdBox* m_cmdbox;
|
|
73
|
|
74 MyFrame( wxWindow* parent, wxWindowID id, const wxString& title );
|
|
75 ~MyFrame();
|
|
76
|
22
|
77 void OnSize( wxSizeEvent& event );
|
|
78 void OnMove( wxMoveEvent& event );
|
0
|
79 void OnQuit( wxCommandEvent& event );
|
|
80 void OnAbout( wxCommandEvent& event );
|
|
81 void OnHelp( wxCommandEvent& event );
|
22
|
82 void SaveConfig( wxCloseEvent& event );
|
0
|
83 void OnListCcn( wxCommandEvent& event );
|
|
84 void OnCheckHhs( wxCommandEvent& event );
|
|
85 void OnBackupDB( wxCommandEvent& event );
|
|
86 void OnOptimizeDB( wxCommandEvent& event );
|
|
87 void OnOpenAppDir( wxCommandEvent& event );
|
|
88 void OnOpenDataDir( wxCommandEvent& event );
|
|
89 void OnUpdateHhsDb( wxCommandEvent& event );
|
22
|
90 void OnPrevThu( wxCommandEvent& event );
|
|
91 void OnNextThu( wxCommandEvent& event );
|
0
|
92 void OnMkIndex( wxCommandEvent& event );
|
|
93 };
|
|
94
|
|
95 #endif
|
|
96 //__MYFRAME__
|
|
97
|