Include wx/dataobj.h from wx/clipbrd.h.
This is necessary in order to define wxVector<wxDataFormat> at least when wxVector is std::vector (as in wxUSE_STL==1 build) because vectors of incomplete types can't be used. Also removed inclusions of this and other unneeded headers from MSW and OS X headers and removed a hopefully out of date comment about Mac code being wx 1.xx-based from the latter. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,10 +19,9 @@
|
||||
|
||||
#include "wx/event.h"
|
||||
#include "wx/chartype.h"
|
||||
#include "wx/dataobj.h" // for wxDataFormat
|
||||
#include "wx/vector.h"
|
||||
|
||||
class WXDLLIMPEXP_FWD_CORE wxDataFormat;
|
||||
class WXDLLIMPEXP_FWD_CORE wxDataObject;
|
||||
class WXDLLIMPEXP_FWD_CORE wxClipboard;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -105,13 +104,25 @@ public:
|
||||
class WXDLLIMPEXP_CORE wxClipboardEvent : public wxEvent
|
||||
{
|
||||
public:
|
||||
wxClipboardEvent(wxEventType evtType = wxEVT_NULL);
|
||||
wxClipboardEvent(const wxClipboardEvent& event);
|
||||
wxClipboardEvent(wxEventType evtType = wxEVT_NULL)
|
||||
: wxEvent(0, evtType)
|
||||
{
|
||||
}
|
||||
|
||||
wxClipboardEvent(const wxClipboardEvent& event)
|
||||
: wxEvent(event),
|
||||
m_formats(event.m_formats)
|
||||
{
|
||||
}
|
||||
|
||||
bool SupportsFormat(const wxDataFormat& format) const;
|
||||
void AddFormat(const wxDataFormat& format);
|
||||
|
||||
virtual wxEvent *Clone() const;
|
||||
virtual wxEvent *Clone() const
|
||||
{
|
||||
return new wxClipboardEvent(*this);
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
wxVector<wxDataFormat> m_formats;
|
||||
|
Reference in New Issue
Block a user