X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64fa6f167ebb404e5441eddcee5bbd0808466d7a..c06bbbff2211c447a8a300eeece87d67fcd95095:/include/wx/univ/combobox.h?ds=sidebyside diff --git a/include/wx/univ/combobox.h b/include/wx/univ/combobox.h index 51012743f1..3d58e1fd6d 100644 --- a/include/wx/univ/combobox.h +++ b/include/wx/univ/combobox.h @@ -36,10 +36,6 @@ #ifndef _WX_UNIV_COMBOBOX_H_ #define _WX_UNIV_COMBOBOX_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "univcombobox.h" -#endif - class WXDLLEXPORT wxComboControl; class WXDLLEXPORT wxListBox; class WXDLLEXPORT wxPopupComboWindow; @@ -70,6 +66,7 @@ class WXDLLEXPORT wxComboPopup { public: wxComboPopup(wxComboControl *combo) { m_combo = combo; } + virtual ~wxComboPopup() {} // we must have an associated control which is subclassed by the combobox virtual wxControl *GetControl() = 0; @@ -166,6 +163,11 @@ public: virtual void DoSetToolTip( wxToolTip *tip ); #endif // wxUSE_TOOLTIPS + // we have our own input handler and our own actions + virtual bool PerformAction(const wxControlAction& action, + long numArg = 0l, + const wxString& strArg = wxEmptyString); + protected: // override the base class virtuals involved into geometry calculations virtual wxSize DoGetBestClientSize() const; @@ -174,11 +176,6 @@ protected: int width, int height, int sizeFlags = wxSIZE_AUTO); - // we have our own input handler and our own actions - virtual bool PerformAction(const wxControlAction& action, - long numArg = 0l, - const wxString& strArg = wxEmptyString); - // event handlers void OnKey(wxKeyEvent& event); @@ -300,10 +297,9 @@ public: virtual int GetCount() const; virtual wxString GetString(int n) const; virtual void SetString(int n, const wxString& s); - virtual int FindString(const wxString& s) const; - virtual void Select(int n); + virtual int FindString(const wxString& s, bool bCase = false) const; + virtual void SetSelection(int n); virtual int GetSelection() const; - void SetSelection(int n) { Select(n); } wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST