X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0de9b5b23f70465393526546cd1a69fcfcd26e9c..e2acb9ae1c69c1e37cbe0e46933929f5b1b021ba:/include/wx/gtk1/listbox.h diff --git a/include/wx/gtk1/listbox.h b/include/wx/gtk1/listbox.h index a20c32802a..ea6b058644 100644 --- a/include/wx/gtk1/listbox.h +++ b/include/wx/gtk1/listbox.h @@ -16,6 +16,9 @@ #endif #include "wx/defs.h" + +#if wxUSE_LISTBOX + #include "wx/object.h" #include "wx/list.h" #include "wx/control.h" @@ -51,7 +54,9 @@ public: const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr ) { +#if wxUSE_CHECKLISTBOX m_hasCheckBoxes = FALSE; +#endif // wxUSE_CHECKLISTBOX Create(parent, id, pos, size, n, choices, style, validator, name); } virtual ~wxListBox(); @@ -85,10 +90,10 @@ public: void Deselect( int n ); int FindString( const wxString &item ) const; - int GetSelection(void) const; + int GetSelection() const; int GetSelections( class wxArrayInt &) const; wxString GetString( int n ) const; - wxString GetStringSelection(void) const; + wxString GetStringSelection() const; int Number(); bool Selected( int n ); void Set( int n, const wxString *choices ); @@ -104,6 +109,8 @@ public: // implementation + void DisableEvents(); + void EnableEvents(); void AppendCommon( const wxString &item ); int GetIndex( GtkWidget *item ) const; GtkWidget *GetConnectWidget(); @@ -117,7 +124,12 @@ public: GtkList *m_list; wxList m_clientDataList; wxList m_clientObjectList; + +#if wxUSE_CHECKLISTBOX bool m_hasCheckBoxes; +#endif // wxUSE_CHECKLISTBOX }; +#endif + #endif // __GTKLISTBOXH__