X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c86f1403c3737c07d58676a203f4707942684a01..e63fdcd600e2eb717a19f9fa2895e9256e83c890:/include/wx/stubs/dnd.h diff --git a/include/wx/stubs/dnd.h b/include/wx/stubs/dnd.h index 2d3ad2f737..5a7a65335f 100644 --- a/include/wx/stubs/dnd.h +++ b/include/wx/stubs/dnd.h @@ -205,28 +205,28 @@ class WXDLLEXPORT wxFileDropTarget: public wxDropTarget // wxDropSource //------------------------------------------------------------------------- +enum wxDragResult + { + wxDragError, // error prevented the d&d operation from completing + wxDragNone, // drag target didn't accept the data + wxDragCopy, // the data was successfully copied + wxDragMove, // the data was successfully moved + wxDragCancel // the operation was cancelled by user (not an error) + }; + class WXDLLEXPORT wxDropSource: public wxObject { public: - enum DragResult - { - Error, // error prevented the d&d operation from completing - None, // drag target didn't accept the data - Copy, // the data was successfully copied - Move, // the data was successfully moved - Cancel // the operation was cancelled by user (not an error) - }; - wxDropSource( wxWindow *win ); wxDropSource( wxDataObject &data, wxWindow *win ); ~wxDropSource(void); void SetData( wxDataObject &data ); - DragResult DoDragDrop( bool bAllowMove = FALSE ); + wxDragResult DoDragDrop( bool bAllowMove = FALSE ); - virtual bool GiveFeedback( DragResult WXUNUSED(effect), bool WXUNUSED(bScrolling) ) { return TRUE; }; + virtual bool GiveFeedback( wxDragResult WXUNUSED(effect), bool WXUNUSED(bScrolling) ) { return TRUE; }; protected: