Contents Up Previous Next

wxFileDataObject

wxFileDataObject is a specialization of wxDataObject for file names. The program works with it just as if it were a list of absolute file names, but internally it uses the same format as Explorer and other compatible programs under Windows or GNOME/KDE filemanager under Unix which makes it possible to receive files from them using this class.

Warning: Under all non-Windows platforms this class is currently "input-only", i.e. you can receive the files from another application, but copying (or dragging) file(s) from a wxWidgets application is not currently supported. PS: GTK2 should work as well.

Virtual functions to override

None.

Derived from

wxDataObjectSimple
wxDataObject

Include files

<wx/dataobj.h>

See also

wxDataObject, wxDataObjectSimple, wxTextDataObject, wxBitmapDataObject, wxDataObject

Members

wxFileDataObject
wxFileDataObject::AddFile
wxFileDataObject::GetFilenames


wxFileDataObject

wxFileDataObject()

Constructor.


wxFileDataObject::AddFile

virtual void AddFile(const wxString& file)

MSW only: adds a file to the file list represented by this data object.


wxFileDataObject::GetFilenames

const wxArrayString& GetFilenames() const

Returns the array of file names.