Make wxGridSelection to be non-friend to wxGrid
Improve integrity of the wxGridSelection internal data by removing `friend` declaration.
This commit is contained in:
committed by
Vadim Zeitlin
parent
79219fdbb2
commit
673ed29d7b
@@ -71,6 +71,31 @@ public:
|
||||
void UpdateRows( size_t pos, int numRows );
|
||||
void UpdateCols( size_t pos, int numCols );
|
||||
|
||||
const wxGridCellCoordsArray& GetCellSelection() const
|
||||
{
|
||||
return m_cellSelection;
|
||||
}
|
||||
|
||||
const wxGridCellCoordsArray& GetBlockSelectionTopLeft() const
|
||||
{
|
||||
return m_blockSelectionTopLeft;
|
||||
}
|
||||
|
||||
const wxGridCellCoordsArray& GetBlockSelectionBottomRight() const
|
||||
{
|
||||
return m_blockSelectionBottomRight;
|
||||
}
|
||||
|
||||
const wxArrayInt& GetRowSelection() const
|
||||
{
|
||||
return m_rowSelection;
|
||||
}
|
||||
|
||||
const wxArrayInt& GetColSelection() const
|
||||
{
|
||||
return m_colSelection;
|
||||
}
|
||||
|
||||
private:
|
||||
int BlockContain( int topRow1, int leftCol1,
|
||||
int bottomRow1, int rightCol1,
|
||||
@@ -106,8 +131,6 @@ private:
|
||||
wxGrid *m_grid;
|
||||
wxGrid::wxGridSelectionModes m_selectionMode;
|
||||
|
||||
friend class WXDLLIMPEXP_FWD_CORE wxGrid;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridSelection);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user