Added UpdateAttrRows/Cols to change the row/column info in attributes as
needed when Deleting/Inserting rows/columns. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -311,6 +311,8 @@ public:
|
||||
virtual void SetAttr(wxGridCellAttr *attr, int row, int col);
|
||||
virtual void SetRowAttr(wxGridCellAttr *attr, int row);
|
||||
virtual void SetColAttr(wxGridCellAttr *attr, int col);
|
||||
void UpdateAttrRows( size_t pos, int numRows );
|
||||
void UpdateAttrCols( size_t pos, int numCols );
|
||||
|
||||
private:
|
||||
void InitData();
|
||||
@@ -366,6 +368,10 @@ public:
|
||||
// get the currently used attr provider (may be NULL)
|
||||
wxGridCellAttrProvider *GetAttrProvider() const { return m_attrProvider; }
|
||||
|
||||
// change row/col number in attribute if needed
|
||||
void UpdateAttrRows( size_t pos, int numRows );
|
||||
void UpdateAttrCols( size_t pos, int numCols );
|
||||
|
||||
// by default forwarded to wxGridCellAttrProvider if any. May be
|
||||
// overridden to handle attributes directly in this class.
|
||||
virtual wxGridCellAttr *GetAttr( int row, int col );
|
||||
|
Reference in New Issue
Block a user