Mercurial > mercurial > hgweb_mover2.cgi
view include/dndfile.h @ 7:a43adb9537b2
start impletent cache.
author | pyon@macmini |
---|---|
date | Wed, 19 Oct 2011 07:49:32 +0900 |
parents | 9c85d71cad7c |
children | dfa5cae8c992 |
line wrap: on
line source
// Filename : param.cpp // Last Change: 18-Oct-2011. // class DnDFile : public wxFileDropTarget { public: DnDFile( wxDirPickerCtrl *dir ) { m_workdir = dir->GetPath(); } virtual bool OnDropFiles( wxCoord x, wxCoord y, const wxArrayString& filenames ) { size_t nFiles = filenames.GetCount(); for ( size_t n=0; n<nFiles; n++ ) { wxFileName filename( filenames[n] ); 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; } private: wxString m_workdir; };