X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4264606eedb18f626e864020082d8dde8d055eea..f90913e2ac7938728beed9065f34b7d4c7593513:/include/wx/generic/dataview.h diff --git a/include/wx/generic/dataview.h b/include/wx/generic/dataview.h index 10e8bbf970..51faf5f7c2 100644 --- a/include/wx/generic/dataview.h +++ b/include/wx/generic/dataview.h @@ -328,7 +328,7 @@ public: virtual void SetResizeable( bool resizeable ); virtual void SetHidden( bool hidden ); virtual void SetSortOrder( bool ascending ); - + virtual void SetReorderable( bool reorderable ); // getters: @@ -347,7 +347,8 @@ public: virtual bool IsHidden() const { return (m_flags & wxDATAVIEW_COL_HIDDEN) != 0; } virtual bool IsSortOrderAscending() const; - + virtual bool IsReorderable() const + { return (m_flags & wxDATAVIEW_COL_REORDERABLE) != 0; } private: int m_width; @@ -468,6 +469,9 @@ public: // utility functions not part of the API return GetClientSize().GetWidth() / GetColumnCount(); } + // called by header window after reorder + void ColumnMoved( wxDataViewColumn* col, unsigned int new_pos ); + // updates the header window after a change in a column setting void OnColumnChange();