Merge branch 'qt-dnd'
Initial drag-and-drop implementation for wxQt. Closes https://github.com/wxWidgets/wxWidgets/pull/1205
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: src/qt/dataobj.cpp
|
||||
// Name: src/qt/dataobj.h
|
||||
// Author: Peter Most
|
||||
// Copyright: (c) Peter Most
|
||||
// Licence: wxWindows licence
|
||||
@@ -8,24 +8,17 @@
|
||||
#ifndef _WX_QT_DATAOBJ_H_
|
||||
#define _WX_QT_DATAOBJ_H_
|
||||
|
||||
class QMimeData;
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxDataObject is the same as wxDataObjectBase under wxQT
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_CORE wxDataObject : public wxDataObjectBase
|
||||
{
|
||||
public:
|
||||
wxDataObject();
|
||||
~wxDataObject();
|
||||
virtual ~wxDataObject();
|
||||
|
||||
virtual bool IsSupportedFormat(const wxDataFormat& format, Direction dir) const;
|
||||
virtual wxDataFormat GetPreferredFormat(Direction dir = Get) const;
|
||||
virtual size_t GetFormatCount(Direction dir = Get) const;
|
||||
virtual void GetAllFormats(wxDataFormat *formats, Direction dir = Get) const;
|
||||
virtual size_t GetDataSize(const wxDataFormat& format) const;
|
||||
virtual bool GetDataHere(const wxDataFormat& format, void *buf) const;
|
||||
virtual bool SetData(const wxDataFormat& format, size_t len, const void * buf);
|
||||
|
||||
private:
|
||||
QMimeData *m_qtMimeData; // to handle formats that have no helper classes
|
||||
virtual bool IsSupportedFormat( const wxDataFormat& format, Direction dir = Get ) const;
|
||||
};
|
||||
|
||||
#endif // _WX_QT_DATAOBJ_H_
|
||||
|
Reference in New Issue
Block a user