Give wxDataObjectComposite a way to report what kind of data was given
to it from the clipboard or DnD source. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -273,6 +273,12 @@ public:
|
||||
// one if preferred == true
|
||||
void Add(wxDataObjectSimple *dataObject, bool preferred = false);
|
||||
|
||||
// Report the format passed to the SetData method. This should be the
|
||||
// format of the data object within the composite that recieved data from
|
||||
// the clipboard or the DnD operation. You can use this method to find
|
||||
// out what kind of data object was recieved.
|
||||
wxDataFormat GetReceivedFormat() const;
|
||||
|
||||
// implement base class pure virtuals
|
||||
// ----------------------------------
|
||||
virtual wxDataFormat GetPreferredFormat(wxDataObjectBase::Direction dir = Get) const;
|
||||
@@ -301,6 +307,8 @@ private:
|
||||
// one is the preferred)
|
||||
size_t m_preferred;
|
||||
|
||||
wxDataFormat m_receivedFormat;
|
||||
|
||||
DECLARE_NO_COPY_CLASS(wxDataObjectComposite)
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user