X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/813c20a67e8a82d16700344625b8fdfb32e04833..a7910d97a37c967ee47813f9e3af33b1525d1269:/include/wx/motif/listbox.h diff --git a/include/wx/motif/listbox.h b/include/wx/motif/listbox.h index d7585a547e..70715fd948 100644 --- a/include/wx/motif/listbox.h +++ b/include/wx/motif/listbox.h @@ -16,7 +16,7 @@ #pragma interface "listbox.h" #endif -#include "wx/control.h" +#include "wx/ctrlsub.h" WXDLLEXPORT_DATA(extern const char*) wxListBoxNameStr; @@ -26,7 +26,7 @@ class WXDLLEXPORT wxArrayInt; WXDLLEXPORT_DATA(extern const char*) wxEmptyString; // List box item -class WXDLLEXPORT wxListBox: public wxControl +class WXDLLEXPORT wxListBox: public wxListBoxBase { DECLARE_DYNAMIC_CLASS(wxListBox) @@ -54,6 +54,19 @@ public: ~wxListBox(); + // Virtual functions required by wxControlWithItems. + // They are not all implemented yet :-( + virtual int GetCount() const; + virtual int DoAppend(const wxString& item); + virtual void DoInsertItems(const wxArrayString& items, int pos); + virtual void DoSetItems(const wxArrayString& items, void **clientData); + virtual void DoSetFirstItem(int n); + virtual void DoSetItemClientData(int n, void* clientData); + virtual void* DoGetItemClientData(int n) const; + virtual void DoSetItemClientObject(int n, wxClientData* clientData); + virtual wxClientData* DoGetItemClientObject(int n) const; + virtual void Select(int n); + virtual void Append(const wxString& item); virtual void Append(const wxString& item, void *clientData); virtual void Set(int n, const wxString* choices, void **clientData = NULL); @@ -74,7 +87,7 @@ public: // For single or multiple choice list item virtual int GetSelections(wxArrayInt& aSelections) const; - virtual bool Selected(int n) const ; + virtual bool IsSelected(int n) const ; virtual wxString GetString(int n) const ; // Set the specified item at the first visible item