2014-08-23 21:50:11 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2019-01-28 10:30:25 -05:00
|
|
|
// Name: src/qt/dataobj.h
|
2014-08-23 21:50:11 -04:00
|
|
|
// Author: Peter Most
|
|
|
|
// Copyright: (c) Peter Most
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_QT_DATAOBJ_H_
|
|
|
|
#define _WX_QT_DATAOBJ_H_
|
|
|
|
|
2019-01-28 10:30:25 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxDataObject is the same as wxDataObjectBase under wxQT
|
|
|
|
// ----------------------------------------------------------------------------
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2019-10-02 08:22:16 -04:00
|
|
|
class QMimeData;
|
|
|
|
|
2014-08-23 21:50:11 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxDataObject : public wxDataObjectBase
|
|
|
|
{
|
|
|
|
public:
|
2016-08-25 11:56:00 -04:00
|
|
|
wxDataObject();
|
2019-01-28 10:30:25 -05:00
|
|
|
virtual ~wxDataObject();
|
2019-01-30 11:28:08 -05:00
|
|
|
|
2019-01-28 10:30:25 -05:00
|
|
|
virtual bool IsSupportedFormat( const wxDataFormat& format, Direction dir = Get ) const;
|
2019-10-02 10:40:16 -04:00
|
|
|
|
|
|
|
// Adds object's data to Qt mime data appropriately for type
|
|
|
|
virtual void QtAddDataTo(QMimeData &mimeData) const;
|
|
|
|
// Sets object's data from Qt mime data appropriately for type
|
|
|
|
virtual bool QtSetDataFrom(const QMimeData &mimeData);
|
2019-10-02 08:22:16 -04:00
|
|
|
|
|
|
|
private:
|
2019-10-02 10:40:16 -04:00
|
|
|
// Sets object's data from Qt mime data in specific format
|
|
|
|
virtual void QtSetDataSingleFormat(const QMimeData &mimeData, const wxDataFormat &format);
|
2014-08-23 21:50:11 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_QT_DATAOBJ_H_
|