// Purpose: interface of wxDropSource and wx*DropTarget
// Author: wxWidgets team
// RCS-ID: $Id$
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/**
associated with this drop target, calling its wxDataObject::SetData()
method.
*/
- virtual bool GetData();
+ virtual bool GetData() = 0;
/**
Called after OnDrop() returns @true. By default this will usually
GetData() and will return the suggested default value @a def.
*/
- virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);
+ virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def) = 0;
/**
Called when the mouse is being dragged over the drop target. By
@return @true to accept the data, or @false to veto the operation.
*/
- virtual bool OnDrop(wxCoord x, wxCoord y);
+ virtual bool OnDrop(wxCoord x, wxCoord y) = 0;
/**
Called when the mouse enters the drop target. By default, this calls
This constructor requires that you must call SetData() later.
Note that the type of @a iconCopy and subsequent parameters
- differs between different ports: these are cursors under Windows but
- icons for GTK. You should use the macro wxDROP_ICON() in portable
+ differs between different ports: these are cursors under Windows and OS
+ X but icons for GTK. You should use the macro wxDROP_ICON() in portable
programs instead of directly using either of these types.
- @onlyfor{wxmsw,wxmac}
+ @onlyfor{wxmsw,wxosx}
@param win
The window which initiates the drag and drop operation.
The icon or cursor used for feedback when operation can't be done.
*/
wxDropSource(wxWindow* win = NULL,
- const wxIcon& iconCopy = wxNullIcon,
- const wxIcon& iconMove = wxNullIcon,
- const wxIcon& iconNone = wxNullIcon);
+ const wxCursor& iconCopy = wxNullIcon,
+ const wxCursor& iconMove = wxNullIcon,
+ const wxCursor& iconNone = wxNullIcon);
/**
- The constructor for wxDataObject.
+ The constructor taking a wxDataObject.
Note that the type of @a iconCopy and subsequent parameters
- differs between different ports: these are cursors under Windows but
- icons for GTK. You should use the macro wxDROP_ICON() in portable
+ differs between different ports: these are cursors under Windows and OS
+ X but icons for GTK. You should use the macro wxDROP_ICON() in portable
programs instead of directly using either of these types.
- @onlyfor{wxmsw,wxmac}
+ @onlyfor{wxmsw,wxosx}
@param data
The data associated with the drop source.
The icon or cursor used for feedback when operation can't be done.
*/
wxDropSource(wxDataObject& data, wxWindow* win = NULL,
- const wxIcon& iconCopy = wxNullIcon,
- const wxIcon& iconMove = wxNullIcon,
- const wxIcon& iconNone = wxNullIcon);
+ const wxCursor& iconCopy = wxNullIcon,
+ const wxCursor& iconMove = wxNullIcon,
+ const wxCursor& iconNone = wxNullIcon);
/**
This constructor requires that you must call SetData() later.
- Note that the type of @a iconCopy and subsequent parameters
- differs between different ports: 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.
+ This is the wxGTK-specific version of the constructor taking wxIcon
+ instead of wxCursor as the other ports.
@onlyfor{wxgtk}
The icon or cursor used for feedback when operation can't be done.
*/
wxDropSource(wxWindow* win = NULL,
- const wxCursor& iconCopy = wxNullCursor,
- const wxCursor& iconMove = wxNullCursor,
- const wxCursor& iconNone = wxNullCursor);
+ const wxIcon& iconCopy = wxNullCursor,
+ const wxIcon& iconMove = wxNullCursor,
+ const wxIcon& iconNone = wxNullCursor);
/**
- The constructor for wxDataObject.
+ The constructor taking a wxDataObject.
- Note that the type of @a iconCopy and subsequent parameters
- differs between different ports: 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.
+ This is the wxGTK-specific version of the constructor taking wxIcon
+ instead of wxCursor as the other ports.
@onlyfor{wxgtk}
The icon or cursor used for feedback when operation can't be done.
*/
wxDropSource(wxDataObject& data, wxWindow* win = NULL,
- const wxCursor& iconCopy = wxNullCursor,
- const wxCursor& iconMove = wxNullCursor,
- const wxCursor& iconNone = wxNullCursor);
-
- /**
- Default constructor.
- */
- virtual ~wxDropSource();
+ const wxIcon& iconCopy = wxNullCursor,
+ const wxIcon& iconMove = wxNullCursor,
+ const wxIcon& iconNone = wxNullCursor);
/**
Starts the drag-and-drop operation which will terminate when the user