git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55783
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Sets the week day carried by the event, normally only used by the
library internally.
*/
Sets the week day carried by the event, normally only used by the
library internally.
*/
- void SetWeekDay(wxDateTime::WeekDay day);
+ void SetWeekDay(const wxDateTime::WeekDay day);
class wxCalendarDateAttr
{
public:
class wxCalendarDateAttr
{
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& colBorder = wxNullColour,
const wxFont& font = wxNullFont,
const wxColour& colBack = wxNullColour,
const wxColour& colBorder = wxNullColour,
const wxFont& font = wxNullFont,
/**
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.
/**
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.
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
/**
Hides the caret, same as Show(@false).
*/
/**
Hides the caret, same as Show(@false).
*/
/**
Returns @true if the caret was created successfully.
/**
Returns @true if the caret was created successfully.
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.
*/
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.
*/
- void Show(bool show = true);
+ virtual void Show(bool show = true);
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = "checkBox");
+ const wxString& name = wxCheckBoxNameStr);
/**
Destructor, destroying the checkbox.
*/
/**
Destructor, destroying the checkbox.
*/
/**
Creates the checkbox for two-step construction. See wxCheckBox()
for details.
*/
/**
Creates the checkbox for two-step construction. See wxCheckBox()
for details.
*/
- bool Create(wxWindow* parent, wxWindowID id,
- const wxString& label,
+ bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
+ const wxSize& size = wxDefaultSize, 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.
@return Returns @true if it is checked, @false otherwise.
*/
/**
Gets the state of a 2-state checkbox.
@return Returns @true if it is checked, @false otherwise.
*/
+ 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
@param state
If @true, the check is on, otherwise it is off.
*/
@param state
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
Asserts when the checkbox is a 2-state checkbox and setting the state
to wxCHK_UNDETERMINED.
*/
Asserts when the checkbox is a 2-state checkbox and setting the state
to wxCHK_UNDETERMINED.
*/
- void Set3StateValue(const wxCheckBoxState state);
+ virtual void Set3StateValue(const wxCheckBoxState state);
const wxSize& size = wxDefaultSize,
long style = wxCLRP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator,
const wxSize& size = wxDefaultSize,
long style = wxCLRP_DEFAULT_STYLE,
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.
const wxSize& size = wxDefaultSize,
long style = wxCLRP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator,
const wxSize& size = wxDefaultSize,
long style = wxCLRP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = "colourpickerctrl");
+ const wxString& name = wxColourPickerCtrlNameStr);
/**
Returns the currently selected colour.
/**
Returns the currently selected colour.
Default constructor.
*/
wxCollapsiblePane();
Default constructor.
*/
wxCollapsiblePane();
/**
Initializes the object and calls Create() with all the parameters.
*/
/**
Initializes the object and calls Create() with all the parameters.
*/
const wxSize& size = wxDefaultSize,
long style = wxCP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator,
const wxSize& size = wxDefaultSize,
long style = wxCP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = "collapsiblePane");
+ const wxString& name = wxCollapsiblePaneNameStr);
const wxSize& size = wxDefaultSize,
long style = wxCP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator,
const wxSize& size = wxDefaultSize,
long style = wxCP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = "collapsiblePane");
+ const wxString& name = wxCollapsiblePaneNameStr);
/**
Collapses or expands the pane window.
/**
Collapses or expands the pane window.
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = "comboCtrl");
+ const wxString& name = wxComboBoxNameStr);
/**
Destructor, destroying the combo control.
/**
Destructor, destroying the combo control.
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxSize& size = wxDefaultSize,
long style = 0,
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.
- // search in the real headers for i-th interface class
- // for both class cname and cnameBase as in wxWidgets world, most often
+ // search in the real headers for i-th interface class; we search for
+ // both class cname and cnameBase since in wxWidgets world tipically
// class cname is platform-specific while the real public interface of
// that class is part of the cnameBase class.
c = m_gccInterface.FindClass(cname);
// class cname is platform-specific while the real public interface of
// that class is part of the cnameBase class.
c = m_gccInterface.FindClass(cname);
c = m_gccInterface.FindClass(cname + "Base");
if (c) api.Add(c);
c = m_gccInterface.FindClass(cname + "Base");
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) {
// there is a class with exactly the same name!
if (api.GetCount()>0) {
// there is a class with exactly the same name!