// helper method for wxLog
wxString GetTitle( const wxDataViewItem &item ) const;
+ wxString GetArtist( const wxDataViewItem &item ) const;
int GetYear( const wxDataViewItem &item ) const;
// helper methods to change the model
// override sorting to always sort branches ascendingly
int Compare( const wxDataViewItem &item1, const wxDataViewItem &item2,
- unsigned int column, bool ascending );
+ unsigned int column, bool ascending ) const;
// implementation of base class virtuals to define model
virtual unsigned int GetRowCount()
{
- return m_array.GetCount();
+ return m_textColValues.GetCount();
}
virtual void GetValueByRow( wxVariant &variant,
unsigned int row, unsigned int col );
private:
- wxArrayString m_array;
+ wxArrayString m_textColValues;
+ wxArrayString m_iconColValues;
wxIcon m_icon[2];
int m_virtualItems;
};