X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8090b5e2c5d980b243674c7d99b4b4200af39d4..81f4ed62ddcb1c6d1f54f9ee3872d5996827c12c:/samples/dataview/mymodels.h?ds=sidebyside diff --git a/samples/dataview/mymodels.h b/samples/dataview/mymodels.h index bb9ca8f653..d925779655 100644 --- a/samples/dataview/mymodels.h +++ b/samples/dataview/mymodels.h @@ -4,7 +4,6 @@ // Author: Robert Roebling // Modified by: Francesco Montorsi, Bo Yang // Created: 06/01/06 -// RCS-ID: $Id$ // Copyright: (c) Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -163,6 +162,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, @@ -235,3 +237,12 @@ private: wxIcon m_icon[2]; }; +// ---------------------------------------------------------------------------- +// MyListStoreDerivedModel +// ---------------------------------------------------------------------------- + +class MyListStoreDerivedModel : public wxDataViewListStore +{ +public: + virtual bool IsEnabledByRow(unsigned int row, unsigned int col) const; +};