X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63f7d5022e786be61c0226314dac98739f49a426..5bdcb1f3248ebcac6c73e314e752c13dee8776c7:/include/wx/gtk/combobox.h diff --git a/include/wx/gtk/combobox.h b/include/wx/gtk/combobox.h index d715d1dae8..e31a347c8e 100644 --- a/include/wx/gtk/combobox.h +++ b/include/wx/gtk/combobox.h @@ -89,16 +89,25 @@ public: return wxItemContainer::GetStringSelection(); } + virtual void SetString(unsigned int n, const wxString& string); + + virtual void Popup(); + virtual void Dismiss(); + virtual void Clear() { wxTextEntry::Clear(); wxItemContainer::Clear(); } - bool IsEmpty() const { return wxItemContainer::IsEmpty(); } + // See wxComboBoxBase discussion of IsEmpty(). + bool IsListEmpty() const { return wxItemContainer::IsEmpty(); } + bool IsTextEmpty() const { return wxTextEntry::IsEmpty(); } void OnChar( wxKeyEvent &event ); + virtual void SetValue(const wxString& value); + // Standard event handling void OnCut(wxCommandEvent& event); void OnCopy(wxCommandEvent& event); @@ -116,8 +125,8 @@ public: void OnUpdateDelete(wxUpdateUIEvent& event); void OnUpdateSelectAll(wxUpdateUIEvent& event); - virtual void DisableEvents(); - virtual void EnableEvents(); + virtual void GTKDisableEvents(); + virtual void GTKEnableEvents(); GtkWidget* GetConnectWidget(); static wxVisualAttributes @@ -135,8 +144,8 @@ protected: // custom list stores. virtual void GTKCreateComboBoxWidget(); - // return the GtkEntry part of the combobox - GtkEntry *GetEntry() const { return m_entry; } + virtual GtkEntry *GetEntry() const + { return m_entry; } GtkEntry* m_entry; @@ -144,13 +153,7 @@ private: // From wxTextEntry: virtual wxWindow *GetEditableWindow() { return this; } virtual GtkEditable *GetEditable() const; - virtual void EnableTextChangedEvents(bool enable) - { - if ( enable ) - EnableEvents(); - else - DisableEvents(); - } + virtual void EnableTextChangedEvents(bool enable); void Init();