restore sorting functionality of the generic wxDataViewCtrl but implement it on top of wxHeaderCtrl support for it now; don't have const and non-const overloads of GetSortingColumn() in wxDVC returning different things (could this have really been intentional?); added GetSortingColumnIndex()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -463,8 +463,8 @@ protected:
|
||||
virtual wxDataViewItem GetItemByRow( unsigned int row ) const;
|
||||
virtual int GetRowByItem( const wxDataViewItem & item ) const;
|
||||
|
||||
wxDataViewColumn* GetSortingColumn() { return m_sortingColumn; }
|
||||
void SetSortingColumn( wxDataViewColumn* column ) { m_sortingColumn = column; }
|
||||
int GetSortingColumnIndex() const { return m_sortingColumnIdx; }
|
||||
void SetSortingColumnIndex(int idx) { m_sortingColumnIdx = idx; }
|
||||
|
||||
public: // utility functions not part of the API
|
||||
|
||||
@@ -490,7 +490,9 @@ private:
|
||||
wxDataViewModelNotifier *m_notifier;
|
||||
wxDataViewMainWindow *m_clientArea;
|
||||
wxDataViewHeaderWindow *m_headerArea;
|
||||
wxDataViewColumn *m_sortingColumn;
|
||||
|
||||
// the index of the column currently used for sorting or -1
|
||||
int m_sortingColumnIdx;
|
||||
|
||||
private:
|
||||
void OnSize( wxSizeEvent &event );
|
||||
|
Reference in New Issue
Block a user