// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "listboxbase.h"
#endif
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)
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)
};
// ----------------------------------------------------------------------------