# HG changeset patch # User pyon@macmini # Date 1319064296 -32400 # Node ID dfa5cae8c992006e3a8979a69b87c03dc55e6a49 # Parent 550c143ab1942177e05c7288a687c0e53b056817 small fix diff -r 550c143ab194 -r dfa5cae8c992 include/dndfile.h --- a/include/dndfile.h Wed Oct 19 20:36:52 2011 +0900 +++ b/include/dndfile.h Thu Oct 20 07:44:56 2011 +0900 @@ -1,5 +1,5 @@ // Filename : param.cpp -// Last Change: 18-Oct-2011. +// Last Change: 19-Oct-2011. // class DnDFile : public wxFileDropTarget @@ -17,7 +17,6 @@ wxString from = filenames[n]; wxString to = m_workdir + wxFILE_SEP_PATH + filename.GetFullName(); wxRenameFile( from, to, true ); - //wxMessageBox( wxT("move ") + filenames[n] + to ); } return true; } diff -r 550c143ab194 -r dfa5cae8c992 include/myframe.h --- a/include/myframe.h Wed Oct 19 20:36:52 2011 +0900 +++ b/include/myframe.h Thu Oct 20 07:44:56 2011 +0900 @@ -1,5 +1,5 @@ // Filename : myframe.h -// Last Change: 19-Oct-2011. +// Last Change: 20-Oct-2011. // #ifndef __myframe__ @@ -61,6 +61,7 @@ void OnDelete(wxCommandEvent& event); void OnUndo(wxCommandEvent& event); void ReadyImage(void); + void WatchDir(void); // $B0J2SetStatusText( wxEmptyString, 0 ); this->Centre( wxBOTH ); + + CacheHash cache; } // destructor @@ -314,7 +318,7 @@ wxString first; wxProgressDialog pd( wxT("進行状況"), wxT("処理開始..."), 7, this, wxPD_APP_MODAL|wxPD_REMAINING_TIME|wxPD_AUTO_HIDE ); pd.SetSize( wxSize(320,140) ); - float b; long l; + float z; long l; for ( int i=0; iAdd( bmp ); if ( i == 0 ) { - IsMarksheet( filenames[i], &b, &l ); + IsMarksheet( filenames[i], &z, &l ); first = filenames[i]; - SetStatusText( wxString::Format(wxT("1st image : z = %f, l = %d"),b,l), 1 ); + SetStatusText( wxString::Format(wxT("1st image : z = %f, l = %d"),z,l), 1 ); wxImage marksheet( first, wxBITMAP_TYPE_JPEG ); wxImage name_image; @@ -346,7 +350,7 @@ m_textCtrlGuess->SetValue( hhsno ); } else { - if ( IsMarksheet( filenames[i], &b, &l ) ) { + if ( IsMarksheet( filenames[i], &z, &l ) ) { break; } }