0
|
1 // Filename : index.h
|
2
|
2 // Last Change: 23-Aug-2013.
|
0
|
3 //
|
|
4
|
|
5 #ifndef __INDEX_H__
|
|
6 #define __INDEX_H__
|
|
7
|
|
8 #include "common.h"
|
|
9
|
|
10 class IndexDialog : public wxDialog
|
|
11 {
|
|
12 DECLARE_EVENT_TABLE()
|
|
13 private:
|
2
|
14 wxString m_rootdir;
|
0
|
15
|
|
16 protected:
|
|
17 wxListCtrl* m_listCtrl;
|
|
18 wxCalendarCtrl* m_calendar;
|
|
19 wxButton* m_buttonMake;
|
2
|
20 wxRichTextCtrl* m_richText;
|
0
|
21 wxButton* m_buttonClose;
|
|
22
|
|
23 public:
|
|
24 IndexDialog( wxWindow*, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
|
|
25 ~IndexDialog();
|
2
|
26
|
|
27 void OnSelect( wxCalendarEvent& WXUNUSED(event) );
|
|
28 void OnMakeIndex( wxCommandEvent& WXUNUSED(event) );
|
|
29 void OnPage( wxCalendarEvent& WXUNUSED(event) );
|
|
30 void UpdateList( void );
|
|
31 void CheckHhs( void );
|
|
32
|
|
33 // Accessor
|
|
34 void SetRootdir( wxString dir ) { m_rootdir = dir; }
|
0
|
35 };
|
|
36
|
|
37 enum {
|
|
38 ID_CALNENDER = wxID_HIGHEST + 60,
|
|
39 ID_MKINDEX,
|
|
40 };
|
|
41
|
|
42 #endif //__INDEX_H__
|
|
43
|