]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/dnd.h
wXMotif compilation fixes
[wxWidgets.git] / include / wx / os2 / dnd.h
index d77403922151d9d828318f664396f43a652290e3..e72f3e9e9e22e22364364bf2cd76c397227f6941 100644 (file)
@@ -29,16 +29,11 @@ class WXDLLEXPORT wxDropSource: public wxDropSourceBase
 {
 public:
     /* constructor. set data later with SetData() */
-    wxDropSource( wxWindow*     pWin
-                 ,const wxIcon& rGo = wxNullIcon
-                 ,const wxIcon& rStop = wxNullIcon
-                );
+    wxDropSource(wxWindow* pWin);
 
     /* constructor for setting one data object */
     wxDropSource( wxDataObject& rData,
-                  wxWindow*     pWin,
-                  const wxIcon& rGo = wxNullIcon,
-                  const wxIcon& rStop = wxNullIcon
+                  wxWindow*     pWin
                 );
     virtual ~wxDropSource();
 
@@ -69,7 +64,7 @@ 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();
 
   // implementation
@@ -80,47 +75,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
-                       );
-};
-
-// ----------------------------------------------------------------------------
-// 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
-                       );
-};
-
 #endif //__OS2DNDH__