even more fixes detected using ifacecheck

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-01-08 16:33:08 +00:00
parent 7351769afc
commit ccf39540bb
13 changed files with 127 additions and 141 deletions

View File

@@ -298,11 +298,6 @@ public:
*/ */
void EndDoc(); void EndDoc();
/**
Does nothing.
*/
void EndDrawing();
/** /**
Does nothing. Does nothing.
*/ */
@@ -505,7 +500,7 @@ public:
Returns @true if the DC is ok to use. @false values arise from being Returns @true if the DC is ok to use. @false values arise from being
unable to write the file. unable to write the file.
*/ */
bool Ok(); bool IsOk();
/** /**
Resets the bounding box. After a call to this function, the bounding Resets the bounding box. After a call to this function, the bounding

View File

@@ -68,7 +68,7 @@ public:
const wxString& dir = wxDirDialogDefaultFolderStr, const wxString& dir = wxDirDialogDefaultFolderStr,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDIRCTRL_3D_INTERNAL|wxBORDER_SUNKEN, long style = wxDIRCTRL_3D_INTERNAL,
const wxString& filter = wxEmptyString, const wxString& filter = wxEmptyString,
int defaultFilter = 0, int defaultFilter = 0,
const wxString& name = wxTreeCtrlNameStr); const wxString& name = wxTreeCtrlNameStr);

View File

@@ -513,7 +513,7 @@ public:
/** /**
Sets the brush for filling paths. Sets the brush for filling paths.
*/ */
void SetBrush(const wxGraphicsBrush& brush); virtual void SetBrush(const wxGraphicsBrush& brush);
/** /**
Sets the font for drawing text. Sets the font for drawing text.
@@ -522,16 +522,16 @@ public:
/** /**
Sets the font for drawing text. Sets the font for drawing text.
*/ */
void SetFont(const wxGraphicsFont& font); virtual void SetFont(const wxGraphicsFont& font);
/** /**
Sets the pen used for stroking. Sets the pen used for stroking.
*/ */
void SetPen(const wxGraphicsPen& pen); void SetPen(const wxPen& pen);
/** /**
Sets the pen used for stroking. Sets the pen used for stroking.
*/ */
void SetPen(const wxPen& pen); virtual void SetPen(const wxGraphicsPen& pen);
/** /**
Sets the current transformation matrix of this context Sets the current transformation matrix of this context
@@ -547,13 +547,13 @@ public:
Stroke disconnected lines from begin to end points, fastest method Stroke disconnected lines from begin to end points, fastest method
available for this purpose. available for this purpose.
*/ */
void StrokeLines(size_t n, const wxPoint2DDouble* beginPoints, virtual void StrokeLines(size_t n, const wxPoint2DDouble* beginPoints,
const wxPoint2DDouble* endPoints); const wxPoint2DDouble* endPoints);
/** /**
Stroke disconnected lines from begin to end points, fastest method Stroke disconnected lines from begin to end points, fastest method
available for this purpose. available for this purpose.
*/ */
void StrokeLines(size_t n, const wxPoint2DDouble* points); virtual void StrokeLines(size_t n, const wxPoint2DDouble* points);
/** /**
Strokes along a path with the current pen. Strokes along a path with the current pen.

View File

@@ -480,7 +480,7 @@ public:
/** /**
Default constructor. Default constructor.
*/ */
wxGridCellAttr(); wxGridCellAttr(wxGridCellAttr* attrDefault = NULL);
/** /**
Constructor specifying some of the often used attributes. Constructor specifying some of the often used attributes.
*/ */
@@ -3434,8 +3434,7 @@ public:
*/ */
wxGridEvent(int id, wxEventType type, wxObject* obj, wxGridEvent(int id, wxEventType type, wxObject* obj,
int row = -1, int col = -1, int x = -1, int y = -1, int row = -1, int col = -1, int x = -1, int y = -1,
bool sel = true, bool control = false, bool shift = false, bool sel = true, const wxKeyboardState& kbd = wxKeyboardState());
bool alt = false, bool meta = false);
/** /**
Returns @true if the Alt key was down at the time of the event. Returns @true if the Alt key was down at the time of the event.
@@ -3516,8 +3515,7 @@ public:
*/ */
wxGridSizeEvent(int id, wxEventType type, wxObject* obj, wxGridSizeEvent(int id, wxEventType type, wxObject* obj,
int rowOrCol = -1, int x = -1, int y = -1, int rowOrCol = -1, int x = -1, int y = -1,
bool control = false, bool shift = false, const wxKeyboardState& kbd = wxKeyboardState());
bool alt = false, bool meta = false);
/** /**
Returns @true if the Alt key was down at the time of the event. Returns @true if the Alt key was down at the time of the event.
@@ -3581,9 +3579,7 @@ public:
wxObject* obj, wxObject* obj,
const wxGridCellCoords& topLeft, const wxGridCellCoords& topLeft,
const wxGridCellCoords& bottomRight, const wxGridCellCoords& bottomRight,
bool sel = true, bool control = false, bool sel = true, const wxKeyboardState& kbd = wxKeyboardState());
bool shift = false, bool alt = false,
bool meta = false);
/** /**
Returns @true if the Alt key was down at the time of the event. Returns @true if the Alt key was down at the time of the event.

View File

@@ -110,13 +110,6 @@ public:
void ReadCustomization(wxConfigBase* cfg, void ReadCustomization(wxConfigBase* cfg,
const wxString& path = wxEmptyString); const wxString& path = wxEmptyString);
/**
Sets the frame's title format.
@a format must contain exactly one "%s" (it will be replaced by the page title).
*/
void SetTitleFormat(const wxString& format);
/** /**
Associates a wxConfig object with the help window. It is recommended that you Associates a wxConfig object with the help window. It is recommended that you
use wxHtmlHelpController::UseConfig instead. use wxHtmlHelpController::UseConfig instead.

View File

@@ -428,7 +428,7 @@ public:
/** /**
The constructor is not normally used by the user code. The constructor is not normally used by the user code.
*/ */
wxHyperlinkEvent(int id, const wxHtmlLinkInfo& linkinfo); wxHtmlLinkEvent(int id, const wxHtmlLinkInfo& linkinfo);
/** /**
Returns the wxHtmlLinkInfo which contains info about the cell clicked Returns the wxHtmlLinkInfo which contains info about the cell clicked

View File

@@ -91,13 +91,13 @@ public:
/** /**
Constructor. See Create() for more info. Constructor. See Create() for more info.
*/ */
wxHyperLink(wxWindow* parent, wxWindowID id, wxHyperLinkCtrl(wxWindow* parent, wxWindowID id,
const wxString& label, const wxString& label,
const wxString& url, const wxString& url,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxHL_DEFAULT_STYLE, long style = wxHL_DEFAULT_STYLE,
const wxString& name = "hyperlink"); const wxString& name = wxHyperlinkCtrlNameStr);
/** /**
Creates the hyperlink control. Creates the hyperlink control.

View File

@@ -181,7 +181,7 @@ public:
in the provided array. in the provided array.
@a fillStyle parameter may have values @c wxWINDING_RULE or @c wxODDEVEN_RULE. @a fillStyle parameter may have values @c wxWINDING_RULE or @c wxODDEVEN_RULE.
*/ */
wxRegion(size_t n, const wxPoint* points, int fillStyle = wxODDEVEN_RULE); wxRegion(size_t n, const wxPoint* points, wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
/** /**
Constructs a region using a bitmap. See Union() for more details. Constructs a region using a bitmap. See Union() for more details.
*/ */

View File

@@ -135,6 +135,10 @@ public:
The pages to show. The pages to show.
@param parent @param parent
The dialog's parent. The dialog's parent.
@param title
The dialog's title.
@param id
The dialog's ID.
@param pos @param pos
The dialog's position. The dialog's position.
@param sz @param sz
@@ -142,10 +146,9 @@ public:
@param style @param style
The dialog's window style. The dialog's window style.
*/ */
wxRichTextFormattingDialog(long flags, wxWindow* parent, wxRichTextFormattingDialog(long flags, wxWindow* parent, const wxString& title = "Formatting",
const wxPoint& pos = wxDefaultPosition, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
long style = wxDEFAULT_DIALOG_STYLE);
/** /**
Destructor. Destructor.

View File

@@ -6,6 +6,98 @@
// Licence: wxWindows license // Licence: wxWindows license
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
/**
@class wxIPaddress
wxIPaddress is an abstract base class for all internet protocol address
objects. Currently, only wxIPV4address is implemented. An experimental
implementation for IPV6, wxIPV6address, is being developed.
@library{wxbase}
@category{net}
*/
class wxIPaddress : public wxSockAddress
{
public:
/**
Internally, this is the same as setting the IP address to @b INADDR_ANY.
On IPV4 implementations, 0.0.0.0
On IPV6 implementations, ::
@return @true on success, @false if something went wrong.
*/
bool AnyAddress();
/**
Internally, this is the same as setting the IP address to @b INADDR_BROADCAST.
On IPV4 implementations, 255.255.255.255
@return @true on success, @false if something went wrong.
*/
virtual bool BroadcastAddress() = 0;
/**
Set the address to hostname, which can be a host name or an IP-style address
in a format dependent on implementation.
@return @true on success, @false if something goes wrong (invalid
hostname or invalid IP address).
*/
bool Hostname(const wxString& hostname);
/**
Returns the hostname which matches the IP address.
*/
wxString Hostname() const;
/**
Returns a wxString containing the IP address.
*/
virtual wxString IPAddress() const = 0;
/**
Determines if current address is set to localhost.
@return @true if address is localhost, @false if internet address.
*/
virtual bool IsLocalHost() const = 0;
/**
Set address to localhost.
On IPV4 implementations, 127.0.0.1
On IPV6 implementations, ::1
@return @true on success, @false if something went wrong.
*/
bool LocalHost();
/**
Set the port to that corresponding to the specified service.
@return @true on success, @false if something goes wrong (invalid @a service).
*/
bool Service(const wxString& service);
/**
Set the port to that corresponding to the specified service.
@return @true on success, @false if something goes wrong (invalid @a service).
*/
bool Service(unsigned short service);
/**
Returns the current service.
*/
unsigned short Service() const;
};
/** /**
@class wxIPV4address @class wxIPV4address
@@ -70,12 +162,12 @@ public:
@return @true on success, @false if something goes wrong (invalid @a service). @return @true on success, @false if something goes wrong (invalid @a service).
*/ */
bool Service(unsigned short service) = 0; bool Service(unsigned short service);
/** /**
Returns the current service. Returns the current service.
*/ */
unsigned short Service() const = 0; unsigned short Service() const;
}; };
@@ -174,99 +266,6 @@ public:
}; };
/**
@class wxIPaddress
wxIPaddress is an abstract base class for all internet protocol address
objects. Currently, only wxIPV4address is implemented. An experimental
implementation for IPV6, wxIPV6address, is being developed.
@library{wxbase}
@category{net}
*/
class wxIPaddress : public wxSockAddress
{
public:
/**
Internally, this is the same as setting the IP address to @b INADDR_ANY.
On IPV4 implementations, 0.0.0.0
On IPV6 implementations, ::
@return @true on success, @false if something went wrong.
*/
bool AnyAddress();
/**
Internally, this is the same as setting the IP address to @b INADDR_BROADCAST.
On IPV4 implementations, 255.255.255.255
@return @true on success, @false if something went wrong.
*/
virtual bool BroadcastAddress() = 0;
/**
Set the address to hostname, which can be a host name or an IP-style address
in a format dependent on implementation.
@return @true on success, @false if something goes wrong (invalid
hostname or invalid IP address).
*/
virtual bool Hostname(const wxString& hostname) = 0;
/**
Returns the hostname which matches the IP address.
*/
virtual wxString Hostname() const = 0;
/**
Returns a wxString containing the IP address.
*/
virtual wxString IPAddress() const = 0;
/**
Determines if current address is set to localhost.
@return @true if address is localhost, @false if internet address.
*/
virtual bool IsLocalHost() const = 0;
/**
Set address to localhost.
On IPV4 implementations, 127.0.0.1
On IPV6 implementations, ::1
@return @true on success, @false if something went wrong.
*/
bool LocalHost();
/**
Set the port to that corresponding to the specified service.
@return @true on success, @false if something goes wrong (invalid @a service).
*/
virtual bool Service(const wxString& service) = 0;
/**
Set the port to that corresponding to the specified service.
@return @true on success, @false if something goes wrong (invalid @a service).
*/
virtual bool Service(unsigned short service) = 0;
/**
Returns the current service.
*/
virtual unsigned short Service() const = 0;
};
/** /**
@class wxSocketClient @class wxSocketClient

View File

@@ -1044,7 +1044,7 @@ public:
@see Create(), wxValidator @see Create(), wxValidator
*/ */
wxTextCtrl(wxWindow* parent, wxWindowID id, wxTextCtrl(wxWindow* parent, wxWindowID id,
const wxString& value = "", const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,

View File

@@ -106,7 +106,7 @@ public:
It will fail if the file already exists, Open() should be used in this case. It will fail if the file already exists, Open() should be used in this case.
*/ */
bool Create() const; bool Create();
/** /**
Creates the file with the given name. Creates the file with the given name.
@@ -114,7 +114,7 @@ public:
It will fail if the file already exists, Open() should be used in this case. It will fail if the file already exists, Open() should be used in this case.
*/ */
bool Create(const wxString& strFile) const; bool Create(const wxString& strFile);
/** /**
Returns @true if the current line is the last one. Returns @true if the current line is the last one.

View File

@@ -160,7 +160,7 @@ public:
wxToolBar(wxWindow* parent, wxWindowID id, wxToolBar(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxTB_HORIZONTAL | wxBORDER_NONE, long style = wxTB_HORIZONTAL,
const wxString& name = wxToolBarNameStr); const wxString& name = wxToolBarNameStr);
/** /**