Allow wxCustomDataObject ctor to be able to take the format name
string directly and to automatically make the wxDataFormat from it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -71,7 +71,7 @@ The standard format IDs are:
|
|||||||
Windows and non-unicode builds
|
Windows and non-unicode builds
|
||||||
================ =====================================
|
================ =====================================
|
||||||
|
|
||||||
Aside the standard formats, the application may also use custom
|
Besies the standard formats, the application may also use custom
|
||||||
formats which are identified by their names (strings) and not numeric
|
formats which are identified by their names (strings) and not numeric
|
||||||
identifiers. Although internally custom format must be created (or
|
identifiers. Although internally custom format must be created (or
|
||||||
registered) first, you shouldn\'t care about it because it is done
|
registered) first, you shouldn\'t care about it because it is done
|
||||||
@@ -717,13 +717,7 @@ 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
|
absolute file names, but internally it uses the same format as
|
||||||
Explorer and other compatible programs under Windows or GNOME/KDE
|
Explorer and other compatible programs under Windows or GNOME/KDE
|
||||||
filemanager under Unix which makes it possible to receive files from
|
filemanager under Unix which makes it possible to receive files from
|
||||||
them using this class.
|
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.
|
|
||||||
", "");
|
|
||||||
|
|
||||||
class wxFileDataObject : public wxDataObjectSimple
|
class wxFileDataObject : public wxDataObjectSimple
|
||||||
{
|
{
|
||||||
@@ -754,8 +748,15 @@ data object.", "");
|
|||||||
|
|
||||||
class wxCustomDataObject : public wxDataObjectSimple {
|
class wxCustomDataObject : public wxDataObjectSimple {
|
||||||
public:
|
public:
|
||||||
wxCustomDataObject(const wxDataFormat& format = wxFormatInvalid);
|
%nokwargs wxCustomDataObject;
|
||||||
|
wxCustomDataObject(const wxDataFormat& format);
|
||||||
|
%extend {
|
||||||
|
wxCustomDataObject(const wxString& formatName) {
|
||||||
|
return new wxCustomDataObject(wxDataFormat(formatName));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
wxCustomDataObject();
|
||||||
|
|
||||||
|
|
||||||
DocAStr(SetData,
|
DocAStr(SetData,
|
||||||
"SetData(self, String data) -> bool",
|
"SetData(self, String data) -> bool",
|
||||||
|
Reference in New Issue
Block a user