#ifndef _WX_SAMPLE_WIDGETS_ITEMCONTAINER_H_
#define _WX_SAMPLE_WIDGETS_ITEMCONTAINER_H_
-// for compilers that support precompilation, includes "wx/wx.h".
-#include "wx/wxprec.h"
-
#include "widgets.h"
-// define a common base class for sorted and normal string arrays
-#if wxUSE_STL
- typedef wxBaseArrayStringBase wxMaybeSortedArrayString;
-#else
- // in non-STL build wxSortedArrayString derives from wxArrayString
- typedef wxArrayString wxMaybeSortedArrayString;
-#endif
-
class ItemContainerWidgetsPage : public WidgetsPage
{
public:
ItemContainerWidgetsPage(WidgetsBookCtrl *book,
wxImageList *image_list,
- char* icon[]);
+ const char *const icon[]);
virtual ~ItemContainerWidgetsPage();
void OnButtonTestItemContainer(wxCommandEvent& event);
private:
void StartTest(const wxString& label);
- void EndTest(const wxMaybeSortedArrayString& result);
+ void EndTest(const wxArrayString& result);
// Track client data in wxItemContainer instances
wxClientData* CreateClientData(int value);
bool VerifyAllClientDataDestroyed();
bool VerifyClientData(wxUIntPtr i, const wxString& str);
- wxString DumpContainerData(const wxMaybeSortedArrayString& expected) const;
+ wxString DumpContainerData(const wxArrayString& expected) const;
+
+ static wxArrayString MakeArray(const wxSortedArrayString& sorted);
wxArrayString m_items;
wxSortedArrayString m_itemsSorted;