From: Robert Roebling Date: Sat, 13 Oct 2007 22:01:24 +0000 (+0000) Subject: Beginning of wxDataViewTreeStore API X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c33edc08d6a5f6937624347f25934937164c13a1 Beginning of wxDataViewTreeStore API git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/dataview.h b/include/wx/dataview.h index 4117fd4a6d..c8d8c8ddac 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -225,6 +225,34 @@ private: unsigned int m_lastIndex; }; +//----------------------------------------------------------------------------- +// wxDataViewTreeStore +//----------------------------------------------------------------------------- + +#if 0 +class wxDataViewTreeStore: public wxDataViewModel +{ +public: + wxDataViewTreeStore(); + ~wxDataViewTreeStore(); + + void AddColumn( const wxString &variant_type ); + + wxDataViewItem AddItem( const wxDataViewItem& parent, const wxVariant &value ); + wxDataViewItem AddContainer( const wxDataViewItem& parent, const wxVariant &value ); + + // implement base methods + + virtual void GetValue( wxVariant &variant, + const wxDataViewItem &item, unsigned int col ) const; + virtual bool SetValue( const wxVariant &variant, + const wxDataViewItem &item, unsigned int col ); + virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const; + virtual bool IsContainer( const wxDataViewItem &item ) const; + virtual unsigned int GetChildren( const wxDataViewItem &item, wxDataViewItemArray &children ) const; +}; +#endif + //----------------------------------------------------------------------------- // wxDataViewEditorCtrlEvtHandler //-----------------------------------------------------------------------------