#if defined(__WXGTK20__)
// for testing
- #define wxUSE_GENERICDATAVIEWCTRL 1
+ // #define wxUSE_GENERICDATAVIEWCTRL 1
#elif defined(__WXMAC__)
#else
#define wxUSE_GENERICDATAVIEWCTRL 1
bool operator == (const wxDataViewItem &left, const wxDataViewItem &right);
+WX_DEFINE_ARRAY(wxDataViewItem, wxDataViewItemArray);
+
// ---------------------------------------------------------
// wxDataViewModelNotifier
// ---------------------------------------------------------
// wxDataViewIndexListModel
// ---------------------------------------------------------
-// use hash map later
-WX_DEFINE_ARRAY_PTR( void*, wxDataViewItemHash );
-
class wxDataViewIndexListModel: public wxDataViewModel
{
public:
virtual wxDataViewItem GetNextSibling( const wxDataViewItem &item ) const;
private:
- wxDataViewItemHash m_hash;
+ wxDataViewItemArray m_hash;
unsigned int m_lastIndex;
};
// wxDataViewCtrlBase
// ---------------------------------------------------------
-WX_DEFINE_ARRAY(wxDataViewItem, wxDataViewItemArray);
-
#define wxDV_SINGLE 0x0000 // for convenience
#define wxDV_MULTIPLE 0x0001 // can select multiple items