X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..c29c95fe24973b94fd724db767193171ca7c513d:/samples/dataview/mymodels.h?ds=sidebyside diff --git a/samples/dataview/mymodels.h b/samples/dataview/mymodels.h index 0655a674e6..996bd3ec6e 100644 --- a/samples/dataview/mymodels.h +++ b/samples/dataview/mymodels.h @@ -163,6 +163,9 @@ public: virtual bool SetValue( const wxVariant &variant, const wxDataViewItem &item, unsigned int col ); + virtual bool IsEnabled( const wxDataViewItem &item, + unsigned int col ) const; + virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const; virtual bool IsContainer( const wxDataViewItem &item ) const; virtual unsigned int GetChildren( const wxDataViewItem &parent, @@ -222,11 +225,6 @@ public: return wxT("string"); } - virtual unsigned int GetRowCount() - { - return m_textColValues.GetCount(); - } - virtual void GetValueByRow( wxVariant &variant, unsigned int row, unsigned int col ) const; virtual bool GetAttrByRow( unsigned int row, unsigned int col, @@ -238,6 +236,14 @@ private: wxArrayString m_textColValues; wxArrayString m_iconColValues; wxIcon m_icon[2]; - int m_virtualItems; }; +// ---------------------------------------------------------------------------- +// MyListStoreDerivedModel +// ---------------------------------------------------------------------------- + +class MyListStoreDerivedModel : public wxDataViewListStore +{ +public: + virtual bool IsEnabledByRow(unsigned int row, unsigned int col) const; +};