class WXDLLIMPEXP_FWD_CORE wxImageList;
#if !(defined(__WXGTK20__) || defined(__WXOSX__)) || defined(__WXUNIVERSAL__)
-// #if !(defined(__WXMAC__)) || defined(__WXUNIVERSAL__)
+// #if !(defined(__WXOSX__)) || defined(__WXUNIVERSAL__)
#define wxHAS_GENERIC_DATAVIEWCTRL
#endif
WX_DECLARE_LIST_WITH_DECL(wxDataViewModelNotifier, wxDataViewModelNotifiers,
class WXDLLIMPEXP_ADV);
-class WXDLLIMPEXP_ADV wxDataViewModel: public wxObjectRefData
+class WXDLLIMPEXP_ADV wxDataViewModel: public wxRefCounter
{
public:
wxDataViewModel();
// internal
virtual bool IsVirtualListModel() const { return false; }
- unsigned int GetLastIndex() const { return m_lastIndex; }
+ unsigned int GetCount() const { return m_hash.GetCount(); }
private:
wxDataViewItemArray m_hash;
- unsigned int m_lastIndex;
+ unsigned int m_nextFreeID;
bool m_ordered;
};
// internal
virtual bool IsVirtualListModel() const { return true; }
- unsigned int GetLastIndex() const { return m_lastIndex; }
+ unsigned int GetCount() const { return m_size; }
private:
- wxDataViewItemArray m_hash;
- unsigned int m_lastIndex;
+ unsigned int m_size;
bool m_ordered;
};
#endif