// return true if res indicates that something was done during a dnd operation,
// i.e. is neither error nor none nor cancel
-WXDLLEXPORT bool wxIsDragResultOk(wxDragResult res);
+WXDLLIMPEXP_CORE bool wxIsDragResultOk(wxDragResult res);
// ----------------------------------------------------------------------------
// wxDropSource is the object you need to create (and call DoDragDrop on it)
// to initiate a drag-and-drop operation
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxDropSourceBase
+class WXDLLIMPEXP_CORE wxDropSourceBase
{
public:
wxDropSourceBase(const wxCursor &cursorCopy = wxNullCursor,
: m_cursorCopy(cursorCopy),
m_cursorMove(cursorMove),
m_cursorStop(cursorStop)
- { m_data = (wxDataObject *)NULL; }
+ { m_data = NULL; }
virtual ~wxDropSourceBase() { }
// set the data which is transfered by drag and drop
m_cursorMove,
m_cursorStop;
- DECLARE_NO_COPY_CLASS(wxDropSourceBase)
+ wxDECLARE_NO_COPY_CLASS(wxDropSourceBase);
};
// ----------------------------------------------------------------------------
// OnData() is called)
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxDropTargetBase
+class WXDLLIMPEXP_CORE wxDropTargetBase
{
public:
// ctor takes a pointer to heap-allocated wxDataObject which will be owned
// by wxDropTarget and deleted by it automatically. If you don't give it
// here, you can use SetDataObject() later.
- wxDropTargetBase(wxDataObject *dataObject = (wxDataObject*)NULL)
+ wxDropTargetBase(wxDataObject *dataObject = NULL)
{ m_dataObject = dataObject; m_defaultAction = wxDragNone; }
// dtor deletes our data object
virtual ~wxDropTargetBase()
wxDataObject *m_dataObject;
wxDragResult m_defaultAction;
- DECLARE_NO_COPY_CLASS(wxDropTargetBase)
+ wxDECLARE_NO_COPY_CLASS(wxDropTargetBase);
};
// ----------------------------------------------------------------------------
#elif defined(__WXGTK__)
#include "wx/gtk1/dnd.h"
#elif defined(__WXMAC__)
- #include "wx/mac/dnd.h"
+ #include "wx/osx/dnd.h"
#elif defined(__WXPM__)
#include "wx/os2/dnd.h"
#endif
// A simple wxDropTarget derived class for text data: you only need to
// override OnDropText() to get something working
-class WXDLLEXPORT wxTextDropTarget : public wxDropTarget
+class WXDLLIMPEXP_CORE wxTextDropTarget : public wxDropTarget
{
public:
wxTextDropTarget();
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);
private:
- DECLARE_NO_COPY_CLASS(wxTextDropTarget)
+ wxDECLARE_NO_COPY_CLASS(wxTextDropTarget);
};
// A drop target which accepts files (dragged from File Manager or Explorer)
-class WXDLLEXPORT wxFileDropTarget : public wxDropTarget
+class WXDLLIMPEXP_CORE wxFileDropTarget : public wxDropTarget
{
public:
wxFileDropTarget();
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);
private:
- DECLARE_NO_COPY_CLASS(wxFileDropTarget)
+ wxDECLARE_NO_COPY_CLASS(wxFileDropTarget);
};
#endif // wxUSE_DRAG_AND_DROP