Mercurial > mercurial > hgweb_mover2.cgi
annotate include/dndfile.h @ 5:52697c869ce8
delete move&detect button.
author | pyon@macmini |
---|---|
date | Tue, 18 Oct 2011 07:53:48 +0900 |
parents | |
children | 9c85d71cad7c |
rev | line source |
---|---|
5 | 1 #include "wx/wxprec.h" |
2 | |
3 #ifndef WX_PRECOMP | |
4 #include "wx/wx.h" | |
5 #include "wx/arrstr.h" | |
6 #include "wx/textctrl.h" | |
7 #include "wx/dnd.h" | |
8 #endif | |
9 | |
10 class DnDFile : public wxFileDropTarget | |
11 { | |
12 public: | |
13 DnDFile( wxTextCtrl *owner ) { m_owner = owner; } | |
14 virtual bool OnDropFiles( wxCoord x, wxCoord y, const wxArrayString& finenames ) | |
15 { | |
16 m_owner->SetValue( finenames[0] ); | |
17 return true; | |
18 } | |
19 | |
20 private: | |
21 wxTextCtrl *m_owner; | |
22 }; | |
23 |