Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dndFileTarget.hh
1 #ifndef __dndFileTarget_hh__
2 #define __dndFileTarget_hh__
3 
4 /** This file is part of the BIAS library (Basic ImageAlgorithmS).
5 See the LICENSE file for license. */
6 
7 #include "bias_config.h"
8 #include <wx/wx.h>
9 #include <wx/dnd.h>
10 #if !wxUSE_DRAG_AND_DROP
11 # error The dndFileTarget class requires drag and drop support in the WX library. Please recompile wxWidgets. __FILE__: __LINE__
12 #endif
13 
14 namespace BIAS {
15  /** @class dndFileTarget
16  @brief drag and drop files onto application.
17 
18  drag a file from MS explorer or kde file manager directly on an application
19  (instead of using a load from filename function.)
20  @author Jan Woetzel 03/2005 */
21  class BIASGui_EXPORT dndFileTarget : public wxFileDropTarget {
22  public:
23  dndFileTarget(wxFrame *frame); // ctor
24  bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
25  protected:
26  wxFrame *m_frame;
27  };
28 }
29 #endif // __dndFileTarget_hh__
drag and drop files onto application.