other ifacecheck fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi 2008-09-21 23:48:04 +00:00
parent 98ccd54522
commit 9d9c1c24d7
7 changed files with 33 additions and 33 deletions

View File

@ -30,7 +30,7 @@ public:
Sets the week day carried by the event, normally only used by the Sets the week day carried by the event, normally only used by the
library internally. library internally.
*/ */
void SetWeekDay(wxDateTime::WeekDay day); void SetWeekDay(const wxDateTime::WeekDay day);
}; };
@ -60,15 +60,10 @@ enum wxCalendarDateBorder
class wxCalendarDateAttr class wxCalendarDateAttr
{ {
public: public:
/**
Default constructor.
*/
wxCalendarDateAttr();
/** /**
Constructor for specifying all wxCalendarDateAttr properties. Constructor for specifying all wxCalendarDateAttr properties.
*/ */
wxCalendarDateAttr(const wxColour& colText, wxCalendarDateAttr(const wxColour& colText = wxNullColour,
const wxColour& colBack = wxNullColour, const wxColour& colBack = wxNullColour,
const wxColour& colBorder = wxNullColour, const wxColour& colBorder = wxNullColour,
const wxFont& font = wxNullFont, const wxFont& font = wxNullFont,
@ -83,7 +78,7 @@ public:
/** /**
Returns the background colour set for the calendar date. Returns the background colour set for the calendar date.
*/ */
const wxColour GetBackgroundColour() const; const wxColour& GetBackgroundColour() const;
/** /**
Returns the border set for the calendar date. Returns the border set for the calendar date.
@ -93,17 +88,17 @@ public:
/** /**
Returns the border colour set for the calendar date. Returns the border colour set for the calendar date.
*/ */
const wxColour GetBorderColour() const; const wxColour& GetBorderColour() const;
/** /**
Returns the font set for the calendar date. Returns the font set for the calendar date.
*/ */
const wxFont GetFont() const; const wxFont& GetFont() const;
/** /**
Returns the text colour set for the calendar date. Returns the text colour set for the calendar date.
*/ */
const wxColour GetTextColour() const; const wxColour& GetTextColour() const;
/** /**
Returns @true if a non-default text background colour is set. Returns @true if a non-default text background colour is set.
@ -425,7 +420,7 @@ public:
The @a date parameter must be valid. The @a date parameter must be valid.
*/ */
virtual void SetDate(const wxDateTime& date); virtual bool SetDate(const wxDateTime& date);
/** /**
Set the colours used for painting the weekdays at the top of the Set the colours used for painting the weekdays at the top of the

View File

@ -81,7 +81,7 @@ public:
/** /**
Hides the caret, same as Show(@false). Hides the caret, same as Show(@false).
*/ */
void Hide(); virtual void Hide();
/** /**
Returns @true if the caret was created successfully. Returns @true if the caret was created successfully.
@ -126,6 +126,6 @@ public:
Shows or hides the caret. Notice that if the caret was hidden N times, Shows or hides the caret. Notice that if the caret was hidden N times,
it must be shown N times as well to reappear on the screen. it must be shown N times as well to reappear on the screen.
*/ */
void Show(bool show = true); virtual void Show(bool show = true);
}; };

View File

@ -91,31 +91,29 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = "checkBox"); const wxString& name = wxCheckBoxNameStr);
/** /**
Destructor, destroying the checkbox. Destructor, destroying the checkbox.
*/ */
~wxCheckBox(); virtual ~wxCheckBox();
/** /**
Creates the checkbox for two-step construction. See wxCheckBox() Creates the checkbox for two-step construction. See wxCheckBox()
for details. for details.
*/ */
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize, long style = 0,
long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = "checkBox"); const wxString& = wxCheckBoxNameStr);
/** /**
Gets the state of a 2-state checkbox. Gets the state of a 2-state checkbox.
@return Returns @true if it is checked, @false otherwise. @return Returns @true if it is checked, @false otherwise.
*/ */
bool GetValue() const; virtual bool GetValue() const;
/** /**
Gets the state of a 3-state checkbox. Asserts when the function is used Gets the state of a 3-state checkbox. Asserts when the function is used
@ -155,7 +153,7 @@ public:
@param state @param state
If @true, the check is on, otherwise it is off. If @true, the check is on, otherwise it is off.
*/ */
void SetValue(bool state); virtual void SetValue(bool state);
/** /**
Sets the checkbox to the given state. This does not cause a Sets the checkbox to the given state. This does not cause a
@ -164,6 +162,6 @@ public:
Asserts when the checkbox is a 2-state checkbox and setting the state Asserts when the checkbox is a 2-state checkbox and setting the state
to wxCHK_UNDETERMINED. to wxCHK_UNDETERMINED.
*/ */
void Set3StateValue(const wxCheckBoxState state); virtual void Set3StateValue(const wxCheckBoxState state);
}; };

View File

@ -55,7 +55,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCLRP_DEFAULT_STYLE, long style = wxCLRP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = "colourpickerctrl"); const wxString& name = wxColourPickerCtrlNameStr);
/** /**
Creates a colour picker with the given arguments. Creates a colour picker with the given arguments.
@ -86,7 +86,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCLRP_DEFAULT_STYLE, long style = wxCLRP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = "colourpickerctrl"); const wxString& name = wxColourPickerCtrlNameStr);
/** /**
Returns the currently selected colour. Returns the currently selected colour.

View File

@ -109,7 +109,7 @@ public:
Default constructor. Default constructor.
*/ */
wxCollapsiblePane(); wxCollapsiblePane();
/** /**
Initializes the object and calls Create() with all the parameters. Initializes the object and calls Create() with all the parameters.
*/ */
@ -119,7 +119,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCP_DEFAULT_STYLE, long style = wxCP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = "collapsiblePane"); const wxString& name = wxCollapsiblePaneNameStr);
/** /**
@param parent @param parent
@ -149,7 +149,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCP_DEFAULT_STYLE, long style = wxCP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = "collapsiblePane"); const wxString& name = wxCollapsiblePaneNameStr);
/** /**
Collapses or expands the pane window. Collapses or expands the pane window.

View File

@ -343,7 +343,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = "comboCtrl"); const wxString& name = wxComboBoxNameStr);
/** /**
Destructor, destroying the combo control. Destructor, destroying the combo control.
@ -379,7 +379,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = "comboCtrl"); const wxString& name = wxComboBoxNameStr);
/** /**
Copies the selected text to the clipboard and removes the selection. Copies the selected text to the clipboard and removes the selection.

View File

@ -231,8 +231,8 @@ bool IfaceCheckApp::Compare()
api.Empty(); api.Empty();
// search in the real headers for i-th interface class // search in the real headers for i-th interface class; we search for
// for both class cname and cnameBase as in wxWidgets world, most often // both class cname and cnameBase since in wxWidgets world tipically
// class cname is platform-specific while the real public interface of // class cname is platform-specific while the real public interface of
// that class is part of the cnameBase class. // that class is part of the cnameBase class.
c = m_gccInterface.FindClass(cname); c = m_gccInterface.FindClass(cname);
@ -240,6 +240,13 @@ bool IfaceCheckApp::Compare()
c = m_gccInterface.FindClass(cname + "Base"); c = m_gccInterface.FindClass(cname + "Base");
if (c) api.Add(c); if (c) api.Add(c);
// sometimes the platform-specific class is named "wxGeneric" + cname
// or similar:
c = m_gccInterface.FindClass("wxGeneric" + cname.Mid(2));
if (c) api.Add(c);
c = m_gccInterface.FindClass("wxGtk" + cname.Mid(2));
if (c) api.Add(c);
if (api.GetCount()>0) { if (api.GetCount()>0) {
// there is a class with exactly the same name! // there is a class with exactly the same name!