- wxFileDataObject(void) { }
- void AddFile( const wxString &file )
- { m_files += file; m_files += '\0'; }
-
- virtual wxDataFormat GetPreferredFormat() const
- { return wxDF_FILENAME; }
-
- virtual bool IsSupportedFormat( wxDataFormat format ) const
- { return format == wxDF_FILENAME; }
-
- virtual size_t GetDataSize() const
- { return m_files.Len(); } // no trailing '\0'
-
- virtual void GetDataHere( void *data ) const
- { memcpy(data, m_files.c_str(), GetDataSize()); }
-
-private:
- wxString m_files;
-
-};
-//-------------------------------------------------------------------------
-// wxDropTarget
-//-------------------------------------------------------------------------
+ /* constructor for setting one data object */
+ wxDropSource( wxDataObject& data,
+ wxWindow *win,
+ const wxIcon &go = wxNullIcon );