removed multiple duplicate copies (with subtly different behaviour) of SetStringSelection(); left only one of them in wxItemContainer (and another one in wxRadioBoxBase, to be removed)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -44,7 +44,6 @@ public:
|
||||
|
||||
// single selection logic
|
||||
virtual void SetSelection(int n) = 0;
|
||||
virtual bool SetStringSelection(const wxString& s);
|
||||
|
||||
// don't override this
|
||||
virtual void Select(int n) { SetSelection(n); }
|
||||
|
@@ -81,8 +81,6 @@ public:
|
||||
virtual void SetSelection(int);
|
||||
// Overlapping methods
|
||||
virtual wxString GetStringSelection();
|
||||
// other methods
|
||||
virtual void SetStringSelection(const wxString& selection);
|
||||
// wxItemContainer
|
||||
virtual void Clear();
|
||||
virtual void Delete(int);
|
||||
|
@@ -46,7 +46,7 @@ public:
|
||||
|
||||
// only for rtti needs (separate name)
|
||||
void AppendString( const wxString& item)
|
||||
{ Append( item ) ; }
|
||||
{ Append( item ); }
|
||||
|
||||
// append several items at once to the control
|
||||
void Append(const wxArrayString& strings);
|
||||
@@ -79,6 +79,10 @@ public:
|
||||
virtual void Select(int n) = 0;
|
||||
virtual int GetSelection() const = 0;
|
||||
|
||||
// set selection to the specified string, return false if not found
|
||||
bool SetStringSelection(const wxString& s);
|
||||
|
||||
// return the selected string or empty string if none
|
||||
wxString GetStringSelection() const;
|
||||
|
||||
// misc
|
||||
|
@@ -96,7 +96,6 @@ public:
|
||||
int Number() const { return GetCount(); }
|
||||
void SetSelection( int n );
|
||||
void Select( int n ) { return SetSelection( n ); }
|
||||
bool SetStringSelection( const wxString &string );
|
||||
void SetString(int n, const wxString &text);
|
||||
|
||||
wxString GetValue() const;
|
||||
|
@@ -96,7 +96,6 @@ public:
|
||||
int Number() const { return GetCount(); }
|
||||
void SetSelection( int n );
|
||||
void Select( int n ) { return SetSelection( n ); }
|
||||
bool SetStringSelection( const wxString &string );
|
||||
void SetString(int n, const wxString &text);
|
||||
|
||||
wxString GetValue() const;
|
||||
|
@@ -97,7 +97,6 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase
|
||||
virtual wxString GetString(int n) const ;
|
||||
virtual wxString GetStringSelection() const ;
|
||||
virtual void SetString(int n, const wxString& s) ;
|
||||
virtual bool SetStringSelection(const wxString& sel);
|
||||
|
||||
// Text field functions
|
||||
virtual wxString GetValue() const ;
|
||||
|
@@ -92,7 +92,6 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase
|
||||
virtual wxString GetString(int n) const ;
|
||||
virtual wxString GetStringSelection() const ;
|
||||
virtual void SetString(int n, const wxString& s) ;
|
||||
virtual bool SetStringSelection(const wxString& sel);
|
||||
|
||||
// Text field functions
|
||||
virtual wxString GetValue() const ;
|
||||
|
@@ -305,8 +305,6 @@ public:
|
||||
virtual int GetSelection() const;
|
||||
void SetSelection(int n) { Select(n); }
|
||||
|
||||
void SetStringSelection(const wxString& WXUNUSED(s)) { }
|
||||
|
||||
wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user