X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eb1c3db2dd164ac2e384307109bda0e44b7a97aa..ac43092b9d4f932c3a911fca29f51de3fe094d7c:/include/wx/dataview.h diff --git a/include/wx/dataview.h b/include/wx/dataview.h index e6a22c780d..01dfc25dc4 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -210,6 +210,9 @@ public: virtual int Compare( const wxDataViewItem &item1, const wxDataViewItem &item2, unsigned int column, bool ascending ); virtual bool HasDefaultCompare() const { return false; } + + // internal + virtual bool IsIndexListModel() const { return false; } protected: // the user should not delete this class directly: he should use DecRef() instead! @@ -266,10 +269,15 @@ public: virtual bool IsContainer( const wxDataViewItem &item ) const; virtual unsigned int GetChildren( const wxDataViewItem &item, wxDataViewItemArray &children ) const; + // internal + virtual bool IsIndexListModel() const { return true; } + unsigned int GetLastIndex() const { return m_lastIndex; } + private: wxDataViewItemArray m_hash; unsigned int m_lastIndex; bool m_ordered; + bool m_useHash; };