]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dnd.cpp
Integrated fixes from latest UNIX version.
[wxWidgets.git] / src / os2 / dnd.cpp
index c37a27db5500cb3834a5af98fb8a4e6dd1e82f67..463d738fa9a1851a86d400468649544e02a16968 100644 (file)
 #endif
 
 #define INCL_PM
+#define INCL_DOS
 #include <os2.h>
 #include "wx/window.h"
 #include "wx/app.h"
 #include "wx/gdicmn.h"
 #include "wx/dnd.h"
 
+#if wxUSE_DRAG_AND_DROP
+
 // ----------------------------------------------------------------------------
 // global
 // ----------------------------------------------------------------------------
@@ -72,15 +75,6 @@ bool wxDropTarget::OnDrop(
     return FALSE;
 };
 
-bool wxDropTarget::OnData(
-  wxCoord                           x
-, wxCoord                           y
-)
-{
-    //TODO:
-    return FALSE;
-};
-
 wxDragResult wxDropTarget::OnData(
   wxCoord                           x
 , wxCoord                           y
@@ -105,42 +99,6 @@ bool wxDropTarget::IsAcceptable(
     return FALSE;
 };
 
-// ----------------------------------------------------------------------------
-// wxTextDropTarget
-// ----------------------------------------------------------------------------
-
-wxTextDropTarget::~wxTextDropTarget()
-{
-    // TODO:
-}
-
-bool wxTextDropTarget::OnData(
-  wxCoord                           x
-, wxCoord                           y
-)
-{
-    // TODO:
-    return FALSE;
-};
-
-// ----------------------------------------------------------------------------
-// wxFileDropTarget
-// ----------------------------------------------------------------------------
-
-wxFileDropTarget::~wxFileDropTarget()
-{
-    // TODO:
-}
-
-bool wxFileDropTarget::OnData(
-  wxCoord                           x
-, wxCoord                           y
-)
-{
-    // TODO:
-    return FALSE;
-};
-
 //-------------------------------------------------------------------------
 // wxDropSource
 //-------------------------------------------------------------------------
@@ -166,7 +124,7 @@ wxDropSource::~wxDropSource()
 };
 
 wxDragResult wxDropSource::DoDragDrop(
-  bool                              WXUNUSED(bAllowMove)
+  int                              WXUNUSED(flags)
 )
 {
     // TODO
@@ -178,3 +136,4 @@ void wxDropSource::Init()
     // TODO
 };
 
+#endif //wxUSE_DRAG_AND_DROP