comparison src/myframe.cpp @ 13:df439f9831d2 v2.1

finish listitem selected action.
author pyon@macmini
date Sun, 23 Oct 2011 20:50:23 +0900
parents 6ed3b64ed39a
children c540dc3eabe5
comparison
equal deleted inserted replaced
12:6ed3b64ed39a 13:df439f9831d2
367 } 367 }
368 368
369 /* 画像を選択 */ 369 /* 画像を選択 */
370 void MyFrame::GetImageInfo(wxListEvent& event) 370 void MyFrame::GetImageInfo(wxListEvent& event)
371 { 371 {
372 /* 372 if ( m_listCtrlView->GetSelectedItemCount() != 1 ) return;
373
373 SetStatusText( wxEmptyString, 2 ); 374 SetStatusText( wxEmptyString, 2 );
374 int i = event.GetIndex(); 375 int i = event.GetIndex();
375 376
376 wxString filename = event.GetText(); 377 wxString filename = event.GetText();
377 wxString workdir = m_dirPickerWork->GetPath(); 378 CacheItem* ci = new CacheItem;
378 wxString imagefile = workdir + wxFILE_SEP_PATH + filename; 379 ci = CH[filename];
379 float b; long l;
380 wxString msg; 380 wxString msg;
381 if ( IsMarksheet( imagefile, &b, &l ) ) { 381 if ( ci->marksheet ) msg = wxT("perhaps marksheet !");
382 msg = wxT("perhaps marksheet !"); 382 SetStatusText( wxString::Format(wxT("selected image : z = %f, l = %d ...")+msg, ci->z, ci->l ), 2 );
383 }
384 SetStatusText( wxString::Format(wxT("selected image : z = %f, l = %d ...")+msg, b, l ), 2 );
385 */
386 } 383 }
387 384
388 /* 画像のスクリーン表示*/ 385 /* 画像のスクリーン表示*/
389 void MyFrame::ViewLarge(wxListEvent& event) 386 void MyFrame::ViewLarge(wxListEvent& event)
390 { 387 {