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