Declare wxSearchCtrl::{Set,Get}DescriptiveText() in the base class
Fix a trivial "TODO" remaining from 2.8 days and declare the functions that are part of the public control API as pure virtuals in the base class. No real changes.
This commit is contained in:
parent
7d6b44687f
commit
8ee3394e5e
@ -61,9 +61,8 @@ public:
|
||||
virtual void ShowCancelButton( bool show ) wxOVERRIDE;
|
||||
virtual bool IsCancelButtonVisible() const wxOVERRIDE;
|
||||
|
||||
// TODO: In 2.9 these should probably be virtual, and declared in the base class...
|
||||
void SetDescriptiveText(const wxString& text);
|
||||
wxString GetDescriptiveText() const;
|
||||
virtual void SetDescriptiveText(const wxString& text) wxOVERRIDE;
|
||||
virtual wxString GetDescriptiveText() const wxOVERRIDE;
|
||||
|
||||
// accessors
|
||||
// ---------
|
||||
|
@ -54,9 +54,8 @@ public:
|
||||
virtual void ShowCancelButton( bool show ) wxOVERRIDE;
|
||||
virtual bool IsCancelButtonVisible() const wxOVERRIDE;
|
||||
|
||||
// TODO: In 2.9 these should probably be virtual, and declared in the base class...
|
||||
void SetDescriptiveText(const wxString& text);
|
||||
wxString GetDescriptiveText() const;
|
||||
virtual void SetDescriptiveText(const wxString& text) wxOVERRIDE;
|
||||
virtual wxString GetDescriptiveText() const wxOVERRIDE;
|
||||
|
||||
virtual bool HandleSearchFieldSearchHit() ;
|
||||
virtual bool HandleSearchFieldCancelHit() ;
|
||||
|
@ -68,6 +68,9 @@ public:
|
||||
virtual void ShowCancelButton( bool show ) = 0;
|
||||
virtual bool IsCancelButtonVisible() const = 0;
|
||||
|
||||
virtual void SetDescriptiveText(const wxString& text) = 0;
|
||||
virtual wxString GetDescriptiveText() const = 0;
|
||||
|
||||
private:
|
||||
// implement wxTextEntry pure virtual method
|
||||
virtual wxWindow *GetEditableWindow() wxOVERRIDE { return this; }
|
||||
|
Loading…
Reference in New Issue
Block a user