X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c84030e020e56735cb4b7c1534e99d21a8bb48c0..a516284f67e1910fc6dc5364b289340332d0d35f:/include/wx/osx/combobox.h diff --git a/include/wx/osx/combobox.h b/include/wx/osx/combobox.h index bf1b20861b..d8e5c186e4 100644 --- a/include/wx/osx/combobox.h +++ b/include/wx/osx/combobox.h @@ -16,8 +16,6 @@ #include "wx/choice.h" #include "wx/textctrl.h" -WXDLLIMPEXP_DATA_CORE(extern const char) wxComboBoxNameStr[]; - WX_DEFINE_ARRAY( char * , wxComboBoxDataArray ) ; // forward declaration of private implementation classes @@ -100,7 +98,7 @@ class WXDLLIMPEXP_CORE wxComboBox : public wxControl, public wxComboBoxBase virtual void SetString(unsigned int n, const wxString& s); virtual unsigned int GetCount() const; - + // these methods are provided by wxTextEntry for the native impl. #if wxOSX_USE_CARBON // Text field functions @@ -132,7 +130,9 @@ class WXDLLIMPEXP_CORE wxComboBox : public wxControl, public wxComboBoxBase virtual bool CanRedo() const; virtual wxClientDataType GetClientDataType() const; -#endif + + virtual wxTextWidgetImpl* GetTextPeer() const; +#endif // wxOSX_USE_CARBON @@ -146,10 +146,6 @@ class WXDLLIMPEXP_CORE wxComboBox : public wxControl, public wxComboBoxBase WX_DECLARE_CONTROL_CONTAINER(); #endif - // only used by the native Cocoa combobox, but we must define it everywhere - // to maintain the wxTextEntry abstraction. - virtual wxTextWidgetImpl * GetTextPeer() const; - #if wxOSX_USE_COCOA wxComboWidgetImpl* GetComboPeer() const; #endif @@ -167,9 +163,9 @@ protected: #endif virtual wxWindow *GetEditableWindow() { return this; } -#if wxOSX_USE_CARBON // override the base class virtuals involved in geometry calculations virtual wxSize DoGetBestSize() const; +#if wxOSX_USE_CARBON virtual void DoMoveWindow(int x, int y, int width, int height); #endif