wxFileDataObject();
/**
- Adds a file to the file list represented by this data object (Windows
- only).
+ Adds a file to the file list represented by this data object (Windows only).
*/
void AddFile(const wxString& file);
Constructs a data format object for a custom format identified by its
name @a format.
*/
- wxDataFormat(const wxChar format);
+ wxDataFormat(const wxString& format);
/**
Returns the name of a custom format (this function will fail for a
/**
Sets the format to be the custom format identified by the given name.
*/
- void SetId(const wxChar format);
+ void SetId(const wxString& format);
/**
Sets the format to the given value, which should be one of wxDF_XXX
/**
Returns @true if the formats are different.
*/
- bool operator !=(const wxDataFormat& format) const;
+ bool operator !=(wxDataFormatId format) const;
/**
Returns @true if the formats are equal.
*/
- bool operator ==(const wxDataFormat& format) const;
+ bool operator ==(wxDataFormatId format) const;
};
to by @a formats. There is enough space for GetFormatCount(dir) formats
in it.
*/
- virtual void GetAllFormats(wxDataFormat* formats,
- Direction dir = Get) const;
+ virtual void GetAllFormats(wxDataFormat* formats, Direction dir = Get) const;
/**
The method will write the data of the format @a format in the buffer
@return @true on success, @false on failure.
*/
- virtual bool SetData(const wxDataFormat& format, size_t len,
- const void* buf);
+ virtual bool SetData(const wxDataFormat& format, size_t len, const void* buf);
};
Constructs a datastream object from an output stream.
Only write methods will be available.
- @param stream
- The output stream.
- */
- wxDataOutputStream(wxOutputStream& stream);
-
- /**
- Constructs a datastream object from an output stream. Only write
- methods will be available. This constructor is only available in
- Unicode builds of wxWidgets.
+ Note that the @a conv parameter is only available in Unicode builds of wxWidgets.
@param stream
The output stream.
Constructs a datastream object from an input stream.
Only read methods will be available.
- @param stream
- The input stream.
- */
- wxDataInputStream(wxInputStream& stream);
-
- /**
- Constructs a datastream object from an input stream. Only read methods
- will be available. This constructor is only available in Unicode builds
- of wxWidgets.
+ Note that the @a conv parameter is only available in Unicode builds of wxWidgets.
@param stream
The input stream.
*/
void SetCanVeto(bool canVeto);
- /**
- Sets the 'force' flag.
- */
- void SetForce(bool force) const;
-
/**
Sets the 'logging off' flag.
*/
class wxHtmlWinParser : public wxHtmlParser
{
public:
- wxHtmlWinParser();
+ wxHtmlWinParser(wxHtmlWindowInterface* wndIface = 0);
/**
Constructor.
(@a wndIface is a pointer to interface object for the associated wxHtmlWindow
or other HTML rendering window such as wxHtmlListBox).
*/
- wxHtmlWinParser(wxHtmlWindowInterface wndIface);
+ wxHtmlWinParser(wxHtmlWindowInterface* wndIface = 0);
/**
Adds module() to the list of wxHtmlWinParser tag handler.
@param index
See the description in the LoadFile(wxInputStream&, wxBitmapType, int) overload.
*/
- bool LoadFile(const wxString& name,
- wxBitmapType type = wxBITMAP_TYPE_ANY,
- int index = -1);
+ virtual bool LoadFile(const wxString& name,
+ wxBitmapType type = wxBITMAP_TYPE_ANY,
+ int index = -1);
/**
Loads an image from a file.
@param index
See the description in the LoadFile(wxInputStream&, wxBitmapType, int) overload.
*/
- bool LoadFile(wxInputStream& stream,
- const wxString& mimetype,
- int index = -1);
+ virtual bool LoadFile(wxInputStream& stream, const wxString& mimetype,
+ int index = -1);
/**
Returns a mirrored copy of the image.
in 8 colors at the size supplied.
@li wxBITMAP_TYPE_CUR: Save a Windows cursor file (CUR).
*/
- bool SaveFile(const wxString& name, wxBitmapType type) const;
+ virtual bool SaveFile(const wxString& name, wxBitmapType type) const;
/**
Saves an image in the named file.
@param name
Name of the file to save the image to.
*/
- bool SaveFile(const wxString& name) const;
+ virtual bool SaveFile(const wxString& name) const;
/**
Saves an image in the given stream.
@param type
MIME type.
*/
- bool SaveFile(wxOutputStream& stream, wxBitmapType type) const;
+ virtual bool SaveFile(wxOutputStream& stream, wxBitmapType type) const;
/**
Returns a scaled version of the image.
@remarks Domains are searched in the last to first order, i.e. catalogs
added later override those added before.
*/
- const wxString& GetString(const wxString& origString,
- const wxString& origString2,
- size_t n,
- const wxString& domain = wxEmptyString) const;
+ virtual const wxString& GetString(const wxString& origString,
+ const wxString& origString2, size_t n,
+ const wxString& domain = wxEmptyString) const;
/**
Returns current platform-specific locale name as passed to setlocale().
and windows-1250.
See @ref overview_nonenglish for detailed description of this behaviour.
*/
- bool Init(const wxString& name,
- const wxString& short = wxEmptyString,
- const wxString& locale = wxEmptyString,
- bool bLoadDefault = true,
+ bool Init(const wxString& name, const wxString& short = wxEmptyString,
+ const wxString& locale = wxEmptyString, bool bLoadDefault = true,
bool bConvertEncoding = false);
/**
/**
Returns the name of the first base class (@NULL if none).
*/
- wxChar* GetBaseClassName1() const;
+ const wxChar* GetBaseClassName1() const;
/**
Returns the name of the second base class (@NULL if none).
*/
- wxChar* GetBaseClassName2() const;
+ const wxChar* GetBaseClassName2() const;
/**
Returns the string form of the class name.
*/
- wxChar* GetClassName() const;
+ const wxChar* GetClassName() const;
/**
Returns the size of the class.
/**
Returns @true if this class is a kind of (inherits from) the given class.
*/
- bool IsKindOf(wxClassInfo* info);
+ bool IsKindOf(const wxClassInfo* info);
};
*/
virtual ~wxDatagramSocket();
- /**
- This function reads a buffer of @a nbytes bytes from the socket.
- Use wxSocketBase::LastCount() to verify the number of bytes actually read.
- Use wxSocketBase::Error() to determine if the operation succeeded.
-
- @param address
- Any address - will be overwritten with the address of the peer that sent
- that data.
- @param buffer
- Buffer where to put read data.
- @param nbytes
- Number of bytes.
-
- @return Returns a reference to the current object, and the address of
- the peer that sent the data on address param.
-
- @see wxSocketBase::LastError(), wxSocketBase::SetFlags()
- */
- wxDatagramSocket ReceiveFrom(wxSockAddress& address,
- void* buffer, wxUint32 nbytes);
-
/**
This function writes a buffer of @a nbytes bytes to the socket.
Use wxSocketBase::LastCount() to verify the number of bytes actually wrote.
@see wxSocketBase::LastError(), wxSocketBase::SetFlags()
*/
- wxDatagramSocket SendTo(const wxSockAddress& address,
- const void* buffer, wxUint32 nbytes);
+ wxDatagramSocket& SendTo(const wxSockAddress& address,
+ const void* buffer, wxUint32 nbytes);
};
@see Signal()
*/
- void Broadcast();
+ wxCondError Broadcast();
/**
Returns @true if the object had been initialized successfully, @false