Mercurial > mercurial > hgweb_searcher03.cgi
diff 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 |
line wrap: on
line diff
--- a/include/cache.h Mon Dec 08 19:47:42 2014 +0900 +++ b/include/cache.h Wed Dec 17 00:52:43 2014 +0900 @@ -1,5 +1,5 @@ // Filename : cache.h -// Last Change: 02-May-2014. +// Last Change: 12-Dec-2014. // #ifndef __CACHE_H__ @@ -7,34 +7,63 @@ #include "common.h" +// +class CacheGetDialog : public wxDialog +{ + DECLARE_EVENT_TABLE() + private: + wxArrayString m_nocache; + + protected: + wxDirPickerCtrl* m_dirPicker; + wxButton* m_buttonGet; + wxButton* m_buttonCancel; + + public: + CacheGetDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); + ~CacheGetDialog(); + void OnGetCache( wxCommandEvent& WXUNUSED(event) ); + void SetSyncDates( wxArrayString ); +}; +// class CacheDialog : public wxDialog { DECLARE_EVENT_TABLE() private: - wxString m_rootdir; - int m_width, m_height; + wxString m_rootdir; + wxArrayString nocache; + int m_width, m_height; protected: + wxStaticText* m_staticText; + wxListCtrl* m_listCtrl; + wxStaticText* m_staticTextRange; + wxStaticText* m_staticTextBetween; wxDatePickerCtrl* m_datePickerBgn; wxDatePickerCtrl* m_datePickerEnd; - wxButton* m_buttonMake; + wxButton* m_buttonCache; + wxButton* m_buttonGet; wxButton* m_buttonClose; public: CacheDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); ~CacheDialog(); void Setting( wxString rootdir, int w, int h ); + void Listup( void ); + void OnDateChange( wxDateEvent& WXUNUSED(event) ); + void OnGetCache( wxCommandEvent& WXUNUSED(event) ); void OnMakeCache( wxCommandEvent& WXUNUSED(event) ); - void MakeCache( wxString begin, wxString end ); - void OnClose( wxCommandEvent& WXUNUSED(event) ); +}; + +enum +{ + ID_RGBGN = wxID_HIGHEST + 660, + ID_RGEND, + ID_MKCACHE, + ID_GET, + ID_GETCACHE, }; #endif //__CACHE_H__ -enum -{ - ID_MKCACHE = wxID_HIGHEST + 660, - ID_CLOSE, -}; -