X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64fa6f167ebb404e5441eddcee5bbd0808466d7a..939197fe47148304d874496e954fbc5ddca722be:/include/wx/mac/carbon/combobox.h diff --git a/include/wx/mac/carbon/combobox.h b/include/wx/mac/carbon/combobox.h index 34e982c20b..4ad1e4846a 100644 --- a/include/wx/mac/carbon/combobox.h +++ b/include/wx/mac/carbon/combobox.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: combobox.h +// Name: wx/mac/carbon/combobox.h // Purpose: wxComboBox class // Author: Stefan Csomor // Modified by: @@ -12,13 +12,9 @@ #ifndef _WX_COMBOBOX_H_ #define _WX_COMBOBOX_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "combobox.h" -#endif - #include "wx/choice.h" -WXDLLEXPORT_DATA(extern const wxChar*) wxComboBoxNameStr; +WXDLLEXPORT_DATA(extern const wxChar) wxComboBoxNameStr[]; // forward declaration of private implementation classes @@ -31,16 +27,12 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase DECLARE_DYNAMIC_CLASS(wxComboBox) public: - inline wxComboBox() {} + wxComboBox() ; virtual ~wxComboBox(); - // override the base class virtuals involved in geometry calculations - virtual wxSize DoGetBestSize() const; - virtual void DoMoveWindow(int x, int y, int width, int height); // forward these functions to all subcontrols virtual bool Enable(bool enable = true); virtual bool Show(bool show = true); - virtual void SetFocus(); // callback functions virtual void DelegateTextChanged( const wxString& value ); @@ -91,9 +83,9 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase virtual void Clear(); virtual int GetSelection() const ; + int GetCurrentSelection() const { return GetSelection(); } virtual void SetSelection(int n); - virtual void Select(int n) { SetSelection(n) ; } - virtual int FindString(const wxString& s) const; + virtual int FindString(const wxString& s, bool bCase = false) const; virtual wxString GetString(int n) const ; virtual wxString GetStringSelection() const ; virtual void SetString(int n, const wxString& s) ; @@ -132,7 +124,12 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST + WX_DECLARE_CONTROL_CONTAINER(); protected: + // override the base class virtuals involved in geometry calculations + virtual wxSize DoGetBestSize() const; + virtual void DoMoveWindow(int x, int y, int width, int height); + virtual int DoAppend(const wxString& item) ; virtual int DoInsert(const wxString& item, int pos) ; @@ -146,6 +143,8 @@ protected: // the subcontrols wxComboBoxText* m_text; wxComboBoxChoice* m_choice; + + DECLARE_EVENT_TABLE() }; #endif