Change GetValue() and SetValue() to GetValueByRow() and SetValueByRow() in row based interface, Add wxDataViewListStore (WIP)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2009-01-16 11:23:37 +00:00
parent c0d2308b25
commit 8eff6c56f0
4 changed files with 201 additions and 21 deletions

View File

@@ -530,7 +530,7 @@ public:
return m_array.GetCount();
}
virtual void GetValue( wxVariant &variant,
virtual void GetValueByRow( wxVariant &variant,
unsigned int row, unsigned int col ) const
{
if (col==0)
@@ -560,7 +560,7 @@ public:
}
}
virtual bool GetAttr( unsigned int row, unsigned int col, wxDataViewItemAttr &attr )
virtual bool GetAttrByRow( unsigned int row, unsigned int col, wxDataViewItemAttr &attr )
{
if (col != 2)
return false;
@@ -574,7 +574,7 @@ public:
return true;
}
virtual bool SetValue( const wxVariant &variant,
virtual bool SetValueByRow( const wxVariant &variant,
unsigned int row, unsigned int col )
{
if (col == 0)