X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..401e3b6e5f50f15571b86297b5d1e3f55c473f6f:/include/wx/listbox.h diff --git a/include/wx/listbox.h b/include/wx/listbox.h index ae0c31267d..186e616d0b 100644 --- a/include/wx/listbox.h +++ b/include/wx/listbox.h @@ -5,7 +5,7 @@ // Modified by: // Created: 22.10.99 // RCS-ID: $Id$ -// Copyright: (c) wxWindows team +// Copyright: (c) wxWidgets team // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -16,7 +16,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "listboxbase.h" #endif @@ -27,8 +27,8 @@ #include "wx/ctrlsub.h" // base class // forward declarations are enough here -class WXDLLEXPORT wxArrayInt; -class WXDLLEXPORT wxArrayString; +class WXDLLIMPEXP_BASE wxArrayInt; +class WXDLLIMPEXP_BASE wxArrayString; // ---------------------------------------------------------------------------- // global data @@ -43,12 +43,11 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxListBoxNameStr; class WXDLLEXPORT wxListBoxBase : public wxControlWithItems { public: + wxListBoxBase() { } + virtual ~wxListBoxBase(); + // all generic methods are in wxControlWithItems, except for the following // ones which are not yet implemented by wxChoice/wxCombobox -#ifdef __WXMAC_X__ - virtual ~wxListBoxBase() {} // Added min for Mac X -#endif - void Insert(const wxString& item, int pos) { DoInsert(item, pos); } void Insert(const wxString& item, int pos, void *clientData) @@ -111,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) }; // ---------------------------------------------------------------------------- @@ -133,14 +134,12 @@ protected: #include "wx/motif/listbox.h" #elif defined(__WXGTK__) #include "wx/gtk/listbox.h" -#elif defined(__WXQT__) - #include "wx/qt/listbox.h" #elif defined(__WXMAC__) #include "wx/mac/listbox.h" #elif defined(__WXPM__) #include "wx/os2/listbox.h" -#elif defined(__WXSTUBS__) - #include "wx/stubs/listbox.h" +#elif defined(__WXCOCOA__) + #include "wx/cocoa/listbox.h" #endif #endif // wxUSE_LISTBOX