X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d93e1335c44ee76c9a5d98bd76ee3df72fa3146..1a6a6043f79b8b12958e6cb09d443213a969507d:/include/wx/dnd.h?ds=sidebyside diff --git a/include/wx/dnd.h b/include/wx/dnd.h index 0d113904ec..61f7625876 100644 --- a/include/wx/dnd.h +++ b/include/wx/dnd.h @@ -12,11 +12,16 @@ #ifndef _WX_DND_H_BASE_ #define _WX_DND_H_BASE_ +#ifdef __GNUG__ + #pragma interface "dndbase.h" +#endif + #include "wx/defs.h" #if wxUSE_DRAG_AND_DROP #include "wx/dataobj.h" +#include "wx/cursor.h" // ---------------------------------------------------------------------------- // constants @@ -29,12 +34,13 @@ enum wxDragResult wxDragNone, // drag target didn't accept the data wxDragCopy, // the data was successfully copied wxDragMove, // the data was successfully moved (MSW only) + wxDragLink, // operation is a drag-link wxDragCancel // the operation was cancelled by user (not an error) }; inline WXDLLEXPORT bool wxIsDragResultOk(wxDragResult res) { - return res == wxDragCopy || res == wxDragMove; + return res == wxDragCopy || res == wxDragMove || res == wxDragLink; } // ---------------------------------------------------------------------------- @@ -181,10 +187,10 @@ protected: #include "wx/msw/ole/droptgt.h" #elif defined(__WXMOTIF__) #include "wx/motif/dnd.h" +#elif defined(__WXX11__) + #include "wx/x11/dnd.h" #elif defined(__WXGTK__) #include "wx/gtk/dnd.h" -#elif defined(__WXQT__) - #include "wx/qt/dnd.h" #elif defined(__WXMAC__) #include "wx/mac/dnd.h" #elif defined(__WXPM__)