0
|
1 // Filename : myframe.h
|
16
|
2 // Last Change: 06-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 {
|
|
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 );
|
12
|
34 void PrintImages( wxString& path );
|
16
|
35 void WriteLog( wxString& cmd, wxString& path );
|
0
|
36
|
|
37 wxArrayString path;
|
|
38 // 履歴機能
|
|
39 int histpos;
|
|
40 wxArrayString hist;
|
|
41 // もしかして機能
|
|
42 wxArrayString recenthhs;
|
|
43 wxArrayString recentname;
|
|
44 };
|
|
45
|
|
46 //////////////////////////////////////////////////////////////////////////
|
|
47 class MyFrame : public wxFrame
|
|
48 {
|
|
49 DECLARE_EVENT_TABLE()
|
|
50 public:
|
|
51 wxMenuBar* m_menubar;
|
|
52 wxMenu* m_menuFile;
|
|
53 wxMenu* m_menuHelp;
|
|
54 wxToolBar* m_toolBar;
|
|
55 wxStatusBar* m_statusBar;
|
|
56
|
|
57 wxPanel* m_panelHead;
|
|
58 wxStaticText* m_staticTextHname;
|
|
59 wxSearchCtrl* m_searchCtrlHname;
|
|
60 wxStaticText* m_staticTextIdx;
|
|
61 wxStaticBitmap* m_bitmapMkidx;
|
|
62 wxDatePickerCtrl* m_datePicker;
|
|
63 wxButton* m_buttonMkidx;
|
|
64
|
|
65 wxSplitterWindow* m_splitter;
|
|
66 wxHtmlWindow* m_html;
|
|
67 wxGrid* m_gridHhs;
|
|
68 wxGrid* m_gridCcn;
|
|
69
|
|
70 wxPanel* m_panelCmd;
|
|
71 wxStaticText* m_staticTextCmd;
|
|
72 MyCmdBox* m_cmdbox;
|
|
73
|
|
74
|
|
75 MyFrame( wxWindow* parent, wxWindowID id, const wxString& title );
|
|
76 ~MyFrame();
|
|
77
|
|
78 void OnQuit( wxCommandEvent& event );
|
|
79 void OnAbout( wxCommandEvent& event );
|
|
80 void OnHelp( wxCommandEvent& event );
|
|
81 void OnListCcn( wxCommandEvent& event );
|
|
82 void OnCheckHhs( wxCommandEvent& event );
|
|
83 void OnBackupDB( wxCommandEvent& event );
|
|
84 void OnOptimizeDB( wxCommandEvent& event );
|
|
85 void OnOpenAppDir( wxCommandEvent& event );
|
|
86 void OnOpenDataDir( wxCommandEvent& event );
|
|
87 void OnUpdateHhsDb( wxCommandEvent& event );
|
|
88
|
3
|
89 //void OnHhsSearch( wxCommandEvent& event ); after version 2.11
|
0
|
90 void OnMkIndex( wxCommandEvent& event );
|
|
91 void SaveConfig( wxCloseEvent& event );
|
|
92 };
|
|
93
|
|
94 #endif
|
|
95 //__MYFRAME__
|
|
96
|