diff include/myframe.h @ 11:9b0840b0be7e

cache done.
author pyon@macmini
date Sun, 23 Oct 2011 07:43:34 +0900
parents dfa5cae8c992
children 6ed3b64ed39a
line wrap: on
line diff
--- a/include/myframe.h	Fri Oct 21 07:58:23 2011 +0900
+++ b/include/myframe.h	Sun Oct 23 07:43:34 2011 +0900
@@ -1,11 +1,13 @@
 // Filename   : myframe.h
-// Last Change: 20-Oct-2011.
+// Last Change: 22-Oct-2011.
 //
 
 #ifndef __myframe__
 #define __myframe__
 
 #include "common.h"
+#include "cache.h"
+WX_DECLARE_HASH_MAP( wxString, CacheItem*, wxStringHash, wxStringEqual, CacheHash );
 
 class MyFrame : public wxFrame 
 {
@@ -13,6 +15,8 @@
     private:
         wxImageList*      m_imageList;
         wxArrayString     m_undo;
+        wxTimer           m_timer;
+        CacheHash         CH;
     
     protected:
         wxMenuBar*        m_menubarFile;
@@ -61,8 +65,10 @@
         void OnDelete(wxCommandEvent& event);
         void OnUndo(wxCommandEvent& event);
         void ReadyImage(void);
-        void WatchDir(void);
+        void UpdateCache(void);
         // $B0J2<!$Dj7?$b$N(B
+        void OnTimer(wxTimerEvent& event);
+        void OnIdle(wxIdleEvent& event);
         void OnWinSize(wxSizeEvent& event);
         void OnWinMove(wxMoveEvent& event);
         void TellLocation( void );