X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c6eb3a84be918dcfed2496d014549e13af0f0e9..4ce846b17c9a1ad71c749253cc8b73d492ed9634:/include/wx/osx/carbon/srchctrl.h diff --git a/include/wx/osx/carbon/srchctrl.h b/include/wx/osx/carbon/srchctrl.h index eba88ccc43..a883134422 100644 --- a/include/wx/osx/carbon/srchctrl.h +++ b/include/wx/osx/carbon/srchctrl.h @@ -13,7 +13,7 @@ #if wxUSE_SEARCHCTRL -class wxMacSearchFieldControl; +class wxSearchWidgetImpl; class WXDLLIMPEXP_CORE wxSearchCtrl : public wxSearchCtrlBase { @@ -54,16 +54,13 @@ public: virtual bool IsCancelButtonVisible() const; // TODO: In 2.9 these should probably be virtual, and declared in the base class... - void SetDescriptiveText(const wxString& text); - wxString GetDescriptiveText() const; + void SetDescriptiveText(const wxString& text); + wxString GetDescriptiveText() const; - virtual wxInt32 MacSearchFieldSearchHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ; - virtual wxInt32 MacSearchFieldCancelHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ; + virtual bool HandleSearchFieldSearchHit() ; + virtual bool HandleSearchFieldCancelHit() ; - wxMacSearchFieldControl * GetPeer() const - { return (wxMacSearchFieldControl*) m_peer; } - - virtual void SetFocus(); + wxSearchWidgetImpl * GetSearchPeer() const; protected: @@ -71,12 +68,9 @@ protected: void Init(); - virtual void CreatePeer( - const wxString& str, - const wxPoint& pos, - const wxSize& size, long style ); - wxMenu *m_menu; + + wxString m_descriptiveText; private: DECLARE_DYNAMIC_CLASS(wxSearchCtrl)