# HG changeset patch # User pyon@macmini # Date 1319370623 -32400 # Node ID df439f9831d232342d49f12b6013c4dfc0cfa4cd # Parent 6ed3b64ed39ae7e16b9787086224b3d0751113c3 finish listitem selected action. diff -r 6ed3b64ed39a -r df439f9831d2 TODO --- 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 diff -r 6ed3b64ed39a -r df439f9831d2 src/myframe.cpp --- 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 ); } /* 画像のスクリーン表示*/