comparison include/cache.h @ 21:a2ad87cad48b

Enhanced the convenience of Cache dialog.
author pyon@macmini
date Wed, 17 Dec 2014 00:52:43 +0900
parents dfcf8c973219
children
comparison
equal deleted inserted replaced
20:226774bf49fc 21:a2ad87cad48b
1 // Filename : cache.h 1 // Filename : cache.h
2 // Last Change: 02-May-2014. 2 // Last Change: 12-Dec-2014.
3 // 3 //
4 4
5 #ifndef __CACHE_H__ 5 #ifndef __CACHE_H__
6 #define __CACHE_H__ 6 #define __CACHE_H__
7 7
8 #include "common.h" 8 #include "common.h"
9 9
10 //
11 class CacheGetDialog : public wxDialog
12 {
13 DECLARE_EVENT_TABLE()
14 private:
15 wxArrayString m_nocache;
16
17 protected:
18 wxDirPickerCtrl* m_dirPicker;
19 wxButton* m_buttonGet;
20 wxButton* m_buttonCancel;
21
22 public:
23 CacheGetDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
24 ~CacheGetDialog();
25 void OnGetCache( wxCommandEvent& WXUNUSED(event) );
26 void SetSyncDates( wxArrayString );
27 };
10 28
29 //
11 class CacheDialog : public wxDialog 30 class CacheDialog : public wxDialog
12 { 31 {
13 DECLARE_EVENT_TABLE() 32 DECLARE_EVENT_TABLE()
14 private: 33 private:
15 wxString m_rootdir; 34 wxString m_rootdir;
16 int m_width, m_height; 35 wxArrayString nocache;
36 int m_width, m_height;
17 37
18 protected: 38 protected:
39 wxStaticText* m_staticText;
40 wxListCtrl* m_listCtrl;
41 wxStaticText* m_staticTextRange;
42 wxStaticText* m_staticTextBetween;
19 wxDatePickerCtrl* m_datePickerBgn; 43 wxDatePickerCtrl* m_datePickerBgn;
20 wxDatePickerCtrl* m_datePickerEnd; 44 wxDatePickerCtrl* m_datePickerEnd;
21 wxButton* m_buttonMake; 45 wxButton* m_buttonCache;
46 wxButton* m_buttonGet;
22 wxButton* m_buttonClose; 47 wxButton* m_buttonClose;
23 48
24 public: 49 public:
25 CacheDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); 50 CacheDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
26 ~CacheDialog(); 51 ~CacheDialog();
27 void Setting( wxString rootdir, int w, int h ); 52 void Setting( wxString rootdir, int w, int h );
53 void Listup( void );
54 void OnDateChange( wxDateEvent& WXUNUSED(event) );
55 void OnGetCache( wxCommandEvent& WXUNUSED(event) );
28 void OnMakeCache( wxCommandEvent& WXUNUSED(event) ); 56 void OnMakeCache( wxCommandEvent& WXUNUSED(event) );
29 void MakeCache( wxString begin, wxString end ); 57 };
30 void OnClose( wxCommandEvent& WXUNUSED(event) ); 58
59 enum
60 {
61 ID_RGBGN = wxID_HIGHEST + 660,
62 ID_RGEND,
63 ID_MKCACHE,
64 ID_GET,
65 ID_GETCACHE,
31 }; 66 };
32 67
33 #endif //__CACHE_H__ 68 #endif //__CACHE_H__
34 69
35 enum
36 {
37 ID_MKCACHE = wxID_HIGHEST + 660,
38 ID_CLOSE,
39 };
40