X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..5a45dd6fd9870de6b68eff437fd5fe4ea5895c3c:/interface/wx/dnd.h diff --git a/interface/wx/dnd.h b/interface/wx/dnd.h index a6d5890f2d..9c8359c7ba 100644 --- a/interface/wx/dnd.h +++ b/interface/wx/dnd.h @@ -8,7 +8,6 @@ /** @class wxTextDropTarget - @wxheader{dnd.h} A predefined drop target for dealing with text data. @@ -43,7 +42,7 @@ public: Return @true to accept the data, or @false to veto the operation. */ - virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& data); + virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& data) = 0; }; @@ -63,7 +62,6 @@ enum wxDragResult /** @class wxDropTarget - @wxheader{dnd.h} This class represents a target for a drag and drop operation. A wxDataObject can be associated with it and by default, this object will be @@ -93,7 +91,7 @@ public: /** Destructor. Deletes the associated data object, if any. */ - ~wxDropTarget(); + virtual ~wxDropTarget(); /** This method may only be called from within OnData(). By default, this @@ -174,7 +172,6 @@ public: /** @class wxDropSource - @wxheader{dnd.h} This class represents a source for a drag and drop operation. @@ -208,12 +205,17 @@ public: const wxIconOrCursor& iconCopy = wxNullIconOrCursor, const wxIconOrCursor& iconMove = wxNullIconOrCursor, const wxIconOrCursor& iconNone = wxNullIconOrCursor); + /** + The constructor for wxDataObject. + Note that the exact type of @a iconCopy and subsequent parameters differs between wxMSW and wxGTK: these are cursors under Windows but icons for GTK. You should use the macro wxDROP_ICON() in portable programs instead of directly using either of these types. + @param data + The data associated with the drop source. @param win The window which initiates the drag and drop operation. @param iconCopy @@ -231,7 +233,7 @@ public: /** Default constructor. */ - ~wxDropSource(); + virtual ~wxDropSource(); /** Starts the drag-and-drop operation which will terminate when the user @@ -263,11 +265,9 @@ public: @param effect The effect to implement. One of ::wxDragCopy, ::wxDragMove, ::wxDragLink and ::wxDragNone. - @param scrolling - @true if the window is scrolling. MSW only. @return @false if you want default feedback, or @true if you implement - your own feedback. The return values is ignored under GTK. + your own feedback. The return value is ignored under GTK. */ virtual bool GiveFeedback(wxDragResult effect); @@ -292,7 +292,6 @@ public: /** @class wxFileDropTarget - @wxheader{dnd.h} This is a drop target which accepts files (dragged from File Manager or Explorer).