X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41abc29aa6d7a44cbf4e01b05d239868e216e4af..e10972f6c1436a6dcd5427b4e3913bb0f398e045:/include/wx/dataview.h diff --git a/include/wx/dataview.h b/include/wx/dataview.h index 234ec4170f..f393e0384f 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -229,7 +229,7 @@ public: return true; } - // define hierachy + // define hierarchy virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const = 0; virtual bool IsContainer( const wxDataViewItem &item ) const = 0; // Is the container just a header or an item with all columns @@ -972,6 +972,11 @@ public: void DeleteItem( unsigned int pos ); void DeleteAllItems(); + unsigned int GetItemCount() const; + + void SetItemData( const wxDataViewItem& item, wxUIntPtr data ); + wxUIntPtr GetItemData( const wxDataViewItem& item ) const; + // override base virtuals virtual unsigned int GetColumnCount() const; @@ -1077,6 +1082,14 @@ public: bool GetToggleValue( unsigned int row, unsigned int col ) const { wxVariant value; GetStore()->GetValueByRow( value, row, col ); return value.GetBool(); } + void SetItemData( const wxDataViewItem& item, wxUIntPtr data ) + { GetStore()->SetItemData( item, data ); } + wxUIntPtr GetItemData( const wxDataViewItem& item ) const + { return GetStore()->GetItemData( item ); } + + int GetItemCount() const + { return GetStore()->GetItemCount(); } + void OnSize( wxSizeEvent &event ); private: