X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bcb07ff03e6c308e7a1c30479017d77dad9c4cb3..c5bb5453498db88fa0f13ef7ff5e944b220c2fec:/include/wx/osx/carbon/srchctrl.h diff --git a/include/wx/osx/carbon/srchctrl.h b/include/wx/osx/carbon/srchctrl.h index 2f339d638a..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,14 +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; } + wxSearchWidgetImpl * GetSearchPeer() const; protected: @@ -69,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)