X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40eb3606eb203081057e7716b697f6617a95c2d3..5d605a6995d8f1a647934e30089468cc598c951d:/include/wx/gtk/choice.h diff --git a/include/wx/gtk/choice.h b/include/wx/gtk/choice.h index f3c28565c9..28a5efdcc0 100644 --- a/include/wx/gtk/choice.h +++ b/include/wx/gtk/choice.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: choice.h +// Name: wx/gtk/choice.h // Purpose: // Author: Robert Roebling // Id: $Id$ @@ -10,10 +10,6 @@ #ifndef __GTKCHOICEH__ #define __GTKCHOICEH__ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "choice.h" -#endif - class WXDLLIMPEXP_BASE wxSortedArrayString; class WXDLLIMPEXP_BASE wxArrayString; @@ -70,19 +66,19 @@ public: void Clear(); int GetSelection() const; -#if wxABI_VERSION >= 20602 int GetCurrentSelection() const { return GetSelection(); } -#endif void SetSelection( int n ); virtual int GetCount() const; - int FindString( const wxString& string ) const; + virtual int FindString(const wxString& s, bool bCase = false) const; wxString GetString( int n ) const; void SetString( int n, const wxString& string ); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + virtual bool IsOwnGtkWindow( GdkWindow *window ); + protected: wxList m_clientList; // contains the client data for the items @@ -97,8 +93,6 @@ protected: virtual wxSize DoGetBestSize() const; - virtual bool IsOwnGtkWindow( GdkWindow *window ); - private: // common part of Create() and DoAppend() int GtkAddHelper(GtkWidget *menu, int pos, const wxString& item); @@ -108,8 +102,8 @@ private: wxSortedArrayString *m_strings; public: - // this circumvents a GTK+ 2.0 bug so that the selection is - // invalidated properly + // this circumvents a GTK+ 2.0 bug so that the selection is + // invalidated properly int m_selection_hack; private: