Add wx headers and ext
This commit is contained in:
parent
6390dcef6a
commit
66d3c7b811
1531 changed files with 295895 additions and 0 deletions
54
wxheaders/wx/qt/dnd.h
Normal file
54
wxheaders/wx/qt/dnd.h
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
// 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) wxCursor(name##_xpm)
|
||||
|
||||
class WXDLLIMPEXP_CORE wxDropTarget : public wxDropTargetBase
|
||||
{
|
||||
public:
|
||||
wxDropTarget(wxDataObject *dataObject = NULL);
|
||||
virtual ~wxDropTarget();
|
||||
|
||||
virtual bool OnDrop(wxCoord x, wxCoord y) wxOVERRIDE;
|
||||
virtual wxDragResult OnData(wxCoord x,
|
||||
wxCoord y,
|
||||
wxDragResult def) wxOVERRIDE;
|
||||
virtual bool GetData() wxOVERRIDE;
|
||||
|
||||
wxDataFormat GetMatchingPair();
|
||||
|
||||
void ConnectTo(QWidget* widget);
|
||||
void Disconnect();
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
Impl* m_pImpl;
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_CORE wxDropSource: public wxDropSourceBase
|
||||
{
|
||||
public:
|
||||
wxDropSource(wxWindow *win = NULL,
|
||||
const wxCursor © = wxNullCursor,
|
||||
const wxCursor &move = wxNullCursor,
|
||||
const wxCursor &none = wxNullCursor);
|
||||
|
||||
wxDropSource(wxDataObject& data,
|
||||
wxWindow *win,
|
||||
const wxCursor © = wxNullCursor,
|
||||
const wxCursor &move = wxNullCursor,
|
||||
const wxCursor &none = wxNullCursor);
|
||||
|
||||
virtual wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxWindow* m_parentWindow;
|
||||
};
|
||||
#endif // _WX_QT_DND_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue