diff include/cache.h @ 11:dfcf8c973219

Implement Cache maker.
author pyon@macmini
date Wed, 07 May 2014 20:38:57 +0900
parents
children a2ad87cad48b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/cache.h	Wed May 07 20:38:57 2014 +0900
@@ -0,0 +1,40 @@
+// Filename   : cache.h
+// Last Change: 02-May-2014.
+//
+
+#ifndef __CACHE_H__
+#define __CACHE_H__
+
+#include "common.h"
+
+
+class CacheDialog : public wxDialog 
+{
+    DECLARE_EVENT_TABLE()
+	private:
+        wxString    m_rootdir;
+        int         m_width, m_height;
+	
+	protected:
+		wxDatePickerCtrl* m_datePickerBgn;
+		wxDatePickerCtrl* m_datePickerEnd;
+		wxButton*         m_buttonMake;
+		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 OnMakeCache( wxCommandEvent& WXUNUSED(event) );
+        void MakeCache( wxString begin, wxString end );
+        void OnClose( wxCommandEvent& WXUNUSED(event) );
+};
+
+#endif //__CACHE_H__
+
+enum
+{
+    ID_MKCACHE = wxID_HIGHEST + 660,
+    ID_CLOSE,
+};
+