X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9e4acc5197ac49259b9a39468c5931b4459d87f..4b5e5cfb2230d990c6988266340329c420cd1a74:/include/wx/listbox.h diff --git a/include/wx/listbox.h b/include/wx/listbox.h index d06528cd45..66f39ed4bf 100644 --- a/include/wx/listbox.h +++ b/include/wx/listbox.h @@ -16,7 +16,7 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "listboxbase.h" #endif @@ -43,10 +43,11 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxListBoxNameStr; class WXDLLEXPORT wxListBoxBase : public wxControlWithItems { public: - // all generic methods are in wxControlWithItems, except for the following - // ones which are not yet implemented by wxChoice/wxCombobox + wxListBoxBase() { } virtual ~wxListBoxBase(); + // all generic methods are in wxControlWithItems, except for the following + // ones which are not yet implemented by wxChoice/wxCombobox void Insert(const wxString& item, int pos) { DoInsert(item, pos); } void Insert(const wxString& item, int pos, void *clientData) @@ -109,14 +110,16 @@ public: protected: // NB: due to wxGTK implementation details, DoInsert() is implemented // using DoInsertItems() and not the other way round - void DoInsert(const wxString& item, int pos) - { InsertItems(1, &item, pos); } + virtual int DoInsert(const wxString& item, int pos) + { InsertItems(1, &item, pos); return pos; } // to be implemented in derived classes virtual void DoInsertItems(const wxArrayString& items, int pos) = 0; virtual void DoSetItems(const wxArrayString& items, void **clientData) = 0; virtual void DoSetFirstItem(int n) = 0; + + DECLARE_NO_COPY_CLASS(wxListBoxBase) }; // ---------------------------------------------------------------------------- @@ -135,6 +138,8 @@ protected: #include "wx/mac/listbox.h" #elif defined(__WXPM__) #include "wx/os2/listbox.h" +#elif defined(__WXCOCOA__) + #include "wx/cocoa/listbox.h" #endif #endif // wxUSE_LISTBOX