// Author: Vadim Zeitlin, Robert Roebling
// Modified by:
// Created: 26.05.99
-// RCS-ID: $Id$
// Copyright: (c) wxWidgets Team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
: 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
+ // set the data which is transferred by drag and drop
void SetData(wxDataObject& data)
{ m_data = &data; }
m_cursorMove,
m_cursorStop;
- DECLARE_NO_COPY_CLASS(wxDropSourceBase)
+ wxDECLARE_NO_COPY_CLASS(wxDropSourceBase);
};
// ----------------------------------------------------------------------------
// 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);
};
// ----------------------------------------------------------------------------
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)
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