X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..ef094fa075bc56bcbc33b12159c395ea28afda3b:/include/wx/gtk1/combobox.h diff --git a/include/wx/gtk1/combobox.h b/include/wx/gtk1/combobox.h index 8e2b81b6b1..84e9e2be49 100644 --- a/include/wx/gtk1/combobox.h +++ b/include/wx/gtk1/combobox.h @@ -12,7 +12,7 @@ #ifndef __GTKCOMBOBOXH__ #define __GTKCOMBOBOXH__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "combobox.h" #endif @@ -33,7 +33,7 @@ class wxComboBox; // global data //----------------------------------------------------------------------------- -extern const char* wxComboBoxNameStr; +extern const wxChar* wxComboBoxNameStr; extern const wxChar* wxEmptyString; //----------------------------------------------------------------------------- @@ -69,6 +69,10 @@ public: void Append( const wxString &item, void* clientData ); void Append( const wxString &item, wxClientData* clientData ); + void Insert( const wxString &item, int pos ); + void Insert( const wxString &item, int pos, void* clientData ); + void Insert( const wxString &item, int pos, wxClientData* clientData ); + void SetClientData( int n, void* clientData ); void* GetClientData( int n ); void SetClientObject( int n, wxClientData* clientData ); @@ -90,6 +94,7 @@ public: int Number() const; void SetSelection( int n ); void SetStringSelection( const wxString &string ); + void SetString(int n, const wxString &text); wxString GetValue() const; void SetValue(const wxString& value); @@ -108,16 +113,20 @@ public: // implementation + virtual void SetFocus(); + void OnSize( wxSizeEvent &event ); void OnChar( wxKeyEvent &event ); bool m_alreadySent; wxList m_clientDataList; wxList m_clientObjectList; + int m_prevSelection; void DisableEvents(); void EnableEvents(); void AppendCommon( const wxString &item ); + void InsertCommon( const wxString &item, int pos ); GtkWidget* GetConnectWidget(); bool IsOwnGtkWindow( GdkWindow *window ); void ApplyWidgetStyle();