47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// Name: wx/qt/dnd.h
|
||
|
// Author: Peter Most
|
||
|
// Copyright: (c) Peter Most
|
||
|
// Licence: wxWindows licence
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#ifndef _WX_QT_DND_H_
|
||
|
#define _WX_QT_DND_H_
|
||
|
|
||
|
#define wxDROP_ICON(name) wxICON(name)
|
||
|
|
||
|
class WXDLLIMPEXP_CORE wxDropTarget : public wxDropTargetBase
|
||
|
{
|
||
|
public:
|
||
|
wxDropTarget(wxDataObject *dataObject = NULL );
|
||
|
|
||
|
virtual bool OnDrop(wxCoord x, wxCoord y);
|
||
|
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);
|
||
|
virtual bool GetData();
|
||
|
|
||
|
wxDataFormat GetMatchingPair();
|
||
|
|
||
|
protected:
|
||
|
|
||
|
private:
|
||
|
};
|
||
|
|
||
|
|
||
|
class WXDLLIMPEXP_CORE wxDropSource: public wxDropSourceBase
|
||
|
{
|
||
|
public:
|
||
|
wxDropSource( wxWindow *win = NULL,
|
||
|
const wxIcon © = wxNullIcon,
|
||
|
const wxIcon &move = wxNullIcon,
|
||
|
const wxIcon &none = wxNullIcon);
|
||
|
|
||
|
wxDropSource( wxDataObject& data,
|
||
|
wxWindow *win,
|
||
|
const wxIcon © = wxNullIcon,
|
||
|
const wxIcon &move = wxNullIcon,
|
||
|
const wxIcon &none = wxNullIcon);
|
||
|
|
||
|
virtual wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly);
|
||
|
};
|
||
|
#endif // _WX_QT_DND_H_
|