Mercurial > mercurial > hgweb_mover2.cgi
view include/dndfile.h @ 9:dfa5cae8c992
small fix
author | pyon@macmini |
---|---|
date | Thu, 20 Oct 2011 07:44:56 +0900 |
parents | 9c85d71cad7c |
children |
line wrap: on
line source
// Filename : param.cpp // Last Change: 19-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 ); } return true; } private: wxString m_workdir; };