The new names make it more clear that the functions don't just set an
invalidated flag, but that they actually do some recalculations.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68807
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual wxDataViewItem DoGetCurrentItem() const;
virtual void DoSetCurrentItem(const wxDataViewItem& item);
virtual wxDataViewItem DoGetCurrentItem() const;
virtual void DoSetCurrentItem(const wxDataViewItem& item);
- void InvalidateColBestWidths();
- void InvalidateColBestWidth(int idx);
+ void UpdateColBestWidths();
+ void UpdateColBestWidth(int idx);
wxDataViewColumnList m_cols;
// cached column best widths or 0 if not computed, values are for
wxDataViewColumnList m_cols;
// cached column best widths or 0 if not computed, values are for
- GetOwner()->InvalidateColBestWidths();
+ GetOwner()->UpdateColBestWidths();
UpdateDisplay();
return true;
UpdateDisplay();
return true;
if( m_currentRow > GetRowCount() )
ChangeCurrentRow(m_count - 1);
if( m_currentRow > GetRowCount() )
ChangeCurrentRow(m_count - 1);
- GetOwner()->InvalidateColBestWidths();
+ GetOwner()->UpdateColBestWidths();
UpdateDisplay();
return true;
UpdateDisplay();
return true;
SortPrepare();
g_model->Resort();
SortPrepare();
g_model->Resort();
- GetOwner()->InvalidateColBestWidths();
+ GetOwner()->UpdateColBestWidths();
// Send event
wxWindow *parent = GetParent();
// Send event
wxWindow *parent = GetParent();
SortPrepare();
g_model->Resort();
SortPrepare();
g_model->Resort();
- GetOwner()->InvalidateColBestWidth(view_column);
+ GetOwner()->UpdateColBestWidth(view_column);
// Send event
wxWindow *parent = GetParent();
// Send event
wxWindow *parent = GetParent();
SortPrepare();
BuildTree( GetOwner()->GetModel() );
SortPrepare();
BuildTree( GetOwner()->GetModel() );
- GetOwner()->InvalidateColBestWidths();
+ GetOwner()->UpdateColBestWidths();
UpdateDisplay();
return true;
UpdateDisplay();
return true;
-void wxDataViewCtrl::InvalidateColBestWidth(int idx)
+void wxDataViewCtrl::UpdateColBestWidth(int idx)
{
m_colsBestWidths[idx] = 0;
{
m_colsBestWidths[idx] = 0;
m_headerArea->UpdateColumn(idx);
}
m_headerArea->UpdateColumn(idx);
}
-void wxDataViewCtrl::InvalidateColBestWidths()
+void wxDataViewCtrl::UpdateColBestWidths()
{
m_colsBestWidths.clear();
m_colsBestWidths.resize(m_cols.size());
{
m_colsBestWidths.clear();
m_colsBestWidths.resize(m_cols.size());