2014-08-23 21:50:11 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/qt/dataobj2.h
|
|
|
|
// Author: Peter Most
|
|
|
|
// Copyright: (c) Peter Most
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_QT_DATAOBJ2_H_
|
|
|
|
#define _WX_QT_DATAOBJ2_H_
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxBitmapDataObject : public wxBitmapDataObjectBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxBitmapDataObject();
|
|
|
|
wxBitmapDataObject(const wxBitmap& bitmap);
|
|
|
|
|
2019-10-02 10:40:16 -04:00
|
|
|
// Overridden to set image data directly, which Qt will write to clipboard in many formats
|
|
|
|
void QtAddDataTo(QMimeData &mimeData) const wxOVERRIDE;
|
|
|
|
// Overridden to retrieve image data from any format that Qt can read from clipboard
|
|
|
|
bool QtSetDataFrom(const QMimeData &mimeData) wxOVERRIDE;
|
2019-10-02 08:22:16 -04:00
|
|
|
|
2014-08-23 21:50:11 -04:00
|
|
|
protected:
|
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxFileDataObject : public wxFileDataObjectBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxFileDataObject();
|
|
|
|
|
|
|
|
void AddFile( const wxString &filename );
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_QT_DATAOBJ2_H_
|