X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/150e31d2088687cbfbab548f9e98918f8683d9b5..1d54b9d29706dbb43de5624bdf4a2aaa74b2350b:/include/wx/gtk/combobox.h diff --git a/include/wx/gtk/combobox.h b/include/wx/gtk/combobox.h index c27d532b47..0ec684d85e 100644 --- a/include/wx/gtk/combobox.h +++ b/include/wx/gtk/combobox.h @@ -5,7 +5,7 @@ // Created: 01/02/97 // Id: $Id$ // Copyright: (c) 1998 Robert Roebling -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -26,20 +26,20 @@ // classes //----------------------------------------------------------------------------- -class wxComboBox; +class WXDLLIMPEXP_CORE wxComboBox; //----------------------------------------------------------------------------- // global data //----------------------------------------------------------------------------- -extern const wxChar* wxComboBoxNameStr; -extern const wxChar* wxEmptyString; +extern WXDLLIMPEXP_CORE const wxChar* wxComboBoxNameStr; +extern WXDLLIMPEXP_BASE const wxChar* wxEmptyString; //----------------------------------------------------------------------------- // wxComboBox //----------------------------------------------------------------------------- -class wxComboBox : public wxControl, public wxComboBoxBase +class WXDLLIMPEXP_CORE wxComboBox : public wxControl, public wxComboBoxBase { public: inline wxComboBox() {} @@ -90,13 +90,14 @@ public: virtual int FindString( const wxString &item ) const; int GetSelection() const; +#if wxABI_VERSION >= 20602 + int GetCurrentSelection() const; +#endif wxString GetString( int n ) const; wxString GetStringSelection() const; int GetCount() const; int Number() const { return GetCount(); } void SetSelection( int n ); - void Select( int n ) { return SetSelection( n ); } - bool SetStringSelection( const wxString &string ); void SetString(int n, const wxString &text); wxString GetValue() const; @@ -111,7 +112,7 @@ public: void SetInsertionPoint( long pos ); void SetInsertionPointEnd() { SetInsertionPoint( -1 ); } long GetInsertionPoint() const; - long GetLastPosition() const; + virtual wxTextPos GetLastPosition() const; void Remove(long from, long to) { Replace(from, to, wxEmptyString); } void Replace( long from, long to, const wxString& value ); void SetSelection( long from, long to ); @@ -122,7 +123,7 @@ public: bool CanUndo() const; bool CanRedo() const; void SelectAll(); - bool IsEditable() const { return !HasFlag(wxCB_READONLY); } + bool IsEditable() const ; bool HasSelection() const ; // implementation