11
|
1 // Filename : cache.h
|
21
|
2 // Last Change: 12-Dec-2014.
|
11
|
3 //
|
|
4
|
|
5 #ifndef __CACHE_H__
|
|
6 #define __CACHE_H__
|
|
7
|
|
8 #include "common.h"
|
|
9
|
21
|
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 };
|
11
|
28
|
21
|
29 //
|
11
|
30 class CacheDialog : public wxDialog
|
|
31 {
|
|
32 DECLARE_EVENT_TABLE()
|
|
33 private:
|
21
|
34 wxString m_rootdir;
|
|
35 wxArrayString nocache;
|
|
36 int m_width, m_height;
|
11
|
37
|
|
38 protected:
|
21
|
39 wxStaticText* m_staticText;
|
|
40 wxListCtrl* m_listCtrl;
|
|
41 wxStaticText* m_staticTextRange;
|
|
42 wxStaticText* m_staticTextBetween;
|
11
|
43 wxDatePickerCtrl* m_datePickerBgn;
|
|
44 wxDatePickerCtrl* m_datePickerEnd;
|
21
|
45 wxButton* m_buttonCache;
|
|
46 wxButton* m_buttonGet;
|
11
|
47 wxButton* m_buttonClose;
|
|
48
|
|
49 public:
|
|
50 CacheDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
|
|
51 ~CacheDialog();
|
|
52 void Setting( wxString rootdir, int w, int h );
|
21
|
53 void Listup( void );
|
|
54 void OnDateChange( wxDateEvent& WXUNUSED(event) );
|
|
55 void OnGetCache( wxCommandEvent& WXUNUSED(event) );
|
11
|
56 void OnMakeCache( wxCommandEvent& WXUNUSED(event) );
|
21
|
57 };
|
|
58
|
|
59 enum
|
|
60 {
|
|
61 ID_RGBGN = wxID_HIGHEST + 660,
|
|
62 ID_RGEND,
|
|
63 ID_MKCACHE,
|
|
64 ID_GET,
|
|
65 ID_GETCACHE,
|
11
|
66 };
|
|
67
|
|
68 #endif //__CACHE_H__
|
|
69
|