X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/004fd0c8834ca526d335a9294322d9def17ef8a9..bc55104d9ab0b0b835644f17a152b4fbbfa8c7b9:/include/wx/os2/dnd.h diff --git a/include/wx/os2/dnd.h b/include/wx/os2/dnd.h index 68be65518f..a92c744745 100644 --- a/include/wx/os2/dnd.h +++ b/include/wx/os2/dnd.h @@ -13,14 +13,16 @@ #ifndef __OS2DNDH__ #define __OS2DNDH__ -#ifdef __GNUG__ -#pragma interface -#endif - #if !wxUSE_DRAG_AND_DROP #error "You should #define wxUSE_DRAG_AND_DROP to 1 to compile this file!" #endif //WX_DRAG_DROP +#define INCL_WINSTDDRAG +#include +#ifndef __EMX__ +#include +#endif + //------------------------------------------------------------------------- // wxDropSource //------------------------------------------------------------------------- @@ -64,7 +66,6 @@ public: virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def); virtual bool OnDrop(wxCoord x, wxCoord y); - virtual bool OnData(wxCoord x, wxCoord y); virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult vResult); virtual bool GetData(); @@ -76,49 +77,5 @@ protected: DRAGTRANSFER* m_pDragTransfer; }; -// ---------------------------------------------------------------------------- -// A simple wxDropTarget derived class for text data: you only need to -// override OnDropText() to get something working -// ---------------------------------------------------------------------------- - -class WXDLLEXPORT wxTextDropTarget : public wxDropTarget -{ -public: - wxTextDropTarget(); - virtual ~wxTextDropTarget(); - - virtual bool OnDropText( wxCoord x - ,wxCoord y - ,const wxString& rText - ) = 0; - - virtual bool OnData( wxCoord x - ,wxCoord y - ); - virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult vResult); -}; - -// ---------------------------------------------------------------------------- -// A drop target which accepts files (dragged from File Manager or Explorer) -// ---------------------------------------------------------------------------- - -class WXDLLEXPORT wxFileDropTarget : public wxDropTarget -{ -public: - wxFileDropTarget(); - virtual ~wxFileDropTarget(); - - // parameters are the number of files and the array of file names - virtual bool OnDropFiles( wxCoord x - ,wxCoord y - ,const wxArrayString& rFilenames - ) = 0; - - virtual bool OnData( wxCoord x - ,wxCoord y - ); - virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult vResult); -}; - #endif //__OS2DNDH__