added default parameter values to the overloaded Show() and Enable() versions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: button.h
|
||||
// Name: wx/gtk/button.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
@@ -39,7 +39,7 @@ class wxButton: public wxControl
|
||||
{
|
||||
public:
|
||||
wxButton();
|
||||
inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize, long style = 0,
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
@@ -47,15 +47,17 @@ public:
|
||||
{
|
||||
Create(parent, id, label, pos, size, style, validator, name);
|
||||
}
|
||||
~wxButton();
|
||||
virtual ~wxButton();
|
||||
|
||||
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize, long style = 0,
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxButtonNameStr);
|
||||
|
||||
virtual void SetDefault();
|
||||
void SetLabel( const wxString &label );
|
||||
bool Enable( bool enable );
|
||||
virtual void SetLabel( const wxString &label );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
|
||||
static wxSize GetDefaultSize();
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: checkbox.h
|
||||
// Name: wx/gtk/checkbox.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
@@ -42,8 +42,8 @@ public:
|
||||
void SetValue( bool state );
|
||||
bool GetValue() const;
|
||||
|
||||
void SetLabel( const wxString& label );
|
||||
bool Enable( bool enable );
|
||||
virtual void SetLabel( const wxString& label );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
|
||||
// implementation
|
||||
// --------------
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: radiobox.h
|
||||
// Name: wx/gtk/radiobox.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
Create( parent, id, title, pos, size, n, choices, majorDim, style, val, name );
|
||||
}
|
||||
|
||||
~wxRadioBox();
|
||||
virtual ~wxRadioBox();
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& title,
|
||||
@@ -81,10 +81,10 @@ public:
|
||||
#endif // WXWIN_COMPATIBILITY_2_2
|
||||
|
||||
// we have to override those to avoid virtual function name hiding
|
||||
wxString GetLabel() const { return wxControl::GetLabel(); }
|
||||
void SetLabel( const wxString& label );
|
||||
bool Show( bool show );
|
||||
bool Enable( bool enable );
|
||||
virtual wxString GetLabel() const { return wxControl::GetLabel(); }
|
||||
virtual void SetLabel( const wxString& label );
|
||||
virtual bool Show( bool show = TRUE );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
|
||||
// implementation
|
||||
// --------------
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: radiobut.h
|
||||
// Name: wx/gtk/radiobut.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
virtual void SetLabel(const wxString& label);
|
||||
virtual void SetValue(bool val);
|
||||
virtual bool GetValue() const;
|
||||
virtual bool Enable( bool enable );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
|
||||
// implementation
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: textctrl.h
|
||||
// Name: wx/gtk/textctrl.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Created: 01/02/97
|
||||
@@ -15,12 +15,6 @@
|
||||
#pragma interface "textctrl.h"
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// classes
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class wxTextCtrl;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxTextCtrl
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -114,7 +108,7 @@ public:
|
||||
virtual void SetSelection(long from, long to);
|
||||
virtual void SetEditable(bool editable);
|
||||
|
||||
virtual bool Enable( bool enable );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
|
||||
// Implementation from now on
|
||||
void OnDropFiles( wxDropFilesEvent &event );
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: button.h
|
||||
// Name: wx/gtk/button.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
@@ -39,7 +39,7 @@ class wxButton: public wxControl
|
||||
{
|
||||
public:
|
||||
wxButton();
|
||||
inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize, long style = 0,
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
@@ -47,15 +47,17 @@ public:
|
||||
{
|
||||
Create(parent, id, label, pos, size, style, validator, name);
|
||||
}
|
||||
~wxButton();
|
||||
virtual ~wxButton();
|
||||
|
||||
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize, long style = 0,
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxButtonNameStr);
|
||||
|
||||
virtual void SetDefault();
|
||||
void SetLabel( const wxString &label );
|
||||
bool Enable( bool enable );
|
||||
virtual void SetLabel( const wxString &label );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
|
||||
static wxSize GetDefaultSize();
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: checkbox.h
|
||||
// Name: wx/gtk/checkbox.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
@@ -42,8 +42,8 @@ public:
|
||||
void SetValue( bool state );
|
||||
bool GetValue() const;
|
||||
|
||||
void SetLabel( const wxString& label );
|
||||
bool Enable( bool enable );
|
||||
virtual void SetLabel( const wxString& label );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
|
||||
// implementation
|
||||
// --------------
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: radiobox.h
|
||||
// Name: wx/gtk/radiobox.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
Create( parent, id, title, pos, size, n, choices, majorDim, style, val, name );
|
||||
}
|
||||
|
||||
~wxRadioBox();
|
||||
virtual ~wxRadioBox();
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& title,
|
||||
@@ -81,10 +81,10 @@ public:
|
||||
#endif // WXWIN_COMPATIBILITY_2_2
|
||||
|
||||
// we have to override those to avoid virtual function name hiding
|
||||
wxString GetLabel() const { return wxControl::GetLabel(); }
|
||||
void SetLabel( const wxString& label );
|
||||
bool Show( bool show );
|
||||
bool Enable( bool enable );
|
||||
virtual wxString GetLabel() const { return wxControl::GetLabel(); }
|
||||
virtual void SetLabel( const wxString& label );
|
||||
virtual bool Show( bool show = TRUE );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
|
||||
// implementation
|
||||
// --------------
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: radiobut.h
|
||||
// Name: wx/gtk/radiobut.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
virtual void SetLabel(const wxString& label);
|
||||
virtual void SetValue(bool val);
|
||||
virtual bool GetValue() const;
|
||||
virtual bool Enable( bool enable );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
|
||||
// implementation
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: textctrl.h
|
||||
// Name: wx/gtk/textctrl.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Created: 01/02/97
|
||||
@@ -15,12 +15,6 @@
|
||||
#pragma interface "textctrl.h"
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// classes
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class wxTextCtrl;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxTextCtrl
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -114,7 +108,7 @@ public:
|
||||
virtual void SetSelection(long from, long to);
|
||||
virtual void SetEditable(bool editable);
|
||||
|
||||
virtual bool Enable( bool enable );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
|
||||
// Implementation from now on
|
||||
void OnDropFiles( wxDropFilesEvent &event );
|
||||
|
@@ -58,10 +58,10 @@ public:
|
||||
virtual int GetRowCount() const ;
|
||||
|
||||
|
||||
bool Enable(bool enable);
|
||||
wxString GetLabel() const;
|
||||
void SetLabel(const wxString& label) ;
|
||||
bool Show(bool show);
|
||||
virtual bool Enable(bool enable = TRUE);
|
||||
virtual wxString GetLabel() const;
|
||||
virtual void SetLabel(const wxString& label) ;
|
||||
virtual bool Show(bool show = TRUE);
|
||||
|
||||
// Other external functions
|
||||
void Command(wxCommandEvent& event);
|
||||
|
@@ -56,10 +56,10 @@ public:
|
||||
void SetLabel(int item, const wxString& label) ;
|
||||
wxString GetLabel(int item) const;
|
||||
wxString GetLabel() const { return wxControl::GetLabel(); };
|
||||
bool Enable(bool enable);
|
||||
virtual bool Enable(bool enable = TRUE);
|
||||
void Enable(int item, bool enable);
|
||||
void Show(int item, bool show) ;
|
||||
bool Show(bool show) ;
|
||||
virtual bool Show(bool show = TRUE) ;
|
||||
|
||||
virtual wxString GetStringSelection() const;
|
||||
virtual bool SetStringSelection(const wxString& s);
|
||||
|
@@ -66,9 +66,9 @@ public:
|
||||
virtual int GetColumnCount() const;
|
||||
virtual int GetRowCount() const;
|
||||
|
||||
bool Show(bool show);
|
||||
virtual bool Show(bool show = TRUE);
|
||||
void SetFocus();
|
||||
bool Enable(bool enable);
|
||||
virtual bool Enable(bool enable = TRUE);
|
||||
void SetLabelFont(const wxFont& WXUNUSED(font)) {};
|
||||
void SetButtonFont(const wxFont& font) { SetFont(font); }
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: textctrl.h
|
||||
// Name: wx/x11/textctrl.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Created: 01/02/97
|
||||
@@ -182,7 +182,7 @@ public:
|
||||
virtual void SetSelection(long from, long to);
|
||||
virtual void SetEditable(bool editable);
|
||||
|
||||
virtual bool Enable( bool enable );
|
||||
virtual bool Enable( bool enable = TRUE );
|
||||
|
||||
void OnCut(wxCommandEvent& event);
|
||||
void OnCopy(wxCommandEvent& event);
|
||||
|
Reference in New Issue
Block a user