changeset 13:df439f9831d2 v2.1

finish listitem selected action.
author pyon@macmini
date Sun, 23 Oct 2011 20:50:23 +0900
parents 6ed3b64ed39a
children f871fd3085e9 e60175dc675e
files TODO src/myframe.cpp
diffstat 2 files changed, 9 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/TODO	Sun Oct 23 20:29:33 2011 +0900
+++ b/TODO	Sun Oct 23 20:50:23 2011 +0900
@@ -4,7 +4,9 @@
 * d&d image
 * ccn folder make
 * error check hhsno
-* hhs explore
+* hhs explore & file count
+* auto cache rebuild off
+* color red if guess hhsno failed
 
 ----------------------------------------------------------------------
  Memo
--- a/src/myframe.cpp	Sun Oct 23 20:29:33 2011 +0900
+++ b/src/myframe.cpp	Sun Oct 23 20:50:23 2011 +0900
@@ -369,20 +369,17 @@
 /* 画像を選択 */
 void MyFrame::GetImageInfo(wxListEvent& event)
 {
-    /*
+    if ( m_listCtrlView->GetSelectedItemCount() != 1 ) return;
+
     SetStatusText( wxEmptyString, 2 );
     int i = event.GetIndex();
 
     wxString filename = event.GetText();
-    wxString workdir = m_dirPickerWork->GetPath();
-    wxString imagefile = workdir + wxFILE_SEP_PATH + filename;
-    float b; long l;
+    CacheItem* ci = new CacheItem;
+    ci = CH[filename];
     wxString msg;
-    if ( IsMarksheet( imagefile, &b, &l ) ) {
-        msg = wxT("perhaps marksheet !");
-    }
-    SetStatusText( wxString::Format(wxT("selected image : z = %f, l = %d ...")+msg, b, l ), 2 );
-    */
+    if ( ci->marksheet ) msg = wxT("perhaps marksheet !");
+    SetStatusText( wxString::Format(wxT("selected image : z = %f, l = %d ...")+msg, ci->z, ci->l ), 2 );
 }
 
 /* 画像のスクリーン表示*/